/* SplitSmart homepage (Oct 2026). Mobile first. */

:root {
  --bg: #faf8f4;
  --tint: #f3f0e9;
  --paper: #fff;
  --ink: #17140f;
  --ink-2: #3d3832;
  --muted: #5f5952;
  --line: #e4ded3;
  --line-2: #cbc3b5;
  --block: #29bcb5; /* teal use 1 of 2: blocks behind phones */
  --btn: #0f766e; /* teal use 2 of 2: primary button, 5.47:1 with white */
  --btn-hi: #0b5f58;
  --red: #b42318;
  --green: #17734f;
  --you: #17734f;
  --maya: #b4471f;
  --jake: #7a5b0c;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 20px;
  --r-lg: clamp(24px, 3vw, 36px);
  --gut: clamp(16px, 5vw, 40px);
  --sec: clamp(72px, 11vw, 144px);
  --h2: clamp(2rem, 1.35rem + 2.9vw, 3.25rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

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

.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

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

.h2 {
  font-size: var(--h2);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.h2 + .lede {
  margin-top: 20px;
}

.fine {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.textlink:hover {
  text-decoration-thickness: 2.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.btn:hover {
  background: var(--btn-hi);
}

.tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  position: relative;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.nav__menu a {
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 8px 0;
}
.nav__menu a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.nav__toggle i,
.nav__toggle i::before,
.nav__toggle i::after {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav__toggle i {
  top: 21px;
}
.nav__toggle i::before,
.nav__toggle i::after {
  content: "";
  left: 0;
}
.nav__toggle i::before {
  top: -6px;
}
.nav__toggle i::after {
  top: 6px;
}
.nav__toggle[aria-expanded="true"] i {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] i::before {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] i::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* without JS the menu wraps below; with JS it folds into the toggle */
@media (max-width: 859px) {
  .nav__inner {
    flex-wrap: wrap;
  }
  .nav__menu {
    order: 3;
    width: 100%;
    padding-bottom: 8px;
  }
  .nav__cta {
    min-height: 40px;
    padding: 8px 16px;
  }
  .js .nav__toggle {
    display: block;
  }
  .js .nav__menu {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 16px;
    border-top: 1px solid var(--line);
  }
  .js .nav.is-open .nav__menu {
    display: flex;
  }
  .js .nav__menu a {
    padding: 12px 0;
    font-size: 1.0625rem;
  }
}
@media (max-width: 379px) {
  .nav__logo span {
    font-size: 1rem;
  }
  .nav__cta {
    padding-inline: 12px;
  }
}
@media (min-width: 860px) {
  .nav__menu {
    margin-right: 12px;
    gap: 28px;
  }
}

/* ---------- sections ---------- */

.sec {
  padding-block: var(--sec);
}
.sec--tint {
  background: var(--tint);
}

.head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.head .lede {
  margin-inline: auto;
}
.head--left {
  margin-left: 0;
  text-align: left;
}

.split {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--flip > :first-child {
    order: 2;
  }
}

/* ---------- phones on teal blocks ---------- */

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 4vw, 48px);
  background: var(--block);
  border-radius: var(--r-lg);
}

/* frame art 1470x3000, screen cutout (75,66) 1320x2868, corner radius 186 */
.phone {
  position: relative;
  flex: none;
  width: clamp(200px, 56vw, 290px);
  aspect-ratio: 1470 / 3000;
  filter: drop-shadow(0 18px 28px rgba(10, 40, 38, 0.28));
}
.phone__screen {
  position: absolute;
  left: 5.102%;
  top: 2.2%;
  width: 89.796%;
  height: 95.6%;
  object-fit: cover;
  border-radius: 14.09% / 6.485%;
  background: #fff;
}
.phone__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* hero: Snap / Tap / Split, middle phone larger and forward */
.stage--hero {
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(28px, 5vw, 56px) clamp(12px, 3vw, 48px) clamp(20px, 3vw, 36px);
}
.trio {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 700px;
}
.trio__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32%;
  margin-inline: -4%;
}
.trio__step--mid {
  z-index: 2;
  width: 40%;
}
.trio .phone {
  width: 100%;
}
.trio__step--mid .phone {
  filter: drop-shadow(0 24px 36px rgba(10, 40, 38, 0.32));
}
@media (min-width: 700px) {
  .trio__step {
    margin-inline: -2.5%;
  }
}
.trio__label {
  margin-top: 14px;
  padding: 2px 14px;
  background: var(--paper);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
}

/* self-contained store videos: rounded card, never cropped */
.clip {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 32px rgba(23, 20, 15, 0.08);
}
.clip__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1560;
}
.clip__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 20, 15, 0.72);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.clip__toggle:hover {
  background: var(--ink);
}
.clip__toggle:focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
  border-radius: 50%;
}
/* play triangle by default, pause bars while playing */
.clip__toggle i {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}
.clip.is-playing .clip__toggle i {
  width: 12px;
  height: 14px;
  margin: 0;
  border: 0;
  border-inline: 4px solid currentColor;
}

.stage--pair .phone {
  width: 46%;
  max-width: 240px;
}
.stage--pair {
  gap: clamp(12px, 3vw, 24px);
  align-items: flex-start;
}
.stage--pair .phone + .phone {
  margin-top: 12%;
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(40px, 8vw, 96px);
  text-align: center;
}
.hero__copy {
  max-width: 820px;
  margin-inline: auto;
}
.hero__title {
  font-size: clamp(2.6rem, 1.4rem + 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.hero .lede {
  margin: 24px auto 0;
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.hero .get,
.get--center {
  justify-content: center;
}
.badge {
  display: inline-block;
  border-radius: 10px;
}
.badge img {
  height: 50px;
  width: auto;
}
.cta .badge img {
  height: 56px;
}

/* ---------- bank ---------- */

.trust {
  margin-top: 32px;
  max-width: 520px;
  font: 400 0.875rem/1.5 var(--mono);
  border-top: 1.5px dashed var(--line-2);
  padding-top: 16px;
}
.trust li + li {
  margin-top: 10px;
}

/* receipt line with dot leader: <span/> <i/> <span/> */
.line,
.trust li {
  display: flex;
  align-items: baseline;
  gap: 0.5ch;
}
.line > i,
.trust li > i {
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 2px dotted currentColor;
  opacity: 0.45;
  transform: translateY(-0.3em);
}
.line > span:first-child,
.trust li > span:first-child {
  flex: none;
  max-width: 62%;
}
.line > span:last-child,
.trust li > span:last-child {
  text-align: right;
}
.trust li > span:first-child {
  font-weight: 700;
}
@media (max-width: 519px) {
  .trust li {
    flex-wrap: wrap;
  }
  .trust li > span:last-child {
    flex-basis: 100%;
  }
}

/* ---------- try it ---------- */

.demo {
  display: grid;
  gap: 32px;
  max-width: 980px;
  margin-inline: auto;
}
@media (min-width: 860px) {
  .demo {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .tally {
    position: sticky;
    top: 100px;
  }
}

.receipt-wrap {
  filter: drop-shadow(0 1px 1px rgba(23, 20, 15, 0.08)) drop-shadow(0 12px 24px rgba(23, 20, 15, 0.08));
}
.receipt {
  --zig: 10px;
  background: var(--paper);
  padding: 28px clamp(16px, 4vw, 32px) calc(28px + var(--zig));
  font: 400 0.875rem/1.5 var(--mono);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig) + 1px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig) + 1px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x;
}
.receipt__head {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1.5px dashed var(--line-2);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.receipt__shop {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}
.receipt__hint {
  margin: 16px 0 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.item .line {
  font-weight: 700;
}
.item.is-loose .line {
  color: var(--red);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px 4px 5px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.875rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover {
  border-color: var(--ink);
}
.chip--all {
  padding-left: 12px;
}
.chip__av {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip--all[data-partial="true"] {
  border-style: dashed;
  border-color: var(--ink);
}

.receipt__sums {
  margin-top: 16px;
}
.receipt__sums .line + .line {
  margin-top: 4px;
}
.line--total {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.receipt__foot {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.tally__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.tally__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.tally__who {
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tally__who::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
[data-person="you"] {
  --c: var(--you);
}
[data-person="maya"] {
  --c: var(--maya);
}
[data-person="jake"] {
  --c: var(--jake);
}
.tally__amt {
  font: 700 1.5rem/1.2 var(--mono);
  grid-row: span 2;
  align-self: center;
  font-variant-numeric: tabular-nums;
}
.tally__what {
  font-size: 0.875rem;
  color: var(--muted);
}
.tally__foot {
  margin-top: 16px;
  font-weight: 600;
}
.tally__foot.is-loose {
  color: var(--red);
}

/* ---------- how ---------- */

.steps {
  margin-top: clamp(28px, 4vw, 40px);
  counter-reset: none;
}
.steps li {
  display: grid;
  grid-template-columns: clamp(52px, 7vw, 76px) 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps__n {
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.steps p {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.45;
  font-weight: 500;
}

/* ---------- shared life ---------- */

.life {
  display: grid;
  gap: 24px;
}
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .life {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
  }
}
.card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-2);
}
.life__foot {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 500;
}

/* ---------- settle ---------- */

.iou {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 36px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.iou s {
  color: var(--muted);
  text-decoration-thickness: 3px;
}
.iou__to {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- the bill ---------- */

.bills {
  display: grid;
  gap: 32px;
  max-width: 920px;
  margin-inline: auto;
  align-items: start;
}
@media (min-width: 760px) {
  .bills {
    grid-template-columns: 1fr 1fr;
  }
}
.bill {
  position: relative;
  padding: 28px clamp(18px, 4vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 400 0.875rem/1.5 var(--mono);
  box-shadow: 0 12px 24px rgba(23, 20, 15, 0.06);
}
.bill--theirs {
  background: #f1eee8;
}
.bill__head {
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1.5px dashed var(--line-2);
}
.bill__head h3 {
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
}
.bill__head p {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.bill__items li + li {
  margin-top: 6px;
}
.bill__small {
  margin-top: 12px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.stamp {
  position: absolute;
  font: 700 1rem/1.05 var(--mono);
  letter-spacing: 0.12em;
  text-align: center;
  padding: 6px 12px;
  border: 3px solid currentColor;
  border-radius: 6px;
  pointer-events: none;
}
/* sits over the TOTAL line, below every item line */
.line--total {
  position: relative;
}
.bill--theirs .bill__small {
  margin-top: 36px;
}
.stamp--void {
  top: calc(100% + 16px);
  left: 42%;
  translate: -50% -50%;
  rotate: -8deg;
  font-size: 2rem;
  padding: 2px 16px;
  color: var(--red);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.bill--ours {
  padding-bottom: 92px;
}
.stamp--free {
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  rotate: -6deg;
  font-size: 0.75rem;
  color: var(--green);
}

.more {
  margin-top: 40px;
  text-align: center;
}

/* ---------- note ---------- */

.note {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.note__head {
  text-align: center;
  font-family: var(--mono);
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1.5px dashed var(--line-2);
}
.note__head h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  letter-spacing: 0.06em;
}
.note__head p {
  margin-top: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.note > p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.note > p + p {
  margin-top: 16px;
}
.note__lines {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line-2);
  font: 400 0.875rem/1.5 var(--mono);
}
.note__lines li + li {
  margin-top: 6px;
}
.note .note__small {
  margin-top: 16px;
  text-align: center;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--muted);
}

/* ---------- final cta ---------- */

.cta {
  text-align: center;
}
.cta__title {
  max-width: 14em;
  margin-inline: auto;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.cta .get {
  margin-top: 40px;
}

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

.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: 0.9375rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.foot .nav__logo {
  margin-right: 0;
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  flex: 1 1 320px;
}
.foot__nav a {
  text-decoration: none;
  padding: 4px 0;
}
.foot__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot__copy {
  color: var(--muted);
}

/* ---------- subpages: page head, long-form docs, FAQ ---------- */

.page-head {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-head--center {
  text-align: center;
}
.page-head--center .lede {
  margin-inline: auto;
}
.page-head__meta {
  margin-bottom: 14px;
  font: 400 0.75rem/1.5 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.page-head h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.page-head .lede {
  margin-top: 18px;
}

.doc-layout {
  display: grid;
  gap: 32px;
  padding-bottom: var(--sec);
}
@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 220px minmax(0, 68ch);
    gap: 72px;
  }
  .toc {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}
.toc {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.9375rem;
}
.toc__title {
  font: 700 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.toc li + li {
  margin-top: 4px;
}
.toc a {
  text-decoration: none;
  color: var(--ink-2);
}
.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc {
  max-width: 68ch;
  color: var(--ink-2);
  line-height: 1.7;
}
.doc h2 {
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--line-2);
  color: var(--ink);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: 88px;
}
.doc h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.35;
}
.doc p,
.doc ul {
  margin-bottom: 16px;
}
.doc ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.doc li + li {
  margin-top: 6px;
}
.doc li::marker {
  color: var(--muted);
}
.doc strong {
  color: var(--ink);
}
.doc a {
  color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.doc a.anchor {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: none;
  opacity: 0;
}
.doc h2:hover .anchor,
.doc .anchor:focus-visible {
  opacity: 1;
}
.doc > :first-child {
  margin-top: 0;
}
.legal-tldr {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  color: var(--ink);
}
.legal-tldr__label {
  display: block;
  font: 700 0.75rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.legal-tldr p {
  margin: 0;
}

.faq + .faq {
  margin-top: 56px;
}
.faq__q {
  font-size: 1.125rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}
.faq__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.faq__item:first-of-type {
  border-top: 1px solid var(--line);
}
.faq__item p {
  margin-top: 6px;
  color: var(--ink-2);
}
.faq__item p + p {
  margin-top: 10px;
}
.faq__item a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
details.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq__item summary::-webkit-details-marker {
  display: none;
}
details.faq__item summary::after {
  content: "+";
  font: 700 1.25rem/1 var(--mono);
  color: var(--muted);
}
details.faq__item[open] summary::after {
  content: "\2212";
}

.card--link {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s;
}
.card--link:hover {
  border-color: var(--ink);
}

.stub {
  max-width: 460px;
  margin-inline: auto;
  text-align: center;
}
.stub .btn {
  margin-top: 20px;
  font-family: var(--sans);
}
.doc .faq__q {
  margin: 0;
}
.stub p {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-2);
}

.disclaimer {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.bill__head h2 {
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
}
.support-faq {
  margin: clamp(56px, 8vw, 88px) auto 0;
}
.more-title {
  margin-bottom: 32px;
}
@media (min-width: 860px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.narrow {
  max-width: 44rem;
}
.sec--top {
  padding-top: 0;
}
.more-link,
.note-after {
  margin-top: 24px;
}
.notfound {
  padding-bottom: clamp(96px, 14vw, 180px);
}

/* ---------- reveal (motion only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .rv.in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
