/* ==========================================================================
   WMS360 — design system
   Single stylesheet. Order: reset -> tokens -> type -> layout -> components
   -> mocks -> motion -> accessibility.

   Motion rules in use (see README):
   - Only transform/opacity/filter/clip-path are animated.
   - Transitions, not keyframes, for anything interruptible.
   - Custom easing curves; never ease-in on UI.
   - Feedback lives on :active (pointer-down), not on release.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: none; padding: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

:target { scroll-margin-top: 6.5rem; }

/* --------------------------------------------------------------------------
   2. Tokens
   Light only.
   -------------------------------------------------------------------------- */

:root {
  /* Surface + ink */
  --bg:            #faf9f7;   /* warm neutral ground */
  --bg-sunken:     #f2f0ec;
  --surface:       #ffffff;
  --surface-2:     #f7f5f2;
  --ink:           #14171a;   /* near-black, not black */
  --ink-2:         #454b52;
  --ink-3:         #6b7280;
  --line:          #e4e0da;
  --line-strong:   #cfcac2;

  /* Brand — logo blue. One primary, used for CTAs and data highlights; logo green as the accent. */
  --brand-050:     #eef3fc;
  --brand-100:     #d6e2f7;
  --brand-300:     #2db681;   /* logo green — glows, markers */
  --brand-500:     #1f58c1;   /* logo blue */
  --brand-600:     #1a4aa8;   /* primary action */
  --brand-700:     #163f8c;   /* logo navy */
  --brand-900:     #0c2352;
  --brand-contrast:#ffffff;

  /* Semantic */
  --ok:            #1c7a4f;
  --warn:          #9a6114;
  --danger:        #a52f28;

  /* Translucent chrome */
  --chrome-bg:     rgba(250, 249, 247, 0.72);
  --chrome-edge:   rgba(255, 255, 255, 0.6);
  --scrim:         rgba(14, 18, 20, 0.44);

  /* Elevation — bigger surfaces read as thicker */
  --shadow-sm:  0 1px 2px rgba(14, 18, 20, 0.05), 0 1px 1px rgba(14, 18, 20, 0.04);
  --shadow-md:  0 4px 12px rgba(14, 18, 20, 0.06), 0 1px 3px rgba(14, 18, 20, 0.05);
  --shadow-lg:  0 18px 40px -12px rgba(14, 18, 20, 0.16), 0 4px 12px rgba(14, 18, 20, 0.06);
  --shadow-xl:  0 40px 80px -24px rgba(14, 18, 20, 0.24), 0 8px 20px rgba(14, 18, 20, 0.08);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  /* Rhythm — em/rem throughout so layout scales with the user's text size */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --page: 78rem;

  /* Easing — the built-in curves are too weak to read as intentional */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Durations */
  --t-press: 160ms;
  --t-hover: 200ms;
  --t-pop:   180ms;
  --t-panel: 260ms;


  color-scheme: light;
}


/* --------------------------------------------------------------------------
   3. Typography
   Tracking is size-specific: negative as type grows, ~0 at body, positive on
   small caps. A single letter-spacing value would be wrong somewhere.
   -------------------------------------------------------------------------- */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
}

h1, h2, h3, h4 { font-weight: 640; color: var(--ink); text-wrap: balance; }

.display {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  font-weight: 660;
}

h1, .h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.25rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
}

h2, .h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.13;
  letter-spacing: -0.022em;
}

h3, .h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.014em;
}

h4, .h4 {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.008em;
  font-weight: 640;
}

p { letter-spacing: 0; text-wrap: pretty; }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 660;
  letter-spacing: 0.09em;     /* positive tracking — small text needs air */
  text-transform: uppercase;
  color: var(--brand-600);
}

.small { font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.micro { font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0.005em; color: var(--ink-3); }

.muted { color: var(--ink-2); }
.measure { max-width: var(--measure); }

strong, b { font-weight: 640; color: var(--ink); }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
               'Liberation Mono', monospace;
  font-size: 0.875em;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: 54rem; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section-sunken { background: var(--bg-sunken); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-head > * + * { margin-top: 0.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split.wide-left  { grid-template-columns: 1.15fr 0.85fr; }
}

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-lg > * + * { margin-top: 1.75rem; }

.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.row-tight { gap: 0.5rem; }

.divider { height: 1px; background: var(--line); border: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   Press feedback is instant and lives on :active — waiting for release
   reads as a dead control.
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: var(--brand-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.004em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--t-press) var(--ease-out),
              background-color var(--t-hover) ease,
              border-color var(--t-hover) ease,
              box-shadow var(--t-hover) ease;
  will-change: transform;
}

.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--brand-500); }
}

.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.875rem; }

.btn-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover { background: var(--surface-2); border-color: var(--ink-3); }
}

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); padding-inline: 0.75rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
}

.btn-block { width: 100%; }

/* Text link with an arrow that leans in the direction it takes you */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-600);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--t-hover) var(--ease-out), color var(--t-hover) ease;
}
.link .arrow { transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--brand-500); }
  .link:hover .arrow { transform: translateX(2px); }
}

/* --------------------------------------------------------------------------
   6. Surfaces + cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-hover) var(--ease-out),
              box-shadow var(--t-hover) ease,
              border-color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .card-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
  }
}

.card-head { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.65rem; }

.icon-badge {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--brand-050);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.icon-badge svg { width: 1.125rem; height: 1.125rem; }

.tick-list { display: grid; gap: 0.55rem; }
/* Marker is absolutely positioned rather than a grid track: inline elements
   inside the item (a <strong> lead-in) would otherwise each become their own
   grid item and land in the marker column. */
.tick-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--r-full);
  background: var(--brand-500);
}
.tick-list strong { color: var(--ink); font-weight: 600; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}
.chip-brand { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-700); }

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.pill-note .dot {
  width: 0.5rem; height: 0.5rem; border-radius: var(--r-full);
  background: var(--brand-500); flex: none; margin-left: 0.25rem;
}

/* Placeholder blocks — visible on purpose, so nothing ships unfilled */

/* --------------------------------------------------------------------------
   7. Header — a translucent layer content scrolls under, not an opaque strip
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--brand-600);
  color: var(--brand-contrast);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform var(--t-pop) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chrome-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

/* Scroll edge effect — the separation appears only once content is actually
   underneath the chrome, instead of a permanent hairline. */
.header[data-scrolled='true'] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 680; letter-spacing: -0.02em; font-size: 1.25rem; }
.brand .mark { width: 2.6rem; height: 2.6rem; flex: none; }  /* fits the 4rem header */
.footer .brand { font-size: 1.4rem; }
.footer .brand .mark { width: 3.25rem; height: 3.25rem; }

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: color var(--t-hover) ease, background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
}
.nav a[aria-current='page'] { color: var(--ink); font-weight: 620; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
@media (min-width: 62rem) {
  .nav { display: block; }
  .header-actions { margin-left: 0.5rem; }
}

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: transform var(--t-press) var(--ease-out),
              background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
}
.icon-btn svg { width: 1.15rem; height: 1.15rem; }

.nav-open-btn { display: grid; }
@media (min-width: 62rem) { .nav-open-btn { display: none; } .header-cta-mobile { display: none; } }
@media (max-width: 61.99rem) { .header-cta-desktop { display: none; } }

/* --------------------------------------------------------------------------
   8. Mobile nav drawer
   Draggable, velocity-aware, interruptible. Transform is written directly by
   JS during the drag; CSS only owns the non-dragging states.
   -------------------------------------------------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-panel) var(--ease-out);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.scrim[data-open='true'] { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 86vh;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  transform: translateY(100%);           /* percentage — independent of height */
  visibility: hidden;
  transition: transform var(--t-panel) var(--ease-drawer),
              visibility 0s linear var(--t-panel);
}
.drawer[data-open='true'] {
  transform: translateY(0);
  visibility: visible;
  transition: transform 320ms var(--ease-drawer), visibility 0s;
}
/* While the finger is down, JS owns the transform — no transition to fight. */
.drawer[data-dragging='true'] { transition: none; }

.drawer-grabber {
  width: 2.25rem;
  height: 0.3rem;
  border-radius: var(--r-full);
  background: var(--line-strong);
  margin: 0.6rem auto 0.9rem;
}
.drawer-handle { touch-action: none; cursor: grab; }
.drawer-handle:active { cursor: grabbing; }

.drawer nav ul { display: grid; gap: 0.15rem; }
.drawer nav a {
  display: block;
  padding: 0.8rem 0.75rem;
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  font-weight: 560;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.drawer nav a:active { transform: scale(0.985); }
.drawer nav a[aria-current='page'] { color: var(--brand-600); }
.drawer-footer { margin-top: 1rem; display: grid; gap: 0.6rem; }

body[data-scroll-locked='true'] { overflow: hidden; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto;
  height: 60rem;
  background:
    radial-gradient(48rem 28rem at 22% 12%, color-mix(in srgb, var(--brand-500) 13%, transparent), transparent 70%),
    radial-gradient(36rem 24rem at 82% 4%, color-mix(in srgb, var(--brand-300) 12%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }

.hero h1 { margin-top: 1rem; }
.hero .lede { margin-top: 1.1rem; max-width: 34rem; }
.hero .row { margin-top: 1.75rem; }
.hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */

.stat-band {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
}
.stat {
  background: var(--surface);
  padding: 1.35rem 1.25rem;
}
.stat .num {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 660;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--ink);
}
.stat .label { margin-top: 0.35rem; font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; }

/* --------------------------------------------------------------------------
   10b. Namemark — what "WMS360" actually stands for
   Placed where the claim is about to be evidenced, so the name reads as a
   description rather than as branding trivia.
   -------------------------------------------------------------------------- */

.namemark {
  display: grid;
  gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem) clamp(1.35rem, 1rem + 1.6vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(28rem 14rem at 0% 0%, color-mix(in srgb, var(--brand-500) 8%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 52rem) {
  .namemark { grid-template-columns: auto 1fr; }
}

.namemark-word {
  font-size: clamp(2.5rem, 1.9rem + 2.8vw, 3.75rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.035em;   /* large type wants negative tracking */
  white-space: nowrap;
}
.namemark-word .nm-wms { color: var(--ink); }
.namemark-word .nm-360 { color: var(--brand-600); }

/* A hairline rule separating mark from meaning, only once they sit side by side */
@media (min-width: 52rem) {
  .namemark-defs { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
}

.namemark-defs { display: grid; gap: 0.9rem; margin: 0; }
.namemark-defs > div {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.25rem 1rem;
  align-items: baseline;
}
.namemark-defs dt {
  font-size: 0.8125rem;
  font-weight: 680;
  letter-spacing: 0.08em;      /* small text wants positive tracking */
  text-transform: uppercase;
  color: var(--brand-600);
}
.namemark-defs dd {
  margin: 0;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  color: var(--ink);
}
.namemark-defs dd .gloss { display: block; margin-top: 0.15rem; font-size: 0.875rem; color: var(--ink-2); }

@media (max-width: 32rem) {
  .namemark-defs > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* --------------------------------------------------------------------------
   11. Steps ("how it works")
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--r-full);
  background: var(--brand-600);
  color: var(--brand-contrast);
  font-size: 0.8125rem;
  font-weight: 660;
  margin-bottom: 0.85rem;
}
/* Connector: the line points at where the flow is going */
@media (min-width: 66rem) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.25rem;
    right: -1rem;
    width: 1rem;
    height: 1px;
    background: linear-gradient(to right, var(--line-strong), transparent);
  }
}
.step h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.9375rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   12. Product mocks — drawn, never photographed
   -------------------------------------------------------------------------- */

.mock-stage { position: relative; display: grid; place-items: center; }

.phone {
  width: min(17rem, 74vw);
  aspect-ratio: 9 / 19;
  border-radius: 2.25rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, var(--line-strong), var(--line));
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 1.85rem;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0.95rem 1rem;
  gap: 0.7rem;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0.45rem; left: 50%;
  transform: translateX(-50%);
  width: 4.5rem; height: 1.1rem;
  border-radius: var(--r-full);
  background: var(--ink);
  opacity: 0.85;
  z-index: 3;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; }

.face-ring {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0.25rem auto 0;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: var(--brand-050);
  border: 2px solid var(--brand-300);
  position: relative;
}
.face-ring::after {
  content: '';
  position: absolute;
  inset: -0.55rem;
  border-radius: var(--r-full);
  border: 1.5px solid color-mix(in srgb, var(--brand-500) 35%, transparent);
}
.face-ring svg { width: 3.5rem; height: 3.5rem; color: var(--brand-600); }

.verify-row {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.verify-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; color: var(--ink-2); }
.verify-item svg { width: 0.9rem; height: 0.9rem; color: var(--ok); flex: none; }
.verify-item .val { margin-left: auto; color: var(--ink); font-weight: 600; }

.punch-btn {
  margin-top: auto;
  padding: 0.85rem;
  border-radius: var(--r-full);
  background: var(--brand-600);
  color: var(--brand-contrast);
  text-align: center;
  font-weight: 640;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-md);
}

.dash {
  width: 100%;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dash-bar .dot { width: 0.5rem; height: 0.5rem; border-radius: var(--r-full); background: var(--line-strong); }
.dash-bar .title { margin-left: 0.5rem; font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0.01em; }
.dash-body { display: grid; gap: 0.75rem; padding: 0.9rem; }
@media (min-width: 34rem) { .dash-body { grid-template-columns: 1.35fr 1fr; } }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; grid-column: 1 / -1; }
.kpi {
  padding: 0.6rem 0.65rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.kpi .k { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }
.kpi .v { font-size: 1.1rem; font-weight: 660; letter-spacing: -0.02em; margin-top: 0.15rem; }
.kpi .v small { font-size: 0.7rem; font-weight: 550; color: var(--ok); letter-spacing: 0; margin-left: 0.25rem; }

.map-panel {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-sunken);
  min-height: 9rem;
}
.approvals { display: grid; gap: 0.4rem; align-content: start; }
.approval {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.75rem;
}
.approval .who { font-weight: 600; color: var(--ink); }
.approval .what { color: var(--ink-3); }
.approval .badge {
  margin-left: auto; flex: none;
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-full);
  font-size: 0.65rem; font-weight: 640;
  background: var(--brand-050); color: var(--brand-700);
  border: 1px solid var(--brand-100);
}

/* Floating callout over a mock */
.mock-float {
  position: absolute;
  z-index: 3;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
  font-weight: 560;
  display: flex; align-items: center; gap: 0.45rem;
}
.mock-float svg { width: 0.9rem; height: 0.9rem; color: var(--brand-600); flex: none; }

/* --------------------------------------------------------------------------
   13. Feature sections + sticky side nav
   -------------------------------------------------------------------------- */

.doc-layout { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 68rem) { .doc-layout { grid-template-columns: 15rem 1fr; align-items: start; } }

.side-nav { display: none; }
@media (min-width: 68rem) {
  .side-nav { display: block; position: sticky; top: 5.5rem; }
}
.side-nav ul {
  display: grid;
  gap: 0.1rem;
  border-left: 1px solid var(--line);
  /* The legal pages have 27 and 46 sections — the rail has to scroll on its
     own rather than running off the bottom of a sticky viewport. */
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.side-nav a {
  display: block;
  padding: 0.4rem 0.85rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  color: var(--ink-3);
  transition: color var(--t-hover) ease, border-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { color: var(--ink); } }
.side-nav a[data-active='true'] { color: var(--brand-600); border-left-color: var(--brand-600); font-weight: 600; }

.feature-block { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); border-top: 1px solid var(--line); }
.feature-block:first-of-type { border-top: 0; padding-top: 0; }
.feature-block > .promise { font-size: 1.0625rem; color: var(--ink-2); max-width: 52ch; margin-top: 0.5rem; }
.feature-block .body { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-top: 1.75rem; }
@media (min-width: 56rem) { .feature-block .body { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

/* Legal pages — long-form prose rhythm. Denser than a marketing section, and
   numbered sections read as a continuous document rather than as cards. */
.legal .feature-block { padding-block: 1.75rem; }
.legal .feature-block:first-of-type { padding-top: 0; }
.legal p { color: var(--ink-2); font-size: 0.9375rem; }
.legal p + p,
.legal p + ul,
.legal ul + p,
.legal p + .grid,
.legal h3 + p,
.legal h3 + ul { margin-top: 0.85rem; }
.legal h2 + p, .legal h2 + ul { margin-top: 0.85rem; }
.legal h3.h4 { margin-top: 1.4rem; color: var(--ink); }
.legal .tick-list li { font-size: 0.9375rem; }
.legal strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   14. Tables, code
   -------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table-scroll table { min-width: 34rem; }
th, td { text-align: left; padding: 0.8rem 1rem; font-size: 0.9375rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 620; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 600; }

.code {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.code pre { overflow-x: auto; padding: 1rem; margin: 0; }
.code code { font-size: 0.8125rem; line-height: 1.7; color: var(--ink-2); white-space: pre; }
.code .t-key { color: var(--brand-600); }
.code .t-str { color: var(--ok); }
.code .t-com { color: var(--ink-3); font-style: italic; }


/* --------------------------------------------------------------------------
   15. CTA band + footer
   -------------------------------------------------------------------------- */

.cta-band {
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  background:
    radial-gradient(30rem 18rem at 15% 0%, color-mix(in srgb, var(--brand-300) 22%, transparent), transparent 70%),
    var(--brand-900);
  color: #f3f6fd;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--brand-500) 30%, transparent);
}
.cta-band h2 { color: #ffffff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: color-mix(in srgb, #ffffff 76%, transparent); max-width: 46ch; margin: 0.85rem auto 0; }
.cta-band .row { justify-content: center; margin-top: 1.75rem; }
.cta-band .btn-secondary {
  --btn-fg: #ffffff;
  border-color: color-mix(in srgb, #ffffff 28%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .cta-band .btn-secondary:hover {
    background: color-mix(in srgb, #ffffff 10%, transparent);
    border-color: color-mix(in srgb, #ffffff 45%, transparent);
  }
}

.footer { border-top: 1px solid var(--line); background: var(--bg-sunken); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 0.85rem; font-weight: 640; }
.footer ul { display: grid; gap: 0.5rem; }
.footer a { font-size: 0.9rem; color: var(--ink-2); transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--ink); } }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   16. Motion — scroll reveal
   Transitions (interruptible), not keyframes. Decorative only: content is
   fully visible without JS, and the reveal is disabled for reduced motion.
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js .reveal[data-shown='true'] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Accessibility + user preferences
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion: keep opacity cues that aid comprehension, drop travel. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .drawer { transition: opacity 200ms ease; }
  .btn:active, .icon-btn:active, .drawer nav a:active { transform: none; }
}

/* Reduced transparency: frost the glass into a solid. */
@media (prefers-reduced-transparency: reduce) {
  .header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--line);
  }
  .scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* More contrast: near-solid surfaces with defined borders. */
@media (prefers-contrast: more) {
  :root { --ink-2: #2b3136; --ink-3: #3d4449; --line: #b9b3aa; --line-strong: #8d867c; }
  .header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card, .chip, .step, .stat { border-width: 1.5px; }
  .btn-secondary { border-width: 1.5px; }
}

@media print {
  .header, .footer, .scrim, .drawer, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
