
:root {
  --blue: #0a4ea1;
  --navy: #06357a;
  --celeste: #5ec4e8;
  --ice: #e7f6fc;
  --white: #fff;
  --ink: #12304a;
  --muted: #5a7a90;
  --line: #c5e3f2;
  --dock: 76px;
}
* { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font: 16px/1.45 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
  overflow-x: hidden; max-width: 100%;
}
h1, h2, .name, .foot-brand, .n, .week h3, .mark {
  font-family: "Barlow Condensed", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bar {
  position: sticky; top: 0; z-index: 8;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  padding: calc(10px + env(safe-area-inset-top)) 0 0;
  background: var(--blue); color: #fff;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  padding: 0 14px 8px; flex: 1 1 auto; min-width: 0;
}
.mark {
  width: 36px; height: 36px;
  background: var(--celeste); color: var(--navy);
  display: grid; place-items: center; font-size: 1rem;
  flex: 0 0 auto;
}
.name {
  font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-actions {
  flex: 1 1 100%;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--celeste);
}
.bar-actions .ghost.light, .bar-actions .cart-btn {
  min-height: 44px; width: 100%;
  justify-content: center; padding: 10px 6px; font-size: .82rem;
}
.hero-cta { display: flex; flex-direction: column; gap: 0; max-width: 280px; }
.hero-cta .primary, .hero-cta .ghost { width: 100%; max-width: none; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--blue);
  font-weight: 700; min-height: 48px;
  padding: 12px 18px; border: 1px solid var(--blue);
  text-transform: uppercase; letter-spacing: .04em;
}
.ghost.light {
  background: transparent; color: #fff; border-color: var(--celeste);
  min-height: 40px; padding: 8px 12px;
}
.cart-btn {
  font: inherit; font-weight: 700; font-size: .88rem;
  color: var(--navy); background: var(--celeste);
  border: 0; min-height: 40px; padding: 8px 12px;
  display: flex; align-items: center; gap: 6px;
}
.cart-count {
  background: var(--navy); color: #fff;
  min-width: 1.3rem; height: 1.3rem;
  display: inline-grid; place-items: center; font-size: .72rem;
}

.hero { background: var(--white); }
.hero-copy { padding: 22px 16px 8px; }
.kicker {
  margin: 0 0 8px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  line-height: .95;
  color: var(--navy);
  text-transform: uppercase;
}
h1 em { font-style: normal; color: var(--celeste); }
.lead { margin: 12px 0 0; max-width: 34rem; color: var(--muted); }
.facts {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; padding: 0; margin: 16px 0 18px;
}
.facts li {
  border: 1px solid var(--blue);
  background: var(--ice);
  color: var(--navy);
  padding: 7px 10px;
  font-size: .82rem; font-weight: 600;
}
.hero-photo {
  display: block; width: 100%; height: 220px;
  object-fit: cover; border-top: 4px solid var(--celeste);
}

a.primary, button.primary, a.ghost, button.ghost, .add, .chip, .sheet-close, .qty-btn, .cart-btn {
  font: inherit; cursor: pointer; text-decoration: none;
}
.primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-weight: 700; min-height: 48px;
  padding: 12px 18px; border: 0;
  width: 100%; max-width: 280px;
  text-transform: uppercase; letter-spacing: .04em;
}

.audiences {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
.aud {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 0;
}
.aud:last-child { border-bottom: 0; }
.aud-media { position: relative; flex: 1; overflow: hidden; }
.aud-media img { width: 100%; height: 280px; object-fit: cover; display: block; }
.aud-media h2 {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  margin: 0;
  background: var(--blue); color: #fff;
  font-size: 1.6rem;
  padding: 12px 16px;
  letter-spacing: .04em;
}
.aud-over {
  position: absolute; inset: 0; z-index: 3;
  margin: 0;
  background: rgba(6, 53, 122, .92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 24px;
  font-family: "Barlow Condensed", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.45rem, 5.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.aud-over span {
  display: block;
  max-width: 22em;
  border-left: 4px solid var(--celeste);
  padding-left: 16px;
  line-height: 1.22;
}
.aud-media:hover .aud-over,
.aud-media.on .aud-over { opacity: 1; }
.aud .primary { max-width: none; width: 100%; }

.niches {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--blue);
}
.niche {
  margin: 0;
  padding: 8px 6px;
  text-align: center;
  font-family: "Barlow Condensed", "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--ice);
  border-right: 1px solid var(--blue);
  line-height: 1.2;
}
.niche:last-child { border-right: 0; }

.block { padding: 28px 16px 10px; }
.block h2 {
  margin: 0 0 14px; font-size: 1.55rem;
  color: var(--navy); border-bottom: 3px solid var(--celeste);
  display: inline-block; padding-bottom: 4px;
}

.weeks {
  display: flex; gap: 0; overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--blue);
  -webkit-overflow-scrolling: touch;
}
.week {
  flex: 0 0 80%; scroll-snap-align: start;
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.week img { width: 100%; height: 150px; object-fit: cover; display: block; }
.week-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.week h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.week .price, .pcard .price, .cart-total {
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue);
}
.week .add, .pcard .add {
  margin-top: auto; border: 0;
  background: var(--blue); color: #fff;
  font-weight: 700; min-height: 42px; width: 100%;
  text-transform: uppercase; font-size: .82rem;
}
.pcard .add {
  min-height: 30px;
  padding: 4px 8px;
  font-size: .72rem;
}
.week .add.on, .pcard .add.on { background: var(--navy); }

.how-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--blue); }
.how-card {
  background: var(--white);
  padding: 12px 10px 14px;
  min-height: auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.how-card:last-child { border-bottom: 0; }
.n { display: block; font-size: 1.4rem; color: var(--celeste); line-height: 1; margin-bottom: 8px; }
.how-card strong { display: block; font-size: .9rem; color: var(--navy); }
.how-card p { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }

.chips { display: flex; gap: 0; margin: 0 0 12px; border: 1px solid var(--blue); width: fit-content; }
.chip {
  background: var(--white); border: 0; border-right: 1px solid var(--blue);
  padding: 8px 14px; min-height: 40px; color: var(--blue); font-weight: 600;
}
.chip:last-child { border-right: 0; }
.chip.on { background: var(--blue); color: #fff; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.pcard {
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.pcard.out { opacity: .45; }
.pcard img { width: 100%; height: 148px; object-fit: cover; display: block; }
.pcard-body { padding: 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard h3 { margin: 0; font-size: .92rem; font-weight: 600; color: var(--navy); }
.pcard .meta { color: var(--muted); font-size: .75rem; }

.qty {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; background: var(--ice); padding: 4px;
}
.qty-btn {
  width: 36px; height: 36px; border: 0;
  background: var(--blue); color: #fff; font-size: 1.2rem; font-weight: 700;
}
.qty span { font-weight: 700; min-width: 1.4rem; text-align: center; color: var(--navy); }

.foot {
  padding: 28px 16px 18px;
  background: var(--blue); color: #fff;
  margin-top: 24px;
}
.foot-brand { margin: 0 0 6px; font-size: 1.4rem; color: #fff; }
.foot .muted { color: var(--celeste); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 0;
  background: var(--blue);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock-btn {
  max-width: none; width: 100%;
  background: var(--blue); color: #fff;
  border-top: 3px solid var(--celeste);
}

.sheet {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6,53,122,.45);
  display: none; align-items: flex-end;
}
.sheet.is-open { display: flex; }
body.sheet-open { overflow: hidden; }
.sheet-close {
  min-width: 44px; min-height: 44px; border: 0;
  background: var(--ice); color: var(--navy); font-weight: 700; font-size: 1.2rem;
}
.sheet-card {
  background: var(--white); width: 100%;
  min-height: 64dvh; max-height: 92dvh;
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 4px solid var(--celeste);
}
.sheet-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; border-bottom: 1px solid var(--line);
  background: var(--ice);
}
.sheet-top p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.cart-list { flex: 1; overflow: auto; padding: 8px 14px; }
.cart-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cart-row img { width: 56px; height: 56px; object-fit: cover; }
.cart-row .nm { font-weight: 600; color: var(--navy); }
.cart-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-foot .primary { max-width: none; }
.msgs { flex: 1; overflow: auto; padding: 14px; }
.bubble { max-width: 86%; margin: 7px 0; padding: 10px 12px; white-space: pre-wrap; }
.bubble.in { background: var(--ice); }
.bubble.out { background: var(--blue); color: #fff; margin-left: auto; }
.compose { display: flex; gap: 0; border-top: 1px solid var(--line); }
.compose input {
  flex: 1; font: inherit; font-size: 16px;
  border: 0; padding: 14px; background: #fff;
}
.compose .primary { width: auto; max-width: none; padding-inline: 18px; }
.empty { color: var(--muted); padding: 8px 2px 16px; }

@media (min-width: 800px) {
  body { padding-bottom: 0; overflow-x: visible; }
  .bar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  }
  .brand { padding: 0; flex: 0 1 auto; }
  .name { font-size: 1.2rem; }
  .bar-actions {
    flex: 0 0 auto;
    display: flex;
    width: auto;
    border-top: 0;
  }
  .bar-actions .ghost.light, .bar-actions .cart-btn {
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: .88rem;
  }
  .how-grid { grid-template-columns: 1fr 1fr 1fr; }
  .how-card {
    min-height: 180px;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .how-card:last-child { border-right: 0; border-bottom: 0; }
  body { background: var(--ice); }
  .bar, .hero, .audiences, .niches, main, .foot {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }
  .bar { width: 100%; padding-left: 28px; padding-right: 28px; }
  .hero {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 420px; align-items: stretch;
  }
  .hero-copy { padding: 48px 40px; }
  .hero-photo { height: 100%; min-height: 420px; border-top: 0; border-left: 4px solid var(--celeste); }
  h1 { font-size: 4.2rem; }
  .hero-cta { flex-direction: row; max-width: none; }
  .hero-cta .primary, .hero-cta .ghost { width: auto; padding-inline: 22px; }
  .audiences { grid-template-columns: 1fr 1fr; }
  .aud { border-bottom: 0; border-right: 1px solid var(--line); }
  .aud:last-child { border-right: 0; }
  .aud-media img { height: 340px; }
  .aud-over { font-size: 2.05rem; padding: 40px 36px; }
  .aud-over span { padding-left: 20px; }
  .aud-media h2 { font-size: 1.85rem; padding: 14px 22px; }
  .niche { font-size: 1.25rem; padding: 10px 8px; }
  .block { padding: 36px 24px 12px; }
  .week { flex-basis: 320px; }
  .how-card { min-height: 180px; padding: 18px; }
  .how-card p { font-size: .9rem; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .dock { display: none; }
  .sheet { align-items: center; justify-content: center; }
  .sheet-card {
    width: min(440px, 92vw);
    min-height: 520px; max-height: 80vh;
    border: 4px solid var(--celeste); border-top-width: 4px;
  }
}

.auth-form { display: flex; flex-direction: column; gap: 0; padding: 12px 14px 18px; overflow: auto; }
.auth-form input, .auth-form select {
  font: inherit; font-size: 16px;
  border: 1px solid var(--blue); border-bottom: 0;
  padding: 12px 12px; background: #fff; color: var(--ink);
}
.auth-form input:last-of-type, .auth-form select:last-of-type { border-bottom: 1px solid var(--blue); }
.auth-form .primary { max-width: none; margin-top: 12px; }
.auth-form .ghost { margin-top: 8px; }
.auth-tabs { margin: 12px 14px 0; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-top: 0;
  font-size: .92rem; color: var(--navy);
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 18px; }
.err { color: var(--navy); min-height: 1.2em; font-size: .85rem; }
.auth-form .check:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; }
