/* Marketing pages (/, /for-coaches/). Tokens come from styles.css. */
.site main { overflow-x: clip; }
.site h1, .site h2 { text-wrap: balance; margin: 0; color: var(--ink); }
.site h1 { font-size: clamp(2.75rem, 7.4vw, 5.5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.site h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.site .lead { font-size: var(--step-lead); line-height: 1.4; color: var(--ink-2, var(--ink)); opacity: 0.78; max-width: 40ch; margin: 18px auto 0; text-wrap: pretty; }

.hero { text-align: center; padding: clamp(56px, 10vw, 120px) 0 0; }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .stores { justify-content: center; margin-top: 28px; }
.hero-phones { margin-top: clamp(40px, 7vw, 80px); }

.phones { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px; }
.ph { margin: 0; flex: none; --w: 260px; width: var(--w); position: relative; box-sizing: border-box; padding: calc(var(--w) * 0.15) calc(var(--w) * 0.04) calc(var(--w) * 0.04); background: #0b0c0e; border-radius: calc(var(--w) * 0.17); box-shadow: inset 0 0 0 calc(var(--w) * 0.006) #3a3d42, 0 1px 0 var(--hair), 0 30px 60px -28px rgba(10, 11, 13, 0.45); }
/* Every screenshot sits whole (contain, never cropped) inside the same drawn iPhone frame: body, Dynamic Island in its own status-bar strip above the screen, so it never covers the app. */
.ph::after { content: ""; position: absolute; top: calc(var(--w) * 0.062); left: 50%; width: calc(var(--w) * 0.27); height: calc(var(--w) * 0.08); transform: translateX(-50%); background: #000; border-radius: 999px; pointer-events: none; }
.ph img {
  display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2274; object-fit: contain; object-position: center; border-radius: calc(var(--w) * 0.025) calc(var(--w) * 0.025) calc(var(--w) * 0.13) calc(var(--w) * 0.13);
  background: #000;
}

/* Desktop screenshots: a plain browser frame, same hairline + shadow as the phone shots. */
.desk { margin: clamp(40px, 7vw, 80px) auto 0; width: min(100%, 960px); border-radius: 12px; overflow: hidden; background: var(--stage); box-shadow: 0 1px 0 var(--hair), 0 30px 60px -28px rgba(10, 11, 13, 0.45); }
.feat .desk { margin: 0; width: 100%; }
.desk-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--hair); }
.desk-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--stage-hair, #0003); }
.desk img { display: block; width: 100%; height: auto; }

.band { background: var(--stage); color: var(--stage-ink); text-align: center; padding: clamp(80px, 12vw, 150px) 0; margin-top: clamp(80px, 12vw, 140px); }
.band h2 { color: var(--stage-ink); max-width: 18ch; margin-inline: auto; }
.band .lead { color: var(--stage-ink); }
.band .phones { margin-top: clamp(40px, 6vw, 72px); }
.band .ph { box-shadow: inset 0 0 0 calc(var(--w) * 0.006) #3a3d42, 0 0 0 1px var(--stage-hair), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }

.feat { padding: clamp(64px, 9vw, 120px) 0; }
.feat .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feat.flip .feat-copy { order: 2; }
.feat-copy p { font-size: var(--step-lead); line-height: 1.45; opacity: 0.78; margin: 16px 0 0; max-width: 34ch; text-wrap: pretty; }
.feat .phones { justify-content: center; flex-wrap: nowrap; gap: 20px; }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 46ch; }
.ticks li { padding-top: 14px; border-top: 1px solid var(--hair); line-height: 1.45; }
.ticks strong { display: block; font-weight: 650; }
.more { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--accent); text-underline-offset: 4px; }

.plus { padding: clamp(96px, 13vw, 160px) 0 0; text-align: center; }
.plus .lead, .plus .price { margin-inline: auto; }
.plus .price { margin-top: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plus-list { list-style: none; padding: 0; margin: 48px auto 0; max-width: 980px; text-align: start;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 40px; }
.plus-list li { padding: 16px 0; border-top: 1px solid var(--hair); line-height: 1.4; }

/* Pensum+ on the home page: a graphite plan panel, two plan cards, real screens, a feature grid. */
.site .plus { border-radius: 0; }
.site .plus h2, .site .plus .lead { color: var(--stage-ink); }
#pensum-plus { background: var(--stage); color: var(--stage-ink); padding: clamp(88px, 12vw, 150px) 0; margin-top: clamp(96px, 13vw, 160px); border-radius: 0; }
#pensum-plus h2 { color: var(--stage-ink); font-size: clamp(3rem, 8vw, 6rem); }
#pensum-plus .lead { color: var(--stage-ink); }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 640px; margin: 44px auto 0; text-align: start; }
.plan-card { border: 1px solid var(--stage-hair); border-radius: 22px; padding: 24px; }
.plan-card--best { background: var(--stage-ink); color: var(--stage); border-color: var(--stage-ink); }
.plan-name { margin: 0; font-weight: 650; font-size: 0.9375rem; opacity: 0.72; }
.plan-price { margin: 10px 0 0; font-size: 1rem; }
.plan-price span { display: block; font-size: clamp(2rem, 4.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.plan-note { margin: 12px 0 0; font-size: 0.875rem; line-height: 1.4; opacity: 0.72; }
.plus-phones { margin-top: clamp(56px, 8vw, 96px); }
#pensum-plus .ph { box-shadow: inset 0 0 0 calc(var(--w) * 0.006) #3a3d42, 0 0 0 1px var(--stage-hair), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.perks { list-style: none; padding: 0; margin: clamp(56px, 8vw, 96px) auto 0; max-width: 1080px; text-align: start;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.perks li { border: 1px solid var(--stage-hair); border-radius: 22px; padding: 26px 24px 28px; }
.perks svg { width: 28px; height: 28px; fill: none; stroke: var(--stage-accent, currentColor); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perks h3 { margin: 18px 0 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; color: var(--stage-ink); }
.perks p { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.45; opacity: 0.72; text-wrap: pretty; }
@media (max-width: 520px) { .plan-cards { grid-template-columns: 1fr; } }

.tiers { margin: 48px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; text-align: start; }
.tiers div { border-top: 1px solid var(--hair-strong); padding: 18px 0; }
.tiers dt { font-weight: 700; font-size: 1.25rem; }
.tiers dd { margin: 4px 0 0; }
.tiers .price { font-variant-numeric: tabular-nums; opacity: 0.78; }
.note { margin-top: 32px; opacity: 0.78; }

.get { text-align: center; padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 120px); }
.get .stores { justify-content: center; margin-top: 28px; }

::selection { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 760px) {
  .feat .wrap { grid-template-columns: 1fr; text-align: center; }
  .feat.flip .feat-copy { order: 0; }
  .feat-copy p, .ticks { margin-inline: auto; }
  .ticks { text-align: start; }
}

@media (max-width: 900px) { .ph { --w: 190px; } }
@media (max-width: 760px) { .ph { --w: 220px; } }
@media (max-width: 520px) { .ph { --w: 180px; } }

/* Waitlist box in the hero. */
.hero h1 { max-width: 20ch; font-size: clamp(2.25rem, 6vw, 4.5rem); }
.waitlist { max-width: 460px; margin: 32px auto 0; text-align: start; }
.waitlist label { display: block; font-weight: 650; margin-bottom: 10px; text-align: center; }
.wl-row { display: flex; gap: 8px; }
.wl-row input { flex: 1; min-width: 0; font: inherit; padding: 14px 16px; border: 1px solid var(--hair-strong); border-radius: 14px; background: var(--elevated); color: var(--ink); }
.wl-row button { font: inherit; font-weight: 650; padding: 14px 20px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); cursor: pointer; white-space: nowrap; }
.wl-row button:disabled { opacity: 0.6; }
.wl-note { margin: 10px 0 0; font-size: 0.875rem; opacity: 0.72; text-align: center; }
.wl-note a { color: inherit; text-underline-offset: 3px; }
.wl-status { margin: 10px 0 0; font-weight: 600; text-align: center; min-height: 1.4em; }
.wl-status[data-state]:not([data-state="ok"]) { color: var(--danger); }

/* "Snap a meal": real screens shown in sequence, one frame. */
.ph-loop { display: grid; }
.ph-loop img { grid-area: 1 / 1; animation: ph-seq 6s infinite; will-change: opacity; }
.ph-loop img + img { opacity: 0; animation-delay: -3s; }
@keyframes ph-seq { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ph-loop img { animation: none; } .ph-loop img:last-child { opacity: 1; } }

/* Coaching line and "Everything else". */
.more-list { padding: clamp(48px, 7vw, 96px) 0 0; }
.coach-line { text-align: center; font-size: var(--step-lead); max-width: 46ch; margin: 0 auto; text-wrap: pretty; }
.coach-line a { font-weight: 650; color: var(--accent); text-underline-offset: 4px; white-space: nowrap; }
.everything { max-width: 860px; margin: clamp(48px, 7vw, 80px) auto 0; border-top: 1px solid var(--hair); }
.everything summary { cursor: pointer; padding: 24px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.everything summary::-webkit-details-marker { display: none; }
.everything summary::after { content: "+"; font-size: 2rem; line-height: 1; }
.everything[open] summary::after { content: "−"; }
.everything summary h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.everything ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 40px; }
.everything li { padding: 16px 0; border-top: 1px solid var(--hair); line-height: 1.45; }
.everything strong { display: block; font-weight: 650; }

/* Pensum+: "Replaces 2-3 apps". */
.saves { max-width: 640px; margin: 44px auto 0; text-align: start; border: 1px solid var(--stage-hair); border-radius: 22px; padding: 24px; }
.saves h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--stage-ink); }
.saves table { width: 100%; border-collapse: collapse; margin-top: 16px; font-variant-numeric: tabular-nums; }
.saves caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.saves th { text-align: start; text-transform: none; letter-spacing: normal; font-size: 1rem; color: inherit; font-weight: 500; padding: 10px 0; border-top: 1px solid var(--stage-hair); }
.saves td { text-align: end; padding: 10px 0 10px 12px; border-top: 1px solid var(--stage-hair); white-space: nowrap; }
.saves .saves-total th, .saves .saves-total td { font-weight: 650; opacity: 0.88; }
.saves .saves-us th, .saves .saves-us td { font-weight: 700; font-size: 1.25rem; }
.saves-line { margin: 14px 0 0; font-weight: 600; }
.saves-note { margin: 8px 0 0; font-size: 0.875rem; opacity: 0.72; }
.saves-note a { color: inherit; text-underline-offset: 3px; }

/* Tap a screenshot to zoom. */
.ph img { cursor: zoom-in; }
dialog.zoom { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; }
dialog.zoom::backdrop { background: rgba(0, 0, 0, 0.88); }
dialog.zoom img { display: block; max-height: 94dvh; max-width: 96vw; width: auto; height: auto; border-radius: 18px; cursor: zoom-out; }

/* Phone width: screenshots large enough to read; several in a row swipe sideways. */
@media (max-width: 520px) {
  .ph { --w: min(78vw, 300px); }
  .phones:not(.phones--1) { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 40px; scrollbar-width: none; }
  .phones:not(.phones--1) .ph { scroll-snap-align: center; }
  .wl-row { flex-direction: column; }
}

/* Coach page: calls to action, price table, questions. */
.start { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.start .stores { margin-top: 0; }
.cmp-h { margin: 56px 0 0; font-size: 1.25rem; }
.cmp-wrap { margin: 20px auto 0; max-width: 980px; overflow-x: auto; text-align: start; }
.cmp { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 12px clamp(8px, 2vw, 16px); font-size: clamp(0.8125rem, 2.6vw, 1rem); border-top: 1px solid var(--hair); text-align: start; }
.cmp thead th { border-top: 0; font-weight: 700; }
.cmp tbody th { font-weight: 600; }
.faq { padding: clamp(72px, 10vw, 128px) 0; }
.faq .wrap { max-width: 720px; }
.faq h3 { margin: 32px 0 0; font-size: 1.125rem; }
.faq p { margin: 8px 0 0; opacity: 0.78; line-height: 1.5; text-wrap: pretty; }
