/* ============================================================
   Halver — gethalver.com
   Concept: the table at the end of the night. The page ground is a
   dark restaurant table; the receipt is the lit object sitting on it.
   The four claim colours are the ones the product itself assigns to
   people, so colour carries meaning instead of decorating.
   ============================================================ */

:root {
  /* the table */
  --table:        #0E1A1F;
  --table-deep:   #0A1418;
  --table-lift:   #16262D;
  --table-edge:   #22363E;

  /* the lit paper */
  --paper:        #F6F2E9;
  --paper-edge:   #E3DCCB;
  --paper-ink:    #1A1512;
  --paper-faint:  #8A8073;

  /* type on the table */
  --text:         #EAF1F2;
  --text-dim:     #9DB2B8;
  --text-faint:   #66818A;

  /* the one brand accent */
  --teal:         #2A9FBC;
  --teal-deep:    #17758C;

  /* Per-person colours. Teal for the host and pink for the first guest are the
     app's own (see ios/ios-portionitemlist.png); the other two are a plausible
     extension of that set, not values read out of the product. */
  --pc-you:  #3ACBE4;
  --pc-ben:  #F0568F;
  --pc-cleo: #E8A33D;
  --pc-ravi: #9B8CF0;

  --shell: min(1180px, 100% - 2.5rem);
  --rule:  1px solid var(--table-edge);

  /* Shared with ridestratus.com so the CloudPath sites read as one hand. */
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--table);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type scale ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  font-stretch: 94%;
}

h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.1rem); letter-spacing: -0.032em; font-stretch: 88%; }
h2 { font-size: clamp(1.95rem, 1.3rem + 2.4vw, 3.1rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 34ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--table-edge);
}

.money { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* "Coming soon to the App Store" — the app has not shipped, so the page never
   offers a download link. */
.soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 34%, transparent);
  border-radius: 999px; padding: 0.34rem 0.85rem;
}
.soon::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex: none;
}
.soon--center { margin: 0 auto 1.5rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--table-deep) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: var(--rule);
}
.nav__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.85rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em;
  font-stretch: 92%; text-decoration: none;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav__links { display: flex; gap: 1.6rem; font-size: 0.9rem; color: var(--text-dim); }
.nav__links a { text-decoration: none; transition: color .18s; }
.nav__links a:hover { color: var(--teal); }
@media (max-width: 620px) { .nav__links { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.78rem 1.35rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s, border-color .18s;
}
.btn--primary { background: var(--teal); color: #04171C; }
.btn--primary:hover { background: #45B7D2; transform: translateY(-1px); }
.btn--ghost { border-color: var(--table-edge); color: var(--text); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ============================================================
   HERO — the signature: a check that splits itself
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(2rem, 4vh, 4rem) 0 clamp(2rem, 4vh, 3.5rem);
  overflow: hidden;
}
/* the pool of light the receipt sits in */
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto 30%;
  height: 130%;
  background: radial-gradient(ellipse 55% 45% at 50% 40%,
              rgba(246,242,233,.10), rgba(246,242,233,.03) 45%, transparent 70%);
  pointer-events: none;
}

/* The device is 322px wide by design; on a short window the whole thing scales
   rather than overflowing. The floor keeps its 11px type legible. */
.hero {
  --screen-h: 726px;
  --dev-s: 1;
}
@media (max-height: 980px) { .hero { --dev-s: .93; } }
@media (max-height: 900px) { .hero { --dev-s: .86; } }
@media (max-height: 820px) { .hero { --dev-s: .79; } }
@media (max-height: 750px) { .hero { --dev-s: .72; } }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero::before { inset: -20% -20% auto -20%; }
}

.hero h1 .em {
  display: block;
  color: var(--teal);
  font-stretch: 112%;
}
.hero__lede { margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; }
.hero__note {
  margin-top: 1.15rem; font-size: 0.85rem; color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---------- the device: a faithful mock of the host's Split screen ----------
   Modelled on the 2026-09-28 captures in ~/dev/handoffs/halver-website-shots-2026-09-28/
   and the live and closed splits captured beside them: the summary card (TOTAL,
   progress bar, "Claimed $X of $Y", the "$N unclaimed" pill, one initial and
   amount per person), the Live / Closed line, "Guests join with code … Show QR",
   item rows reading "Claimed by <name>" or "Unclaimed, $N left", the
   "Claiming for … / Finish" bar, and "Split" → "Split closed" in the title.
   The app shows this screen in light mode in those captures; the mock keeps the
   app's dark palette to sit on this page. */

.device-slot {
  height: calc((var(--screen-h) + 16px) * var(--dev-s));
  display: flex; justify-content: center;
}
.device {
  width: 322px; max-width: 100%;
  margin-inline: auto;
  padding: 8px;
  transform: scale(var(--dev-s));
  transform-origin: top center;
  border-radius: 42px;
  background: linear-gradient(158deg, #33474F, #16242B 58%);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06);
}

.screen {
  --scr-bg:    #08080A;
  --scr-card:  #1B1B1E;
  --scr-card2: #242427;
  --scr-teal:  #3ACBE4;
  --scr-text:  #FFFFFF;
  --scr-dim:   #9A9AA1;
  --scr-line:  #2E2E33;

  background: var(--scr-bg);
  color: var(--scr-text);
  border-radius: 35px;
  overflow: hidden;
  height: var(--screen-h);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
}

/* status bar */
.scr__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 20px 3px; font-size: 11px; font-weight: 600;
}
.scr__status span:last-child { letter-spacing: 1px; color: var(--scr-dim); }

/* nav bar */
.scr__nav {
  display: grid; grid-template-columns: 30px 1fr 30px;
  align-items: center; gap: 6px; padding: 4px 12px 8px;
}
.scr__back {
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--scr-card); display: grid; place-items: center;
  font-size: 14px; color: var(--scr-text);
}
.scr__title { text-align: center; font-weight: 700; font-size: 13px; }
.scr__body {
  flex: 1; min-height: 0; overflow: hidden;
  padding: 0 11px; display: flex; flex-direction: column; gap: 9px;
}

/* a card */
.card { background: var(--scr-card); border-radius: 13px; padding: 10px 11px 11px; }
.card__title { margin: 0; font-weight: 700; font-size: 12.5px; }

/* the summary card */
.sum__name { margin: 0; font-weight: 800; font-size: 15px; }
.sum__meta { margin: 1px 0 0; color: var(--scr-dim); font-size: 10.5px; }
.sum__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--scr-line);
}
.sum__total span { color: var(--scr-dim); font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.sum__total b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar { height: 4px; margin-top: 7px; border-radius: 99px; background: var(--scr-card2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--scr-teal); border-radius: 99px; transition: width .5s var(--ease); }
.sum__claimed { margin: 6px 0 0; color: var(--scr-teal); font-size: 10px; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block; margin: 4px 0 0; padding: 1px 7px; border-radius: 999px;
  background: #E8932B; color: #2A1500; font-size: 9.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.people {
  list-style: none; margin: 9px 0 0; padding: 8px 0 0; border-top: 1px solid var(--scr-line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; text-align: center;
}
.person { display: grid; justify-items: center; gap: 2px; }
.person__dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--pc);
  display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #fff;
}
.person__name { font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.person__amt { font-size: 9px; color: var(--scr-dim); font-variant-numeric: tabular-nums; }

/* Live / Closed */
.state { margin: 0 2px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.state i { width: 6px; height: 6px; border-radius: 50%; background: #34C27A; }
.state.is-closed { color: var(--scr-dim); }
.state.is-closed i { background: var(--scr-dim); }

/* Guests join with code … Show QR */
.join {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  background: var(--scr-card); border-radius: 11px; padding: 7px 10px;
}
.join__ico { color: var(--scr-teal); font-size: 13px; }
.join__txt { color: var(--scr-dim); font-size: 10px; }
.join__txt b { display: block; color: var(--scr-text); font-family: var(--font-mono); font-size: 10px; }
.join__qr { color: var(--scr-teal); font-weight: 600; font-size: 10.5px; }

/* item rows */
.lines { list-style: none; margin: 6px 0 0; padding: 0; }
.line { position: relative; padding: 5px 0 5px 8px; border-top: 1px solid var(--scr-line); }
.line:first-child { border-top: 0; }
.line::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2.5px;
  border-radius: 2px; background: transparent;
}
.line.is-open::before { background: #E5484D; }
.line__row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.line__name { font-weight: 500; }
.line__price { font-variant-numeric: tabular-nums; color: var(--scr-dim); }
.line__by { margin-top: 2px; display: flex; align-items: center; gap: 5px; color: var(--scr-dim); font-size: 9.5px; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.line.is-open .dots { display: none; }

/* Claiming for … / Finish */
.claimbar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin: 6px 11px 0; padding: 7px 4px 0 6px; border-top: 1px solid var(--scr-line);
}
.claimbar__txt { color: var(--scr-dim); font-size: 9.5px; }
.claimbar__txt b { display: block; color: var(--scr-text); font-size: 13px; font-variant-numeric: tabular-nums; }
.claimbar__txt em { font-style: normal; font-weight: 400; color: var(--scr-dim); font-size: 9.5px; }
.claimbar__btn {
  background: var(--scr-teal); color: #05252C; font-weight: 700; font-size: 11.5px;
  padding: 6px 13px; border-radius: 999px;
}

/* tab bar */
.tabs {
  margin: 6px 11px 11px; padding: 6px 4px;
  background: var(--scr-card); border-radius: 999px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
.tab { text-align: center; color: var(--scr-dim); font-size: 8.5px; }
.tab b { display: block; font-size: 13px; font-weight: 400; line-height: 1.1; }
.tab.on { color: var(--scr-teal); }

/* things that only exist at certain steps */
.is-hidden { display: none !important; }

/* ---------- the step control under the device ---------- */

.stepper { margin-top: 1.1rem; text-align: center; }
.stepper__row {
  display: inline-flex; gap: 4px;
  background: var(--table-lift); border: 1px solid var(--table-edge);
  border-radius: 999px; padding: 3px;
}
.stepper__b {
  font-family: var(--font-mono); font-size: 0.72rem;
  background: none; border: 0; border-radius: 999px;
  color: var(--text-faint); padding: 0.3rem 0.7rem; cursor: pointer;
  transition: background .2s, color .2s;
}
.stepper__b:hover { color: var(--text-dim); }
.stepper__b[aria-current="true"] { background: var(--teal); color: #04171C; font-weight: 600; }
.stepper__cap {
  margin: 0.7rem auto 0; max-width: 34ch;
  font-size: 0.9rem; color: var(--text-dim); min-height: 3.2em;
}

/* ============================================================
   sections
   ============================================================ */

.band { padding: clamp(3.75rem, 7vw, 7rem) 0; position: relative; }
.band--edge { border-top: var(--rule); }
.band--deep { background: var(--table-deep); border-top: var(--rule); border-bottom: var(--rule); }

.band__head { max-width: 52ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.band__head p { color: var(--text-dim); margin-top: 1.1rem; font-size: 1.06rem; }

.legend { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.legend__i {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint);
}
.legend__i::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend__i--app::before { background: var(--teal); }
.legend__i--all::before { border: 1.5px solid var(--text-faint); }

/* ---------- the no-install beat ---------- */

.install {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 860px) {
  .install { grid-template-columns: 1fr; }
  .install__vs { justify-self: start; }
}

.install__side h3 { margin-bottom: 0.7rem; }
.install__side p { color: var(--text-dim); font-size: 0.98rem; }
.install__vs {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--text-faint); text-transform: uppercase;
  border: 1px solid var(--table-edge); border-radius: 999px;
  padding: 0.4rem 0.9rem; white-space: nowrap;
}
.install__side--them {
  background: var(--table-lift); border: 1px solid var(--table-edge);
  border-radius: 14px; padding: 1.5rem;
}

/* ---------- the night, in order ---------- */

.steps { display: grid; gap: clamp(3rem, 6vw, 5.5rem); }

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.step:nth-child(even) .step__art { order: -1; }
@media (max-width: 880px) {
  .step { grid-template-columns: 1fr; gap: 2rem; }
  .step:nth-child(even) .step__art { order: 0; }
}

.step__n {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--teal);
  display: block; margin-bottom: 0.85rem;
}
.step__body h3 { margin-bottom: 0.85rem; }
.step__body > p { color: var(--text-dim); max-width: 46ch; }

.feats { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 1rem; }
.feats + .scope { margin-top: 1.6rem; }

/* Who a feature is for, said once above the group instead of tagged onto each
   bullet — so "no app needed" is stated rather than left to be inferred from a
   missing label. */
.scope { margin-top: 1.5rem; }
.scope__h {
  margin: 0; display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.scope__h::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
}
.scope--app  .scope__h { color: var(--teal); }
.scope--app  .scope__h::before { background: var(--teal); }
.scope--all  .scope__h { color: var(--text-faint); }
.scope--all  .scope__h::before {
  background: none; border: 1.5px solid var(--text-faint);
}
.feats li { padding-left: 1.1rem; position: relative; max-width: 46ch; }
.feats li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal-deep);
}
.feats--all li::before { background: none; border: 1px solid var(--text-faint); }
.feats strong { font-weight: 600; display: block; }
.feats span { color: var(--text-dim); font-size: 0.95rem; }


/* the phone the screenshots sit in */
.shot {
  position: relative;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(160deg, #2C4048, #14232A 60%);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
  max-width: 300px;
  margin-inline: auto;
}
.shot img { border-radius: 27px; width: 100%; height: auto; }
.shot--wide { max-width: 460px; border-radius: 14px; padding: 0; background: none; box-shadow: none; }
.shot--wide img { border-radius: 10px; height: auto; box-shadow: 0 24px 60px -18px rgba(0,0,0,.8); }

.shot__cap {
  margin-top: 0.85rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.66rem;
  color: var(--text-faint); letter-spacing: 0.04em;
}

/* ---------- scenarios ---------- */

.cases {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px; background: var(--table-edge);
  border: 1px solid var(--table-edge); border-radius: 14px; overflow: hidden;
}
.case {
  background: var(--table); padding: 1.6rem 1.5rem 1.7rem;
  display: flex; flex-direction: column; transition: background .22s;
}
.case:hover { background: var(--table-lift); }
.case h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.case p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.case__then {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px dashed var(--table-edge);
  font-size: 0.9rem; color: var(--text-faint);
}
.case__then b { color: var(--teal); font-weight: 500; }

/* ---------- proof (the email) ---------- */

.proof {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.85fr);
  gap: clamp(2rem,5vw,4rem); align-items: center;
}
@media (max-width: 880px) { .proof { grid-template-columns: 1fr; } }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.72rem);
  line-height: 1.32; letter-spacing: -0.02em;
  border-left: 2px solid var(--teal);
  padding-left: 1.25rem; margin: 1.75rem 0;
}
.quote cite {
  display: block; margin-top: 0.85rem; font-style: normal;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}

/* ---------- trust ---------- */

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; }
.trust h3 { font-size: 1.02rem; margin-bottom: 0.55rem; }
.trust p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- close ---------- */

.close { text-align: center; }
.close h2 { max-width: 18ch; margin-inline: auto; }
.close .hero__cta { justify-content: center; margin-top: 2rem; }

/* ---------- footer ---------- */

.foot { border-top: var(--rule); padding: 2.5rem 0 3rem; font-size: 0.86rem; color: var(--text-faint); }
.foot__in { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.foot a { text-decoration: none; transition: color .18s; }
.foot a:hover { color: var(--teal); }
.foot__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
/* Zelle's trademark guidelines require this exact sentence once per surface,
   "conspicuous and tailored to the context" — the footer is where a site puts
   one. Inherits .foot's faint colour and 0.86rem; sits below .foot__in rather
   than inside it so it never becomes a flex item beside the links. */
.foot__legal { margin-top: 1.5rem; max-width: 60ch; }

/* ---------- scroll reveal ---------- */

.rise { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
}

/* ============================================================
   Long-form pages — privacy, terms, support
   Presentation only. The wording on these pages is legal copy and
   was not touched when they moved onto this design.
   ============================================================ */

.doc {
  max-width: 46rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto clamp(3.5rem, 7vw, 6rem);
  color: var(--text-dim);
}

.doc h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
  color: var(--text);
  font-stretch: 90%;
  margin-bottom: 0.9rem;
}
.doc h1 + p { font-size: 1.1rem; margin-bottom: 2.5rem; }

.doc h2 {
  font-size: clamp(1.12rem, 1rem + 0.55vw, 1.35rem);
  color: var(--text);
  margin: 2.9rem 0 0.9rem;
  padding-top: 1.7rem;
  border-top: var(--rule);
}

.doc p  { margin: 0 0 1rem; line-height: 1.68; }
.doc strong { color: var(--text); font-weight: 600; }
.doc em     { color: var(--text); }

.doc a {
  color: var(--teal);
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--teal) 40%, transparent);
}
.doc a:hover { text-decoration-color: var(--teal); }

.doc ul, .doc ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.55rem; line-height: 1.62; }
.doc li::marker { color: var(--teal-deep); }

/* the retention table on the privacy page */
.doc__scroll { overflow-x: auto; margin: 0.6rem 0 1.2rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.doc th {
  text-align: left; color: var(--text); font-weight: 600;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0 1.25rem 0.6rem 0; border-bottom: 1px solid var(--table-edge);
  white-space: nowrap;
}
.doc td {
  padding: 0.6rem 1.25rem 0.6rem 0;
  border-bottom: 1px solid var(--table-edge);
  vertical-align: top;
}
.doc tr:last-child td { border-bottom: 0; }

/* the contact box on the support page */
.doc__card {
  background: var(--table-lift); border: 1px solid var(--table-edge);
  border-radius: 14px; padding: 1.6rem; margin-bottom: 2.75rem;
}
.doc__card h2 { margin: 0 0 0.5rem; padding: 0; border-top: 0; }
.doc__card p  { margin-bottom: 1.1rem; }
.doc__card a {
  display: inline-flex; align-items: center;
  background: var(--teal); color: #04171C;
  font-weight: 600; font-size: 0.93rem; text-decoration: none;
  padding: 0.6rem 1.15rem; border-radius: 999px;
  transition: background .18s;
}
.doc__card a:hover { background: #45B7D2; }

/* the FAQ accordions on the support page */
.doc details {
  background: var(--table-lift); border: 1px solid var(--table-edge);
  border-radius: 12px; margin-bottom: 0.55rem;
}
.doc summary {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.95rem 1.15rem; cursor: pointer;
  color: var(--text); font-weight: 600; font-size: 0.98rem;
  list-style: none;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::before {
  content: "+"; flex: none;
  font-family: var(--font-mono); color: var(--teal); font-weight: 400;
}
.doc details[open] summary::before { content: "\2212"; }
.doc details > div { padding: 0 1.15rem 1.1rem 2.5rem; }
.doc details p:last-child { margin-bottom: 0; }
