/* Keryx website. Layout: plum hero band holding a live-looking lead card and drafted email, then
   alternating bg and plum bands: the three steps (Find, Reach, Close), what you sell, the honest
   assistant, deliverability, pricing, the waitlist form and FAQ. Motif: the logo's coral dot and
   wave, used once as arcs behind the hero cards. Tokens match the Keryx brand guidelines. */
:root {
  --bg: #f5f4fa; --surface: #ffffff; --surface-2: #f0eef7; --ink: #1f1830; --muted: #6b6480; --line: #e2dfec;
  --plum: #2d1e4a; --plum-2: #3d2a62; --plum-ink: #ece6fb; --plum-muted: #a99cc7;
  --coral: #f2545b; --coral-strong: #c9343d; --coral-text: #b8323a; --coral-ink: #ffffff; --coral-soft: #fde7e8;
  --marigold: #c98a00; --marigold-text: #946500; --marigold-soft: #fdf1d3;
  --cobalt: #2f5fe0; --cobalt-soft: #e4ebfd; --mint: #1f8a5b; --mint-text: #146843; --mint-soft: #dff3e9;
  --slate-text: #585e70; --slate-soft: #eceef3; --bad: #c2342b; --bad-soft: #fbe3e1; --focus: #2f5fe0;
  --shadow: 0 1px 2px rgba(31, 24, 48, .06), 0 4px 16px rgba(31, 24, 48, .06);
  --shadow-lift: 0 2px 4px rgba(15, 11, 24, .18), 0 18px 48px rgba(15, 11, 24, .28);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: Figtree, "Segoe UI", system-ui, sans-serif;
  --f-data: "JetBrains Mono", Consolas, monospace;
  --r-sm: 7px; --r: 10px; --pill: 999px;
  --gutter: 16px; --section: 96px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15111f; --surface: #1d1729; --surface-2: #251e34; --ink: #ece8f6; --muted: #a39cb8; --line: #322a45;
    --plum: #0f0b18; --plum-2: #221a35; --plum-ink: #ece6fb; --plum-muted: #9286b3;
    --coral: #ff6b70; --coral-strong: #ff6b70; --coral-text: #ff6b70; --coral-ink: #1b0f12; --coral-soft: #3b1d22;
    --marigold: #f2b93b; --marigold-text: #f2b93b; --marigold-soft: #382c12;
    --cobalt: #7fa2ff; --cobalt-soft: #1c2647; --mint: #5fd39b; --mint-text: #5fd39b; --mint-soft: #15301f;
    --slate-text: #a0a6b8; --slate-soft: #272b36; --bad: #ff8a80; --bad-soft: #3a1c1a; --focus: #7fa2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); }
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.band-plum :focus-visible { outline-color: var(--plum-ink); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.06; font-weight: 750; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }
.data { font-family: var(--f-data); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 700 12px/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--coral-text); }
.band-plum .eyebrow { color: #ff7d83; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 44px; }

/* bands */
.band-plum { background: var(--plum); color: var(--plum-ink); }
.band-plum .lead { color: var(--plum-muted); }
.band-tint { background: var(--surface-2); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--plum); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--plum-ink); text-decoration: none; }
.logo svg { width: 34px; height: 26px; }
.logo b { font: 750 22px/1 var(--f-display); letter-spacing: -.02em; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--plum-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--plum-ink); }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1.2 var(--f-body); border: 1px solid var(--coral-strong); background: var(--coral-strong); color: var(--coral-ink); border-radius: var(--r-sm); padding: 10px 18px; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cobalt); color: var(--cobalt); filter: none; }
.band-plum .btn.ghost { color: var(--plum-ink); border-color: rgba(236, 230, 251, .35); }
.band-plum .btn.ghost:hover { border-color: var(--plum-ink); color: var(--plum-ink); }
.btn:disabled { opacity: .55; cursor: progress; }

/* chips */
.chip { display: inline-block; font: 700 11.5px/1.5 var(--f-body); letter-spacing: .02em; padding: 2px 9px; border-radius: var(--pill); background: var(--slate-soft); color: var(--slate-text); white-space: nowrap; }
.chip.hot { background: var(--coral-soft); color: var(--coral-text); }
.chip.warm { background: var(--marigold-soft); color: var(--marigold-text); }
.chip.cool, .chip.ap { background: var(--cobalt-soft); color: var(--cobalt); }
.chip.good { background: var(--mint-soft); color: var(--mint-text); }
.chip.ex { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 72px 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); line-height: .98; font-weight: 750; letter-spacing: -.035em; color: var(--plum-ink); }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { margin-top: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--plum-muted); }
.hero-art { position: relative; min-width: 0; display: grid; gap: 20px; justify-items: center; }
.hero-art .card { width: 100%; max-width: 500px; }
.hero-art .waves { position: absolute; left: -70px; top: 50%; width: 300px; height: 420px; transform: translateY(-50%); pointer-events: none; }
.waves path { fill: none; stroke: var(--coral); stroke-width: 10; stroke-linecap: round; opacity: .22; }
.waves circle { fill: var(--coral); opacity: .9; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero-art .waves { display: none; } }

/* product cards (renderings of the app, marked as examples) */
.card { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.band-plum .card { box-shadow: var(--shadow-lift); border-color: transparent; }
.leadcard { padding: 18px 18px 16px; }
.leadcard .row1 { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.leadcard h3 { font-size: 19px; }
.leadcard .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.score { text-align: right; flex: none; }
.score b { font: 750 34px/1 var(--f-display); color: var(--coral-text); font-variant-numeric: tabular-nums; }
.score span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.facts div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mail { padding: 16px 18px; }
.mail .head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.mail .head b { color: var(--ink); font-weight: 700; }
.mail p { font-size: 14.5px; line-height: 1.55; }
.mail p + p { margin-top: 8px; }
.mail .sig { color: var(--muted); }
.mail .label { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step .n { display: inline-flex; align-items: center; gap: 10px; font: 750 15px/1 var(--f-display); color: var(--coral-text); }
.step .n i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral-soft); font-style: normal; }
.step p { color: var(--muted); font-size: 15px; }
.step ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.step li { display: flex; gap: 8px; }
.step li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-top: 9px; }
.mini { margin-top: auto; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; font-size: 13.5px; display: grid; gap: 8px; }
.mini .line { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mini .k { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* what you sell */
.sell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.offers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.offers span { border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill); padding: 6px 14px; font-weight: 600; font-size: 14.5px; }
.offers span.on { background: var(--plum-2); border-color: var(--plum-2); color: var(--plum-ink); }
.weights { padding: 20px; }
.weights h3 { font-size: 17px; }
.weights .hint { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.weights ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.weights li { display: grid; grid-template-columns: minmax(0, 1fr) 140px 40px; gap: 12px; align-items: center; font-size: 14.5px; }
.bar { height: 8px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: var(--pill); background: var(--coral); }
.weights .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .sell { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .weights li { grid-template-columns: minmax(0, 1fr) 80px 34px; } }

/* assistant */
.assist { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.rules { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--plum-ink); }
.rules svg { width: 22px; height: 22px; fill: none; stroke: var(--coral); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.rules b { display: block; }
.rules span { color: var(--plum-muted); font-size: 15px; }
.thread { padding: 18px; display: grid; gap: 12px; }
.msg { border-radius: var(--r); padding: 12px 14px; font-size: 14.5px; line-height: 1.5; max-width: 92%; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.msg.them { background: var(--surface-2); }
.msg.ai { background: var(--cobalt-soft); margin-left: auto; }
.msg.ai .tag { margin-top: 8px; font-size: 13px; color: var(--muted); }
.booked { display: flex; align-items: center; gap: 10px; font-size: 14px; border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.booked svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--mint-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .assist { grid-template-columns: minmax(0, 1fr); } }

/* deliverability */
.guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guard { padding: 22px; display: grid; gap: 10px; align-content: start; }
.guard p { color: var(--muted); font-size: 15px; }
.dns { display: grid; gap: 6px; margin-top: 4px; }
.dns div { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
@media (max-width: 900px) { .guards { grid-template-columns: minmax(0, 1fr); } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--coral-strong); box-shadow: 0 0 0 1px var(--coral-strong), var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 24px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 750 46px/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.later { font-size: 14px; color: var(--muted); }
.later s { text-decoration-thickness: 1.5px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.plan li svg { width: 18px; height: 18px; fill: none; stroke: var(--mint-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.plan .btn { width: 100%; }
.fine { margin-top: 20px; color: var(--muted); font-size: 14px; max-width: 70ch; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* join */
.join { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.form { padding: 26px; display: grid; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field input, .field select { font: 400 16px/1.3 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid #8a83a0; border-radius: var(--r-sm); padding: 11px 12px; min-width: 0; width: 100%; }
@media (prefers-color-scheme: dark) { .field input, .field select { border-color: #71678c; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--coral-strong); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--muted); }
.status { font-size: 15px; font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--mint-text); }
.status.err { color: var(--bad); }
.done { padding: 26px; display: grid; gap: 10px; }
.done h3 { font-size: 22px; }
.promises { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.promises li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.promises svg { width: 20px; height: 20px; fill: none; stroke: var(--coral-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
@media (max-width: 900px) { .join { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font: 650 17px/1.35 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--f-body); color: var(--coral-text); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 68ch; }
.faq dl.abbr { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 20px; color: var(--muted); }
.faq dl.abbr dt { font-weight: 650; color: var(--ink); }
.faq dl.abbr dd { margin: 0; }
@media (max-width: 560px) { .faq dl.abbr { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .faq dl.abbr dd { margin-bottom: 8px; } }

/* footer */
.foot { padding-block: 48px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot .tag { color: var(--plum-muted); font-size: 14px; letter-spacing: .04em; margin-top: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { color: var(--plum-muted); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--plum-ink); }
.foot small { color: var(--plum-muted); font-size: 13.5px; }

/* CRM section */
.band-plum .crm-names span { background: var(--plum-2); border-color: var(--plum-2); color: var(--plum-ink); }
.tm { color: var(--plum-muted); font-size: 12.5px; margin-top: 18px; max-width: 80ch; }
.int-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.int { padding: 22px; display: grid; gap: 10px; align-content: start; }
.int dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 4px 0 0; font-size: 14.5px; }
.int dt { color: var(--muted); }
.int dd { margin: 0; }
.syncs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 760px) { .int-grid { grid-template-columns: minmax(0, 1fr); } .int dl { grid-template-columns: minmax(0, 1fr); } }

/* privacy choices */
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; max-width: 640px; margin: 0 auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift);
  padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.consent p { flex: 1 1 280px; font-size: 14.5px; line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--plum-muted); cursor: pointer; text-decoration: none; }
.linklike:hover { color: var(--plum-ink); }

/* simple pages */
.page { padding-block: 64px 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; letter-spacing: -.03em; font-weight: 750; }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: var(--ink); max-width: 68ch; }
.page p + p { margin-top: 12px; }
.page .updated { color: var(--muted); margin-top: 10px; }

@media (max-width: 640px) { :root { --section: 56px; } .hero { padding-block: 44px 56px; } .section-head { margin-bottom: 28px; } }
