/* milía · website v2 · Pricing
   The home page's language, quieter: one photograph, then the plans set like a menu,
   the plans side by side, top-ups, questions and the door.
   Tokens are home/style.css's, unchanged. */

:root {
  --ground: oklch(0.16 0.008 60);
  --ground-deep: oklch(0.12 0.008 60);
  --ground-lift: oklch(0.19 0.009 60);
  --cream: oklch(0.94 0.018 80);
  --cream-dim: oklch(0.94 0.018 80 / 0.72);
  --cream-faint: oklch(0.94 0.018 80 / 0.46);
  --cream-hair: oklch(0.94 0.018 80 / 0.16);
  --cream-rule: oklch(0.94 0.018 80 / 0.12);
  --ink: oklch(0.19 0.01 60);
  --shade: 0.13 0.008 60;
  --candle: 0.8 0.085 68;

  --gutter: 16px;
  --edge: 20px;
  --head-h: 60px;
  --top-h: 60px;

  --t-label: 0.75rem;
  --t-sub: 0.9375rem;
  --t-body: 1rem;
  --t-line: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --t-room: clamp(1.375rem, 1.15rem + 1vw, 2.125rem);
  --t-h2: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  --t-plan: clamp(2.125rem, 1.4rem + 2.8vw, 4rem);
  --t-quote: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  --t-hero: clamp(2.875rem, 1.5rem + 5.4vw, 6.75rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 760px) { :root { --head-h: 72px; --top-h: 72px; } }
@media (min-width: 900px) { :root { --gutter: 32px; --edge: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
  border-radius: 2px;
}
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 70;
  background: var(--cream); color: var(--ink); padding: 12px 16px; font-size: var(--t-sub);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type roles ---------- */
.label, .num {
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-left: -0.05em;
  text-wrap: balance;
}
.eyebrow { color: var(--cream-faint); margin-bottom: 20px; }
.sec-head { padding: 0 var(--edge); }

/* ---------- Top bar (identical on every page) ----------
   Transparent over the hero; solid ground + one hairline once the page has moved ~40px.
   Desktop: Home · The details · Pricing · Sign in, then the pill. Phone (<760px): logo, pill, menu. */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; gap: 8px;
  background: oklch(0.16 0.008 60 / 0);
  box-shadow: inset 0 -1px 0 oklch(0.94 0.018 80 / 0);
  transition: background-color 420ms var(--ease), box-shadow 420ms var(--ease);
}
.top.solid { background: var(--ground); box-shadow: inset 0 -1px 0 var(--cream-rule); }
.logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { height: 15px; width: auto; }
@media (min-width: 760px) { .logo img { height: 18px; } }

.top-nav { display: none; align-items: center; margin-right: 10px; }
.top-nav a, .top-pill {
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.top-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--cream-dim);
  transition: color 200ms var(--ease);
}
.top-nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (hover: hover) { .top-nav a:hover { color: var(--cream); } }
.top-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px 0 calc(18px + 0.18em);
  border: 1px solid var(--cream); border-radius: 999px;
  color: var(--cream);
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.top-pill::before { content: ""; position: absolute; inset: -3px -2px; }
@media (hover: hover) { .top-pill:hover { background: var(--cream); color: var(--ink); } }
.top-pill:focus-visible { border-radius: 999px; }
.tp-short { display: none; }
@media (max-width: 359px) { .tp-long { display: none; } .tp-short { display: inline; } }

.menu-btn {
  display: grid; place-content: center; gap: 6px;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn i { display: block; width: 22px; height: 1px; background: var(--cream); transition: translate 300ms var(--ease); }
.menu-btn i + i { width: 14px; justify-self: end; }
@media (hover: hover) { .menu-btn:hover i + i { width: 22px; } }
.menu-btn:focus-visible { outline-offset: -2px; border-radius: 50%; }

@media (min-width: 760px) {
  .top { gap: 4px; }
  .top-nav { display: flex; }
  .menu-btn { display: none; }
}

/* the phone menu: a quiet full-screen sheet */
.sheet {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--ground);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity 320ms var(--ease);
}
.sheet[hidden] { display: none; }
.sheet.open { opacity: 1; }
.sheet-head { flex: none; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; }
.sheet-close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: -10px; padding: 0 10px;
  border: 0; background: none; cursor: pointer; color: var(--cream);
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.sheet-nav { flex: 1; display: flex; align-items: center; padding: 32px 0; }
.sheet-nav ol { width: 100%; }
.sheet-nav li { border-bottom: 1px solid var(--cream-rule); opacity: 0; translate: 0 14px; transition: opacity 500ms var(--ease), translate 700ms var(--ease); }
.sheet-nav li:first-child { border-top: 1px solid var(--cream-rule); }
.sheet.open .sheet-nav li { opacity: 1; translate: none; transition-delay: calc(80ms + var(--i, 0) * 55ms); }
.sheet-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0 20px;
  text-decoration: none; color: var(--cream-dim);
}
.sheet-nav .num { color: var(--cream-faint); min-width: 2ch; }
.sheet-nav .t { font-size: 2rem; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.sheet-nav a[aria-current="page"] { color: var(--cream); }
.sheet-nav a[aria-current="page"] .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.sheet-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sheet-foot .label { color: var(--cream-faint); }
html.locked, html.locked body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sheet-nav li { translate: none; transition: opacity 300ms ease-out; }
  .sheet.open .sheet-nav li { transition-delay: 0ms; }
}

/* ---------- Opening: one photograph ---------- */
.hero {
  position: relative;
  height: 86svh; min-height: 560px; max-height: 1000px;
  overflow: hidden; isolation: isolate;
  background: var(--ground);
}
.hero-img { position: absolute; inset: 0 0 auto 0; height: 76%; }
.hero-img picture { position: absolute; inset: 0; display: block; will-change: transform; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.hero-img::before, .hero-img::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero-img::before { top: 0; height: 26%; background: linear-gradient(oklch(var(--shade) / 0.55), oklch(var(--shade) / 0)); }
.hero-img::after { bottom: -1px; height: 52%; background: linear-gradient(oklch(0.16 0.008 60 / 0), oklch(0.16 0.008 60 / 0.7) 55%, var(--ground)); }
.hero-copy {
  position: absolute; z-index: 2;
  left: var(--edge); right: var(--edge); bottom: calc(var(--edge) + 20px);
}
.hero-eyebrow { color: var(--cream-dim); margin-bottom: 18px; }
.hero-line {
  font-size: var(--t-hero); font-weight: 300; line-height: 0.96; letter-spacing: -0.045em;
  margin-left: -0.05em;
}
.ln { display: block; white-space: nowrap; }
.hero-sub { margin-top: 22px; max-width: 34ch; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); color: var(--cream-dim); line-height: 1.45; }
@media (min-width: 760px) {
  .hero { height: 88svh; }
  .hero-img { inset: 0; height: auto; }
  .hero-img img { object-position: 50% 58%; }
  .hero-img::after { height: 58%; background: linear-gradient(oklch(0.16 0.008 60 / 0), oklch(0.16 0.008 60 / 0.62) 60%, var(--ground)); }
  .hero-copy { bottom: clamp(40px, 7svh, 72px); right: auto; }
}

/* ---------- The plans: a menu, not three cards ---------- */
.plans { padding: 88px 0 24px; }
.plans .sec-head { margin-bottom: 40px; }
.menu { padding: 0 var(--edge); }
.plan:first-child { border-top: 1px solid var(--cream-rule); }
.plan {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "ess ess" "incl incl" "cta cta";
  column-gap: 16px;
  padding: 32px 0 30px;
  border-bottom: 1px solid var(--cream-rule);
}
.plan--rec { padding-top: 60px; }
.plan--rec::before { /* the recommended row sits in a little more light */
  content: ""; position: absolute; inset: 0 calc(-1 * var(--edge)); z-index: -1;
  background: linear-gradient(90deg, oklch(var(--candle) / 0.065), oklch(var(--candle) / 0.018) 70%, oklch(var(--candle) / 0));
}
.plan-name {
  grid-area: name;
  font-size: var(--t-plan); font-weight: 300; line-height: 1; letter-spacing: -0.035em;
  margin-left: -0.04em;
  text-wrap: balance;
}
.rec {
  position: absolute; top: 20px; left: 0;
  font-size: 0.625rem; letter-spacing: 0.16em; line-height: 1;
  padding: 6px 8px 5px; border: 1px solid oklch(0.94 0.018 80 / 0.5); border-radius: 99px;
  color: var(--cream);
}
.plan-price {
  grid-area: price; align-self: start;
  font-size: var(--t-plan); font-weight: 300; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.cur { font-size: 0.5em; vertical-align: 0.62em; margin-right: 0.06em; letter-spacing: 0; color: var(--cream-dim); }
.plan-essence { grid-area: ess; margin-top: 12px; font-size: var(--t-body); color: var(--cream-dim); }
.incl { grid-area: incl; margin-top: 22px; }
.incl li {
  padding: 10px 0; font-size: var(--t-sub); color: var(--cream);
  border-top: 1px solid oklch(0.94 0.018 80 / 0.07);
  display: flex; gap: 14px; align-items: baseline;
}
.incl li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--cream-faint); translate: 0 -0.3em; }
.incl li:first-child { color: var(--cream-dim); }
.plan:first-child .incl li:first-child { color: var(--cream); }

.plan-cta {
  grid-area: cta; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px;
  font-size: var(--t-sub); text-decoration: none; color: var(--cream);
  border-bottom: 1px solid var(--cream-hair);
  transition: border-color 200ms var(--ease);
}
.plan-cta::after { content: "→"; transition: translate 300ms var(--ease); }
@media (hover: hover) { .plan-cta:hover { border-color: var(--cream); } .plan-cta:hover::after { translate: 3px 0; } }
.plan--rec .plan-cta {
  border: 0; padding: 0 22px; min-height: 48px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 500;
}
@media (hover: hover) { .plan--rec .plan-cta:hover { background: oklch(0.98 0.012 80); } }

@media (min-width: 900px) {
  .plans { padding: 136px 0 24px; }
  .plans .sec-head { margin-bottom: 64px; }
  .plan {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(12rem, 0.5fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "name incl price" "ess incl price" ". incl cta";
    column-gap: clamp(32px, 4vw, 72px);
    padding: 48px 0 44px;
  }
  .plan--rec { padding-top: 80px; }
  .rec { top: 32px; }
  .plan-essence { margin-top: 16px; max-width: 26ch; }
  .incl { margin-top: 0; padding-top: 0.35rem; }
  .incl li:first-child { border-top: 0; padding-top: 0; }
  .plan-price { text-align: right; }
  .plan-cta { justify-self: end; align-self: end; margin-top: 24px; }
}

/* ---------- Side by side ---------- */
.compare { padding: 104px 0 24px; }
.compare .sec-head { margin-bottom: 36px; }
.cmp-wrap { padding: 0 var(--edge); }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 15px 12px; border-bottom: 1px solid var(--cream-rule); font-weight: 400; vertical-align: middle; }
.cmp tbody th { text-align: left; padding-left: 0; font-size: var(--t-sub); color: var(--cream); transition: color 400ms var(--ease); }
.cmp td { text-align: center; }
.cmp .lit { background: oklch(var(--candle) / 0.05); }
.tick { width: 16px; height: 16px; display: inline-block; vertical-align: middle; overflow: visible; }
.tick path { fill: none; stroke: var(--cream); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.no { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--cream-faint); vertical-align: middle; opacity: 0.7; }
.val { font-size: var(--t-sub); color: var(--cream); }
.num-val { font-variant-numeric: tabular-nums; }
.cmp tfoot th, .cmp tfoot td { border-bottom: 0; padding-top: 22px; padding-bottom: 28px; }
.cmp tfoot .lit { background: linear-gradient(oklch(var(--candle) / 0.05), oklch(var(--candle) / 0)); }
.cmp-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: var(--t-sub); text-decoration: none; color: var(--cream);
  border-bottom: 1px solid var(--cream-hair);
  transition: border-color 200ms var(--ease);
}
.cmp-cta::after { content: "→"; transition: translate 300ms var(--ease); }
@media (hover: hover) { .cmp-cta:hover { border-color: var(--cream); } .cmp-cta:hover::after { translate: 3px 0; } }
.cmp-cta--rec { border: 0; padding: 0 20px; min-height: 44px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 500; }
.cmp-cta--rec:focus-visible { border-radius: 999px; }
@media (hover: hover) { .cmp-cta--rec:hover { background: oklch(0.98 0.012 80); } }

/* phones: one plan at a time, the three names above it */
.cmp-pick {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--edge);
  border-bottom: 1px solid var(--cream-rule);
}
.cmp-pick button {
  min-height: 48px; padding: 0 4px;
  border: 0; background: none; cursor: pointer;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--cream-faint);
  transition: color 300ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cmp-pick button[aria-pressed="true"] { color: var(--cream); }
.cmp-pick button:focus-visible { outline-offset: -2px; }
.cmp-pick-bar {
  position: absolute; left: 0; bottom: -1px; width: calc(100% / 3); height: 1px;
  background: var(--cream);
  transform: translateX(calc(var(--pi, 1) * 100%));
  transition: transform 700ms var(--ease-expo);
}
.cmp-now {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 26px var(--edge) 18px;
}
.cmp-now-price { font-size: var(--t-plan); font-weight: 300; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.cmp-now-name { display: grid; justify-items: end; gap: 8px; text-align: right; font-size: var(--t-sub); color: var(--cream-dim); }
.cmp-now-rec { font-size: 0.625rem; letter-spacing: 0.16em; line-height: 1; padding: 6px 8px 5px; border: 1px solid oklch(0.94 0.018 80 / 0.5); border-radius: 99px; color: var(--cream); }
.cmp-now-rec[hidden] { display: none; }

@media (max-width: 759px) {
  .cmp thead { display: none; }
  .cmp tbody th { padding-right: 12px; }
  .cmp td { width: 7.5rem; white-space: nowrap; padding-inline: 8px; }
  .cmp[data-show="0"] [data-col="1"], .cmp[data-show="0"] [data-col="2"],
  .cmp[data-show="1"] [data-col="0"], .cmp[data-show="1"] [data-col="2"],
  .cmp[data-show="2"] [data-col="0"], .cmp[data-show="2"] [data-col="1"] { display: none; }
  /* what this plan does not include steps back */
  .cmp[data-show="0"] tr[data-off~="0"] th, .cmp[data-show="1"] tr[data-off~="1"] th { color: var(--cream-faint); }
  .cmp tbody tr:first-child > * { border-top: 0; }
  .cmp.swapping td { animation: cell-in 520ms var(--ease) both; }
  .cmp tfoot th { display: none; }
  .cmp tfoot td { width: 100%; text-align: left; padding-left: 0; background: none; }
  .cmp tfoot .lit { background: none; }
}
@keyframes cell-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 760px) {
  .cmp-pick, .cmp-now { display: none; }
  .cmp { table-layout: fixed; }
  .c-feat { width: 34%; }
  .cmp thead th { vertical-align: bottom; padding-top: 0; padding-bottom: 20px; }
  .cmp-head th { border-bottom: 0; }
  .cmp-head .lit { background: linear-gradient(oklch(var(--candle) / 0), oklch(var(--candle) / 0.05)); }
  .cmp-name { display: block; font-size: var(--t-line); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; color: var(--cream); }
  .cmp-head .rec { position: static; display: inline-block; margin-bottom: 14px; }
  .cmp-price th { text-align: left; padding-left: 0; font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--cream-faint); }
  .cmp-price td { padding-top: 4px; padding-bottom: 24px; }
  .pr { display: inline-block; font-size: clamp(2rem, 1.3rem + 1.6vw, 3rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
  .cmp tbody th { font-size: var(--t-body); padding-top: 17px; padding-bottom: 17px; }
  .cmp tbody tr:last-child > * { border-bottom-color: var(--cream-hair); }
  @media (hover: hover) {
    .cmp tbody tr:hover th { color: var(--cream); }
    .cmp tbody tr:hover > * { box-shadow: inset 0 9999px 0 oklch(0.94 0.018 80 / 0.022); }
  }
}
@media (min-width: 900px) {
  .compare { padding: 152px 0 24px; }
  .compare .sec-head { margin-bottom: 56px; }
  .c-feat { width: 37%; }
}

/* ---------- SMS top-ups ---------- */
.topup { padding: 104px var(--edge) 24px; }
.topup-body { border-top: 1px solid var(--cream-rule); padding-top: 28px; display: grid; gap: 14px; }
.topup-line { font-size: var(--t-quote); font-weight: 300; line-height: 1.18; letter-spacing: -0.022em; text-wrap: balance; }
.topup-packs { font-size: clamp(2.25rem, 1.4rem + 3vw, 4.5rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; }
.topup-packs .dot { color: var(--cream-faint); padding: 0 0.12em; }
.topup-note { color: var(--cream-dim); font-size: var(--t-body); }
/* the two packs stack like lines on a menu */
.topup-packs .nowrap { display: block; }
.topup-packs .dot { display: none; }
@media (min-width: 900px) {
  .topup { padding: 152px var(--edge) 24px; }
  .topup-body {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(40px, 5vw, 96px);
    grid-template-areas: "line packs" "line note"; align-items: baseline; padding-top: 36px;
  }
  .topup-line { grid-area: line; max-width: 16ch; }
  .topup-packs { grid-area: packs; }
  .topup-note { grid-area: note; }
}

/* ---------- Questions ---------- */
.faq { padding: 104px 0 24px; }
.faq .sec-head { margin-bottom: 32px; }
.faq-col { padding: 0 var(--edge); }
.qa:first-child { border-top: 1px solid var(--cream-rule); }
.qa { border-bottom: 1px solid var(--cream-rule); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 18px 0;
  list-style: none; cursor: pointer;
  font-size: var(--t-line); font-weight: 300; letter-spacing: -0.015em; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 14px; height: 14px; flex: none; color: var(--cream-dim); }
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: currentColor;
  transition: rotate 400ms var(--ease), opacity 300ms var(--ease);
}
.qa summary i::after { rotate: 90deg; }
.qa[open] summary i::after { rotate: 0deg; opacity: 0; }
@media (hover: hover) { .qa summary:hover i { color: var(--cream); } }
.qa > p { padding: 0 32px 24px 0; max-width: 52ch; font-size: var(--t-body); color: var(--cream-dim); line-height: 1.55; }
.qa[open] > p { animation: open-in 500ms var(--ease) both; }
@keyframes open-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.faq-more { padding-top: 28px; font-size: var(--t-body); color: var(--cream-dim); }
.faq-more a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--cream-hair); padding-bottom: 2px; transition: border-color 200ms var(--ease); white-space: nowrap; }
@media (hover: hover) { .faq-more a:hover { border-color: var(--cream); } }
@media (min-width: 900px) {
  .faq { padding: 152px 0 24px; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  .faq .sec-head { margin: 0; padding-right: 0; }
  .faq-col { padding-left: 0; }
}

/* ---------- The last door ---------- */
.close {
  position: relative;
  padding: 104px var(--edge) calc(48px + env(safe-area-inset-bottom));
  display: grid; gap: 40px;
}
.trust-row { display: flex; flex-direction: column; gap: 10px; color: var(--cream-dim); }
.close-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.price { font-size: var(--t-line); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .close { grid-template-columns: 1fr auto; align-items: center; padding-block: 152px 80px; }
  .trust-row { flex-direction: row; gap: 12px 40px; }
}
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-size: var(--t-sub); font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.pill:focus-visible, .plan--rec .plan-cta:focus-visible { border-radius: 999px; }
@media (hover: hover) { .pill:hover { background: oklch(0.98 0.012 80); } }
.pill:active, .plan--rec .plan-cta:active, .cmp-cta--rec:active { transform: scale(0.98); }

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  padding: 12px var(--edge) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid oklch(0.94 0.018 80 / 0.1);
  font-size: var(--t-label); letter-spacing: 0.04em; color: var(--cream-faint);
}
.foot-nav { display: flex; flex-wrap: wrap; margin-left: -10px; }
.foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; text-decoration: none; transition: color 200ms var(--ease); }
.foot-mail { color: var(--cream-dim); }
@media (hover: hover) { .foot a:hover, .foot a:hover .foot-mail { color: var(--cream); } }
.foot-c { padding: 12px 0; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 25; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: grain 900ms steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ===================== Motion layer =====================
   Hidden start states only exist under html.mo (set by main.js): without JS the page is at rest. */

/* the opening: the photograph settles, the headline rises line by line out of its mask */
.mo .hero-img { animation: settle 2600ms var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); opacity: 0.001; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
.mo .ln { overflow: hidden; padding: 0.08em 0.08em 0.14em; margin: -0.08em -0.08em -0.14em; }
.mo .ln-i, .mo .mk-i {
  display: inline-block;
  transform: translate3d(0, 112%, 0); opacity: 0; filter: blur(8px);
}
.mo .hero.in .ln-i {
  transform: none; opacity: 1; filter: none;
  transition: transform 1400ms var(--ease-expo), opacity 900ms var(--ease), filter 1000ms var(--ease);
  transition-delay: calc(500ms + var(--li, 0) * 110ms);
}
.mo .hero-eyebrow, .mo .hero-sub { opacity: 0; translate: 0 10px; }
.mo .hero.in .hero-eyebrow, .mo .hero.in .hero-sub { opacity: 1; translate: none; transition: opacity 1100ms var(--ease), translate 1100ms var(--ease); }
.mo .hero.in .hero-eyebrow { transition-delay: 300ms; }
.mo .hero.in .hero-sub { transition-delay: 900ms; }

/* section headlines: each word sits in a mask; words on one line rise together */
.mo .mk {
  display: inline-block; vertical-align: top; overflow: hidden;
  padding: 0.08em 0.08em 0.16em; margin: -0.08em -0.08em -0.16em;
}
.mo .mk-i { transition: transform 500ms var(--ease-in), opacity 400ms ease-in, filter 400ms ease-in; }
.mo .sec-head.in .mk-i {
  transform: none; opacity: 1; filter: none;
  transition: transform 1300ms var(--ease-expo), opacity 900ms var(--ease), filter 1000ms var(--ease);
  transition-delay: calc(var(--li, 0) * 70ms + 120ms);
}
.mo .eyebrow:not(.hero-eyebrow) { opacity: 0; clip-path: inset(0 100% 0 0); translate: -6px 0; }
.mo .in > .eyebrow:not(.hero-eyebrow), .mo .sec-head.in .eyebrow {
  opacity: 1; clip-path: inset(0 0 0 0); translate: none;
  transition: opacity 800ms var(--ease), clip-path 1200ms var(--ease-expo), translate 1200ms var(--ease-expo);
}

/* hairlines: the list rules are drawn, left to right, with their rows */
.mo .plan, .mo .plan:first-child, .mo .qa, .mo .qa:first-child { border-top: 0; border-bottom: 0; }
.mo .qa > summary { position: relative; }
.mo .plan > .hl, .mo .qa > summary > .hl { position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.mo .hl, .mo .ruled::after {
  background: var(--cream-rule);
  transform: scaleX(0); transform-origin: 0 50%;
}
.mo .ruled::after { content: ""; display: block; height: 1px; }
.mo .in > .hl, .mo .in > summary > .hl, .mo .ruled.in-end::after {
  transform: none;
  transition: transform 1400ms var(--ease-expo) calc(var(--rd, 0ms) + 40ms);
}

/* rows rise 16px into place */
.mo .plan, .mo .qa, .mo .rise {
  opacity: 0; translate: 0 16px;
  transition: opacity 900ms var(--ease) calc(var(--rd, 0ms) + 120ms), translate 1100ms var(--ease-expo) calc(var(--rd, 0ms) + 120ms);
}
.mo .plan.in, .mo .qa.in, .mo .rise.in { opacity: 1; translate: none; }
.mo .plan .incl li { opacity: 0; transition: opacity 700ms var(--ease) calc(var(--rd, 0ms) + 360ms + var(--ii, 0) * 45ms); }
.mo .plan.in .incl li { opacity: 1; }

/* the comparison: rows come up in order, the ticks draw themselves */
.mo .cmp tr { opacity: 0; transition: opacity 800ms var(--ease) calc(var(--ri, 0) * 45ms + 80ms); }
.mo .cmp-wrap.in .cmp tr { opacity: 1; }
.mo .tick path { stroke-dasharray: 16; stroke-dashoffset: 16; }
.mo .cmp-wrap.in .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset 700ms var(--ease) calc(var(--ri, 0) * 45ms + 380ms); }
.mo .cmp-pick, .mo .cmp-now { opacity: 0; transition: opacity 900ms var(--ease) 80ms; }
.mo .cmp-pick.in, .mo .cmp-now.in { opacity: 1; }

/* prices: an odometer, each digit a column of numerals rolled into place */
.odo { display: inline-block; white-space: nowrap; }
.dg { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.dg-s { display: block; }
.dg-s > span { display: block; height: 1em; line-height: 1; }
.mo .plan.in .dg-s, .mo .cmp-wrap.in .dg-s, .mo .cmp-now.in .dg-s {
  transform: translate3d(0, calc(var(--to) * -1em), 0);
  transition: transform calc(1300ms + var(--di) * 220ms) var(--ease-expo) calc(var(--rd, 0ms) + 260ms + var(--di) * 50ms);
}
/* switching plans on a phone: the price rolls straight to the new figure */
.mo .cmp-now.in.rolled .dg-s { transition: transform calc(900ms + var(--di) * 160ms) var(--ease-expo) calc(var(--di) * 40ms); }

/* the closing row arrives last */
.js .close .cap { opacity: 0; translate: 0 10px; transition: opacity 1100ms var(--ease), translate 1100ms var(--ease); transition-delay: var(--dl, 0ms); }
.js .close .cap.in { opacity: 1; translate: none; }

/* desktop pills: a slight magnetic lean, and a soft fill that sweeps across on hover */
.mo .mag {
  position: relative; isolation: isolate; overflow: hidden;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), translate 600ms var(--ease-expo);
}
.mo .mag::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: oklch(0.99 0.008 80);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 500ms var(--ease-in);
}
.mo .pill.mag:hover, .mo .plan--rec .plan-cta.mag:hover, .mo .cmp-cta--rec.mag:hover { background: var(--cream); }
.mo .mag:hover::before { transform: none; transform-origin: 0 50%; transition: transform 700ms var(--ease-expo); }

/* ---------- Reduced motion: gentler, never skipped. The same beats as short fades. ---------- */
.rm .hero-img { animation: fade 1400ms ease-out both; }
.rm.mo .ln-i, .rm.mo .mk-i, .rm.mo .hero.in .ln-i, .rm.mo .sec-head.in .mk-i { transform: none; filter: none; }
.rm.mo .ln-i, .rm.mo .mk-i { transition: opacity 300ms ease-out; }
.rm.mo .hero.in .ln-i { transition: opacity 900ms ease-out calc(300ms + var(--li, 0) * 160ms); }
.rm.mo .sec-head.in .mk-i { transition: opacity 600ms ease-out calc(var(--li, 0) * 90ms); }
.rm.mo .hero-eyebrow, .rm.mo .hero-sub, .rm .close .cap { translate: none; }
.rm.mo .eyebrow:not(.hero-eyebrow) { clip-path: none; translate: none; }
.rm.mo .in > .eyebrow:not(.hero-eyebrow), .rm.mo .sec-head.in .eyebrow { transition: opacity 600ms ease-out; }
.rm.mo .hl, .rm.mo .ruled::after { transform: none; opacity: 0; }
.rm.mo .in > .hl, .rm.mo .in > summary > .hl, .rm.mo .ruled.in-end::after { opacity: 1; transition: opacity 600ms ease-out var(--rd, 0ms); }
.rm.mo .plan, .rm.mo .qa, .rm.mo .rise { translate: none; transition: opacity 600ms ease-out var(--rd, 0ms); }
.rm.mo .tick path { stroke-dashoffset: 0; }
.rm .cmp-pick-bar { transition: transform 1ms, opacity 300ms; }
.rm .grain { animation: none; }
.rm .qa[open] > p { animation: fade 400ms ease-out both; }
.rm .pill:active, .rm .plan--rec .plan-cta:active, .rm .cmp-cta--rec:active { transform: none; }
.rm .plan-cta::after, .rm .cmp-cta::after { transition: none; }
.rm .cmp-now-val { transition: opacity 300ms ease-out; }
.rm .cmp-now-val.fading { opacity: 0; }
@keyframes fade { from { opacity: 0.001; } to { opacity: 1; } }

/* ---------- Live site: the legal identity line under the footer (filled by /site.js from LEGAL) ---------- */
.ft-legal { flex-basis: 100%; padding: 0 0 12px; line-height: 1.5; color: var(--cream-faint); }
.ft-legal:empty { display: none; }
