/* ============================================================
   Dogalicious — Free Trial Page styles
   Extends homepage/styles.css (header/footer/buttons/cards)
   with sections specific to this landing page.
   ============================================================ */

/* ---------- TRIAL HERO ---------- */
.trial-hero {
  position: relative;
  background: var(--peach);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.trial-hero .hero-bg-dot  { position: absolute; top: -70px; right: -50px; width: 300px; height: 300px; border-radius: 50%; background: var(--mint); opacity: .35; pointer-events: none; }
.trial-hero .hero-bg-dot2 { position: absolute; bottom: -120px; left: -70px; width: 380px; height: 380px; border-radius: 50%; background: var(--lime); opacity: .14; pointer-events: none; }
.trial-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center;
  padding-top: 52px; padding-bottom: 56px;
}
@media (max-width: 900px) { .trial-hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; } }
.trial-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 14px;
}
.trial-hero h1 .teal { color: var(--teal); }
.trial-hero .lead {
  font-family: var(--font-body); font-size: 18px; line-height: 1.55; color: var(--ink-soft);
  max-width: 480px; margin: 0 0 22px;
}
.code-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sticker); padding: 10px 18px; margin: 0 0 22px;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.code-badge b {
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  background: var(--lime); color: var(--forest); padding: 3px 10px; border-radius: var(--r-sm);
  letter-spacing: 0.04em;
}
.trial-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.trial-hero-proof { font-family: var(--font-ui); font-size: 14px; color: var(--ink-soft); }
.trial-hero-proof b { color: var(--ink); }
.trial-hero-media { position: relative; display: flex; justify-content: center; align-items: center; }
.trial-hero-media img {
  max-width: 100%; height: 380px; width: auto; object-fit: contain; border-radius: var(--r-2xl);
  border: 3px solid var(--ink); box-shadow: var(--shadow-sticker-lg); background: var(--white);
}
@media (max-width: 900px) { .trial-hero-media img { height: 280px; } }

/* ---------- INTRO ---------- */
.intro { padding-top: 60px; }
.intro-inner { max-width: 780px; }
.intro p { font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.intro p b { color: var(--ink); }

/* ---------- USP GRID ---------- */
.usp { padding-top: 56px; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; }
@media (max-width: 900px) { .usp-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .usp-grid { grid-template-columns: 1fr; } }
.usp-card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker); padding: 22px 20px;
}
.usp-ic { font-size: 28px; margin-bottom: 10px; display: block; }
img.usp-ic { width: 28px; height: 28px; object-fit: contain; }
.usp-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.usp-card p { font-family: var(--font-body); font-size: 14px; color: var(--charcoal); line-height: 1.5; }

/* ---------- RECIPE STRIP ---------- */
.recipes { padding-top: 60px; }
.recipe-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 24px; }
@media (max-width: 900px) { .recipe-strip { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .recipe-strip { grid-template-columns: 1fr; } }
.recipe-chip {
  background: var(--white); border: 2px solid var(--border-strong); border-radius: var(--r-md);
  padding: 16px 18px;
}
.recipe-chip h4 { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--ink); margin: 0 0 6px; }
.recipe-chip p { font-family: var(--font-body); font-size: 13px; color: var(--stone); line-height: 1.5; }

/* ---------- HOW IT WORKS ---------- */
.how { padding-top: 64px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 28px; counter-reset: step; }
@media (max-width: 780px) { .how-steps { grid-template-columns: 1fr; } }
.how-step { position: relative; padding-left: 6px; }
.how-step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest); color: var(--cream); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 12px;
}
.how-step h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.how-step p { font-family: var(--font-body); font-size: 14px; color: var(--charcoal); line-height: 1.5; }
.how-step .code-chip { font-family: var(--font-mono); font-weight: 700; background: var(--lime); color: var(--forest); padding: 2px 8px; border-radius: var(--r-xs); }

/* ---------- REGISTER PANEL ---------- */
.register { padding-top: 48px; }
.register-panel {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sticker); padding: 22px 26px; max-width: 440px; margin: 0 auto;
}
.register-panel.done { background: color-mix(in oklab, var(--lime) 16%, var(--paper)); }
.register-head { text-align: center; margin-bottom: 14px; }
.register-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); margin: 0 0 4px; }
.register-head p { font-family: var(--font-body); font-size: 13px; color: var(--charcoal); }
.auth-tabs { display: flex; gap: 6px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 3px; margin-bottom: 14px; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--charcoal);
  padding: 7px 0; border-radius: var(--r-pill);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.auth-tabs button.active { background: var(--ink); color: var(--cream); }
.auth-form { display: none; flex-direction: column; gap: 10px; }
.auth-form.active { display: flex; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--ink-soft); }
.field input {
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  border: 2px solid var(--border-strong); border-radius: var(--r-md);
  padding: 9px 12px; background: var(--white);
}
.field input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.auth-submit { margin-top: 2px; width: 100%; padding: 10px 22px; font-size: 14px; }
.auth-fine { font-family: var(--font-ui); font-size: 11px; color: var(--stone); text-align: center; margin-top: 8px; }
.register-success {
  display: none; align-items: center; gap: 12px; justify-content: center; text-align: center; flex-direction: column;
}
.register-success.active { display: flex; }
.register-success .check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--forest);
}
.register-success h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); margin: 0; }
.register-success p { font-family: var(--font-body); font-size: 14px; color: var(--charcoal); max-width: 420px; }

/* ---------- PACKAGE PICKER ---------- */
.packages { padding-top: 64px; }
.packages.locked { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.package-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--charcoal);
  background: var(--peach); border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 7px 14px;
}
.packages-vet-prompt { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--forest); margin: 12px 0 14px; }
.package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; }
@media (max-width: 1080px) { .package-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .package-grid { grid-template-columns: 1fr; } }
.package-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker); overflow: hidden; padding: 0;
  display: flex; flex-direction: column;
  font-family: inherit; color: inherit;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.package-card:hover { transform: translate(-2px,-3px); box-shadow: 7px 8px 0 var(--ink); }
.package-card.selected { outline: 3px solid var(--teal); outline-offset: 2px; background: color-mix(in oklab, var(--mint) 22%, var(--paper)); }
.package-card .pc-media { aspect-ratio: 1 / 1; border-bottom: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; background: var(--white); overflow: hidden; }
.package-card .pc-media img { height: 100%; width: 100%; object-fit: cover; }
.package-card .pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.package-card .pc-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1.2; }
.package-card .pc-desc { font-family: var(--font-body); font-size: 13px; color: var(--charcoal); line-height: 1.5; }
.package-card .pc-ingredients { font-family: var(--font-body); font-size: 12px; color: var(--stone); line-height: 1.5; }
.package-card .pc-ingredients b { color: var(--charcoal); }
.package-card .pc-bonus { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.package-card .pc-bonus img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.package-card .pc-bonus span { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--forest); }
.package-card .pc-radio {
  position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--white);
}
.package-card.selected .pc-radio { background: var(--teal); }
.package-card.selected .pc-radio::after {
  content: "✓"; display: flex; align-items: center; justify-content: center; height: 100%;
  color: #fff; font-size: 13px; font-weight: 800;
}

/* ---------- CHECKOUT BAR ---------- */
.checkout-cta { padding-top: 40px; padding-bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.checkout-cta .btn { min-width: 280px; }
.checkout-cta .btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.checkout-secondary { font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--teal); }
.checkout-secondary:hover { text-decoration: underline; text-underline-offset: 3px; }
.one-per { font-family: var(--font-ui); font-size: 12px; color: var(--stone); }

/* ---------- STORAGE & PREPARATION ---------- */
.storage { padding-top: 48px; }
.storage-panel {
  background: var(--mint); border: 3px solid var(--ink); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sticker); padding: 26px 30px;
}
.storage-panel h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink); margin: 4px 0 0; }
.storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 20px; }
@media (max-width: 780px) { .storage-grid { grid-template-columns: 1fr; } }
.storage-item h3 { font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--forest); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.storage-item p { font-family: var(--font-body); font-size: 14px; color: var(--charcoal); line-height: 1.55; margin: 0; }

/* ---------- BROTHS ---------- */
.broths { padding-top: 60px; }
.broths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 26px; }
@media (max-width: 780px) { .broths-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.broth-card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sticker); overflow: hidden; display: flex; flex-direction: column;
}
.broth-card .bc-media { aspect-ratio: 1 / 1; border-bottom: 3px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.broth-card .bc-media img { height: 100%; width: 100%; object-fit: contain; }
.broth-card .bc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.broth-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); margin: 0; }
.broth-card p { font-family: var(--font-body); font-size: 13px; color: var(--charcoal); line-height: 1.5; margin: 0; }
.broth-card .bc-nutri { font-family: var(--font-mono); font-size: 11px; color: var(--stone); border-top: 1px dashed var(--border-strong); padding-top: 8px; margin-top: 2px; }
.broth-card .bc-ingredients { font-family: var(--font-body); font-size: 12px; color: var(--charcoal); line-height: 1.5; }
.broth-card .bc-ingredients b { color: var(--ink); }

/* Mobile: card becomes a landscape row — image = left half, full height */
@media (max-width: 560px) {
  .broths-grid { grid-template-columns: 1fr; gap: 12px; }
  .broth-card { flex-direction: row; height: 160px; }
  .broth-card .bc-media { width: 160px; height: 160px; flex: 0 0 160px; aspect-ratio: 1 / 1; border-bottom: none; border-right: 3px solid var(--ink); }
  .broth-card .bc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .broth-card .bc-body { flex: 1; padding: 14px 16px; gap: 8px; min-width: 0; justify-content: center; overflow: hidden; }
  .broth-card h3 { font-size: 16px; line-height: 1.25; }
  .broth-card p { font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .broth-card .bc-ingredients { display: none; }
  .broth-card .bc-nutri { display: none; }
}

/* ---------- NUTRITION ---------- */
.nutrition { padding-top: 60px; }
.nutrition-panel {
  border: 3px solid var(--ink); border-radius: var(--r-lg); background: var(--white);
  box-shadow: var(--shadow-sticker); margin-top: 24px;
}
.nutrition-panel summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.nutrition-panel summary::-webkit-details-marker { display: none; }
.nutrition-panel summary::after { content: "▾"; color: var(--stone); }
.nutrition-panel[open] summary::after { content: "▴"; }
.nutrition-body { padding: 0 22px 22px; }
.nutrition-body h4 { font-family: var(--font-ui); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--forest); margin: 18px 0 8px; }
.nutrition-body h4:first-child { margin-top: 0; }
table.nutri-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 13px; }
table.nutri-table th, table.nutri-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--divider); }
table.nutri-table th { color: var(--stone); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }
table.nutri-table td { color: var(--ink-soft); }
.nutri-ingredients { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nutri-ingredients li { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.nutri-ingredients b { color: var(--ink); font-family: var(--font-ui); font-weight: 700; }
