/* Reset, typography and shared components. Page-specific layout lives in home.css / start.css. */

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--ivory);
  background: var(--forest-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
.icon-defs { position: absolute; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--signal); color: var(--forest-900); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--signal);
  color: var(--forest-900);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Display type */
.display {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.93;
}
.display i,
.display em { font-style: italic; font-weight: 400; }
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: var(--fs-h2);
  line-height: 1;
}
.h2 .indent { display: block; padding-left: 1.25em; }
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-h3);
  line-height: 1.15;
}
.lede { font-size: var(--fs-long); line-height: 1.55; max-width: 62ch; }
.label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.num {
  font-family: var(--serif);
  font-style: italic;
  opacity: 0.72;
  font-feature-settings: "lnum" 1;
}

/* Buttons */
.btn {
  --h: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: var(--h);
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--signal { background: var(--signal); color: var(--forest-900); }
.btn--signal:hover { background: #f07a43; }
.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--ivory);
  padding: 0 28px 0 7px;
}
.btn--outline:hover { border-color: var(--ivory); background: rgba(255, 255, 255, 0.06); }
.btn--outline.no-disc { padding: 0 28px; }
.btn__disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex: none;
}
.btn__disc svg { width: 15px; height: 15px; margin-left: 2px; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn--ghost-dark { border: 1px solid var(--hair-light); color: var(--forest); }
.btn--ghost-dark:hover { border-color: var(--forest); }
.btn--forest { background: var(--forest); color: var(--ivory); }
.btn--forest:hover { background: var(--forest-700); }

/* Tag pill (reference: rounded rect, 1px line) */
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-tag);
  font-size: var(--fs-label);
  font-weight: 500;
  white-space: nowrap;
}
.tag--light { border-color: rgba(27, 61, 44, 0.35); color: var(--forest); }

/* Frosted card (only stat, plan, bubble labels) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

/* Layout sheet hairlines + crosshair */
.cross {
  position: absolute;
  width: 13px;
  height: 13px;
  translate: -50% -50%;
  pointer-events: none;
}
/* Positions are authored here so the CSP can reject inline style attributes. */
.cross--left { left: 0; }
.cross--right { left: 100%; }
.cross--gutter-left { left: var(--gutter); }
.cross--gutter-right { left: calc(100% - var(--gutter)); }
.cross--top { top: 0; }
.cross--bottom { top: 100%; }
.cross::before,
.cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
}
.cross::before { left: 6px; top: 0; width: 1px; height: 13px; }
.cross::after { top: 6px; left: 0; height: 1px; width: 13px; }

/* Quattro mark as inline glyph */
.mark-glyph {
  display: inline-block;
  width: 0.74em;
  height: 0.74em;
  vertical-align: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* headings focused by in-page links: no ring (they are not controls) */
[tabindex="-1"]:focus { outline: none; }

/* Shared water bubbles and ordered reveals. Keep the original choreography. */
.deep__bubbles i:nth-child(1) { --x:4%; --s:9px; --d:17s; --t:-2s; }
.deep__bubbles i:nth-child(2) { --x:13%; --s:6px; --d:13s; --t:-9s; }
.deep__bubbles i:nth-child(3) { --x:22%; --s:12px; --d:21s; --t:-14s; }
.deep__bubbles i:nth-child(4) { --x:31%; --s:5px; --d:11s; --t:-5s; }
.deep__bubbles i:nth-child(5) { --x:44%; --s:8px; --d:16s; --t:-11s; }
.deep__bubbles i:nth-child(6) { --x:52%; --s:14px; --d:24s; --t:-3s; }
.deep__bubbles i:nth-child(7) { --x:61%; --s:6px; --d:12s; --t:-7s; }
.deep__bubbles i:nth-child(8) { --x:70%; --s:10px; --d:19s; --t:-16s; }
.deep__bubbles i:nth-child(9) { --x:79%; --s:7px; --d:14s; --t:-1s; }
.deep__bubbles i:nth-child(10) { --x:87%; --s:11px; --d:20s; --t:-12s; }
.deep__bubbles i:nth-child(11) { --x:94%; --s:5px; --d:10s; --t:-6s; }
.deep__bubbles i:nth-child(12) { --x:38%; --s:4px; --d:9s; --t:-4s; }
.steps .step:nth-child(1), .nsteps .nstep:nth-child(1) { --i: 0; }
.steps .step:nth-child(2), .nsteps .nstep:nth-child(2) { --i: 1; }
.steps .step:nth-child(3), .nsteps .nstep:nth-child(3) { --i: 2; }
.steps .step:nth-child(4), .nsteps .nstep:nth-child(4) { --i: 3; }
