/* Athvilo landing — house tokens */
:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-2: #efeee7;
  --ink: #101820;
  --ink-2: #48514b;
  --muted: #69716b;
  --line: rgba(16, 24, 32, 0.09);
  --line-strong: rgba(16, 24, 32, 0.16);
  --brand: #243b31;
  --brand-ink: #f7f6f1;
  --highlight: #80d028;
  --highlight-hover: #74c01f;
  --highlight-ink: #101820;
  --deep: #0e1210;
  --deep-2: #121614;
  --deep-ink: #f3f2ec;
  --deep-muted: #b9bdb6;

  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 10vw, 128px);
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a, button { cursor: pointer; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display {
  font-family: var(--f-display);
  font-stretch: 68%;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* Focus */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.strip :focus-visible, .how :focus-visible { outline-color: var(--highlight); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 600; transition: top 200ms var(--ease);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--highlight); color: var(--highlight-ink); }
.btn--primary:hover { background: var(--highlight-hover); box-shadow: 0 6px 20px -8px rgba(16, 24, 32, .45); }
.btn--primary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 241, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.brandmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-stretch: 68%; font-weight: 800; text-transform: uppercase;
  font-size: 26px; line-height: 1; letter-spacing: .01em;
}
.brandmark img { height: 28px; width: auto; }
.brandmark, .nav__actions { flex: none; }
.nav .short { display: none; }
@media (max-width: 479px) {
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .nav .btn { padding: 0 12px; }
  .nav__actions { gap: 6px; }
  .brandmark { gap: 6px; font-size: 20px; }
  .brandmark img { height: 22px; }
}
@media (max-width: 339px) {
  .login-text { display: none; }
  .nav .btn--ghost { width: 44px; padding: 0; }
}

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.eyebrow { font: 600 13px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 20px; }
.hero__copy { container-type: inline-size; min-width: 0; }
.hero__title { font-size: clamp(44px, 7vw, 104px); font-size: min(clamp(44px, 7vw, 104px), 14.8cqi); }
.hero__title span { display: block; white-space: nowrap; }
.hero__title .accent {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  text-transform: lowercase; color: var(--brand); letter-spacing: 0; font-size: 1.06em; line-height: .8;
}
.lede { margin-top: 24px; max-width: 46ch; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.points { margin-top: 24px; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 28px; font-weight: 600; font-size: 17px; color: var(--ink); }
.points li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--highlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101820' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.note { margin-top: 16px; font-size: 19px; color: var(--ink-2); }

/* Signup form */
.signup { margin-top: 32px; max-width: 560px; }
.signup label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.signup__row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input {
  flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 18px;
  font: 400 16px/1 var(--f-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.signup input::placeholder { color: var(--muted); }
.signup input:hover { border-color: var(--ink-2); }
.signup input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
.signup .btn { min-height: 52px; padding: 0 22px; font-size: 16px; flex: 0 0 auto; }
.signup__status { min-height: 1.5em; margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--brand); }
.signup.is-error .signup__status { color: #9a3a22; }
.signup.is-error input { border-color: #9a3a22; }
@media (max-width: 559px) { .signup .btn { flex: 1 1 100%; } }

/* Hero visual: photo card + phone fan */
.hero__visual { position: relative; min-width: 0; width: 100%; max-width: 560px; justify-self: center; }
.hero__photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fan { container-type: inline-size; width: 100%; max-width: 380px; margin: 4px auto 0; }
@media (min-width: 1024px) {
  .hero__visual { max-width: none; padding-bottom: 40px; }
  .hero__photo { width: 80%; margin-left: auto; aspect-ratio: 3 / 4; border-radius: var(--radius); box-shadow: 0 40px 80px -48px rgba(16, 24, 32, .55); }
  .fan { position: absolute; left: -4%; bottom: 0; width: 60%; max-width: none; margin: 0; }
}
.fan__stage {
  /* centre phone width: three phones (sides at .86) overlapping by 14px fill the stage */
  --c: calc((100cqi + 28px) / 2.72);
  position: relative; height: calc(var(--c) * 2.1727 + 7cqi); perspective: 1800px;
}
.fan__stage::after {
  content: ''; position: absolute; z-index: 0; left: 6%; right: 6%; bottom: 0; height: 9cqi;
  background: radial-gradient(closest-side, rgba(16, 24, 32, .42), rgba(16, 24, 32, 0));
  filter: blur(6px);
}

/* iPhone 17 Pro Max, natural titanium, pure CSS. Inside .phone, 1cqi = 1% of the phone width. */
.phone {
  --ti: linear-gradient(135deg, #e6e3dc 0%, #8e8a82 35%, #cfcbc3 55%, #6f6b64 100%);
  container-type: inline-size; isolation: isolate;
  position: absolute; top: 0; z-index: 1; width: var(--c); aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--c) * .17);
  background: var(--ti);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 1px rgba(0, 0, 0, .45),
    0 30px 60px -20px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform 600ms var(--ease);
}
.phone--centre { left: 50%; z-index: 2; transform: translateX(-50%); }
.phone--left { left: 0; transform-origin: left center; transform: scale(.86) rotateY(9deg); }
.phone--right { right: 0; transform-origin: right center; transform: scale(.86) rotateY(-9deg); }
@media (hover: hover) {
  .fan:hover .phone--left { transform: translateX(-2cqi) scale(.86) rotateY(12deg); }
  .fan:hover .phone--right { transform: translateX(2cqi) scale(.86) rotateY(-12deg); }
}
.phone__body {
  --band: max(2px, 1.1cqi);
  position: absolute; inset: var(--band); padding: 2.4cqi;
  background: #060606; border-radius: calc(17cqi - var(--band));
}
/* side buttons: part of the frame, protruding 2px */
.pb { position: absolute; z-index: -1; width: 3px; border-radius: 2px; background: var(--ti); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .35); }
.pb--action, .pb--vol1, .pb--vol2 { left: -2px; }
.pb--action { top: 17%; height: 4%; }
.pb--vol1 { top: 24%; height: 8%; }
.pb--vol2 { top: 34%; height: 8%; }
.pb--power { right: -2px; top: 26%; height: 13%; }
.pb--cam { right: -1px; top: 58%; height: 6%; width: 2px; background: linear-gradient(90deg, #5d5a54, #3a3833); box-shadow: inset 0 0 1px rgba(0, 0, 0, .6); }

.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(17cqi - max(2px, 1.1cqi) - 2.4cqi);
  display: flex; flex-direction: column; padding: 21cqi 9cqi 10cqi;
  background:
    radial-gradient(120% 70% at 85% 0%, color-mix(in srgb, var(--p-hl) 22%, transparent), transparent 60%),
    linear-gradient(170deg, var(--p-brand) 0%, color-mix(in srgb, var(--p-brand) 45%, var(--p-deep)) 55%, var(--p-deep) 100%);
  color: var(--p-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone__screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 28%);
}
.phone--glacier { --p-brand: #1d3a5c; --p-hl: #9fe3ef; --p-deep: #0c0f12; --p-ink: #eff3f7; }
.phone--ember { --p-brand: #8c2f14; --p-hl: #ffa05c; --p-deep: #120d0c; --p-ink: #f7f1ef; }
.phone--midnight { --p-brand: #1e2148; --p-hl: #b9c3ff; --p-deep: #0d0e12; --p-ink: #f1f2f7; }
.island {
  position: absolute; z-index: 2; top: 5.5cqi; left: 50%; transform: translateX(-50%);
  width: 29%; aspect-ratio: 3.78; border-radius: 999px; background: #050505; box-shadow: 0 0 0 1px #000;
}
.status {
  position: absolute; z-index: 2; top: 5.5cqi; left: 9cqi; right: 7cqi; height: 7.2cqi;
  display: flex; align-items: center; justify-content: space-between;
  color: color-mix(in srgb, var(--p-ink) 90%, transparent);
  font: 600 4.6cqi/1 var(--f-body); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.status > span { padding-left: 3cqi; }
.status__ico { height: 3.4cqi; width: auto; }
.scr__top { font: 600 4.6cqi/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.scr__lock { margin-top: auto; display: flex; flex-direction: column; }
.scr__lock span { font-family: var(--f-display); font-stretch: 68%; font-weight: 800; text-transform: uppercase; font-size: 27cqi; line-height: .86; letter-spacing: -.01em; }
.scr__lock em { font-family: var(--f-serif); font-style: italic; font-size: 16cqi; line-height: 1; color: var(--p-hl); margin: 1cqi 0 0 1cqi; }
.scr__tag { margin-top: 6cqi; font: 400 5.6cqi/1.35 var(--f-body); opacity: .8; }
.scr__cta {
  margin-top: 8cqi; display: flex; align-items: center; justify-content: center;
  height: 15cqi; border-radius: 99px; background: var(--p-hl); color: #181d1a;
  font: 600 5.6cqi/1 var(--f-body);
}

/* Value strip */
.strip { background: var(--deep); color: var(--deep-ink); padding: clamp(48px, 6vw, 72px) 0; }
.strip__list { display: grid; gap: 32px; }
@media (min-width: 768px) { .strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.strip li { display: flex; flex-direction: column; gap: 10px; }
.strip li + li { border-top: 1px solid rgba(247, 246, 241, .16); padding-top: 32px; }
@media (min-width: 768px) { .strip li + li { border-top: 0; padding-top: 0; border-left: 1px solid rgba(247, 246, 241, .16); padding-left: 24px; } }
.strip__num { font-size: clamp(48px, 6vw, 76px); color: var(--highlight); }
.strip__lbl { font-size: 16px; max-width: 26ch; }

/* Section headings */
.h2 { font-size: clamp(36px, 5vw, 64px); }

/* Features */
.features { padding: var(--section) 0; }
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.card {
  grid-column: span 12;
  --card-pad: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad); overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
@media (min-width: 768px) and (max-width: 1023px) { .card { grid-column: span 6; } .card:last-child { grid-column: span 12; } }
@media (min-width: 1024px) { .card { grid-column: span 4; } }
@media (hover: hover) { .card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(16, 24, 32, .35); } }
.card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--highlight); color: var(--highlight-ink); }
.card__icon .ico { width: 20px; height: 20px; }
.card h3 { margin-top: 24px; font: 600 20px/1.25 var(--f-body); letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--ink-2); }

/* How it works */
.how { background: var(--deep); color: var(--deep-ink); padding: var(--section) 0; }
.steps { margin-top: 48px; display: grid; gap: 32px; counter-reset: s; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
}
.steps li { position: relative; padding-top: 28px; border-top: 1px solid rgba(243, 242, 236, .18); }
.steps li::before {
  content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--highlight);
}
.step__n { display: block; font-size: 56px; color: var(--highlight); }
.steps h3 { margin-top: 16px; font: 600 20px/1.25 var(--f-body); }
.steps p { margin-top: 6px; color: var(--deep-muted); max-width: 32ch; }
.how__photo { margin-top: 64px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; background: var(--deep-2); }
.how__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 767px) { .how__photo { aspect-ratio: 4 / 3; } }
.how__small { margin-top: 20px; font-size: 14px; color: var(--deep-muted); }

/* Hero: quiet link to pricing */
.hero__more { margin-top: 4px; }
.hero__more a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--brand); font-weight: 600; font-size: 15px; text-underline-offset: 3px;
  transition: color 200ms var(--ease);
}
.hero__more a:hover { color: var(--ink); }

/* Pricing — one 12-col grid, 8px rhythm */
.pricing { padding: var(--section) 0 0; }
.pricing__title { font-size: clamp(32px, 4.2vw, 56px); max-width: 28ch; }
.pricing__note { margin-top: 16px; max-width: 46ch; }
.pricing__grid { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 1024px) {
  .pricing__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pricing__grid > .price { grid-column: span 5; }
  .pricing__grid > .calc { grid-column: span 7; }
}
.price, .calc { min-width: 0; padding: 32px; border-radius: 24px; }
@media (max-width: 767px) { .price, .calc { padding: 24px; } }

/* Price card */
.price { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.price .eyebrow { margin-bottom: 16px; }
.price__amount { display: flex; align-items: baseline; gap: 8px; }
.price__num { font-size: clamp(88px, 10vw, 128px); color: var(--ink); }
.price__per { font-weight: 600; font-size: 18px; line-height: 24px; color: var(--ink-2); }
.price__regular { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--muted); }
.price__regular s { text-decoration-thickness: 1.5px; }
.price__termsgrp { margin-top: 24px; }
.price__terms { font-size: 14px; line-height: 24px; color: var(--ink); }
.price__terms--note { margin-top: 8px; color: var(--muted); }
.price__checks { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 24px; gap: 8px 16px; }
.price__checks li { display: flex; align-items: center; gap: 8px; height: 24px; min-width: 0; font-weight: 600; font-size: 14px; line-height: 24px; white-space: nowrap; }
.price__checks .ico {
  width: 16px; height: 16px; padding: 3px; border-radius: 50%; stroke-width: 3.5;
  background: var(--highlight); color: var(--highlight-ink);
}
.price__feat { margin-top: 24px; margin-bottom: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.price__sub { font-weight: 600; font-size: 14px; line-height: 24px; }
.price__list { margin-top: 8px; display: grid; gap: 8px; font-size: 14px; line-height: 24px; color: var(--ink-2); }
.price__list li { position: relative; padding-left: 16px; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.price__btn { margin-top: 32px; width: 100%; min-height: 48px; padding: 0 24px; font-size: 16px; }
.price__founding { margin-top: 16px; font-size: 19px; line-height: 24px; color: var(--ink-2); }

/* Calculator (dark) */
.calc { background: var(--deep); color: var(--deep-ink); }
.calc :focus-visible { outline-color: var(--highlight); }
.calc__eyebrow { color: var(--highlight); margin-bottom: 8px; }
.calc__title { font: 600 24px/32px var(--f-body); letter-spacing: -.01em; }
.calc__field { margin-top: 24px; }
.calc__title + .calc__field { margin-top: 32px; }
.calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc__head label { min-width: 0; font-weight: 600; font-size: 14px; line-height: 24px; color: var(--deep-muted); }
.calc__val { flex: none; display: inline-flex; align-items: baseline; justify-content: flex-end; min-width: 5ch; font-size: 40px; }
.calc__cur { font-size: 40px; color: var(--highlight); }
.calc__num {
  width: 3ch; field-sizing: content; min-width: 1ch; padding: 0; margin: 0;
  font-size: 40px; line-height: 48px; text-align: right; color: var(--highlight); font-variant-numeric: tabular-nums;
  background: transparent; border: 0; border-bottom: 2px solid rgba(243, 242, 236, .2); border-radius: 0;
  -moz-appearance: textfield; appearance: textfield;
  transition: border-color 200ms var(--ease);
}
.calc__num::-webkit-outer-spin-button, .calc__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__num:hover { border-bottom-color: rgba(243, 242, 236, .45); }
.calc__num:focus-visible { outline: none; border-bottom-color: var(--highlight); }

/* Native range: 4px track, 24px thumb, green fill via background-size */
.calc__range {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 24px; margin: 16px 0 0; background: transparent; cursor: pointer;
}
.calc__range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(var(--highlight), var(--highlight)) 0 0 / var(--fill) 100% no-repeat, rgba(243, 242, 236, .15);
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; border: 0;
  background: var(--deep-ink); box-shadow: inset 0 0 0 2px var(--highlight);
  transition: transform 200ms var(--ease);
}
.calc__range:active::-webkit-slider-thumb { transform: scale(1.08); }
.calc__range::-moz-range-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(var(--highlight), var(--highlight)) 0 0 / var(--fill) 100% no-repeat, rgba(243, 242, 236, .15);
}
.calc__range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; border: 0; box-sizing: border-box;
  background: var(--deep-ink); box-shadow: inset 0 0 0 2px var(--highlight);
}
.calc__range:focus-visible { outline: 2px solid var(--highlight); outline-offset: 4px; border-radius: 12px; }

/* Outputs: 3 equal stat columns on shared rows */
.calc__out {
  margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(243, 242, 236, .16);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto 18px; column-gap: 16px;
}
.calc__stat { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; }
.calc__stat dt { min-height: 16px; font: 600 12px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--deep-muted); }
.calc__stat dd { margin: 8px 0 0; }
.calc__stat .display { display: block; font-size: 32px; line-height: 40px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 479px) { .calc__stat .display { font-size: 26px; } }
.calc__regular { grid-row: 3; height: 18px; margin: 0; font-size: 12px; line-height: 18px; color: var(--deep-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc__stat--bill .display { color: var(--highlight); }

.share { margin-top: 24px; }
.share__bar { position: relative; height: 6px; border-radius: 999px; background: rgba(243, 242, 236, .15); overflow: hidden; }
.share__fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 2px; width: 2px; background: var(--highlight); border-radius: 999px 0 0 999px; transition: width 300ms var(--ease); }
.share__labels { margin-top: 8px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 16px; color: var(--deep-muted); white-space: nowrap; }
.share__labels span { display: inline-flex; align-items: center; gap: 8px; }
.share__key { width: 8px; height: 8px; border-radius: 2px; }
.share__key--a { background: var(--highlight); }
.share__key--r { background: rgba(243, 242, 236, .3); }

.calc__verdict { margin-top: 16px; min-height: 48px; font-weight: 600; font-size: 16px; line-height: 24px; color: var(--deep-ink); }

/* Compare: clean table */
.compare { margin-top: 24px; border-top: 1px solid rgba(243, 242, 236, .16); }
.compare summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 44px; margin-top: 4px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none;
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary .ico { transition: transform 200ms var(--ease); color: var(--highlight); }
.compare[open] summary .ico { transform: rotate(180deg); }
.compare__at { margin-top: 8px; font: 600 12px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--deep-muted); }
.compare__list { margin-top: 8px; }
.compare__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px 4px; gap: 8px 16px; align-items: center;
  height: 64px; padding: 16px 0; border-bottom: 1px solid rgba(243, 242, 236, .1);
}
.compare__row:first-child { border-top: 1px solid rgba(243, 242, 236, .1); }
.compare__name { min-width: 0; font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--deep-ink); }
.compare__price { font-weight: 600; font-size: 14px; line-height: 20px; text-align: right; font-variant-numeric: tabular-nums; color: rgba(243, 242, 236, .6); }
.compare__bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: rgba(243, 242, 236, .08); overflow: hidden; }
.compare__bar span { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: rgba(243, 242, 236, .6); transition: width 300ms var(--ease); }
.compare__row--us .compare__price { color: var(--highlight); }
.compare__row--us .compare__bar span { background: var(--highlight); }
.compare__fine { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--deep-muted); }

/* CTA */
.cta { padding: var(--section) 0; }
.cta__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .cta__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 64px; } }
.cta__title { font-size: clamp(44px, 6vw, 88px); }
.cta__q { margin-top: 8px; color: var(--ink-2); }
.cta__q a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 600; text-underline-offset: 3px; transition: color 200ms var(--ease); }
.cta__q a:hover { color: var(--ink); }
.cta__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--deep); }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 34%; }
@media (max-width: 1023px) { .cta__photo { aspect-ratio: 16 / 10; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.foot__logo { display: inline-flex; align-items: center; min-height: 44px; }
.foot__logo img { height: 40px; width: auto; }
.foot__copy { color: var(--muted); font-size: 14px; }
.foot__links { display: flex; gap: 8px; margin-left: auto; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color 200ms var(--ease); }
.foot__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__made { font-size: 18px; color: var(--ink-2); }
.foot__fine { margin-top: 16px; max-width: 60ch; font-size: 12px; line-height: 16px; color: var(--muted); }
@media (max-width: 559px) { .foot__links { margin-left: 0; } }

/* Reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .fan__stage { perspective: none; }
  .phone--left, .phone--right, .fan:hover .phone--left, .fan:hover .phone--right { transform: scale(.86); }
}

/* Real app screenshots inside the phones: sit under the status bar, crop from the top. */
.phone__screen { background: #0e1210; }
.scr__img { position: absolute; left: 0; right: 0; top: 7.2%; width: 100%; height: 92.8%; object-fit: cover; object-position: top center; border-radius: 0; }
.phone__screen .scr__top, .phone__screen .scr__lock, .phone__screen .scr__tag, .phone__screen .scr__cta { display: none; }


/* ── Mobile pass (≤ 767px): tighter rhythm, no stacked giants, stats as rows ── */
@media (max-width: 767px) {
  :root { --section: 56px; }
  .hero { padding: 32px 0 48px; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__photo img { object-position: 50% 24%; }
  .fan { max-width: 300px; margin-top: -40px; }
  .points li { font-size: 15px; }

  /* Numbers strip: three compact columns, not three tall tiles */
  .strip { padding: 32px 0; }
  .strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .strip li { gap: 6px; }
  .strip li + li { border-top: 0; padding-top: 0; border-left: 1px solid rgba(247, 246, 241, .16); padding-left: 12px; }
  .strip__num { font-size: 34px; line-height: 1; }
  .strip__lbl { font-size: 13px; line-height: 1.3; }

  /* Feature cards: tighter */
  .cards { margin-top: 24px; gap: 12px; }
  .card { --card-pad: 20px; border-radius: 16px; }
  .card h3 { margin-top: 16px; font-size: 18px; }
  .card p { font-size: 15px; }

  /* Steps: number beside the text */
  .steps { margin-top: 24px; gap: 0; }
  .steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; padding: 16px 0; border-top: 1px solid rgba(243, 242, 236, .18); }
  .steps li::before { display: none; }
  .step__n { grid-row: 1 / span 2; font-size: 40px; line-height: 1; }
  .steps h3 { margin-top: 0; font-size: 18px; }
  .steps p { margin-top: 4px; font-size: 15px; max-width: none; }
  .how__photo { margin-top: 24px; }

  /* Pricing: stats as label/value rows, bigger touch areas */
  .pricing__grid { margin-top: 24px; gap: 16px; }
  .price, .calc { padding: 20px; border-radius: 16px; }
  .calc__out { display: block; margin-top: 24px; padding-top: 8px; }
  .calc__stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(243, 242, 236, .1); }
  .calc__stat:first-child { border-top: 0; }
  .calc__stat dt { min-height: 0; flex: 1 1 auto; letter-spacing: .06em; }
  .calc__stat dd { margin: 0; text-align: right; }
  .calc__stat .display { font-size: 24px; line-height: 32px; }
  .calc__stat { flex-wrap: wrap; }
  .calc__stat dt { white-space: nowrap; }
  .calc__stat--bill .calc__regular { flex: 1 1 100%; margin: 0; text-align: right; font-size: 12px; }
  .calc__head label { font-size: 13px; }
  .calc__cur, .calc__num { font-size: 32px; }

  .cta { padding: var(--section) 0; }
  .foot__fine { font-size: 11px; }
}

/* Card photos: bleed to the card edges, icon and copy below */
.card__photo { margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 24px; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta__photo img { object-position: 50% 35%; }
@media (max-width: 767px) { .card__photo { margin-bottom: 16px; aspect-ratio: 16 / 10; } }

/* Cookie notice (cookie-notice.js): informational, non-blocking, bottom of the screen. */
.cookie-notice {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto; max-width: 640px;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 14px 14px 20px; border-radius: 20px;
  background: var(--deep); color: var(--deep-ink);
  box-shadow: 0 18px 40px -16px rgba(16, 24, 32, .55);
  opacity: 0; transform: translateY(12px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.cookie-notice.is-in { opacity: 1; transform: none; }
.cookie-notice.is-leaving { opacity: 0; transform: translateY(12px); }
.cookie-notice__text { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--deep-muted); }
.cookie-notice__text strong { color: var(--deep-ink); font-weight: 600; }
.cookie-notice__text a { color: var(--deep-ink); text-underline-offset: 3px; }
.cookie-notice__ok { flex: none; min-height: 44px; }
@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; left: 12px; right: 12px; bottom: 12px; }
  .cookie-notice__ok { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cookie-notice { transition: none; } }
/* <picture> wrappers (WebP with JPEG fallback) must not change layout. */
picture { display: contents; }

/* Link from the features section to the running-coach page. */
.features__more { margin-top: 32px; font-size: 17px; }
.features__more + .features__more { margin-top: 12px; }
.features__more a { color: var(--brand); font-weight: 600; text-underline-offset: 4px; }
/* Very small phones: one column, so single-line checklist items never overflow their cell. */
@media (max-width: 359px) { .price__checks { grid-template-columns: 1fr; } }
