/* ==========================================================================
   Orelva Labs — small software for annoying problems
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts (self-hosted)

   Served from this origin rather than Google's CDN so no visitor IP is sent
   to a third party. Instrument Sans and JetBrains Mono are both variable
   fonts, so one file per subset covers every weight the page uses.
   Only latin and latin-ext are shipped; the browser fetches latin-ext only
   if a character in that range is actually rendered.

   Roman only - nothing on the page is italic. If italic is ever needed, add
   the matching ital face rather than letting the browser synthesise it.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #FAFAF8;
  --bg-sunken:     #FCFCFA;
  --surface:       #FFFFFF;
  --surface-dark:  #121211;

  /* Ink */
  --ink:           #171717;
  --ink-body:      #2A2A26;
  --ink-muted:     #55554E;
  --ink-soft:      #5F5F58;
  --ink-dim:       #6B6B63;
  --ink-faint:     #8A8A80;
  --ink-fainter:   #A5A59B;
  --ink-ghost:     #C3C2B8;

  /* Ink on dark */
  --ink-invert:        #FAFAF8;
  --ink-invert-muted:  #B9B8B0;
  --ink-invert-dim:    #9C9C94;
  --ink-invert-faint:  #8E8E86;

  /* Accent */
  --accent:         #4658E8;
  --accent-deep:    #2C3AC9;
  --accent-light:   #A9B0FF;
  --accent-tint:    #F0F1FE;
  --accent-tint-bd: #DFE1FB;

  /* Lines */
  --line:          #E7E6E0;
  --line-soft:     #EAE9E3;
  --line-softer:   #EFEEE8;
  --line-faint:    #F1F0EA;
  --line-fainter:  #F3F2EC;
  --line-rule:     #EDECE6;
  --line-field:    #E2E1DA;
  --line-strong:   #DCDBD4;
  --line-dash:     #D8D7CF;
  --line-hover:    #D5D4CC;
  --line-nav:      #E8E7E1;

  /* Type */
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --r-sm:  8px;
  --r-md:  10px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 18px;
  --r-3xl: 20px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-card:  0 1px 2px rgba(23,23,23,.04), 0 22px 48px -28px rgba(23,23,23,.22);
  --shadow-hero:  0 1px 2px rgba(23,23,23,.04), 0 30px 60px -40px rgba(23,23,23,.28);
  --shadow-panel: 0 1px 2px rgba(23,23,23,.04), 0 26px 54px -38px rgba(23,23,23,.26);
  --shadow-float: 0 12px 30px -22px rgba(23,23,23,.25);
  --shadow-soft:  0 12px 26px -22px rgba(23,23,23,.30);
  --shadow-mid:   0 14px 34px -26px rgba(23,23,23,.30);
  --shadow-lift:  0 18px 34px -28px rgba(23,23,23,.30);
  --shadow-page:  0 18px 40px -30px rgba(23,23,23,.35);

  /* Rhythm */
  --gutter:  clamp(20px, 5vw, 56px);
  --measure: 1240px;
  --header-h: 66px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, li, figure, figcaption, dl, dt, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent); }

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

/* Sticky header clearance for in-page anchors */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { border-top: 1px solid var(--line-rule); }
.section--sunken { background: var(--bg-sunken); }
.section__inner { padding-block: clamp(56px, 8vw, 104px); }
.section__inner--tall { padding-block: clamp(56px, 8vw, 110px); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: translateY(0); color: #fff; }

/* --------------------------------------------------------------------------
   4. Shared type
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow--tight {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-dim);
}
.eyebrow--faint { color: var(--ink-faint); }

.label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.label--dim { color: var(--ink-dim); }
.label--accent { color: var(--accent-deep); }
.arrow { font-family: var(--font-mono); }

.lede {
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.section__title {
  margin-top: 18px;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 600;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   5. Buttons, pills, dots
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 20px;
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-field);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

.btn--lg { font-size: 15.5px; padding: 14px 22px; }
.btn--sm {
  font-size: 14px;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.btn--quiet { font-size: 14.5px; padding: 11px 18px; }
/* Buttons that shift layout on hover stay put inside cards */
.btn--static:hover { transform: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-bd);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  flex: 0 0 auto;
}
.dot--muted { background: var(--ink-ghost); }
.dot--xs { width: 5px; height: 5px; }
.dot--chrome { width: 9px; height: 9px; background: var(--line-field); }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250,250,248,0);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(250,250,248,.86);
  border-bottom-color: var(--line-nav);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}
.brand__name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links { display: none; gap: 30px; align-items: center; }
.nav__links a { font-size: 14.5px; color: var(--ink-soft); }
.nav__links a:hover { color: var(--accent); }

.nav__toggle {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-field);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  transition: border-color .2s ease;
}
.nav__toggle:hover { border-color: var(--ink); }
.nav__burger {
  display: block;
  width: 16px; height: 9px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.nav__mobile {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 14px var(--gutter) 22px;
  display: grid;
  gap: 4px;
}
.nav__mobile a {
  font-size: 19px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-softer);
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile[hidden] { display: none; }

@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

@media (max-width: 859px) {
  .site-header__inner { gap: 16px; }
  .nav { gap: 14px; }
}

@media (max-width: 559px) {
  .nav__cta { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(48px, 9vw, 110px) var(--gutter) clamp(40px, 6vw, 72px);
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(40px, 7.6vw, 86px);
  line-height: .99;
  letter-spacing: -.035em;
  font-weight: 600;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lede {
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(17px, 1.5vw, 20.5px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   8. Product ecosystem (hero scene)
   -------------------------------------------------------------------------- */
.ecosystem {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(60px, 9vw, 120px);
}
.ecosystem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}
@media (min-width: 900px) {
  .ecosystem__grid { grid-template-columns: 2fr 1fr; }
}
.ecosystem__stack {
  min-width: 0;
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}

/* Browser-chrome frame */
.frame {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-softer);
  background: var(--bg-sunken);
}
.frame__name {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9A9A90;
  letter-spacing: .04em;
}
.frame__body {
  padding: clamp(20px, 3vw, 32px);
  container-type: inline-size;
}

.frame__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.frame__title {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.flow {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
  align-items: center;
}
@container (min-width: 560px) {
  .flow { grid-template-columns: 1fr auto 1fr; }
}
.flow__arrow {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow__arrow-glyph {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  transform: rotate(90deg);
}
.flow__arrow-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@container (min-width: 560px) {
  .flow__arrow-glyph { transform: none; }
}
.flow__caption {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-muted);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--bg-sunken);
  padding: 14px;
}
.panel--white { background: var(--surface); padding: 12px; box-shadow: var(--shadow-soft); }
.panel--roomy { padding: 18px; }
.panel--roomier { padding: 20px; }
.panel__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  font-family: var(--font-mono);
  color: var(--ink-fainter);
}

/* Chat bubbles */
.thread { margin-top: 12px; display: grid; gap: 9px; }
.thread--lg { margin-top: 14px; gap: 10px; }

.bubble { display: block; padding: 9px 11px; }
.bubble--in {
  justify-self: start;
  max-width: 92%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 11px 11px 11px 3px;
}
.bubble--out {
  justify-self: end;
  max-width: 88%;
  background: var(--ink);
  border-radius: 11px 11px 3px 11px;
}
.bubble__meta {
  display: block;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
}
.bubble--out .bubble__meta { color: var(--ink-fainter); }
.bubble__text {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-body);
}
.bubble--out .bubble__text { color: #fff; }

/* Larger bubbles used in the demo walkthrough */
.thread--lg .bubble { padding: 10px 13px; }
.thread--lg .bubble--in { max-width: 88%; border-radius: 13px 13px 13px 4px; }
.thread--lg .bubble--out { max-width: 84%; border-radius: 13px 13px 4px 13px; }
.thread--lg .bubble__meta { font-size: 10.5px; }
.thread--lg .bubble__text { margin-top: 4px; font-size: 14.5px; line-height: 1.5; }

/* Mini PDF preview */
.pdf-mini {
  margin-top: 10px;
  border: 1px solid var(--line-softer);
  border-radius: 7px;
  padding: 12px;
  background: var(--surface);
}
.pdf-mini__title { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.pdf-mini__meta {
  margin-top: 4px;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--ink-fainter);
}
.pdf-mini__lines { margin-top: 10px; display: grid; gap: 5px; }
.pdf-mini__lines span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line-rule);
}
.pdf-mini__lines span:nth-child(3) { width: 72%; }
.pdf-mini__lines span:nth-child(4) { background: var(--line-fainter); }
.pdf-mini__lines span:nth-child(5) { background: var(--line-fainter); width: 54%; }
.pdf-mini__page {
  margin-top: 10px;
  text-align: right;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--ink-ghost);
}

/* Lab teaser cards beside the hero */
.teaser {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-float);
  transition: transform .35s var(--ease);
}
.teaser--fading {
  border-color: var(--line-softer);
  opacity: .72;
  filter: blur(.4px);
  box-shadow: none;
}
.teaser--faded {
  border-color: var(--line-faint);
  opacity: .5;
  filter: blur(1.1px);
  box-shadow: none;
}
.teaser__name { margin-top: 14px; font-size: 16.5px; font-weight: 500; }
.teaser--faded .teaser__name { margin-top: 0; }
.teaser__state { margin-top: 6px; font-size: 13.5px; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   9. Tools
   -------------------------------------------------------------------------- */
.tools__title { max-width: 22ch; }
.tools__lede { margin-top: 20px; max-width: 56ch; }

.product {
  margin-top: clamp(34px, 5vw, 60px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}
.product__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .product__grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
}
.product__body { padding: clamp(24px, 3.4vw, 46px); min-width: 0; }
.product__name {
  margin-top: 20px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 600;
}
.product__tagline {
  margin-top: 12px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--accent);
  font-weight: 500;
}
.product__copy {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 48ch;
  text-wrap: pretty;
}
.product__copy--strong { margin-top: 12px; color: var(--ink); }

.spec {
  margin-top: 26px;
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line-softer);
  padding-top: 22px;
}
.spec li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-body);
}
.spec__n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 3px;
  flex: 0 0 auto;
}

.product__actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.product__note { font-size: 13.5px; color: var(--ink-faint); }

.product__aside {
  min-width: 0;
  background: var(--bg-sunken);
  border-top: 1px solid var(--line-softer);
  padding: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
}
@media (min-width: 780px) {
  .product__aside { border-top: 0; border-left: 1px solid var(--line-softer); }
}

/* Generated document: cover page + transcript excerpt */
.doc {
  width: 100%;
  display: grid;
  gap: 14px;
}

.cover { box-shadow: var(--shadow-mid); }

.cover__brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.cover__kind {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cover__title {
  margin-top: 8px;
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.cover__meta {
  margin-top: 20px;
  border-top: 1px solid var(--line-softer);
  padding-top: 16px;
  display: grid;
  gap: 14px;
}
.cover__value {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-body);
}

.excerpt {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--bg-sunken);
  padding: 16px;
}
.excerpt__date {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-softer);
  padding-bottom: 8px;
}
.excerpt__body {
  margin-top: 12px;
  display: grid;
  gap: 11px;
}
.excerpt__note {
  margin-top: 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-fainter);
}

/* --------------------------------------------------------------------------
   10. Lab
   -------------------------------------------------------------------------- */
.lab { margin-top: clamp(28px, 4vw, 48px); }

.lab__feature {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.lab__title {
  margin-top: 16px;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 600;
  letter-spacing: -.022em;
}
.lab__tagline {
  margin-top: 10px;
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
}
.lab__copy {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 50ch;
  text-wrap: pretty;
}

.sketch {
  min-width: 0;
  border: 1px dashed var(--line-dash);
  border-radius: 14px;
  background: var(--bg-sunken);
  padding: clamp(18px, 2.4vw, 26px);
}
.sketch__steps { margin-top: 14px; display: grid; gap: 10px; }
.sketch__steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-body);
}
.sketch__n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); flex: 0 0 auto; }
.sketch__note {
  margin-top: 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-fainter);
}

.lab__grid {
  margin-top: clamp(16px, 2.5vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.lab__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lab__card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-lift);
}
.lab__card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.lab__card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.lab__card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-invert);
}
.lab__card--dark:hover { border-color: var(--ink); box-shadow: none; }
.lab__card--dark p { color: var(--ink-invert-muted); }
.lab__card--dark a {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
}
.lab__card--dark a:hover { color: var(--accent-light); }

/* --------------------------------------------------------------------------
   11. Why
   -------------------------------------------------------------------------- */
.why__title {
  font-size: clamp(26px, 3.9vw, 46px);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 500;
  max-width: 34ch;
  text-wrap: pretty;
}
.why__lede {
  margin-top: 24px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.why__grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr));
  gap: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(28px, 4vw, 44px);
}
.value {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.value h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.value__motto {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--ink-dim);
}
.value p:last-child {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.glyph {
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.glyph--circle { border-radius: 50%; }
.glyph--circle i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }
.glyph--square { border-radius: 6px; }
.glyph--square i { width: 8px; height: 2px; background: var(--accent); display: block; }
.glyph--fill { align-items: flex-end; }
.glyph--fill i { width: 22px; height: 9px; background: var(--accent); display: block; }
.glyph--tint {
  border-radius: 50%;
  background: var(--accent-tint);
  border-color: var(--accent-tint-bd);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   12. Demo walkthrough
   -------------------------------------------------------------------------- */
.demo__title {
  margin-top: 18px;
  font-size: clamp(26px, 3.7vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  max-width: 24ch;
  text-wrap: balance;
}
.demo__lede { margin-top: 20px; max-width: 62ch; }

.benefits {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.benefit {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.benefit h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.benefit p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.demo__heading { margin-top: clamp(40px, 6vw, 72px); }

.steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 12px;
}
.step {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
  transition: border-color .2s ease, background .2s ease;
}
.step:hover { border-color: var(--line-hover); }
.step[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.step__n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-faint);
}
.step__name { font-size: 16px; font-weight: 500; color: var(--ink); }

.stage {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  min-height: 360px;
}
.stage__body { padding: clamp(20px, 3.4vw, 44px); }
.stage__panel[hidden] { display: none; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.split > * { min-width: 0; }

.stage__title {
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 600;
  letter-spacing: -.022em;
}
.stage__copy {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 44ch;
  text-wrap: pretty;
}
.stage__cta { margin-top: 22px; }

/* Step 1 — file chip */
.file {
  margin-top: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--bg-sunken);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
}
.file__icon {
  width: 34px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  flex: 0 0 auto;
}
.file__meta { min-width: 0; }
.file__name { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.file__sub {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
}

/* Step 2 — dropzone + progress */
.dropzone {
  margin-top: 20px;
  border: 1px dashed var(--line-dash);
  border-radius: 14px;
  background: var(--bg-sunken);
  padding: clamp(24px, 3.5vw, 40px);
  text-align: center;
}
.dropzone__icon {
  display: inline-flex;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-bd);
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 17px;
}
.dropzone__title { margin-top: 12px; font-size: 15.5px; font-weight: 500; }
.dropzone__hint { margin-top: 5px; font-size: 13px; color: var(--ink-faint); }

.progress {
  position: relative;
  margin-top: 14px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line-softer);
  overflow: hidden;
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: var(--r-pill);
  width: 96%;
  animation: orelva-bar 1.9s cubic-bezier(.3,.8,.3,1) forwards;
}
.progress__sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0));
  animation: orelva-sweep 1.2s linear infinite;
}

.readout { margin-top: 18px; display: grid; gap: 10px; }
.readout li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-body);
}
.readout span { font-family: var(--font-mono); color: var(--ink-dim); }

/* Step 3 — customise */
/* Step 4 — result */
.preview__pages {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preview__page {
  width: 26px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--surface);
  display: block;
  flex: 0 0 auto;
}
.preview__page--locked {
  background: var(--line-fainter);
  border-style: dashed;
  border-color: var(--line-strong);
  opacity: .7;
}
.preview__count {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-body);
}

.result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.result__title {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -.025em;
}
.result__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(18px, 2.5vw, 32px);
  align-items: start;
}
.result__grid > * { min-width: 0; }

.page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-page);
  padding: clamp(20px, 2.6vw, 32px);
}
.page__brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-fainter);
}
.page__title {
  margin-top: 14px;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.page__date {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.page__body {
  margin-top: 20px;
  border-top: 1px solid var(--line-softer);
  padding-top: 18px;
  display: grid;
  gap: 14px;
}
.page__from {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-dim);
}
.page__line {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-body);
  text-wrap: pretty;
}
.page__section {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-softer);
  padding-bottom: 8px;
}
.page__event {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}
.page__ref {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.page__foot {
  margin-top: 22px;
  border-top: 1px solid var(--line-softer);
  padding-top: 12px;
  text-align: right;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-fainter);
}

.notes { display: grid; gap: 14px; }
.note {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  background: var(--bg-sunken);
}
.note p + p {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-body);
  text-wrap: pretty;
}
.note--accent {
  border-color: var(--accent-tint-bd);
  background: var(--accent-tint);
}
.note--accent p + p { color: var(--ink); }

.result__foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.result__disclaimer {
  font-size: 12.5px;
  color: var(--ink-fainter);
  font-family: var(--font-mono);
}

.pitch {
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-bd);
  border-radius: var(--r-2xl);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
.pitch > * { min-width: 0; }
.pitch__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -.022em;
}
.pitch__copy {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.pitch__price {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pitch__amount {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}
.pitch__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
@media (min-width: 760px) {
  .pitch { grid-template-columns: 1fr auto; gap: 32px; }
  .pitch__price { text-align: right; }
}

.trust {
  margin-top: clamp(16px, 2.5vw, 22px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.trust > * { min-width: 0; }
.trust__mark {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  flex: 0 0 auto;
  position: relative;
  margin-top: 2px;
}
.trust__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 2px;
  background: var(--accent);
}
.trust__title {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  letter-spacing: -.018em;
}
.trust__copy {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.fineprint {
  margin-top: clamp(20px, 3vw, 28px);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-fainter);
  max-width: 68ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   13. How we work
   -------------------------------------------------------------------------- */
.how__title {
  margin-top: 18px;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.03;
  letter-spacing: -.032em;
  font-weight: 600;
}
.how__title em { font-style: normal; color: var(--accent); }

.how__grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.phase {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  position: relative;
}
.phase--now { border-top-color: var(--ink); }
.phase__pip {
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-ghost);
  display: block;
}
.phase--now .phase__pip { background: var(--accent); }
.phase__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-dim);
}
.phase p + p {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-body);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   14. Manifesto (dark)
   -------------------------------------------------------------------------- */
.manifesto {
  background: var(--surface-dark);
  color: var(--ink-invert);
}
.manifesto__inner {
  padding-block: clamp(64px, 10vw, 140px);
  position: relative;
}
.manifesto__title {
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -.034em;
  font-weight: 500;
  max-width: 26ch;
  text-wrap: balance;
}
.manifesto__title span {
  display: block;
  color: var(--ink-invert-faint);
  margin-top: .35em;
}
.manifesto__tag {
  margin-top: clamp(30px, 4vw, 52px);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-invert-dim);
}
.manifesto__mark {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 4vw, 44px);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-invert-dim);
}
.manifesto__mark-icon {
  display: block;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   15. About
   -------------------------------------------------------------------------- */
.about__inner {
  padding-block: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.about__inner > * { min-width: 0; }
.about__title {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  max-width: 20ch;
  text-wrap: balance;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__body p {
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.62;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.about__pull {
  margin-top: 6px;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 600;
  color: var(--accent) !important;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   15b. Contact page
   -------------------------------------------------------------------------- */
.contact-hero { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); }
.contact-hero__title {
  margin-top: 16px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.034em;
  font-weight: 600;
}
.contact-hero__lede {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  align-items: stretch;
}
.contact__card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.contact__card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-lift);
}
.contact__card-title {
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.contact__card-copy {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.contact__card-note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-body);
  border-left: 2px solid var(--accent-tint-bd);
  padding-left: 14px;
  text-wrap: pretty;
}
/* Pins both CTAs to the same baseline regardless of copy length. */
.contact__card-cta {
  margin-top: auto;
  align-self: flex-start;
}

.contact__privacy {
  margin-top: clamp(18px, 2.4vw, 26px);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 62ch;
}

.guide { max-width: 640px; }
.guide__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -.022em;
}
.guide__lede {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.guide__list {
  margin-top: 22px;
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.guide__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-body);
  text-wrap: pretty;
}
.guide__n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 3px;
  flex: 0 0 auto;
}
.guide__close {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Current page in the primary nav */
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__mobile a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   15c. Legal pages (Impressum / Privacy / Terms)
   -------------------------------------------------------------------------- */
.legal-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); }
.legal-hero__title {
  margin-top: 16px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.032em;
  font-weight: 600;
}
.legal-hero__lede {
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.legal-hero__updated {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Comfortable reading column for legal prose. */
.legal { max-width: 720px; }

.legal h2 {
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line-soft);
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 600;
}
.legal > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.legal h3 {
  margin-top: 26px;
  font-size: 16.5px;
  letter-spacing: -.012em;
  font-weight: 600;
}

.legal p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.legal p strong { color: var(--ink); font-weight: 600; }
.legal em { font-style: normal; color: var(--ink-body); }

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal a:hover { color: var(--accent-deep); }

.legal ul {
  margin-top: 14px;
  display: grid;
  gap: 9px;
  padding-left: 0;
}
.legal ul li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-tint-bd);
}

/* Label / value rows for provider and controller details. */
.legal__facts {
  margin-top: 18px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.legal__fact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-softer);
}
.legal__fact:first-child { border-top: 0; }
.legal__fact dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.legal__fact dd {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-body);
}
@media (min-width: 620px) {
  .legal__fact {
    grid-template-columns: 200px 1fr;
    gap: 18px;
    align-items: baseline;
  }
}

/* A value the configuration has not supplied yet. Never shows the key name. */
[data-legal-missing] {
  color: var(--ink-fainter);
  font-style: italic;
}

/* Notices: incomplete required details, and sections awaiting a decision. */
.legal__pending,
.legal__note {
  margin-top: 20px;
  border: 1px solid var(--accent-tint-bd);
  border-radius: var(--r-lg);
  background: var(--accent-tint);
  padding: 16px 18px;
}
.legal__pending[hidden] { display: none; }
.legal__pending { margin-top: 0; margin-bottom: 30px; }
.legal__pending p,
.legal__note p {
  margin-top: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-body);
}
.legal__note--open {
  border-color: var(--line-strong);
  border-style: dashed;
  background: var(--bg-sunken);
}
.legal__note--open p { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   16. Closing product hub
   -------------------------------------------------------------------------- */
.close__inner { padding-block: clamp(52px, 7vw, 96px); }
.close__box { max-width: 680px; }

.close__title {
  margin-top: 16px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  text-wrap: balance;
}
.close__copy {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 54ch;
  text-wrap: pretty;
}
.close__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.close__aside { margin-top: 22px; }
.close__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-dim);
}
.close__link:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-rule);
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) 34px;
}
.site-footer__lockup {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
}
.site-footer__mark {
  width: clamp(44px, 8vw, 104px);
  height: auto;
  flex: 0 0 auto;
  margin-bottom: clamp(4px, 1vw, 14px);
}
.site-footer__wordmark {
  font-size: clamp(38px, 9.5vw, 120px);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 600;
  color: var(--ink);
}
.site-footer__tagline {
  margin-top: 20px;
  font-size: 16px;
  color: var(--ink-muted);
}
.site-footer__cols {
  margin-top: clamp(34px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 28px;
  border-top: 1px solid var(--line-soft);
  padding-top: 32px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.site-footer__col h2 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.site-footer__col a { font-size: 15px; color: var(--ink-body); }
.site-footer__legal {
  margin-top: 36px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__legal p:first-child { font-size: 13px; color: var(--ink-faint); }
.site-footer__legal p:last-child { font-size: 13px; color: var(--ink-fainter); }

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */
@keyframes orelva-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}
@keyframes orelva-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes orelva-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
@keyframes orelva-bar {
  0%  { width: 4%; }
  90% { width: 92%; }
  100%{ width: 96%; }
}

.pulse { animation: orelva-pulse 2.4s ease-in-out infinite; }

/* Scroll reveal — only applied once JS is confirmed present */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Pointer parallax targets */
[data-tilt] { transition: transform .35s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  [data-tilt] { transform: none !important; transition: none; }
  .pulse,
  .progress__fill,
  .progress__sweep { animation: none; }
  .progress__fill { width: 92%; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .nav__mobile, .skip-link, .steps { display: none !important; }
  .stage__panel[hidden] { display: block !important; }
  body { background: #fff; }
}
