/* ============================================================
   VoltaMail site design system
   ------------------------------------------------------------
   Owned by this repo. Replaces the vendored VoltaServices v2
   layer (foundation.css / components.css) for the public site.

   Shape rule (one system, applied everywhere):
     - interactive controls (buttons, nav, chips)  -> full pill
     - cards and media                             -> double bezel,
       28px outer shell / 22px inner core (concentric)
     - text fields                                 -> 14px
   Colour rule: one accent (signal green), used for state,
   focus and small emphasis only. Never a page-wide wash.
   Theme: follows prefers-color-scheme for the whole page.
   ============================================================ */

/* ---------- 1. Fonts (self-hosted, OFL) ---------- */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-2xs: 0.6875rem;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-h5: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --t-h4: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --t-h3: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);
  --t-h2: clamp(2.125rem, 1.55rem + 2.4vw, 3.5rem);
  --t-h1: clamp(2.625rem, 1.55rem + 4.1vw, 4.875rem);
  --t-page: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  --t-display: clamp(4.5rem, 2.8rem + 6.5vw, 8rem);

  --space-section: clamp(5rem, 3.5rem + 7vw, 9.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --max: 1320px;
  --max-narrow: 760px;
  --nav-space: 5.5rem;

  --r-outer: 1.75rem;
  --bezel: 0.375rem;
  --r-inner: calc(var(--r-outer) - var(--bezel));
  --r-field: 0.875rem;
  --r-pill: 999px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 240ms;
  --dur: 560ms;
  --dur-slow: 950ms;

  /* z-index scale: the only layers on the site */
  --z-menu: 20;
  --z-nav: 30;
  --z-grain: 40;
  --z-skip: 50;

  /* Light theme */
  color-scheme: light;
  --bg: #F1F2F0;
  --bg-2: #E9EBE7;
  --surface: #FBFBFA;
  --surface-2: #F3F4F2;
  --shell: rgb(15 19 17 / 0.035);
  --shell-line: rgb(15 19 17 / 0.07);
  --line: rgb(15 19 17 / 0.09);
  --line-strong: rgb(15 19 17 / 0.17);
  --ink: #0F1311;
  --ink-2: #39403C;
  --ink-3: #59615C;
  --ink-4: #68706B;

  --accent: #15803D;
  --accent-text: #136C34;
  --accent-soft: rgb(21 128 61 / 0.09);
  --accent-line: rgb(21 128 61 / 0.3);
  --danger: #B42318;
  --danger-soft: rgb(180 35 24 / 0.07);
  --danger-line: rgb(180 35 24 / 0.32);

  --btn: #0F1311;
  --btn-hover: #272D2A;
  --btn-text: #F5F6F4;
  --btn-chip: rgb(245 246 244 / 0.14);

  --hi: inset 0 1px 0 rgb(255 255 255 / 0.85);
  --shadow: 0 1px 2px rgb(15 19 17 / 0.04),
            0 14px 32px -16px rgb(15 19 17 / 0.14),
            0 36px 72px -40px rgb(15 19 17 / 0.16);
  --shadow-lift: 0 2px 4px rgb(15 19 17 / 0.05),
                 0 24px 48px -20px rgb(15 19 17 / 0.2),
                 0 56px 96px -48px rgb(15 19 17 / 0.22);
  --glass: rgb(251 251 250 / 0.72);
  --glass-heavy: rgb(241 242 240 / 0.88);
  --scrim: linear-gradient(180deg, rgb(8 10 9 / 0) 28%, rgb(8 10 9 / 0.55) 62%, rgb(8 10 9 / 0.86) 100%);
  --on-image: #F3F5F4;
  --on-image-2: rgb(243 245 244 / 0.8);
  --ring: rgb(21 128 61 / 0.5);
  --grain-opacity: 0.035;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0A0C0B;
    --bg-2: #0E1110;
    --surface: #131715;
    --surface-2: #181D1A;
    --shell: rgb(236 240 237 / 0.03);
    --shell-line: rgb(236 240 237 / 0.07);
    --line: rgb(236 240 237 / 0.085);
    --line-strong: rgb(236 240 237 / 0.17);
    --ink: #EDF0EE;
    --ink-2: #BEC5C1;
    --ink-3: #959D98;
    --ink-4: #828A85;

    --accent: #22C55E;
    --accent-text: #4ADE80;
    --accent-soft: rgb(34 197 94 / 0.1);
    --accent-line: rgb(34 197 94 / 0.34);
    --danger: #F97066;
    --danger-soft: rgb(249 112 102 / 0.09);
    --danger-line: rgb(249 112 102 / 0.36);

    --btn: #EDF0EE;
    --btn-hover: #F8FAF9;
    --btn-text: #0A0C0B;
    --btn-chip: rgb(10 12 11 / 0.08);

    --hi: inset 0 1px 0 rgb(255 255 255 / 0.05);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4),
              0 18px 40px -20px rgb(0 0 0 / 0.75);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.45),
                   0 28px 56px -22px rgb(0 0 0 / 0.85);
    --glass: rgb(19 23 21 / 0.68);
    --glass-heavy: rgb(10 12 11 / 0.86);
    --ring: rgb(34 197 94 / 0.55);
    --grain-opacity: 0.05;
  }
}

/* ---------- 3. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

::selection { background: var(--accent-soft); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 550;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: none; }

/* Film grain: fixed, non-interactive, never on a scrolling element */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: calc(var(--max-narrow) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { padding-bottom: var(--space-section); }
.section { padding-block: var(--space-section); }
.section + .section { padding-top: 0; }
main > .section:last-child { padding-bottom: 0; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-head h2 { font-size: var(--t-h2); }
.section-head p {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-3);
}

/* Inner-page header (every page except home) */
.page-head {
  padding-top: calc(var(--nav-space) + clamp(2.5rem, 1.5rem + 5vw, 6rem));
  padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.page-head h1 { font-size: var(--t-page); max-width: 13em; }
.page-head .lede { margin-top: 1.5rem; }

/* ---------- 5. Type helpers ---------- */

.lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 54ch;
}

.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-pill);
  font: 500 var(--t-2xs)/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
}

.label-mono {
  font: 500 var(--t-2xs)/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---------- 6. Floating island nav ---------- */

.site-header {
  position: fixed;
  inset: 1rem 0 auto;
  z-index: var(--z-nav);
  padding-inline: var(--gutter);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 62rem;
  height: 3.5rem;
  margin-inline: auto;
  padding: 0 0.4375rem 0 1.375rem;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line), var(--hi), 0 10px 32px -18px rgb(15 19 17 / 0.28);
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-inline: auto;
}

.nav-link,
.nav-signin {
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-link:hover,
.nav-signin:hover { color: var(--ink); background: var(--shell); }
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-actions { display: flex; align-items: center; gap: 0.25rem; }

.nav-toggle {
  position: relative;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.125rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Full-screen menu (small screens) */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: none;
  flex-direction: column;
  padding: calc(var(--nav-space) + 2.5rem) var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--glass-heavy);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease), visibility 0s;
}
.menu-links { list-style: none; display: grid; gap: 0.25rem; }
.menu-link,
.menu-actions > * {
  opacity: 0;
  transform: translate3d(0, 2.5rem, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(60ms + var(--i, 0) * 55ms);
}
.menu.is-open .menu-link,
.menu.is-open .menu-actions > * { opacity: 1; transform: none; }
.menu-links li:nth-child(2) .menu-link { --i: 1; }
.menu-links li:nth-child(3) .menu-link { --i: 2; }
.menu-links li:nth-child(4) .menu-link { --i: 3; }
.menu-links li:nth-child(5) .menu-link { --i: 4; }
.menu-actions > :nth-child(1) { --i: 5; }
.menu-actions > :nth-child(2) { --i: 6; }
.menu-link {
  display: block;
  padding: 0.25rem 0;
  font-size: clamp(2.25rem, 1.6rem + 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}
.menu-link[aria-current="page"] { color: var(--accent-text); }
.menu-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 2.5rem;
}

@media (max-width: 1023px) {
  .nav-links,
  .nav-actions { display: none; }
  .nav-toggle { display: inline-block; }
  .nav { padding-left: 1.25rem; }
  .menu { display: flex; }
}

body.menu-open { overflow: hidden; }

/* ---------- 7. Buttons (button-in-button) ---------- */

.btn {
  --btn-h: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-height: var(--btn-h);
  padding: 0.375rem 0.375rem 0.375rem 1.375rem;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-ic {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur-fast) var(--ease);
}
.btn-ic .icon { width: 1rem; height: 1rem; }
.btn:hover .btn-ic { transform: translate(2px, -1px) scale(1.06); }

.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
  box-shadow: 0 1px 2px rgb(15 19 17 / 0.12), 0 10px 24px -12px rgb(15 19 17 / 0.4);
}
.btn-primary:hover { background: var(--btn-hover); }
.btn-primary .btn-ic { background: var(--btn-chip); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--hi);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-secondary .btn-ic { background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); }

.btn-sm { --btn-h: 2.625rem; gap: 0.625rem; padding-left: 1.125rem; font-size: var(--t-sm); }
.btn-sm .btn-ic { width: 1.875rem; height: 1.875rem; }
.btn-lg { --btn-h: 3.5rem; padding-left: 1.625rem; font-size: 1rem; }
.btn-lg .btn-ic { width: 2.75rem; height: 2.75rem; }
.btn-block { width: 100%; justify-content: space-between; }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.link-arrow .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur) var(--ease-spring);
}
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

.text-btn {
  padding: 0.25rem 0.625rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-xs);
  font-weight: 550;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.text-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- 8. Double-bezel containers ---------- */

.bezel {
  padding: var(--bezel);
  border-radius: var(--r-outer);
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--shell-line);
}

.bezel-core {
  position: relative;
  height: 100%;
  border-radius: var(--r-inner);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--hi), var(--shadow);
  overflow: hidden;
}

.bezel-media {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--r-inner);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.media-wide { aspect-ratio: 21 / 9; }
.media-wide .bezel-media { aspect-ratio: auto; }
@media (max-width: 767px) { .media-wide { aspect-ratio: 4 / 3; } }

/* ---------- 9. Chips, notes, spec readouts ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-pill);
  font: 500 var(--t-xs)/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--hi);
  white-space: nowrap;
}
.chip .icon { width: 0.875rem; height: 0.875rem; color: var(--accent-text); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.625rem;
  border-radius: var(--r-pill);
  font: 500 var(--t-2xs)/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-3);
}
.note .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; color: var(--ink-3); }

.spec { margin: 0; }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem 0;
}
.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec dt {
  flex-shrink: 0;
  font: 500 var(--t-2xs)/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spec dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  font: 500 var(--t-sm)/1.45 var(--font-mono);
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

/* Copy-to-clipboard control used in spec readouts */
.copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.copy:hover { color: var(--ink); background: var(--surface-2); }
.copy:active { transform: scale(0.94); }
.copy .icon { width: 0.9375rem; height: 0.9375rem; transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease-spring); }
.copy .icon-done { position: absolute; opacity: 0; transform: scale(0.6); color: var(--accent-text); }
.copy.is-copied .icon-idle { opacity: 0; transform: scale(0.6); }
.copy.is-copied .icon-done { opacity: 1; transform: none; }

/* ---------- 10. Forms ---------- */

.field { display: grid; gap: 0.5rem; }
.field + .field { margin-top: 1.5rem; }

.label {
  font-size: var(--t-sm);
  font-weight: 550;
  color: var(--ink);
}
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.input,
.textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: var(--r-field);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--hi);
  outline: none;
  transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.textarea { min-height: 9.5rem; line-height: 1.55; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: var(--ink-4); opacity: 1; }
.input:focus,
.textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.input.has-error,
.textarea.has-error { box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 4px var(--danger-soft); }

.help { font-size: var(--t-xs); line-height: 1.5; color: var(--ink-3); }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.5;
  color: var(--danger);
}
.field-error .icon { width: 0.9375rem; height: 0.9375rem; margin-top: 0.0625rem; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9375rem 1.125rem;
  border-radius: var(--r-field);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.alert .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.0625rem; }
.alert-danger {
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger-line);
}

/* Address field: input + fixed @domain suffix in one control */
.addr {
  display: flex;
  align-items: stretch;
  border-radius: var(--r-field);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--hi);
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.addr:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.addr.has-error { box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 4px var(--danger-soft); }
.addr .input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}
.addr .input:focus { box-shadow: none; }
.addr-suffix {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font: 500 var(--t-sm)/1 var(--font-mono);
  color: var(--ink-3);
  background: var(--surface-2);
  box-shadow: inset 1px 0 0 var(--line);
  white-space: nowrap;
}

/* Live availability hint (states set by signup.js) */
.hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.25rem;
  font: 500 var(--t-xs)/1.4 var(--font-mono);
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease);
}
.hint .icon { display: none; width: 0.9375rem; height: 0.9375rem; }
.hint[data-state="idle"] [data-ic="search"],
.hint[data-state="checking"] [data-ic="search"],
.hint[data-state="available"] [data-ic="ok"],
.hint[data-state="taken"] [data-ic="no"] { display: block; }
.hint[data-state="available"] { color: var(--accent-text); }
.hint[data-state="taken"] { color: var(--danger); }

/* ---------- 11. Motion: entrance + scroll reveal ---------- */

.d-1 { --d: 1; }
.d-2 { --d: 2; }
.d-3 { --d: 3; }
.d-4 { --d: 4; }
.d-5 { --d: 5; }

@media (prefers-reduced-motion: no-preference) {
  .enter {
    animation: enter var(--dur-slow) var(--ease) both;
    animation-delay: calc(80ms + var(--d, 0) * 90ms);
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 2rem, 0);
    filter: blur(6px);
    transition: opacity var(--dur-slow) var(--ease),
                transform var(--dur-slow) var(--ease),
                filter var(--dur-slow) var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
}

@keyframes enter {
  from { opacity: 0; transform: translate3d(0, 1.5rem, 0); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: no-preference) {
  .hint[data-state="checking"] [data-ic="search"] { animation: pulse 1s var(--ease) infinite; }
}

/* ---------- 12. Footer ---------- */

.footer {
  padding-block: clamp(3.5rem, 3rem + 2vw, 5rem) 2rem;
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer-brand .wordmark { font-size: 1.375rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 26ch; font-size: var(--t-sm); color: var(--ink-3); }

.footer-title { margin-bottom: 1rem; }
.footer-list { list-style: none; display: grid; gap: 0.625rem; }
.footer-list a {
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.footer-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  padding-top: 1.5rem;
  box-shadow: inset 0 1px 0 var(--line);
  font: 400 var(--t-xs)/1.6 var(--font-mono);
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   PAGES
   ============================================================ */

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(100dvh, 60rem);
  padding-top: calc(var(--nav-space) + 1.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 30% auto -20%;
  z-index: -1;
  height: 70%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.hero-title {
  font-size: var(--t-h1);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 9.5em;
}
.hero-title .muted { color: var(--ink-3); }

.hero-lede {
  margin-top: 1.75rem;
  max-width: 34ch;
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-3);
}

.claim { margin-top: 2.5rem; max-width: 37rem; }
.claim-label { display: block; margin-bottom: 0.625rem; font-size: var(--t-sm); font-weight: 550; }
.claim-field {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--hi), var(--shadow);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.claim-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-soft), var(--shadow); }
.claim-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3rem;
  padding: 0 0 0 1.125rem;
  border: 0;
  background: transparent;
  font: 500 1rem/1 var(--font-mono);
  text-align: right;
  outline: none;
}
.claim-input::placeholder { color: var(--ink-4); opacity: 1; }
.claim-suffix {
  padding-right: 0.75rem;
  font: 500 1rem/1 var(--font-mono);
  color: var(--ink-3);
  white-space: nowrap;
}
.claim .hint { margin-top: 0.875rem; padding-left: 1.125rem; }

.hero-alt { margin-top: 1.75rem; }

.hero-media { justify-self: end; width: 100%; }
.hero-frame { aspect-ratio: 4 / 5; max-height: calc(100dvh - 9.5rem); margin-left: auto; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: stretch; }
  .hero-frame { aspect-ratio: 4 / 3; max-height: none; }
  .hero-frame .bezel-media { object-position: 50% 40%; }
}

@media (max-width: 600px) {
  .claim-field { flex-wrap: wrap; border-radius: 1.5rem; padding: 0.375rem; }
  .claim-input { flex-basis: 0; padding-left: 1rem; }
  .claim-field .btn { flex: 1 0 100%; justify-content: space-between; }
  .claim .hint { padding-left: 0.25rem; }
}

/* ---------- Home: bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(16rem, auto);
  gap: 1rem;
}
.cell-privacy { grid-column: span 7; grid-row: span 2; }
.cell-infra { grid-column: span 5; }
.cell-clients { grid-column: span 5; }
.cell-autodiscover { grid-column: span 5; }
.cell-tls { grid-column: span 7; }

.cell .bezel-core {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cell:hover .bezel-core { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--hi), var(--shadow-lift); }
.cell h3 { font-size: var(--t-h5); letter-spacing: -0.03em; line-height: 1.15; }
.cell p { margin-top: 0.75rem; max-width: 46ch; color: var(--ink-3); line-height: 1.55; }
.cell-ic {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.cell-ic .icon { width: 1.25rem; height: 1.25rem; }
.cell .chips,
.cell .readout { margin-top: 1.25rem; }

/* Image cells: photo fills the core, copy sits on a scrim */
.cell-photo .bezel-core { justify-content: flex-end; background: #0B0D0C; }
.cell-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.cell-photo:hover img { transform: scale(1.035); }
.cell-photo .bezel-core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
  pointer-events: none;
}
.cell-photo .cell-copy { position: relative; z-index: 1; }
.cell-photo h3 { color: var(--on-image); }
.cell-photo p { color: var(--on-image-2); }
.cell-photo .cell-ic {
  position: relative;
  z-index: 1;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  color: var(--on-image);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cell-privacy .bezel-core { min-height: 34rem; }

.cell-clients .bezel-core { background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface); }
.cell-tls .bezel-core {
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
}

.readout {
  display: grid;
  gap: 0.375rem;
  padding: 1rem 1.125rem;
  border-radius: var(--r-field);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 var(--t-xs)/1.5 var(--font-mono);
}
.readout-row { display: flex; justify-content: space-between; gap: 1rem; }
.readout-row span:first-child { color: var(--ink-3); }
.readout-row span:last-child { color: var(--ink); text-align: right; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento > .cell { grid-column: auto; grid-row: auto; }
  .cell-privacy .bezel-core { min-height: 26rem; }
  .cell-infra .bezel-core { min-height: 22rem; }
}

/* ---------- Home: steps timeline ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  list-style: none;
  padding-top: 2.5rem;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}
.steps::after {
  height: 2px;
  top: calc(0.5rem - 0.5px);
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(1);
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px var(--bg);
}
.step h3 { font-size: var(--t-h4); letter-spacing: -0.04em; }
.step p { margin-top: 0.875rem; max-width: 34ch; color: var(--ink-3); line-height: 1.55; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 55%;
    }
  }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 0; padding-left: 2.25rem; }
  .steps::before,
  .steps::after { top: 0.5rem; bottom: 0.5rem; left: 0.5rem; right: auto; width: 1px; height: auto; }
  .steps::after { width: 2px; left: calc(0.5rem - 0.5px); transform-origin: center top; }
  .step::before { top: 0.375rem; left: -2.25rem; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* ---------- Home + pricing: plan card ---------- */

.plan .bezel-core {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.plan-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}
.plan-main .badge { align-self: flex-start; }
.plan-specs {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem) clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: var(--surface-2);
  box-shadow: inset 1px 0 0 var(--line);
}
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
}
.plan-amount {
  font-size: var(--t-display);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.plan-per { font: 500 var(--t-sm)/1.3 var(--font-mono); color: var(--ink-3); }
.plan-main p { color: var(--ink-3); max-width: 44ch; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: auto; padding-top: 0.75rem; }

@media (max-width: 900px) {
  .plan .bezel-core { grid-template-columns: 1fr; }
  .plan-specs { box-shadow: inset 0 1px 0 var(--line); }
}

/* ---------- Features ---------- */

.clusters { display: grid; gap: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.cluster {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.cluster-head { position: sticky; top: 7rem; }
.cluster-head h2 { font-size: var(--t-h3); }
.cluster-head p { margin-top: 1rem; max-width: 30ch; color: var(--ink-3); }
.cluster-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.feature .bezel-core {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.feature h3 { font-size: var(--t-h5); letter-spacing: -0.03em; line-height: 1.2; }
.feature p { margin-top: 0.625rem; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 900px) {
  .cluster { grid-template-columns: 1fr; }
  .cluster-head { position: static; }
}
@media (max-width: 640px) {
  .cluster-items { grid-template-columns: 1fr; }
}

.conn-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.conn {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.conn th {
  padding: 1.125rem 1.5rem;
  font: 500 var(--t-2xs)/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  background: var(--surface-2);
  box-shadow: inset 0 -1px 0 var(--line);
}
.conn td {
  padding: 1.25rem 1.5rem;
  color: var(--ink-2);
  vertical-align: middle;
}
.conn tbody tr + tr td { box-shadow: inset 0 1px 0 var(--line); }
.conn td:first-child { font-weight: 550; color: var(--ink); }
.conn .mono-cell { font-family: var(--font-mono); color: var(--ink); }
.conn .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.conn th.num { text-align: right; }
.conn-note { margin-top: 1.25rem; max-width: 62ch; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
  padding-top: calc(var(--nav-space) + clamp(2rem, 1rem + 4vw, 5rem));
}
.pricing h1 { font-size: var(--t-page); max-width: 12ch; }
.pricing .lede { margin-top: 1.5rem; }
.pricing .note { margin-top: 2rem; max-width: 52ch; }

.plan-solo .bezel-core { padding: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
.plan-solo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan-solo-head h2 { font-size: var(--t-h5); letter-spacing: -0.03em; }
.plan-solo .plan-price { margin: 1.5rem 0 1.25rem; }
.plan-solo .spec { margin-bottom: 1.75rem; }

@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.about-aside { position: sticky; top: 7rem; }
.about-aside .bezel-core { padding: 0.5rem 1.5rem; }

.prose { max-width: 64ch; }
.prose p { font-size: var(--t-md); line-height: 1.7; color: var(--ink-2); }
.prose p + p { margin-top: 1.25rem; }
.prose .lead-p { font-size: var(--t-lg); line-height: 1.55; color: var(--ink); }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.principle .bezel-core {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}
.principle h3 { font-size: var(--t-h5); letter-spacing: -0.03em; line-height: 1.2; }
.principle p { margin-top: 0.5rem; color: var(--ink-3); line-height: 1.55; }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; order: 2; }
}
@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
  padding-top: calc(var(--nav-space) + clamp(2rem, 1rem + 4vw, 5rem));
}
.contact h1 { font-size: var(--t-page); max-width: 10ch; }
.contact-copy .lede { margin-top: 1.5rem; }
.contact-copy > p:not(.lede) { margin-top: 1rem; max-width: 52ch; color: var(--ink-3); }
.contact-copy .spec { margin-top: 2rem; }
.contact-copy .note { margin-top: 1.5rem; max-width: 50ch; }
.contact-core { padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); }
.contact-form .btn { margin-top: 2rem; }
.contact-form .alert { margin-bottom: 1.5rem; }
/* Honeypot: off-screen for people, still in the form for bots. */
.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent .label-mono { margin-top: 1.5rem; }
.sent h2 { font-size: var(--t-h4); margin-top: 0.625rem; }
.sent p { margin-top: 1rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Signup ---------- */

.signup {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
  padding-top: calc(var(--nav-space) + clamp(2rem, 1rem + 4vw, 4.5rem));
}
.signup h1 { font-size: var(--t-page); max-width: 12ch; }
.signup-col .lede { margin-top: 1.25rem; }
.signup-form { margin-top: 2.5rem; max-width: 34rem; }
.signup-col .alert { margin-top: 2rem; max-width: 34rem; }
.signup-submit { margin-top: 2.25rem; }
.submit-note { margin-top: 0.875rem; padding-left: 0.25rem; font: 400 var(--t-xs)/1.5 var(--font-mono); color: var(--ink-3); }
.signin-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  max-width: 34rem;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-radius: var(--r-field);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.plan-row-name { font-weight: 600; }
.plan-row-meta { margin-top: 0.125rem; font: 400 var(--t-xs)/1.4 var(--font-mono); color: var(--ink-3); }
.plan-row-check {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
}
.plan-row-check .icon { width: 1rem; height: 1rem; }

.signup-aside { position: sticky; top: 7rem; }
.preview-media { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: 50% 45%; }
.preview-body { padding: 1.5rem 1.75rem 0.75rem; }
.preview-address {
  margin-top: 0.625rem;
  font: 500 clamp(1.125rem, 1rem + 0.8vw, 1.5rem)/1.25 var(--font-mono);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.preview-address .muted { color: var(--ink-3); }
.preview-body .spec { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .signup { grid-template-columns: 1fr; }
  .signup-aside { position: static; }
}

/* ---------- Status pages (check email, notices, success) ---------- */

.status {
  padding-top: calc(var(--nav-space) + clamp(2.5rem, 1.5rem + 5vw, 6rem));
}
.status-core { padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); }
.status-ic {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--shell);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.status-ic .icon { width: 1.625rem; height: 1.625rem; }
.status-ic.is-ok { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent-text); }
.status-ic.is-warn { background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger-line); color: var(--danger); }
.status h1 { margin-top: 1.75rem; font-size: var(--t-h3); }
.status-label { margin-top: 1.75rem; }
.status-label + h1 { margin-top: 0.625rem; }
.status .lede { margin-top: 1rem; }
.status-body { margin-top: 1.75rem; display: grid; gap: 1rem; max-width: 58ch; color: var(--ink-3); }
.status-body a { color: var(--ink); text-underline-offset: 3px; }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.recovery { font-family: var(--font-mono); font-size: 0.92em; color: var(--ink); overflow-wrap: anywhere; }

.success-spec { margin-top: 2rem; }
.success-spec .bezel-core { padding: 0.5rem 1.75rem; }
.success-spec .spec dd { gap: 0.75rem; }
@media (max-width: 560px) {
  .success-spec .bezel-core { padding: 0.25rem 1.25rem; }
  .success-spec .spec-row { flex-direction: column; align-items: stretch; gap: 0.375rem; }
  .success-spec .spec dd { justify-content: space-between; text-align: left; overflow-wrap: normal; word-break: break-word; }
}
.setup { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.setup h2 { font-size: var(--t-h4); max-width: 24ch; }
.setup p { margin-top: 1rem; max-width: 62ch; color: var(--ink-3); }

/* ---------- Legal ---------- */

.legal-head { padding-top: calc(var(--nav-space) + clamp(2.5rem, 1.5rem + 4vw, 5rem)); padding-bottom: 2rem; }
.legal-head h1 { font-size: var(--t-page); }
.legal-updated { margin-top: 1rem; font: 400 var(--t-sm)/1.5 var(--font-mono); color: var(--ink-3); }
.legal-note { margin-bottom: 2.5rem; }
.legal-note .bezel-core { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.125rem 1.25rem; font-size: var(--t-sm); color: var(--ink-3); }
.legal-note .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; }
.legal-prose { max-width: 68ch; }
.legal-prose h2 { margin: 3rem 0 0.875rem; font-size: var(--t-h5); letter-spacing: -0.03em; }
.legal-prose h3 { margin: 2rem 0 0.625rem; font-size: var(--t-md); letter-spacing: -0.02em; }
.legal-prose p,
.legal-prose li { color: var(--ink-2); line-height: 1.7; }
.legal-prose p + p { margin-top: 1rem; }
.legal-prose ul { margin-top: 0.75rem; padding-left: 1.25rem; }
.legal-prose li + li { margin-top: 0.5rem; }
.legal-prose a { color: var(--ink); text-underline-offset: 3px; }
.legal-prose .legal-close {
  margin-top: 3rem;
  padding-top: 1.5rem;
  box-shadow: inset 0 1px 0 var(--line);
  font: 400 var(--t-xs)/1.6 var(--font-mono);
  color: var(--ink-3);
}
.legal-note .bezel-core p { font-size: var(--t-sm); line-height: 1.6; color: var(--ink-3); }

/* ---------- Reduced transparency fallback ---------- */

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
