/* ============================================================================
   70-DAY HYRO CHALLENGE — Vault Door + Tracker
   Inherits tokens from colors_and_type.css. Mobile-first, red on cream.
   ============================================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--hyro-cream);
  color: var(--hyro-ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* Brief: headlines + eyebrows = Lemon Bold ALL CAPS; body = Perfectly Nineties */
.lemon {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
}
.serif { font-family: var(--font-serif); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sec { position: relative; }
.sec-pad { padding: 64px 0; }
@media (min-width: 1024px) { .sec-pad { padding: 104px 0; } }

.surface-cream { background: var(--hyro-cream); }
.surface-white { background: var(--hyro-white); }
.surface-red   { background: var(--hyro-red); color: #fff; }
.surface-cream2 { background: var(--hyro-cream-2); }
.surface-dark { background: var(--hyro-ink); color: var(--hyro-cream); }

/* FAQ on dark surface */
.faq-dark .h-sec { color: #fff; }
.faq-dark .faq-item { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.faq-dark .faq-q h4 { color: #fff; }
.faq-dark .faq-a-inner { color: rgba(255,244,236,0.78); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: 20px;
  color: var(--hyro-red);
  margin: 0 0 16px;
  display: inline-block;
}
.eyebrow.on-red { color: #fff; }

/* ---------- Headlines ---------- */
.h-hero {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0 0 20px;
}
.h-sec {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
}
.h-sec .accent { color: var(--hyro-red); }

/* subheads + body use serif */
.subhead {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 56ch;
}
.subhead em { font-style: italic; }
.muted { color: var(--hyro-grey-700); }

/* ---------- Pill CTA (fully rounded, inverts on hover) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 2px solid var(--hyro-red);
  background: var(--hyro-red);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .08s ease;
  text-decoration: none;
  white-space: nowrap;
}
.cta:hover { background: #fff; color: var(--hyro-red); }
.cta:active { transform: translateY(1px); }
.cta.on-red { background: #fff; color: var(--hyro-red); border-color: #fff; }
.cta.on-red:hover { background: var(--hyro-red); color: #fff; }
.cta.big { font-size: 19px; padding: 19px 42px; }
.cta.block { display: flex; width: 100%; }

/* ---------- Pills / chips ---------- */
.prize-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--hyro-red);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-red);
}
.prize-pill .dot { width: 7px; height: 7px; border-radius: 999px; background: #fff; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row.one-line { flex-wrap: nowrap; }
.chip-row.one-line .chip { flex: 1 1 0; min-width: 0; justify-content: center; padding-left: 11px; padding-right: 11px; }
.chip-row.one-line .chip span:not(.tick) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--hyro-line);
  color: var(--hyro-ink);
  font-family: var(--font-serif);
  font-size: 14px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip .tick {
  width: 17px; height: 17px; border-radius: 999px; background: var(--hyro-red);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.chip .tick svg { width: 11px; height: 11px; stroke: #fff; }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: auto; }
.wave-flip { transform: scaleY(-1); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--hyro-line);
  box-shadow: var(--shadow-sm);
}

/* ===== HERO (full-bleed image with overlay) ===== */
.hero-full {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #120305 url("assets/lifestyle/hero-spotlight.jpg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(18,3,5,0.94) 0%, rgba(18,3,5,0.5) 44%, rgba(18,3,5,0.12) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding: 120px 0 72px; }
.hero-inner { max-width: 660px; }
.hero-full .h-hero { color: #fff; }
.hero-full .h-hero .accent { color: var(--hyro-cream); }
.hero-full .subhead { color: rgba(255,255,255,0.9); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; }
.sec-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
@media (min-width: 1024px) {
  .hero-full { min-height: 86vh; align-items: center; background-position: center; }
  .hero-content { padding: 110px 0 130px; }
  .hero-scrim { background: linear-gradient(to right, rgba(18,3,5,0.92) 0%, rgba(18,3,5,0.62) 46%, rgba(18,3,5,0.22) 78%, rgba(18,3,5,0.4) 100%); }
}

/* ===== Milestone arc (What 70 days does) ===== */
.arc-track { position: relative; }
.arc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; position: relative; z-index: 1; }
.ms-card {
  background: #fff; border: 1px solid var(--hyro-line); border-radius: var(--r-xl);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  display: flex; gap: 18px; align-items: flex-start;
}
.ms-ring { flex: none; width: 64px; height: 64px; position: relative; }
.ms-ring .day {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display); line-height: 0.85;
}
.ms-ring .day b { font-size: 20px; color: var(--hyro-red); }
.ms-ring .day i { font-size: 8px; font-style: normal; color: var(--hyro-grey-500); letter-spacing: 0.08em; }
.ms-card h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 17px; letter-spacing: 0.02em; margin: 2px 0 7px; }
.ms-card p { font-size: 15px; line-height: 1.45; color: var(--hyro-grey-700); margin: 0; }
@media (min-width: 1024px) {
  .arc-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .ms-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 30px 26px; }
  .ms-ring { width: 76px; height: 76px; }
  .ms-ring .day b { font-size: 24px; }
  /* connecting line behind cards — solid, with an arrow past Day 70 */
  .arc-track::before {
    content: ""; position: absolute; top: 67px; left: 5.4%; right: 6%; height: 3px;
    background: var(--hyro-red); opacity: 0.5; z-index: 0; border-radius: 999px;
  }
  .arc-track::after {
    content: ""; position: absolute; top: 60px; right: 4%; z-index: 1;
    width: 0; height: 0;
    border-top: 8px solid transparent; border-bottom: 8px solid transparent;
    border-left: 13px solid var(--hyro-red); opacity: 0.5;
  }
}

/* ===== How to enter (numbered cards, centred, icon) ===== */
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1000px; margin: 44px auto 0; }
.step {
  position: relative; background: #fff; border: 1px solid var(--hyro-line); border-radius: var(--r-xl);
  padding: 42px 26px 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.step .num {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 999px; background: var(--hyro-red); color: #fff;
  font-family: var(--font-display); font-size: 21px; display: flex; align-items: center; justify-content: center;
  border: 5px solid var(--hyro-cream);
}
.step .step-ic { width: 56px; height: 56px; border-radius: 999px; background: var(--hyro-red-wash); display: flex; align-items: center; justify-content: center; }
.step .step-ic svg { width: 28px; height: 28px; stroke: var(--hyro-red); }
.step h4 { font-family: var(--font-serif); font-weight: 700; font-size: 19px; margin: 0; }
.step p { font-size: 15px; color: var(--hyro-grey-700); margin: 0; line-height: 1.45; max-width: 32ch; white-space: pre-line; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ===== Habit + Reward (merged, side-by-side) ===== */
.hr-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.hr-card {
  background: #fff; border: 1px solid var(--hyro-line); border-radius: var(--r-xl);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.hr-h { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.7rem, 4.4vw, 2.2rem); letter-spacing: 0.01em; line-height: 0.96; margin: 6px 0 10px; }
.hr-h .accent { color: var(--hyro-red); }
.hr-card > p { font-size: 16px; color: var(--hyro-grey-700); line-height: 1.5; margin: 0 0 22px; }
.hr-card .coupon { margin: auto auto 0; }
.hr-card .teaser-frame { margin-top: auto; }
@media (min-width: 900px) {
  .hr-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
}

/* ===== Reward credit coupon ===== */
.coupon {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 14px; background: var(--hyro-red); color: #fff; border-radius: 22px;
  padding: 30px 34px; margin: 44px auto 30px; max-width: 520px;
  box-shadow: var(--shadow-red);
}
.coupon-amt { font-family: var(--font-display); font-size: clamp(5rem, 23vw, 9rem); line-height: 0.78; letter-spacing: -0.01em; }
.coupon-divider { width: 78%; border-top: 2.5px dashed rgba(255,255,255,0.55); }
.coupon-meta { text-align: center; }
.coupon-label { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 21px; letter-spacing: 0.03em; line-height: 1; }
.coupon-sub { display: block; font-family: var(--font-serif); font-size: 14px; opacity: 0.92; margin-top: 6px; }
.coupon::before, .coupon::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 999px; background: var(--hyro-white);
}
.coupon::before { left: -15px; }
.coupon::after { right: -15px; }
@media (min-width: 640px) {
  .coupon { flex-direction: row; gap: 30px; padding: 34px 48px; }
  .coupon-divider { width: 0; align-self: stretch; border-top: 0; border-left: 2.5px dashed rgba(255,255,255,0.55); margin: 6px 0; }
  .coupon-meta { text-align: left; }
}
.rules-box {
  background: #fff; border: 2px solid var(--hyro-red); border-radius: var(--r-xl);
  padding: 22px 24px; max-width: 540px; margin: 28px auto 0;
}
.rules-box .lbl { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; color: var(--hyro-red); }
.rules-box p { margin: 8px 0 0; font-size: 17px; line-height: 1.45; }

/* ===== Tracker teaser (page 1) ===== */
.teaser-frame {
  position: relative; background: var(--hyro-red); border-radius: var(--r-xl);
  padding: 28px 24px 30px; overflow: hidden; box-shadow: var(--shadow-red);
}
.teaser-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px;
  max-width: 420px; margin: 0 auto;
}
.tbox {
  aspect-ratio: 1/1; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px;
  background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.tbox.done { background: #fff; color: var(--hyro-red); border-color: #fff; }
.teaser-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 26px;
  background: linear-gradient(to top, rgba(251,13,27,0.96) 16%, rgba(251,13,27,0.55) 48%, transparent 78%);
}

/* ===== Why it works ===== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.why-card { background: #fff; border: 1px solid var(--hyro-line); border-radius: var(--r-xl); padding: 28px 26px; }
.why-card .ic { width: 46px; height: 46px; border-radius: 999px; background: var(--hyro-red-wash); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-card .ic svg { width: 24px; height: 24px; stroke: var(--hyro-red); }
.why-card h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; letter-spacing: 0.02em; margin: 0 0 9px; }
.why-card p { font-size: 15px; line-height: 1.5; color: var(--hyro-grey-700); margin: 0; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.video-ph {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-xl); overflow: hidden;
  background: var(--hyro-ink); display: flex; align-items: center; justify-content: center;
  margin-top: 24px; border: 1px solid var(--hyro-line);
}
.video-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.video-ph .play { position: relative; z-index: 2; width: 74px; height: 74px; border-radius: 999px; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; }
.video-ph .play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--hyro-red); }
.video-ph .lbl { position: absolute; z-index: 2; bottom: 16px; left: 18px; color: #fff; font-family: var(--font-display); text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }

/* ===== Social proof ===== */
.ugc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ugc-tile { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden; background: var(--hyro-cream-2); position: relative; }
.ugc-tile img { width: 100%; height: 100%; object-fit: cover; }
.ugc-tile .badge { position: absolute; bottom: 10px; left: 10px; background: rgba(36,36,36,0.7); color: #fff; font-family: var(--font-sans); font-size: 11px; padding: 4px 9px; border-radius: 999px; }
@media (min-width: 1024px) { .ugc-grid { grid-template-columns: repeat(4, 1fr); } }

.testi-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.testi-ph {
  background: var(--hyro-cream); border: 1px dashed var(--hyro-red); border-radius: var(--r-xl);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 150px;
}
.testi-ph .stars { color: var(--hyro-red); letter-spacing: 2px; font-size: 16px; }
.testi-ph .ph-line { height: 11px; border-radius: 999px; background: rgba(36,36,36,0.08); }
.testi-ph .tag { margin-top: auto; font-family: var(--font-sans); font-size: 12px; color: var(--hyro-red); letter-spacing: 0.02em; }
@media (min-width: 1024px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--hyro-line); border-radius: var(--r-lg); margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q h4 { font-family: var(--font-serif); font-weight: 700; font-size: 18px; margin: 0; }
.faq-ic { font-family: var(--font-display); color: var(--hyro-red); font-size: 26px; line-height: 1; flex: none; transition: transform .2s ease; }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; font-size: 16px; line-height: 1.5; color: var(--hyro-grey-700); }

/* ===== Final CTA + footer ===== */
.final-cta { text-align: center; }
.friction { font-family: var(--font-sans); font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 18px; }
.footer { background: var(--hyro-ink); color: var(--hyro-cream); padding: 48px 0 30px; }
.footer-wordmark { height: 34px; margin-bottom: 18px; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,244,236,0.25); display: flex; align-items: center; justify-content: center; color: var(--hyro-cream); }
.footer-socials a:hover { background: var(--hyro-red); border-color: var(--hyro-red); color: #fff; }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,244,236,0.12); font-family: var(--font-sans); font-size: 12px; opacity: 0.65; }

/* ===== Sticky CTA bar (mobile) ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,244,236,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--hyro-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  transform: translateY(120%); transition: transform .3s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .meta { font-family: var(--font-serif); font-size: 13px; line-height: 1.2; flex: 1; }
.sticky-cta .meta b { font-family: var(--font-display); color: var(--hyro-red); font-size: 14px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ===== Opt-in modal ===== */
.modal-back {
  position: fixed; inset: 0; z-index: 200; background: rgba(36,36,36,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-back.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--hyro-cream); width: 100%; max-width: 460px;
  border-radius: 24px 24px 0 0; padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(20px); transition: transform .25s ease; position: relative;
}
.modal-back.show .modal { transform: translateY(0); }
@media (min-width: 640px) { .modal-back { align-items: center; } .modal { border-radius: 24px; } }
.modal .close { position: absolute; top: 14px; right: 16px; background: transparent; border: 0; font-size: 26px; line-height: 1; color: var(--hyro-grey-500); }
.modal .lock-ic { width: 52px; height: 52px; border-radius: 999px; background: var(--hyro-red); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.modal .lock-ic svg { width: 26px; height: 26px; stroke: #fff; }
.modal h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; margin: 0 0 6px; letter-spacing: 0.01em; }
.modal p.sub { font-size: 15px; color: var(--hyro-grey-700); margin: 0 0 18px; }
.field { margin-bottom: 12px; }
.field label { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--hyro-grey-700); display: block; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--hyro-line);
  background: #fff; font-family: var(--font-serif); font-size: 16px; color: var(--hyro-ink);
}
.field input:focus { outline: none; border-color: var(--hyro-red); }
.field.err input { border-color: var(--hyro-red); }
.field .msg { font-family: var(--font-sans); font-size: 12px; color: var(--hyro-red); margin-top: 5px; }
.modal .fine { font-family: var(--font-sans); font-size: 12px; color: var(--hyro-grey-500); text-align: center; margin: 14px 0 0; }

/* ===== Vault transition ===== */
.vault-overlay { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.vault-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--hyro-red);
  display: flex; align-items: center; transition: transform .8s cubic-bezier(.7,0,.2,1);
}
.vault-door.left { left: 0; justify-content: flex-end; transform: translateX(-101%); }
.vault-door.right { right: 0; justify-content: flex-start; transform: translateX(101%); }
.vault-overlay.closing .vault-door.left,
.vault-overlay.closed .vault-door.left { transform: translateX(0); }
.vault-overlay.closing .vault-door.right,
.vault-overlay.closed .vault-door.right { transform: translateX(0); }
.vault-overlay.opening .vault-door.left { transform: translateX(-101%); }
.vault-overlay.opening .vault-door.right { transform: translateX(101%); }
.vault-seam {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 2; text-align: center; color: #fff; opacity: 0; transition: opacity .3s ease;
}
.vault-overlay.closed .vault-seam { opacity: 1; }
.vault-seam .ring { width: 86px; height: 86px; border-radius: 999px; border: 3px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.vault-seam .ring svg { width: 38px; height: 38px; stroke: #fff; }
.vault-seam .t { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; letter-spacing: 0.04em; }
.vault-door .edge { width: 8px; height: 100%; background: rgba(0,0,0,0.12); }
.vault-door.right .edge { order: -1; }

/* ============================================================================
   PAGE 2 — TRACKER
   ============================================================================ */
.tracker-page { min-height: 100vh; background: var(--hyro-cream); padding-bottom: 110px; }
@media (min-width: 1024px) { .tracker-page { padding-bottom: 40px; } }

.tk-top { background: var(--hyro-red); color: #fff; padding: 18px 0 24px; }
.tk-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tk-lockup img { height: 26px; }
.tk-lockup .seventy { font-family: var(--font-display); text-transform: uppercase; font-size: 15px; letter-spacing: 0.04em; padding: 4px 11px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 999px; }
.tk-greeting { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.4rem, 5.2vw, 2.2rem); line-height: 1; margin: 0 0 16px; white-space: nowrap; }
.tk-greeting em { font-style: normal; }
.tk-stat-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 14px; }
.tk-daycount { font-family: var(--font-display); font-size: 18px; }
.tk-streak { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-serif); font-size: 15px; background: rgba(255,255,255,0.16); padding: 5px 13px; border-radius: 999px; }
.tk-streak .streak-emoji { font-size: 15px; line-height: 1; }
.tk-progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.22); overflow: hidden; }
.tk-progress > div { height: 100%; background: #fff; border-radius: 999px; transition: width .5s ease; }
.tk-countdown { font-family: var(--font-serif); font-size: 14px; margin-top: 10px; opacity: 0.95; }
.tk-countdown b { font-family: var(--font-serif); font-weight: 700; font-size: inherit; }

.tk-body { padding-top: 24px; }
@media (min-width: 1024px) { .tk-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; } }

/* week rows */
.wk { margin-bottom: 18px; }
.wk-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; padding: 0 2px; }
.wk-head .wk-lbl { font-family: var(--font-display); text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; color: var(--hyro-grey-700); }
.wk-head .wk-block { font-family: var(--font-sans); font-size: 11px; color: var(--hyro-grey-500); }
.wk-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }

/* Hyro bottle cell */
.bottle-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 3px 0 2px;
}
.bottle-cell.tappable { cursor: pointer; }
.bottle {
  position: relative; aspect-ratio: 175 / 527; height: 88px; width: auto; margin: 0 auto;
  transition: transform .12s ease;
}
.bottle img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bottle-line { position: absolute; inset: 0; transition: opacity .2s ease, filter .2s ease; }
.bottle-fill { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path .5s cubic-bezier(.6,0,.3,1); }
.bottle-tick {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 48%; aspect-ratio: 1; background: #fff; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.bottle-cell.future .bottle-line { opacity: 0.3; }
.bottle-cell.missable .bottle-line { opacity: 0.62; }
.bottle-cell.today .bottle-line { opacity: 1; }
.bottle-cell.today .bottle { filter: drop-shadow(0 3px 9px rgba(251,13,27,0.4)); }
.bottle-cell.done .bottle-line { filter: invert(1); }
.bottle-cell.done .bottle-fill { clip-path: inset(0 0 0 0); }
@media (min-width: 1024px) { .bottle { height: 104px; } }
.bottle-day { font-family: var(--font-display); font-size: 12px; line-height: 1; color: var(--hyro-grey-500); }
.bottle-cell.future .bottle-day { color: var(--hyro-grey-300); }
.bottle-cell.today .bottle-day,
.bottle-cell.done .bottle-day { color: var(--hyro-red); }
.bottle-cell .ms-flag {
  position: absolute; top: -3px; right: 3px; z-index: 2;
  width: 9px; height: 9px; border-radius: 999px; background: var(--hyro-ink); border: 2px solid var(--hyro-cream);
}
.bottle-cell.done .ms-flag { background: var(--hyro-red); }
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(1.16)} 100%{transform:scale(1)} }
.bottle-cell.tappable:hover .bottle { transform: translateY(-2px); }
.bottle-cell.just-checked .bottle { animation: pop .34s ease; }

/* milestone banner */
.ms-banner {
  background: #fff; border: 1px solid var(--hyro-line); border-left: 5px solid var(--hyro-red);
  border-radius: var(--r-lg); padding: 16px 20px; margin: 6px 0 20px;
  display: flex; gap: 14px; align-items: center;
}
.ms-banner.reached { background: var(--hyro-red-wash); border-color: rgba(251,13,27,0.3); }
.ms-banner-amt {
  flex: none; align-self: center;
  font-family: var(--font-display); font-size: 22px; color: #fff; background: var(--hyro-red);
  padding: 12px 14px; border-radius: var(--r-md); line-height: 1; box-shadow: var(--shadow-red);
}
.ms-banner .bdg { font-family: var(--font-display); color: var(--hyro-red); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.ms-banner h4 { font-family: var(--font-serif); font-weight: 700; font-size: 17px; margin: 2px 0 3px; }
.ms-banner p { font-size: 14px; color: var(--hyro-grey-700); margin: 0; line-height: 1.4; }

/* claim card staged breakdown */
.amt-of { font-size: 22px; opacity: 0.55; margin-left: 6px; letter-spacing: 0; }
.claim-stages { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.claim-stages li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 13px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.1); opacity: 0.6;
}
.claim-stages li.done { opacity: 1; background: rgba(255,255,255,0.18); }
.claim-stages .cs-ic { display: inline-flex; }
.claim-stages .cs-day { flex: 1; }
.claim-stages .cs-amt { font-family: var(--font-display); font-size: 15px; }

/* claim card */
.claim-card {
  background: var(--hyro-ink); color: var(--hyro-cream); border-radius: var(--r-xl);
  padding: 26px 24px; position: relative; overflow: hidden;
}
.claim-card.unlocked { background: var(--hyro-red); color: #fff; }
.claim-card .amt { font-family: var(--font-display); font-size: 58px; line-height: 0.9; margin: 4px 0 6px; }
.claim-card h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; letter-spacing: 0.02em; margin: 0 0 8px; }
.claim-card p { font-size: 14px; line-height: 1.45; opacity: 0.9; margin: 0 0 16px; }
.claim-lockrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 13px; background: rgba(255,255,255,0.12); padding: 8px 14px; border-radius: 999px; }
.claim-lockrow svg { width: 14px; height: 14px; }
.claim-form { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.claim-input {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1.5px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.14);
  color: #fff; font-family: var(--font-serif); font-size: 15px;
}
.claim-input::placeholder { color: rgba(255,255,255,0.65); }
.claim-input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.22); }
.claim-err { font-family: var(--font-sans); font-size: 12px; color: #fff; background: rgba(0,0,0,0.2); padding: 6px 11px; border-radius: 8px; }
.claim-cancel { background: transparent; border: 0; color: inherit; opacity: 0.8; font-family: var(--font-sans); font-size: 13px; text-decoration: underline; cursor: pointer; align-self: center; margin-top: 2px; }
.claim-retake {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 12px; padding: 12px 18px; border-radius: 999px;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.6); color: #fff;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 14px;
  cursor: pointer; transition: background .18s ease, color .18s ease;
}
.claim-retake:hover { background: #fff; color: var(--hyro-red); border-color: #fff; }
@media (min-width: 1024px) { .claim-card { position: sticky; top: 24px; } }

/* sticky check today (mobile) */
.check-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,244,236,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--hyro-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center;
}
.check-bar .info { flex: 1; font-family: var(--font-serif); font-size: 13px; line-height: 1.2; }
.check-bar .info b { font-family: var(--font-display); color: var(--hyro-red); }
@media (min-width: 1024px) { .check-bar { display: none; } }

/* small helper */
.center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.hide-mobile { display: none; }
@media (min-width: 1024px) { .hide-mobile { display: block; } .hide-desktop { display: none; } }
