@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #171717;
  --raised: #1f1f1f;
  --raised-2: #282828;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --ink: #f3f0f8;
  --ink-2: #a7a0b5;
  --lav: #b990f5;
  --lav-ink: #120e1a;
  --lav-hover: #c9a8f8;
  --lav-tint: rgb(185 144 245 / 0.1);
  --err: #ff9db0;
  --sans: "Poppins", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --wrap: 1180px;
  --pad: clamp(1.1rem, 0.6rem + 2vw, 2rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like sheet curve, for the full demo view */
  --header-h: 69px; /* header bar plus its border, so a jump lands exactly below it */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: var(--header-h); scrollbar-color: #3a3348 var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--lav); color: var(--lav-ink); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
input, textarea { caret-color: var(--lav); }
a { color: var(--lav); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--lav-hover); }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--lav); color: var(--lav-ink); padding: 0.6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: 1rem; top: 1rem; }
.skip:hover { color: var(--lav-ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--ink-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: translate 0.25s var(--ease); }
.btn:hover svg { translate: 3px 0; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--lav); color: var(--lav-ink); }
.btn-primary:hover { background: var(--lav-hover); color: var(--lav-ink); }
.btn-secondary { background: var(--raised-2); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: rgb(255 255 255 / 0.3); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0.6rem 1.05rem; font-size: 0.9rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(23 23 23 / 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: calc(var(--header-h) - 1px); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; width: 28px; height: 28px; }
/* name and button stay on one line; if space runs out (large text settings), the name is shortened with "…" */
.brand { min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header .btn { flex: none; white-space: nowrap; }
.site-header nav { margin-left: auto; }
.nav { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin-block: 0; }
.nav a { display: block; padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: rgb(255 255 255 / 0.06); }

/* hero */
/* the opening screen: fills the window below the header, content centred */
.hero { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; padding-block: 2rem; text-align: center; overflow-x: clip; }
/* wider than the content column, so it stays on two lines on laptops and desktops */
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); letter-spacing: -0.04em; line-height: 1.04; width: min(96vw, 1340px); margin-inline: calc(50% - min(48vw, 670px)); }
.hero h1 em { font-style: normal; color: var(--lav); white-space: nowrap; }
.hero .lede { margin: 1.6rem auto 0; max-width: 46ch; font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.4rem); color: var(--ink-2); }
.hero .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 1.3rem 0 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 16px; height: 16px; color: var(--lav); }

/* demo switcher */
.showcase { text-align: center; }
.switch { display: inline-flex; gap: 0.25rem; padding: 0.3rem; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); }
.switch button {
  border: 0; background: transparent; color: var(--ink-2); font: 500 0.9rem/1 var(--sans); font-weight: 600;
  padding: 0.65rem 1.1rem; border-radius: 999px; cursor: pointer; transition: color 0.2s, background 0.25s var(--ease);
}
.switch button:hover { color: var(--ink); }
.switch button[aria-selected="true"] { background: var(--ink); color: var(--lav-ink); }
.browser {
  position: relative; margin: 1.2rem auto 0; max-width: 1080px;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--raised);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 30px 60px -24px rgb(0 0 0 / 0.85), 0 70px 120px -40px rgb(0 0 0 / 0.7);
  text-align: left;
}
/* three columns with equal sides, so the address stays centred whatever sits on the right */
/* only the address bar has a border: a line drawn around the preview shows up against the demo sites' colours */
.browser-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem; padding: 0.75rem 1rem; border: 1px solid var(--line-2); border-bottom-color: var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.bar-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 0.5rem; }
.preview { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* the full-screen demo uses its own light colour scheme, so the browser doesn't paint a white backing behind it */
.fullview-page iframe { color-scheme: light; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3545; }
.url { grid-column: 2; width: min(420px, 34vw); padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--bg); color: var(--ink-2); font: 400 0.8rem/1.3 var(--mono); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tag { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav); padding: 0.35rem 0.55rem; border: 1px solid rgb(185 144 245 / 0.4); border-radius: 6px; }
.stage { position: relative; height: clamp(380px, 35vw, 500px); clip-path: inset(0 round 0 0 var(--r-lg) var(--r-lg)); will-change: transform; } /* own layer, so the corners are clipped as one image and no edge of a layer underneath shows through */
/* examples: their own section */
.section.examples { padding-top: clamp(4rem, 2rem + 5vw, 7rem); scroll-margin-top: calc(6.25rem - clamp(4rem, 2rem + 5vw, 7rem)); }
.examples .section-head { margin-bottom: 1.1rem; }
.examples .browser { margin-top: 1rem; }
.expand {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: none; min-height: 32px; padding: 0.35rem 0.75rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font: 600 0.8rem/1 var(--sans); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.expand svg { width: 15px; height: 15px; }
.expand[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .expand:hover { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.3); } }
.expand:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }

/* full demo view: the preview grows into a full-screen site */
.fullview { position: fixed; inset: 0; z-index: 100; }
.fullview[hidden] { display: none; }
.fullview-page { position: absolute; inset: 0; transform-origin: 0 0; background: var(--raised); }
.fullview-page iframe { display: block; width: 100%; height: 100%; border: 0; }
.fullview-ui { position: fixed; top: 14px; right: 14px; display: flex; align-items: center; gap: 0.5rem; }
.fullview-tag, .fullview-close {
  background: rgb(23 23 23 / 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -8px rgb(0 0 0 / 0.6);
}
.fullview-tag { transform-origin: 0 0; border-color: rgb(185 144 245 / 0.6); } /* same size as the bar's tag, so nothing jumps when the animation ends */
.fullview-close {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; padding: 0.35rem 0.75rem; /* matches .expand */
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font: 600 0.8rem/1 var(--sans); cursor: pointer;
}
.fullview-close svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .fullview-close:hover { border-color: rgb(255 255 255 / 0.35); } }
.fullview-close:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
html.fullview-open { overflow: hidden; }
/* "View full site" travels with the Close button and fades into it while the demo opens */
.fv-btn { position: relative; display: inline-flex; }
.fv-ghost {
  position: absolute; top: 0; right: 0; height: 100%; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0 0.75rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink);
  font: 600 0.8rem/1 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none;
}
.fv-ghost svg { width: 15px; height: 15px; }
/* phones: icon-only buttons (they keep their aria-labels), so "View full site" fits the address bar */
@media (max-width: 640px) { .fullview-close span, .expand span, .fv-ghost span { display: none; } .fullview-close, .expand, .fv-ghost { padding: 0; width: 32px; justify-content: center; } }
.demo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s, filter 0.5s var(--ease); filter: blur(6px); }
.demo.is-on { opacity: 1; visibility: visible; filter: blur(0); transition: opacity 0.5s var(--ease), visibility 0s, filter 0.5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .demo, .demo.is-on { transition: none; filter: none; } }

/* the demo previews are the real demo sites, scaled down in app.js (sizePreviews) */

/* sections */
/* a jump to any section lands with its heading 6.25rem (100px) under the header */
.section { padding: clamp(5rem, 3rem + 7vw, 9rem) 0 0; scroll-margin-top: calc(6.25rem - clamp(5rem, 3rem + 7vw, 9rem)); }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.08rem; }
.section-head.center { text-align: center; margin-inline: auto; }

/* one person */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); }
.split .intro { margin-top: 1.2rem; color: var(--ink-2); font-size: 1.08rem; max-width: 44ch; }
.handled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.handled li { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.handled svg { width: 22px; height: 22px; color: var(--lav); }
.handled b { font-weight: 600; display: block; }
.handled small { color: var(--ink-2); font-size: 0.9rem; }
.handled .when { font: 600 0.8rem/1 var(--sans); color: var(--ink-2); border: 1px solid var(--line-2); padding: 0.4rem 0.6rem; border-radius: 999px; white-space: nowrap; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 1.8rem; border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--line); }
.plan.featured { background: var(--raised-2); border-color: rgb(185 144 245 / 0.55); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.plan-top h3 { font-size: 1.25rem; }
.badge { font: 600 0.75rem/1 var(--sans); color: var(--lav-ink); background: var(--lav); padding: 0.4rem 0.65rem; border-radius: 999px; }
.plan .price { margin-top: 1.4rem; display: flex; align-items: baseline; gap: 0.35rem; }
.plan .price b { font: 600 3rem/1 var(--mono); letter-spacing: -0.04em; }
.plan .price span { color: var(--ink-2); font-size: 0.95rem; }
.plan .for { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }
.plan ul { list-style: none; margin: 1.5rem 0 1.8rem; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.75rem; font-size: 0.95rem; }
.plan li { display: flex; gap: 0.65rem; align-items: start; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--lav); margin-top: 0.22rem; }
.plan li.no svg { color: var(--ink-2); } /* not included */
.plan .btn { margin-top: auto; width: 100%; }
/* Hosting-only: one long card under the three plans */
.plan.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 2rem; padding-block: 1.5rem; }
.plan.wide .price { margin-top: 0.8rem; }
.plan.wide .price b { font-size: 2.4rem; }
.plan.wide ul { margin: 0; padding: 0 0 0 2rem; border-top: 0; border-left: 1px solid var(--line); }
.plan.wide .btn { width: auto; margin-top: 0; padding-inline: 1.6rem; }
.fine { margin-top: 1.4rem; text-align: center; color: var(--ink-2); font-size: 0.9rem; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.calc-form { display: grid; gap: 2.2rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 1.15rem/1.3 var(--sans); letter-spacing: -0.015em; padding: 0 0 0.3rem; }
/* the build price, as prominent as the care-plan prices */
.base-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; margin: 0.5rem 0 1.2rem; }
.base-price b { font: 600 2.3rem/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.base-price span { color: var(--ink-2); font-size: 0.95rem; }
.legend-note { display: block; color: var(--ink-2); font-size: 0.92rem; margin-bottom: 1rem; }
.included { list-style: none; margin: 0; padding: 1.2rem 1.4rem; columns: 2 15rem; column-gap: 1.5rem; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); font-size: 0.94rem; }
.included li { display: flex; gap: 0.55rem; align-items: start; break-inside: avoid; margin-bottom: 0.7rem; }
.included li:last-child { margin-bottom: 0; }
.included svg { flex: none; width: 18px; height: 18px; color: var(--lav); margin-top: 0.2rem; }
.opts { display: grid; gap: 0.55rem; }
.opt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.15rem; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.opt:hover { border-color: var(--line-2); }
.opt:has(input:checked) { border-color: var(--lav); background: var(--lav-tint); }
.opt:has(input:focus-visible) { outline: 2px solid var(--lav); outline-offset: 3px; }
.opt input { appearance: none; margin: 0; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #7a7289; display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.opt input[type="radio"] { border-radius: 50%; }
.opt input:checked { background: var(--lav); border-color: var(--lav); }
.opt input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--lav-ink); border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -1px; }
.opt input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--lav-ink); rotate: 0deg; translate: 0 0; }
.opt input:focus-visible { outline: none; }
.opt-text b { display: block; font-weight: 600; line-height: 1.35; }
.opt-text small { display: block; color: var(--ink-2); font-size: 0.88rem; line-height: 1.45; }
.cost { font: 600 0.95rem/1 var(--mono); color: var(--ink); white-space: nowrap; }
.opt:has(input:checked) .cost { color: var(--lav); }
.opt.static { cursor: default; }
.opt.static .spacer { width: 22px; }
.stepper { display: flex; align-items: center; gap: 0.4rem; }
.stepper button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised-2); color: var(--ink); cursor: pointer; }
.stepper button:hover:not(:disabled) { border-color: var(--lav); color: var(--lav); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper svg { width: 16px; height: 16px; }
.stepper output { min-width: 2ch; text-align: center; font: 600 1rem/1 var(--mono); }

.summary { position: sticky; top: 6rem; padding: 1.8rem; border-radius: var(--r-lg); background: var(--raised-2); border: 1px solid var(--line-2); }
.summary h3 { font-size: 1.25rem; }
.summary .draft { display: inline-block; margin-top: 0.5rem; font: 500 0.78rem/1 var(--mono); color: var(--lav); }
.lines { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 0.1rem; min-height: 6rem; }
.lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.94rem; border-bottom: 1px solid var(--line); }
.lines li span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines li.fresh { animation: fresh 0.6s var(--ease); }
@keyframes fresh { from { opacity: 0; translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .lines li.fresh { animation: none; } }
.totals { margin: 1.3rem 0 0; display: grid; gap: 0.6rem; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font: 600 2rem/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.totals .monthly dd { font-size: 1.35rem; color: var(--lav); }
.summary .note { margin: 1.2rem 0; font-size: 0.86rem; color: var(--ink-2); }
.summary .btn { width: 100%; }
.mini-total { display: none; }
.opt:has(input:disabled) { cursor: default; }
.opt input:disabled { cursor: default; }
.custom-box { display: grid; gap: 0.45rem; padding: 1.1rem 1.15rem; border-radius: var(--r); background: var(--raised); border: 1px solid var(--lav); }
.custom-box[hidden] { display: none; }
.custom-box label { font-weight: 600; font-size: 0.92rem; }
.custom-box textarea { width: 100%; font: 400 0.98rem/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0.7rem 0.85rem; resize: vertical; }
.custom-box textarea:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 3px rgb(185 144 245 / 0.25); }
.custom-box textarea::placeholder { color: #8f879e; }
.custom-count { justify-self: end; font-size: 0.78rem; color: var(--ink-2); }
.disclaimer { font-size: 0.86rem; color: var(--ink-2); }
.tbc { margin-top: 0.6rem; font-size: 0.86rem; color: var(--lav); text-align: right; }
.tbc[hidden] { display: none; }

/* about */
.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--line); }
.portrait { display: grid; justify-items: center; gap: 0.5rem; margin: 0; }
.portrait figcaption { font-size: 0.8rem; }
.monogram { width: clamp(84px, 10vw, 128px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--lav); color: var(--lav-ink); font: 700 clamp(2rem, 4vw, 3rem)/1 var(--sans); letter-spacing: -0.04em; }
.about h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.about p { margin-top: 0.9rem; color: var(--ink-2); max-width: 60ch; }
.say { font-family: var(--mono); font-size: 0.88em; color: var(--lav); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; cursor: pointer; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--ink-2); transition: rotate 0.3s var(--ease); }
.faq details[open] summary svg { rotate: 45deg; color: var(--lav); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); max-width: 68ch; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); }
.contact .intro { margin-top: 1rem; color: var(--ink-2); font-size: 1.06rem; max-width: 40ch; }
.direct { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.direct li { display: flex; gap: 0.75rem; align-items: center; }
.direct svg { width: 20px; height: 20px; color: var(--lav); flex: none; }
.ph { font-family: var(--mono); font-size: 0.9em; color: var(--lav); }
form.contact-form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8f879e; }
.field input:hover, .field textarea:hover { border-color: rgb(255 255 255 / 0.24); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 3px rgb(185 144 245 / 0.25); }
.field[data-error] input, .field[data-error] textarea { border-color: var(--err); }
.field .err { color: var(--err); font-size: 0.86rem; }
.consent { font-size: 0.86rem; color: var(--ink-2); }
.form-status { padding: 0.85rem 1rem; border-radius: var(--r-sm); background: var(--lav-tint); border: 1px solid rgb(185 144 245 / 0.4); font-size: 0.92rem; }
.form-status[hidden] { display: none; }
.attach {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem; align-items: center;
  padding: 0.75rem 0.8rem 0.75rem 0.9rem; border-radius: var(--r-sm);
  background: var(--raised-2); border: 1px solid var(--line-2);
  animation: attach-in 0.45s var(--ease);
}
.attach[hidden] { display: none; }
@keyframes attach-in { from { opacity: 0; translate: 0 8px; scale: 0.98; } }
@media (prefers-reduced-motion: reduce) { .attach { animation: none; } }
.attach-icon { width: 36px; height: 36px; padding: 7px; border-radius: 9px; background: var(--lav-tint); color: var(--lav); }
.attach-meta { min-width: 0; display: grid; line-height: 1.35; }
.attach-meta b { font-weight: 600; font-size: 0.94rem; }
.attach-meta small { color: var(--ink-2); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; opacity: 0; transition: opacity 0.2s, background 0.2s, color 0.2s; }
.attach-x svg { width: 16px; height: 16px; }
.attach:hover .attach-x, .attach:focus-within .attach-x { opacity: 1; }
.attach-x:hover { background: rgb(255 255 255 / 0.08); color: var(--ink); }
@media (hover: none) { .attach-x { opacity: 1; } }
.attach-note { font-size: 0.86rem; color: var(--ink-2); }
.attach-note[hidden] { display: none; }

/* footer */
.site-footer { margin-top: clamp(5rem, 8vw, 8rem); border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; font-size: 0.88rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { max-width: 62ch; }
.site-footer ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.legal { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal > p { margin-top: 1rem; color: var(--ink-2); }
.legal .table-scroll { margin-top: 2rem; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--raised); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--ink); }
.legal td { color: var(--ink-2); }
.legal tr:last-child td { border-bottom: 0; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
.prose h3 { margin-top: 1.6rem; font-size: 1.08rem; }
.prose ul { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: 0.35rem; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--lav); }

/* hero entrance: one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease) both; }
  .rise-2 { animation-delay: 0.08s; }
  .rise-3 { animation-delay: 0.16s; }
  .rise-4 { animation: rise-far 1.1s var(--ease) 0.25s both; }
  @keyframes rise { from { opacity: 0; translate: 0 18px; filter: blur(6px); } }
  @keyframes rise-far { from { opacity: 0; translate: 0 70px; } }
}

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .split, .calc, .contact { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan.wide { display: flex; align-items: stretch; gap: 0; }
  .plan.wide ul { margin: 1.5rem 0 1.8rem; padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .plan.wide .btn { width: 100%; }
  .summary { position: relative; top: 0; }
  .mini-total {
    display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
    position: sticky; bottom: 0.8rem; z-index: 5;
    padding: 0.85rem 1.1rem; border-radius: var(--r); background: var(--lav); color: var(--lav-ink);
    text-decoration: none; font-size: 0.86rem; box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.9);
    transition: opacity 0.3s var(--ease), translate 0.35s var(--ease), visibility 0s;
  }
  .mini-total:hover { color: var(--lav-ink); }
  .mini-total b { display: block; font: 600 1.05rem/1.2 var(--mono); }
  .mini-total .go { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
  /* slides down out of view (a little quicker than it comes in); visibility waits for the slide to finish */
  .mini-total.is-hidden {
    opacity: 0; translate: 0 calc(100% + 1rem); visibility: hidden; pointer-events: none;
    transition: opacity 0.2s var(--ease), translate 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  @media (prefers-reduced-motion: reduce) { .mini-total, .mini-total.is-hidden { translate: none; } }
}
@media (max-width: 640px) {
  .brand span { font-size: 0.92rem; }
  .site-header .wrap { gap: 0.75rem; }
  .hero h1 br { display: none; }
  .switch button { padding: 0.6rem 0.8rem; }
  .url { display: none; }
  .handled li { grid-template-columns: auto 1fr; }
  .handled .when { grid-column: 2; justify-self: start; }
  .opt { grid-template-columns: auto 1fr; }
  .opt .cost, .opt .stepper { grid-column: 2; }
  .about { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}
/* small phones (or large text settings): a little less spacing, so the name and button both fit in full */
@media (max-width: 400px) {
  .site-header .wrap { gap: 0.5rem; padding-inline: 0.9rem; }
  .brand { gap: 0.45rem; }
  .site-header .btn { padding-inline: 0.8rem; }
}

/* "Not yet trading" screen (gate.js); remove at launch */
.gate { max-width: min(30rem, calc(100% - 2rem)); padding: clamp(1.5rem, 1rem + 2vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); color: var(--ink); }
.gate::backdrop { background: rgb(10 10 10 / 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.gate h2 { margin: 0 0 0.6rem; font-size: 1.4rem; }
.gate p { margin: 0 0 1.4rem; }
.gate .btn { width: 100%; }
.form-error { background: rgb(255 157 176 / 0.1); border-color: rgb(255 157 176 / 0.5); color: var(--err); }
