/* MailVault - marketvision.ch
   Type: Geist / Geist Mono, self-hosted. No third-party requests anywhere on this site. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/geist-400-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: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/geist-400-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: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/geist-500-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: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/geist-500-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: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/geist-600-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: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/geist-600-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: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/geist-700-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: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/geist-700-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: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/geist-mono-400-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: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/geist-mono-400-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: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/geist-mono-500-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: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/geist-mono-500-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;
}
/* ---------------------------------------------------------------------------
   MailVault - design tokens
   Radius system: 999px for status pills, 10px for controls, 16px for surfaces.
   Accent: one colour, teal, used on every interactive and emphatic element.
   --------------------------------------------------------------------------- */

:root {
  --ink:            #0d1a1d;
  --ink-2:          #35494d;
  --ink-3:          #566c70;
  --ink-4:          #62777b;

  --paper:          #ffffff;
  --paper-2:        #f5f8f8;
  --paper-3:        #eef3f4;

  --line:           #dde6e7;
  --line-strong:    #c4d2d4;

  --accent:         #0d6a76;
  --accent-hover:   #0a525c;
  --accent-ink:     #ffffff;
  --accent-soft:    #e3f1f2;
  --accent-soft-2:  #cfe6e8;
  --accent-line:    #a9d1d5;

  --ok:             #1f7a4d;
  --ok-soft:        #e2f3ea;

  --shadow-sm:  0 1px 2px rgba(13, 42, 47, .06), 0 1px 3px rgba(13, 42, 47, .05);
  --shadow-md:  0 2px 4px rgba(13, 42, 47, .04), 0 12px 28px rgba(13, 42, 47, .08);
  --shadow-lg:  0 4px 8px rgba(13, 42, 47, .04), 0 28px 64px rgba(13, 42, 47, .12);

  --r-pill: 999px;
  --r-ctl:  10px;
  --r-surf: 16px;

  --page:  1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:            #eaf2f2;
    --ink-2:          #b6c8ca;
    --ink-3:          #8ba1a4;
    --ink-4:          #74898c;

    --paper:          #0c1416;
    --paper-2:        #111c1f;
    --paper-3:        #162427;

    --line:           #22383c;
    --line-strong:    #2f4a4f;

    --accent:         #4fbecb;
    --accent-hover:   #7ad2dc;
    --accent-ink:     #06282d;
    --accent-soft:    #122b2f;
    --accent-soft-2:  #17383d;
    --accent-line:    #2c565c;

    --ok:             #56c98d;
    --ok-soft:        #122b21;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .45);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 28px 64px rgba(0, 0, 0, .55);
  }
}

/* --------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11' 1;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; }

code, kbd, pre, .mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: 'zero' 1;
}

::selection { background: var(--accent-soft-2); color: var(--ink); }

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

/* --------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tinted { background: var(--paper-2); }
.section--edge { border-top: 1px solid var(--line); }

.lede {
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 60ch;
}

.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.h-sec {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  max-width: 22ch;
}

.h-sec + .lede,
.h-sec + p { margin-top: 1.1rem; }

.h-sub {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  letter-spacing: -0.015em;
}

.muted { color: var(--ink-2); }
.dim   { color: var(--ink-3); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  white-space: nowrap;
  padding: .8rem 1.35rem;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              transform .12s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: .5rem .9rem; font-size: .9375rem; }

.btn__icon { width: 1.05em; height: 1.05em; flex: none; }

/* --------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* --------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.masthead[data-scrolled='true'] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

/* Same hairline, driven by the scroll position itself rather than by an observer, so it
   does not depend on script running at all. */
@supports (animation-timeline: scroll()) {
  @keyframes masthead-edge {
    from { border-bottom-color: transparent; }
    to   { border-bottom-color: var(--line); }
  }
  .masthead {
    animation: masthead-edge linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 72px;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .masthead { background: var(--paper); }
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  flex: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: url('assets/mailvault-icon-256.png') center / cover no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  text-decoration: none;
  font-size: .9375rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .16s var(--ease);
}
.nav a:not(.btn):hover { color: var(--accent); }


.burger { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    gap: .45rem;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctl);
    padding: .45rem .7rem;
    font: inherit;
    font-size: .9375rem;
    color: var(--ink);
    cursor: pointer;
  }
  .masthead[data-open='true'] .nav {
    display: flex;
    position: absolute;
    inset-inline: 0;
    top: 68px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .masthead[data-open='true'] .nav a:not(.btn) {
    width: 100%;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .masthead[data-open='true'] .nav .btn { margin-top: 1rem; width: 100%; }
}

/* --------------------------------------------------------------- reveal */

/* Visible first. The animation below is an enhancement and can only ever add motion,
   never remove content. `.is-in` remains as an escape hatch for anything that wants to
   mark an element settled. */
.reveal { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
    .reveal:not(.is-in) {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .btn, .card, a { transition: none !important; }
}
/* ---------------------------------------------------------------------------
   MailVault - section layouts
   Each section uses a distinct layout family; none repeats on the page.
   --------------------------------------------------------------------------- */

/* ------------------------------------------------------------- 1. hero */

.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto 40%;
  height: 90%;
  background:
    radial-gradient(52% 60% at 60% 40%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.05rem, 3.5vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__shot {
  border-radius: var(--r-surf);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--paper-2);
}
.hero__shot img { width: 100%; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero::before { inset: -20% -20% auto 0; }
}

/* ------------------------------------------- 2. regime band (under hero) */

.regimes {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 2.25rem;
}
.regimes__head {
  font-size: .875rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}
.regimes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-surf);
  overflow: hidden;
}
.regime {
  background: var(--paper);
  padding: 1.4rem 1.35rem;
}
.regime__code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .55rem;
}
.regime__name { font-weight: 600; letter-spacing: -0.02em; margin-bottom: .3rem; }
.regime__note { font-size: .875rem; color: var(--ink-3); line-height: 1.5; }

@media (max-width: 860px) { .regimes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .regimes__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------- 3. stakes (editorial) */

.stakes__inner { max-width: 46rem; }
.stakes h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.stakes p + p { margin-top: 1.1rem; }
.stakes__law {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
}
.stakes__law p { font-size: 1rem; }
.stakes__law cite {
  display: block;
  margin-top: .6rem;
  font-style: normal;
  font-size: .8125rem;
  color: var(--ink-3);
  font-family: 'Geist Mono', ui-monospace, monospace;
}

/* -------------------------------------------------------- 4. bento grid */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.cell {
  border: 1px solid var(--line);
  border-radius: var(--r-surf);
  padding: 1.6rem 1.65rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}
.cell h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.cell p { font-size: .9375rem; color: var(--ink-2); line-height: 1.6; }

.cell--wide  { grid-column: span 4; }
.cell--third { grid-column: span 2; }
.cell--half  { grid-column: span 3; }

.cell--accent {
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--accent) 12%, var(--paper)),
    color-mix(in srgb, var(--accent) 3%, var(--paper)));
  border-color: var(--accent-line);
}
.cell--figure {
  padding: 0;
  overflow: hidden;
  background: var(--paper-3);
  justify-content: flex-end;
}
.cell--figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}
.cell__cap {
  padding: 1rem 1.35rem;
  font-size: .875rem;
  color: var(--ink-2);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.cell p.cell__stat {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--wide, .cell--third, .cell--half { grid-column: span 1; }
  .cell--lead { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .cell--lead { grid-column: span 1; }
}

/* ------------------------------------------- 5. read-only (full bleed) */

.readonly {
  background: #0d1a1d;
  color: #dbe8ea;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.readonly h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  color: #ffffff;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.readonly p { color: #a9c0c3; max-width: 54ch; }
.readonly__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.term {
  background: #071013;
  border: 1px solid #1e3236;
  border-radius: var(--r-surf);
  padding: 1.35rem 1.5rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .875rem;
  line-height: 1.85;
  color: #8fa8ac;
  overflow-x: auto;
}
.term b { color: #ffffff; font-weight: 500; }
.term .no  { color: #ff8f7a; }
.term .yes { color: #6fe0a8; }
.term .cmt { color: #7b9599; }

@media (max-width: 880px) { .readonly__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ 6. proof (vertical flow) */

.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 3rem;
}

.flow { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-bottom: 2rem;
  position: relative;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 2.6rem;
  bottom: .25rem;
  width: 1px;
  background: var(--line-strong);
}
.step__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  z-index: 1;
}
.step__mark svg { width: 1.15rem; height: 1.15rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; letter-spacing: -0.02em; }
.step p { font-size: .9375rem; color: var(--ink-2); line-height: 1.62; }
.step code {
  font-size: .8125rem;
  background: var(--paper-3);
  padding: .1rem .35rem;
  border-radius: 5px;
}

.proof__figure {
  border: 1px solid var(--line);
  border-radius: var(--r-surf);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper-2);
}
.proof__figure img { width: 100%; }
.proof__figure figcaption {
  padding: .9rem 1.2rem;
  font-size: .8125rem;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 900px) { .proof__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------- 7. control (split reverse) */

.control__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.control__doc {
  order: -1;
  border: 1px solid var(--line);
  border-radius: var(--r-surf);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  max-width: 30rem;
}
.control__doc img { width: 100%; }

.ticks { display: grid; gap: .8rem; margin-top: 1.75rem; padding: 0; list-style: none; }
.ticks li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .7rem;
  font-size: .9375rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.ticks svg { width: 1.15rem; height: 1.15rem; color: var(--ok); margin-top: .18rem; }

@media (max-width: 900px) {
  .control__grid { grid-template-columns: 1fr; }
  .control__doc { order: 0; max-width: 24rem; }
}

/* ----------------------------------------------------- 8. measured stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.stat__n {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat__n small { font-size: .45em; color: var(--ink-3); letter-spacing: 0; margin-left: .15em; }
.stat__l { font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.stats__note { margin-top: 2.5rem; font-size: .875rem; color: var(--ink-3); max-width: 62ch; }

@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- 9. regime detail */

.regcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.regcard {
  border: 1px solid var(--line);
  border-radius: var(--r-surf);
  padding: 1.75rem;
  background: var(--paper);
}
.regcard__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.regcard h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.regcard__flag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .75rem;
  color: var(--ink-4);
  letter-spacing: .06em;
  white-space: nowrap;
}
.regcard dl { margin: 0; display: grid; gap: .85rem; }
.regcard dt {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent);
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: -0.01em;
}
.regcard dd { margin: .15rem 0 0; font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 820px) { .regcards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ 10. portable split */

.portable__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tree {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-surf);
  padding: 1.4rem 1.5rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .8125rem;
  line-height: 2;
  color: var(--ink-2);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.tree b { color: var(--ink); font-weight: 500; }
.tree i { font-style: normal; color: var(--ink-4); }

@media (max-width: 860px) { .portable__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- 11. faq */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq__grid > div:first-child { position: sticky; top: 6rem; }

.faq {
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid > div:first-child { position: static; }
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  position: relative;
  transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: '';
  position: absolute;
  right: .35rem;
  top: 50%;
  width: .7rem;
  height: .7rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div {
  padding: 0 2.5rem 1.6rem 0;
  color: var(--ink-2);
  font-size: .9688rem;
  line-height: 1.68;
  max-width: 62ch;
}
.faq details > div p + p { margin-top: .8rem; }

/* ------------------------------------------------------------- 12. cta */

.cta {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 14%, var(--paper)),
    color-mix(in srgb, var(--accent) 4%, var(--paper)) 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
}
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 20ch; margin-bottom: .9rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 800px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 13. footer */

.foot {
  padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem;
  font-size: .9375rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.foot h3 {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: var(--ink-2);
  text-decoration: none;
}
.foot a:hover { color: var(--accent); }
.foot__legal {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: .875rem;
}

@media (max-width: 820px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------- organisational duties */

.duties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  margin-top: 2.75rem;
}
.duty {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent-line);
}
.duty h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  margin-bottom: .4rem;
}
.duty p { font-size: .9375rem; color: var(--ink-2); line-height: 1.6; }
.duty__who {
  display: inline-block;
  margin-top: .6rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.norule {
  margin-top: 3rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--r-surf);
}
.norule h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.norule p { color: var(--ink-2); font-size: .9688rem; max-width: 68ch; }

@media (max-width: 760px) { .duties { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ small screens */

@media (max-width: 560px) {
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .cta__actions { display: grid; grid-template-columns: 1fr; }
  .cta__actions .btn { width: 100%; }
  .regcard { padding: 1.35rem; }
  .term, .tree { font-size: .75rem; }
}

.regimes__foot {
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------- skip to content */

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  border-radius: var(--r-ctl);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: top .16s var(--ease);
}
.skip:focus { top: 1rem; }

/* Utility classes replacing the last inline style attributes, so the Content-Security-
   Policy can refuse inline styles as well as inline scripts. */
.mt-sm { margin-top: 1.1rem; }
.mt-md { margin-top: 1.5rem; }
.brand--foot { margin-bottom: .9rem; }
.foot__blurb { max-width: 34ch; }

/* Marker the header watches to know whether the page has been scrolled. */
.scroll-sentinel { position: absolute; top: 0; width: 1px; height: 1px; }

/* ---------------------------------------------------- language, bottom right */

.langswitch {
  position: fixed;
  right: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  z-index: 40;
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-md);
}
@supports not (backdrop-filter: blur(1px)) {
  .langswitch { background: var(--paper); }
}

.langswitch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 30px;
  padding: 0 .5rem;
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.langswitch a:hover { background: var(--paper-3); color: var(--accent); }
.langswitch a[aria-current='true'] { background: var(--accent); color: var(--accent-ink); }

/* The title is for the pointer, not for a dotted underline under two letters. */
.langswitch abbr { text-decoration: none; border: 0; }

@media print { .langswitch { display: none; } }
