/* etiop.trade — design system (2026-10-13, "Apple" pass).
   Minimal and fast: pure black, one accent, large type, generous space, rounded tiles, no
   dividers or decorative backgrounds. Performance rules: animate only transform and opacity,
   no full-screen layers, no blend modes or filters (except the 48 px navigation bar), below-the-
   fold sections skip rendering until needed (content-visibility). Motion: `.js/.motion/.ready`
   are set by boot.js before the first paint; every animated element is visible without them.
   Mona Sans + Mona Sans Mono (SIL OFL 1.1, unmodified). Self-hosted only (CSP 'self').
   The font URLs below are replaced with the hashed asset URLs at startup (assets.rs). */

@font-face { font-family: "Mona Sans"; src: url("/assets/mona-sans-vf.62e40f6e14.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans Mono"; src: url("/assets/mona-sans-mono-vf.034552e40f.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 103.57%; ascent-override: 105.25%; descent-override: 30.9%; line-gap-override: 0%; }

:root {
  --bg: #000;
  --tile: #111113;
  --tile-2: #1c1c1e;
  --fill: #2c2c2e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --soft: #c7c7cc;
  --mute: #8e8e93;
  /* WCAG AA: --faint is 5.8:1 on black, white on --accent is 4.6:1 (buttons) */
  --faint: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-hi: #6aaeff;
  --up: #30d158;
  --down: #ff453a;
  --amber: #ffb340;
  --font: "Mona Sans", "Mona Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Mona Sans Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Type scale checked at 1280×690 (a 1920×1200 laptop at 150 %), 1440×900, 1920×1080 and
     390 px: the hero and its film fit the first screen, screenshots never exceed the
     viewport height. */
  --fs-hero: clamp(2.6rem, 5.4vw, 4.75rem);
  --fs-statement: clamp(1.6rem, 3vw, 2.6rem);
  --fs-h1: clamp(2.2rem, 4.2vw, 3.5rem);
  --fs-h2: clamp(1.9rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.7vw, 1.6rem);
  --fs-lead: clamp(1.06rem, 1.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --maxw: 75rem;
  --textw: 61.25rem;
  --narrow: 47.5rem;
  --section: clamp(4.5rem, 9vw, 8rem);
  /* largest media: as wide as possible while staying shorter than the viewport */
  --media-w: min(64rem, calc((100vh - 9rem) * 1.65));
  --nav-h: 3rem;
  --r-tile: 28px;
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ───────────── base ───────────── */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 var(--fs-body)/1.47 var(--font);
  font-optical-sizing: auto;
  letter-spacing: -.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(47, 139, 255, .45); color: #fff; }
img, svg, canvas, picture { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .45em; font-weight: 600; letter-spacing: -.028em; line-height: 1.07; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.18; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; color: var(--text); }
code { font-family: var(--mono); font-size: .88em; background: var(--tile-2); border-radius: 6px; padding: .1em .4em; }
ul, ol { padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap.narrow, .narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); margin-inline: auto; }
.textw { width: min(100% - 2 * var(--gutter), var(--textw)); margin-inline: auto; }
.section { padding-block: calc(var(--section) * .6); }
.tail { padding-bottom: var(--section); }
.center { text-align: center; }
.muted { color: var(--mute); }
.small { font-size: var(--fs-small); }
.block { display: block; }
.sr, .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 { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 980px; background: var(--accent); color: #fff; font-weight: 600; }
.skip:focus { top: .6rem; }
/* below-the-fold sections render only when they approach the viewport */
.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }

.eyebrow, .kicker { margin: 0 0 .9rem; font-size: var(--fs-small); font-weight: 600; letter-spacing: -.005em; color: var(--accent-hi); }
.lead { font-size: var(--fs-lead); line-height: 1.38; letter-spacing: -.018em; color: var(--mute); max-width: 40ch; }
.center .lead, .lead.center { margin-inline: auto; }
.section-title { font-size: var(--fs-h2); }
@media (max-width: 700px) { .section-title br { display: none; } }
.section-sub { font-size: var(--fs-lead); line-height: 1.38; color: var(--mute); max-width: 38ch; margin-inline: auto; }

/* ───────────── buttons and links ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 980px;
  background: var(--tile-2);
  color: var(--text);
  font: 500 1.0625rem/1.15 var(--font);
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--fill); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-lg { min-height: 3.25rem; padding: .9rem 1.8rem; font-size: 1.125rem; }
.btn-sm { min-height: 1.9rem; padding: .35rem .95rem; font-size: .8125rem; }
.btn-block { display: flex; width: 100%; }
.btn-sub { display: block; margin-top: .25rem; font: 450 .75rem/1.2 var(--mono); opacity: .75; }
.link-more { font-size: 1.125rem; color: var(--accent-hi); }
.link-more::after { content: " ›"; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 2rem 0 0; }
.cta-row.center { justify-content: center; }
.downloads .btn { flex-direction: column; align-items: flex-start; padding: 1rem 1.6rem; border-radius: var(--r); }

/* ───────────── navigation (the only translucent layer) ───────────── */

.site-header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 6px; }
.wordmark { font-size: .98rem; letter-spacing: .01em; font-weight: 640; }
.wm-i { color: var(--accent-hi); font-weight: 500; }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav a, .menu-panel a:not(.btn) { padding: .4rem .75rem; color: var(--soft); font-size: .8125rem; transition: color .2s var(--ease); }
.nav a:hover, .menu-panel a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--text); }
.header-cta { margin-left: .4rem; }
.menu { display: none; margin-left: auto; }
.menu > summary { list-style: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before { display: block; width: 17px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out); }
.menu-icon { position: relative; transform: translateY(-3px); }
.menu-icon::before { content: ""; position: absolute; top: 6px; }
.menu[open] .menu-icon { transform: translateY(0) rotate(45deg); }
.menu[open] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--nav-h)); padding: 1.5rem var(--gutter); background: #000; display: grid; align-content: start; gap: .2rem; }
.menu-panel a:not(.btn) { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--text); padding: .45rem 0; }
.menu-panel .btn { margin-top: 1.4rem; justify-self: start; }
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
}

/* ───────────── hero ───────────── */

.hero { padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(3rem, 7vw, 5rem); text-align: center; }
.hero .kicker { font-size: clamp(.95rem, 1.2vw, 1.1rem); color: var(--text); font-weight: 600; margin-bottom: .7rem; }
.display { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.04em; font-weight: 650; margin: 0 0 .45em; }
.display .line { display: block; }
.display .soft { color: var(--mute); }
.hero-sub { font-size: var(--fs-lead); line-height: 1.4; color: var(--mute); max-width: 36ch; margin: 0 auto; }
.hero .cta-row { margin-top: 1.6rem; }
.hero-stage { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* the film: chart → equity → distribution → calendar → positive days (site.js) */
.film { margin: 0 auto; max-width: var(--media-w); text-align: left; }
.film-frame { position: relative; border-radius: var(--r-tile); background: var(--tile); overflow: hidden; }
.film-bar { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.3rem; font: 500 .8125rem/1 var(--mono); color: var(--mute); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--fill); }
.film-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--soft); }
.tag-demo { padding: .3rem .55rem; border-radius: 6px; background: rgba(255, 179, 64, .14); color: var(--amber); font-weight: 600; letter-spacing: .06em; }
/* Pause / play for the looping film (WCAG 2.2.2); shown by site.js only when it animates. */
.film-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.6rem -.7rem -.6rem 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--soft); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.film-toggle[hidden] { display: none; }
.film-toggle:hover { background: var(--tile-2); color: var(--text); }
.film-toggle svg { width: 1rem; height: 1rem; }
.film-toggle .i-play, .film-toggle[aria-pressed="true"] .i-pause { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
.film-canvas { display: none; width: 100%; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .film-canvas { aspect-ratio: 1 / 1; } }
.film.is-live .film-canvas { display: block; }
.film.is-live .film-fallback { display: none; }
.film-fallback img { width: 100%; }
.film figcaption { margin-top: 1rem; font-size: var(--fs-xs); color: var(--faint); text-align: center; }

/* ───────────── statement (lights up with the scroll: one CSS variable) ───────────── */

.statement { padding-block: var(--section); }
.statement-text { font-size: var(--fs-statement); line-height: 1.2; letter-spacing: -.028em; font-weight: 600; max-width: 28ch; margin: 0 auto; text-align: center; }
.statement-text em { font-style: normal; color: var(--accent-hi); }
.motion .statement-text.is-split .w { opacity: clamp(.16, calc(var(--p, 0) * (var(--n, 1) + 2) - var(--i, 0) - 1), 1); }

/* ───────────── showcase (a large screenshot that settles in place) ───────────── */

.showcase-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.showcase-frame { margin: 0 auto; max-width: var(--media-w); border-radius: var(--r); overflow: hidden; background: var(--tile); transform-origin: 50% 20%; }
.showcase figcaption { margin-top: 1rem; font-size: var(--fs-xs); color: var(--faint); text-align: center; }

/* ───────────── feature tour: the copy scrolls on the left, the app changes on the right ─────────────
   Without JavaScript (and on narrow screens) every step shows its own screenshot; with
   site.js on wide screens (`.tour.is-live`) the screenshots sit in one sticky frame and
   cross-fade (opacity/transform only) as each step reaches the middle of the screen. */

.tour { margin-top: clamp(2rem, 4vw, 3rem); }
.step { padding-block: 1.5rem 2.5rem; }
.step-kicker { margin: 0 0 .5rem; font-size: var(--fs-small); font-weight: 600; color: var(--mute); }
.step-kicker .tier { color: var(--accent-hi); }
.step h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); letter-spacing: -.028em; line-height: 1.12; margin-bottom: .55rem; }
.step p { color: var(--mute); max-width: 40ch; margin: 0; }
.step .shot { margin-top: 1.4rem; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); }
.tour-media { display: none; }
@media (min-width: 960px) {
  .tour.is-live { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .tour.is-live .step { min-height: 64vh; display: flex; align-items: center; padding: 0; }
  .tour.is-live .step:first-child { min-height: 50vh; }
  .tour.is-live .step .shot { display: none; }
  .tour.is-live .step-copy { opacity: .28; transition: opacity .5s var(--ease); }
  .tour.is-live .step.is-active .step-copy { opacity: 1; }
  .tour.is-live .tour-media { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); }
}
.tour-frame { position: relative; aspect-ratio: 1650 / 1000; border-radius: var(--r); overflow: hidden; background: var(--tile); }
.tour-frame img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform 1s var(--ease-out); }
.tour-frame img.is-active { opacity: 1; transform: none; }
.tour-dots { display: flex; justify-content: center; gap: .45rem; }
.tour-dots i { width: .45rem; height: .45rem; border-radius: 980px; background: var(--fill); transition: width .4s var(--ease-out), background-color .4s var(--ease); }
.tour-dots i.is-active { width: 1.6rem; background: var(--soft); }
.more { margin-top: clamp(2rem, 5vw, 3rem); color: var(--mute); max-width: 60ch; margin-inline: auto; text-align: center; }

/* ───────────── facts grid (security, privacy) ───────────── */

.facts-grid { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.facts-grid:not(.three) { max-width: 60rem; margin-inline: auto; }
@media (min-width: 760px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .facts-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact .icon { width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--accent-hi); }
.fact .icon svg { width: 100%; height: 100%; }
.fact h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.fact p { color: var(--mute); margin: 0; }

/* ───────────── compatibility ───────────── */

.providers { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.2rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding: 0; list-style: none; max-width: 56rem; }
.providers li { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; color: var(--faint); }
.fine-print { max-width: 62rem; margin: 2rem auto 0; font-size: var(--fs-xs); color: var(--faint); text-align: center; }
.fine-print strong { color: var(--mute); }

/* ───────────── numbers ───────────── */

.numbers { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
@media (min-width: 800px) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.number .big { display: block; font-size: clamp(2.6rem, 5vw, 4.25rem); font-weight: 650; letter-spacing: 0; line-height: 1; }
.number .big small { font-size: .4em; color: var(--mute); margin-left: .12em; font-weight: 550; letter-spacing: -.02em; }
.number p { margin: .8rem auto 0; color: var(--mute); max-width: 24ch; }

/* ───────────── generic cards, lists ───────────── */

.grid3 { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.two-col { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-col h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.card { padding: clamp(1.5rem, 2.6vw, 2.1rem); border-radius: var(--r); background: var(--tile); }
.card h3 { margin-bottom: .55em; }
.card p { color: var(--mute); }
.card p:last-child { margin-bottom: 0; }
.ticks, .list, .checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.ticks li, .list li, .checks li { position: relative; padding-left: 1.6rem; color: var(--soft); }
.ticks li::before, .checks li::before { content: ""; position: absolute; left: .2rem; top: .38em; width: .32rem; height: .62rem; border: solid var(--up); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.list li::before { content: ""; position: absolute; left: .3rem; top: .62em; width: .36rem; height: .36rem; border-radius: 50%; background: var(--faint); }
.checks strong { display: block; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.8rem; color: var(--soft); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--tile-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.tag { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .2rem .55rem; border-radius: 980px; font-size: .75rem; font-weight: 600; color: var(--accent-hi); background: rgba(47, 139, 255, .14); }
.badge { display: inline-block; margin-left: .35rem; padding: .12rem .5rem; border-radius: 980px; background: rgba(48, 209, 88, .16); color: var(--up); font-size: .72rem; font-weight: 600; }

/* ───────────── plans & pricing ───────────── */

.plans { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; text-align: left; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: clamp(1.7rem, 2.6vw, 2.3rem); border-radius: var(--r-tile); background: var(--tile); }
.plan h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.plan-tag { color: var(--mute); font-size: var(--fs-small); }
@media (min-width: 900px) { .plan-tag { min-height: 3em; } }
.plan-advanced { box-shadow: inset 0 0 0 1.5px var(--accent); }
.price { display: flex; align-items: baseline; gap: .35rem; margin: 1.4rem 0 .25rem; }
.price .amount { font-size: clamp(2.1rem, 3vw, 2.6rem); font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.price .per { color: var(--mute); font-size: var(--fs-small); }
.price-note { color: var(--mute); font-size: var(--fs-xs); margin-bottom: 1.5rem; }
.plan .btn { margin-bottom: 1.5rem; }
.plan .ticks li { font-size: var(--fs-small); }
.plans-teaser .plan .ticks { display: none; }
.plans-teaser .plan .btn { margin-top: auto; margin-bottom: 0; }
.plans + p { margin-top: 1.8rem; }
.pricing { position: relative; }
.toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.toggle { display: flex; width: fit-content; margin: 0 auto; gap: .2rem; padding: .22rem; border-radius: 980px; background: var(--tile-2); }
.pricing .callout { margin-top: 2rem; }
.toggle label { display: inline-flex; align-items: center; padding: .5rem 1.15rem; border-radius: 980px; font-size: var(--fs-small); color: var(--soft); cursor: pointer; transition: background-color .25s var(--ease), color .2s var(--ease); }
#periodo-mensile:checked ~ .toggle label[for="periodo-mensile"],
#periodo-annuale:checked ~ .toggle label[for="periodo-annuale"] { background: var(--fill); color: #fff; }
#periodo-mensile:focus-visible ~ .toggle label[for="periodo-mensile"],
#periodo-annuale:focus-visible ~ .toggle label[for="periodo-annuale"] { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
#periodo-mensile:checked ~ .plans .y, #periodo-annuale:checked ~ .plans .m { display: none; }

/* ───────────── tables ───────────── */

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--r); background: var(--tile); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
caption { padding: 1.1rem 1.3rem .3rem; text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--mute); }
th, td { padding: .85rem 1.3rem; text-align: left; vertical-align: top; }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid var(--line); }
thead th { font-weight: 600; color: var(--soft); }
tbody th { font-weight: 450; color: var(--soft); }
.matrix td, .matrix thead th:not(:first-child) { text-align: center; }
.yes { color: var(--up); font-weight: 700; }
.no { color: var(--faint); }
.hashes code, .hash { word-break: break-all; font-size: .8rem; background: transparent; padding: 0; color: var(--soft); }

/* ───────────── notices, FAQ, prose ───────────── */

.notice { margin: 2rem 0; padding: 1.3rem 1.5rem; border-radius: var(--r); background: var(--tile); color: var(--soft); }
.notice p:last-child { margin-bottom: 0; }
.notice h2 { font-size: var(--fs-h3); }
.notice.warn h2 { color: var(--amber); }
.notice.ok { color: var(--up); }

.faq h2 { margin: 2.6rem 0 1rem; font-size: var(--fs-small); font-weight: 600; color: var(--mute); letter-spacing: 0; }
.faq > h2:first-child { margin-top: 0; }
.faq > h2.faq-title { margin: 0 0 1.6rem; font-size: var(--fs-h2); color: var(--text); text-align: center; letter-spacing: -.028em; }
.faq details { margin-bottom: .5rem; border-radius: var(--r-sm); background: var(--tile); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.05rem 3.2rem 1.05rem 1.3rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; border-radius: var(--r-sm); transition: background-color .2s var(--ease); }
.faq summary:hover { background: var(--tile-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 12px; height: 1.5px; background: var(--mute); transition: transform .3s var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > :not(summary) { padding-inline: 1.4rem; color: var(--soft); max-width: 66ch; }
.faq details > :last-child { padding-bottom: 1.2rem; }

.prose { padding-bottom: var(--section); color: var(--soft); }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.35rem, 1.9vw, 1.65rem); color: var(--text); }
.prose h3 { margin-top: 1.8rem; font-size: 1.15rem; color: var(--text); }
.prose li { margin-bottom: .45rem; }
.facts { display: grid; gap: .75rem; margin: 1.5rem 0; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.facts div { padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--tile); }
.facts dt { font-size: var(--fs-xs); font-weight: 600; color: var(--mute); margin-bottom: .3rem; }
.facts dd { margin: 0; color: var(--text); word-break: break-word; }
.facts-list { grid-template-columns: minmax(0, 1fr); }

/* ───────────── page heads, forms, license ───────────── */

/* Page heads are centred like the home page; legal documents (.doc) stay left-aligned. */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.page-head h1 { max-width: 20ch; margin-inline: auto; }
.page-head.narrow h1 { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 22ch; }
.page-head .lead { max-width: 46ch; margin-inline: auto; }
.page-head .cta-row { justify-content: center; }
.page-head.doc { text-align: left; }
.page-head.doc h1, .page-head.doc .lead { margin-inline: 0; }

/* ───────────── download ───────────── */

.downloads { gap: .9rem 1rem; }
.downloads .btn { flex-direction: column; align-items: center; gap: .15rem; padding: .95rem 2rem; border-radius: 980px; }
.downloads .btn-sub { margin-top: 0; }
.dl-shot { margin-top: clamp(2.5rem, 6vw, 4rem); }
.dl-info { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dl-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl-info .card h2 { font-size: var(--fs-h3); margin-bottom: .8rem; }

/* ───────────── callouts (notices with an icon) ───────────── */

.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; max-width: 54rem; margin: 0 auto; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--tile); font-size: var(--fs-small); color: var(--soft); text-align: left; }
.callout-icon { width: 1.35rem; height: 1.35rem; margin-top: .1rem; color: var(--accent-hi); }
.callout.warn .callout-icon { color: var(--amber); }
.callout h2 { margin: 0 0 .35rem; font-size: 1.05rem; letter-spacing: -.01em; color: var(--text); }
.callout p { margin: 0 0 .7rem; }
.callout > div > :last-child { margin-bottom: 0; }
.verify { margin-top: .4rem; }
.verify summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--accent-hi); font-weight: 500; list-style: none; }
.verify summary::-webkit-details-marker { display: none; }
.verify summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease-out); }
.verify[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.verify .table-wrap { margin: 1rem 0 .8rem; background: var(--bg); }
main { padding-bottom: clamp(3rem, 7vw, 6rem); }
main:has(> .cta-band:last-child), main:has(> .prose:last-child) { padding-bottom: 0; }
.form { display: grid; gap: .9rem; margin-bottom: 2rem; }
.form label { font-weight: 600; }
.form input[type="text"] { width: 100%; min-height: 3.2rem; padding: .8rem 1.1rem; border: 0; border-radius: var(--r-sm); background: var(--tile-2); color: var(--text); font: 500 1rem/1.2 var(--mono); letter-spacing: .03em; transition: box-shadow .2s var(--ease); }
.form input[type="text"]::placeholder { color: var(--faint); }
.form input[type="text"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(47, 139, 255, .55); }
.form input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--down); }
.form .btn { justify-self: start; }
.form-error { margin: 0; color: #ff8a80; font-size: var(--fs-small); }
.license { margin-bottom: 2rem; }
.license-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card .plan-name { margin: .2rem 0 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.license .facts div { background: var(--tile-2); }
.license .table-wrap { margin: 1rem 0; border-radius: 0; background: transparent; }
.license .devices th:first-child, .license .devices td:first-child { padding-left: 0; }
.license .devices th:last-child, .license .devices td:last-child { padding-right: 0; text-align: right; }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 980px; font-size: var(--fs-xs); font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--up); background: rgba(48, 209, 88, .14); }
.status-warn { color: var(--amber); background: rgba(255, 179, 64, .14); }
.status-bad { color: var(--down); background: rgba(255, 69, 58, .14); }
.devices td, .devices th { vertical-align: middle; }
/* Phones: one block per PC instead of a table that scrolls sideways. */
@media (max-width: 640px) {
  .devices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .devices, .devices tbody, .devices tr, .devices th, .devices td { display: block; width: 100%; }
  .devices tr { padding: 1rem 0; }
  .license .devices td:last-child { text-align: left; }
  .devices tbody tr + tr { border-top: 1px solid var(--line); }
  .devices tbody tr + tr th, .devices tbody tr + tr td { border-top: 0; }
  .devices th, .devices td { padding: .15rem 0; }
  .devices td[data-label]::before { content: attr(data-label) ": "; color: var(--mute); }
  .devices td form { margin-top: .6rem; }
}

/* ───────────── call to action ───────────── */

.cta-band { padding-block: var(--section); }
.cta-band h2 { font-size: var(--fs-h1); letter-spacing: -.035em; }
.band { background: transparent; }

/* ───────────── footer ───────────── */

.site-footer { padding: 2.5rem 0 0; background: #0a0a0b; color: var(--mute); font-size: var(--fs-xs); overflow: hidden; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand p { max-width: 34ch; margin-top: .8rem; }
.site-footer h2 { font-size: var(--fs-xs); font-weight: 600; color: var(--soft); margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--mute); }
.site-footer .brand { color: var(--text); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; }
.footer-bottom p { margin: 0; }
/* The large ETiOP wordmark closing every page (decorative, cut by the bottom edge). */
.footer-word { margin: 1.5rem 0 -.18em; font: 640 clamp(6rem, 26vw, 24rem)/.8 var(--font); letter-spacing: -.06em; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(245, 245, 247, .12), rgba(245, 245, 247, 0) 80%); -webkit-background-clip: text; background-clip: text; user-select: none; pointer-events: none; }

/* ───────────── features and security pages: tiles, plan badges, generated connection list ───────────── */

.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 64rem; margin: 1.8rem auto 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 2rem; padding: .3rem .85rem; border-radius: 980px; background: var(--tile-2); color: var(--soft); font-size: var(--fs-xs); transition: background-color .2s var(--ease), color .2s var(--ease); }
.toc a:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem .5rem; margin: 1.3rem auto 0; color: var(--mute); font-size: var(--fs-small); }
.pb { display: inline-flex; align-items: center; padding: .16rem .6rem; border-radius: 980px; font-size: .75rem; font-weight: 600; line-height: 1.35; letter-spacing: .005em; }
.pb-free { color: var(--soft); background: var(--fill); }
.pb-advanced { color: var(--accent-hi); background: rgba(47, 139, 255, .16); }
.pb-pro { color: #fff; background: var(--accent); }
.feat-head { margin-bottom: clamp(2rem, 4.5vw, 3rem); }
.feat-head .section-title { margin-bottom: 0; }
.feat-head .section-sub { margin: .9rem auto 0; }
.feat-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat { padding: 1.4rem 1.5rem 1.55rem; border-radius: var(--r); background: var(--tile); }
.feat .pb { margin-bottom: 1rem; }
.feat h3 { font-size: 1.1875rem; letter-spacing: -.018em; line-height: 1.2; margin-bottom: .4rem; }
.feat p { margin: 0; color: var(--mute); font-size: var(--fs-small); line-height: 1.45; }
.feat-shot { margin: 0 auto clamp(2rem, 4.5vw, 3rem); }
.feat-shot .showcase-frame { max-width: min(46rem, calc((100vh - 12rem) * 1.65)); }
.feat-shot figcaption { margin-top: .9rem; font-size: var(--fs-xs); color: var(--faint); text-align: center; }
.feat-grid + .fine-print { margin-top: 1.6rem; }
.more-link { margin: clamp(2rem, 4vw, 2.6rem) 0 0; }
.more .link-more { display: inline-block; margin-top: .8rem; }

.net-grid { align-items: start; }
.net-wide { grid-column: 1 / -1; }
.feat .net-state { display: inline-flex; margin: 0 0 1rem; padding: .16rem .6rem; border-radius: 980px; font-size: .75rem; font-weight: 600; line-height: 1.35; color: var(--soft); background: var(--fill); }
.feat .net-state.on { color: var(--up); background: rgba(48, 209, 88, .14); }
.net-facts { display: grid; gap: .65rem; margin: .9rem 0 1.2rem; font-size: var(--fs-small); line-height: 1.45; }
.net-facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.net-facts dt { color: var(--faint); font-size: var(--fs-xs); font-weight: 600; }
.net-facts dd { margin: 0; color: var(--soft); }
.net-wide .net-facts { max-width: 50rem; gap: .45rem; }
@media (min-width: 640px) { .net-wide .net-facts div { grid-template-columns: 5.4rem minmax(0, 1fr); gap: .8rem; align-items: baseline; } }
.hosts { display: flex; flex-wrap: wrap; gap: .35rem; }
.hosts code { font-size: .78rem; color: var(--soft); padding: .22rem .5rem; word-break: break-all; }
.net-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.net-rows li { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: baseline; padding: .7rem 0; }
.net-rows li + li { border-top: 1px solid var(--line); }
.net-rows-stack li { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
.net-name { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.net-meta { font-size: var(--fs-xs); color: var(--faint); white-space: nowrap; }
.net-rows-stack .net-meta { white-space: normal; }
.feat .net-note { margin-top: .8rem; font-size: var(--fs-xs); color: var(--faint); }
.net .verify { margin-top: 1rem; font-size: var(--fs-small); }
.net .verify .net-rows { margin-top: .5rem; }
@media (max-width: 760px) {
  .net-rows li { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .net-meta { white-space: normal; }
}
@media (max-width: 639px) {
  .feat-grid { gap: .75rem; }
  .feat { padding: 1.2rem 1.3rem 1.35rem; }
  .feat .pb, .feat .net-state { margin-bottom: .8rem; }
}

/* ───────────── motion: starting states only ─────────────
   With `.motion` these start hidden and Motion (site.js) brings them in. Without `.motion`
   (no JavaScript, reduced motion, Motion missing, 4 s failsafe) they are simply visible. */

.motion .display .line { overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.motion .display .line > span { display: inline-block; transform: translateY(105%); }
.motion [data-hero-in], .motion .page-head > * { opacity: 0; }
.motion [data-reveal] { opacity: 0; transform: translateY(32px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .site-footer, .film, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
