/* Mainstay Choice prototype. Palette and type from foundation/brand/guide.md. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-stretch: 100%; src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 400; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 500; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 600; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --ink:#2B2E33; --plaster:#F4EFE7; --stone:#E2DACE; --poppy:#E4572E; --saffron:#F2B733; --body:#5A534B; --white:#FFFFFF; --clay:#A9391A;
  --serif:"Newsreader", Georgia, serif; --sans:"Instrument Sans", system-ui, sans-serif;
  --accent: var(--poppy);
  --gutter: 20px; --content: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--plaster); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; font-size: 15px; line-height: 1.56; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 64px 0; }
.band-stone { background: var(--stone); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--plaster); --accent: var(--saffron); }
.band-ink .label { color: rgba(244,239,231,.6); }
.band-ink .muted { color: rgba(244,239,231,.72); }
.accent { color: var(--accent); }
.muted { color: var(--body); }

/* Type scale: phone first, desktop from 768. */
.t-hero { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.04; letter-spacing: -.025em; margin: 0; }
.t-h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.06; letter-spacing: -.02em; margin: 0; }
.t-h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.008em; margin: 0; }
.t-h4 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.24; margin: 0; }
.t-num { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: .96; letter-spacing: -.03em; }
.t-lead { font-size: 17px; line-height: 1.5; color: var(--body); margin: 0; }
.t-body { font-size: 15px; line-height: 1.56; color: var(--body); margin: 0; }
.t-small { font-size: 13px; line-height: 1.5; color: var(--body); margin: 0; }
.label { font-weight: 600; font-size: 11px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--body); margin: 0 0 20px; }
.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 12px; }
.hairline { border: 0; border-top: 1px solid var(--stone); margin: 0; }
.band-ink .hairline { border-color: rgba(244,239,231,.18); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid var(--ink); background: var(--ink); color: var(--plaster); white-space: nowrap; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-plaster { background: var(--plaster); border-color: var(--plaster); color: var(--ink); }
.btn-saffron { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header + footer */
.hdr { border-bottom: 1px solid var(--stone); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.nav { display: none; gap: 28px; font-weight: 500; }
.ftr { background: var(--ink); color: var(--plaster); padding: 72px 0 40px; --accent: var(--saffron); }
.ftr .close { font-family: var(--serif); font-weight: 500; font-size: 36px; letter-spacing: -.02em; line-height: 1.06; margin: 0 0 40px; }
.ftr .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 14px; }
.ftr .cols p { margin: 0 0 8px; color: rgba(244,239,231,.7); }
.ftr .cols a { display: block; margin: 4px 0; }
.ftr .bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(244,239,231,.18); font-size: 12px; color: rgba(244,239,231,.6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--stone); border-radius: 6px; padding: 24px; }
.card-ink { background: var(--ink); color: var(--plaster); border-color: var(--ink); --accent: var(--saffron); }
.card-ink .label, .card-ink .muted, .card-ink .t-body, .card-ink .t-small { color: rgba(244,239,231,.75); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.col-rule { border-top: 1px solid rgba(43,46,51,.25); padding-top: 20px; }
.band-ink .col-rule { border-color: rgba(244,239,231,.2); }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; }
.hero .art { max-width: 540px; margin: 0 auto; }
.hero .btn-row { margin-top: 4px; }

/* How it works: stepper + phone */
.walk { display: grid; gap: 40px; align-items: start; }
.steps { border-top: 1px solid rgba(43,46,51,.2); }
.step { display: grid; grid-template-columns: 3px 28px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(43,46,51,.2); text-align: left; width: 100%; align-items: start; }
.step .mark { width: 3px; height: 100%; min-height: 28px; border-radius: 2px; background: transparent; }
.step[aria-current="step"] .mark { background: var(--poppy); }
.step .num, .step .t-h3 { color: var(--body); }
.step[aria-current="step"] .num, .step[aria-current="step"] .t-h3 { color: var(--ink); }
.step .line { display: none; margin-top: 4px; }
.step[aria-current="step"] .line { display: block; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { width: 340px; max-width: 100%; min-height: 640px; border: 1px solid var(--ink); border-radius: 36px; padding: 28px 22px; background: var(--plaster); display: flex; flex-direction: column; gap: 18px; }
.phone .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--body); }
.phone .dots { display: flex; gap: 6px; }
.phone .dots i { height: 4px; width: 8px; border-radius: 2px; background: rgba(43,46,51,.2); transition: width .2s; }
.phone .dots i.on { width: 28px; background: var(--poppy); }
.phone .title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.16; letter-spacing: -.01em; }
.phone .rows { display: flex; flex-direction: column; gap: 10px; }
.phone .row { display: flex; justify-content: space-between; gap: 12px; background: var(--white); border: 1px solid var(--stone); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.phone .row b { font-weight: 500; }
.phone .row span { color: var(--body); }
.phone .spacer { flex: 1; }
.phone-nav { display: flex; gap: 10px; }

/* Presets */
.preset { text-align: left; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; }
.preset:hover { transform: translateY(-2px); }
.preset .num { display: flex; align-items: baseline; gap: 8px; }
.preset .num b { font-family: var(--serif); font-weight: 500; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.preset .num span { font-size: 12px; color: var(--body); }
.preset .tag { align-self: flex-start; background: var(--saffron); color: var(--ink); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-top: 4px; }
.preset.card-ink .num b { color: var(--saffron); }
.preset.card-ink .num span, .preset.card-ink .t-small { color: rgba(244,239,231,.75); }
.slider { display: grid; grid-template-columns: 1fr 72px; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--stone); }
.slider label { font-size: 15px; }
.slider output { text-align: right; font-weight: 500; }
.slider input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 4px; border-top: 1px solid var(--stone); }
.switch { width: 44px; height: 24px; border-radius: 999px; background: var(--stone); position: relative; transition: background .15s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"] i { left: 22px; background: var(--plaster); }

/* Ledger */
.ledger .lrow { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--stone); font-size: 15px; }
.ledger .lrow b { font-weight: 500; white-space: nowrap; }
.ledger .total { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 4px; border-top: 1px solid var(--ink); }
.ledger .total .t-num { font-size: 40px; }
.ledger .per { display: flex; justify-content: space-between; padding: 0 0 12px; color: var(--body); }
.ledger .per b { color: var(--ink); font-weight: 500; }

/* Team builder */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 600; font-size: 14px; line-height: 1; background: transparent; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--plaster); }
.chip-add { border-style: dashed; }
.persona { display: flex; flex-direction: column; gap: 10px; min-height: 100%; position: relative; }
.persona .picks { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.persona .pick { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--body); }
.persona .pick b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.persona .result { border-top: 1px solid var(--stone); padding-top: 10px; margin-top: auto; }
.persona .result b { display: block; font-weight: 500; font-size: 15px; }
.persona .x { position: absolute; top: 12px; right: 14px; color: var(--body); font-size: 18px; line-height: 1; }
.team-ledger { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
.team-ledger > div { padding: 24px; }
.team-ledger > div + div { border-top: 1px solid var(--stone); }
.option { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--stone); border-radius: 8px; margin-top: 10px; }
.option b { display: block; font-weight: 500; }
.option small { display: block; color: var(--body); font-size: 13px; }
.option .v { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -.02em; white-space: nowrap; }
.option.on { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.option.on small { color: rgba(244,239,231,.75); }
.option.on .v { color: var(--saffron); }
.capture { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.capture input { flex: 1 1 220px; padding: 13px 16px; border: 1px solid var(--stone); border-radius: 999px; background: var(--white); }
.add-form { display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field select { width: 100%; padding: 13px 14px; border: 1px solid var(--stone); border-radius: 6px; background: var(--white); color: var(--ink); appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.card-plaster .field input, .card-plaster .field select { background-color: var(--plaster); }
.sent { display: none; }
.is-sent .sent { display: block; }
.is-sent .unsent { display: none; }

/* Compare table (ink) */
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-top: 1px solid rgba(244,239,231,.15); }
.cmp th { font-weight: 500; color: rgba(244,239,231,.8); border-top: 0; padding-top: 0; }
.cmp th.on { color: var(--plaster); }
.cmp td:first-child { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -.01em; width: 18%; }
.cmp td { color: rgba(244,239,231,.72); }
.cmp td.on { color: var(--plaster); font-weight: 500; }
.cmp-scroll { overflow-x: auto; }
.cmp { min-width: 820px; }

/* Care matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th { text-align: left; padding: 0 16px 14px 0; }
.matrix td { vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid rgba(43,46,51,.2); color: var(--body); }
.matrix td:first-child { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); letter-spacing: -.005em; width: 22%; }
.matrix td.on { color: var(--ink); }
.matrix-scroll { overflow-x: auto; }
.matrix { min-width: 720px; }

/* Request a call */
.start { display: grid; gap: 32px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.seg { display: flex; border: 1px solid var(--stone); border-radius: 6px; overflow: hidden; }
.seg button { flex: 1; padding: 13px 0; font-weight: 500; font-size: 14px; background: var(--white); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--plaster); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.strip { display: grid; gap: 24px; }

/* FAQ */
.faq { display: grid; gap: 32px; }
.faq details { border-top: 1px solid rgba(43,46,51,.2); padding: 18px 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .band { padding: 96px 0; }
  .t-hero { font-size: 72px; }
  .t-h2 { font-size: 56px; }
  .t-h3 { font-size: 22px; }
  .t-lead { font-size: 21px; }
  .t-body { font-size: 17px; }
  .label { font-size: 12px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .ftr .cols { grid-template-columns: repeat(4, 1fr); }
  .ftr .close { font-size: 56px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 120px; }
  .band { padding: 112px 0; }
  .hero { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .walk { grid-template-columns: 1fr 380px; gap: 64px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .team-ledger { grid-template-columns: 1fr 1fr; }
  .team-ledger > div + div { border-top: 0; border-left: 1px solid var(--stone); }
  .start { grid-template-columns: 480px 1fr; gap: 48px; }
  .faq { grid-template-columns: 384px 1fr; gap: 48px; }
  .nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .preset:hover { transform: none; } }
