/* AquaSignal – public site. "Gränsen": colour chapters, one typeface (Manrope), flat fields,
   square corners. Light and dark theme via <html data-theme="light|dark">.
   Legacy variable names (--bg, --text, --line …) are kept so portal.css and glossary.css follow the theme. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  /* Brand palette */
  --forest: #17251f;
  --deep: #0f1814;
  --bone: #f4f1ea;
  --mineral: #d9d3c7;
  --green: #8faf91;
  --water: #718d8b;
  --amber: #c89454;
  --coral: #e8a08c;

  /* Layout */
  --m: clamp(20px, 4vw, 64px);
  --gap: clamp(20px, 2.4vw, 40px);
  --max: 1200px;
  --gutter: var(--m);
  --radius: 0;
  --radius-lg: 0;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-h2: clamp(36px, 4.8vw, 78px);
  --t-body: clamp(17px, 1.35vw, 20px);

  /* Theme: light */
  color-scheme: light;
  --paper: #f4f1ea;
  --ink: #17251f;
  --pit: #17251f;
  --g-bg: #8faf91;
  --g-tx: #17251f;
  --w-bg: #718d8b;
  --w-tx: #0f1814;
  --bg: #f4f1ea;
  --surface: #fbfaf6;
  --surface-2: #d9d3c7;
  --field: #fbfaf6;
  --text: #17251f;
  --text-soft: #3f4d46;
  --text-faint: #5b6861;
  --line: rgba(23, 37, 31, 0.18);
  --line-strong: rgba(23, 37, 31, 0.55);
  --accent: #3f5f5d;
  --signal: #3f6b43;
  --warn: #84561b;
  --danger: #a3452c;
  --button-bg: #17251f;
  --button-text: #f4f1ea;
  --button-hover: #2b4338;
  --panel-dark: #17251f;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c2d25;
  --ink: #f4f1ea;
  --pit: #0a100d;
  --mineral: #27392f;
  --g-bg: #35503f;
  --g-tx: #f4f1ea;
  --w-bg: #2a4442;
  --w-tx: #f4f1ea;
  --bg: #1c2d25;
  --surface: #233a30;
  --surface-2: #27392f;
  --field: #15231c;
  --text: #f4f1ea;
  --text-soft: rgba(244, 241, 234, 0.8);
  --text-faint: rgba(244, 241, 234, 0.6);
  --line: rgba(244, 241, 234, 0.18);
  --line-strong: rgba(244, 241, 234, 0.5);
  --accent: #a9c7c4;
  --signal: #a9c9ab;
  --warn: #e0b070;
  --danger: #eaa793;
  --button-bg: #f4f1ea;
  --button-text: #17251f;
  --button-hover: #ffffff;
  --panel-dark: #0a100d;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 80; background: var(--ink); color: var(--paper); padding: 12px 20px; font-weight: 700; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

h1, h2, h3 { letter-spacing: -0.03em; font-weight: 800; line-height: 1.05; }
h1 { font-size: clamp(44px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 22px; line-height: 1.2; }
em { font-style: normal; }
.meta { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.meta-line { display: inline-flex; align-items: center; gap: 12px; }
.meta-line::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-soft); max-width: 36em; }
.section-lede { color: var(--text-soft); font-size: 19px; max-width: 36em; }

/* ───────── buttons: flat, square, one fill ───────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 16px 26px; border: 2px solid transparent; border-radius: 0;
  font: 700 17px/1.2 "Manrope", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--button-bg); color: var(--button-text); }
.button-primary:hover { background: var(--button-hover); }
.button-green { background: var(--green); color: var(--forest); }
.button-bone { background: var(--bone); color: var(--forest); }
.button-ghost, .button-quiet { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button-ghost:hover, .button-quiet:hover { border-color: var(--text); }
.button[disabled] { opacity: 0.5; cursor: progress; transform: none; }
.arrow { transition: transform 0.2s var(--ease); display: inline-block; }
.button:hover .arrow, .link:hover .arrow { transform: translateX(3px); }
.link, .textlink { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover, .textlink:hover { text-decoration-color: var(--amber); }
.link-button { padding: 0; border: 0; border-bottom: 2px solid var(--line-strong); background: none; color: var(--text-soft); font: 600 14px "Manrope", sans-serif; cursor: pointer; }
.link-button:hover { color: var(--text); }
.link-button.danger { color: var(--danger); }
.actions, .h-actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.fine { font-size: 15px; max-width: 56ch; opacity: 0.85; }
.fine.light { color: var(--bone); opacity: 0.9; }
.fine.dark { color: var(--ink); opacity: 1; }

/* ───────── header ───────── */
.header { position: relative; z-index: 40; color: var(--ink); background: var(--paper); }
.home .header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.header-row { display: flex; align-items: center; gap: 24px; padding: 20px var(--m); max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand .mark-bg { fill: var(--ink); }
.brand svg path { stroke: var(--paper); }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 16px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav .nav-contact { display: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .lang, .theme-toggle, .menu-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 2px solid var(--paper); border-radius: 0; background: var(--ink); color: var(--paper);
  font: 800 14px/1 "Manrope", sans-serif; letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.nav .lang:hover, .theme-toggle:hover, .menu-toggle:hover { transform: translateY(-2px); text-decoration: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.header .button { min-height: 46px; padding: 0 22px; font-size: 16px; background: var(--ink); color: var(--paper); border-color: var(--paper); }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--paper); margin: 2.5px auto; transition: transform 0.2s var(--ease), opacity 0.2s; }
.account { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.account .link-button { color: var(--ink); border-bottom-color: var(--ink); }
/* dark mode keeps the waterline: bright field above the seam, so header ink stays dark on the home page */
:root[data-theme="dark"] .home .header, :root[data-theme="dark"] .hero { --ink: #17251f; --paper: #f4f1ea; }

/* ───────── hero: the waterline ───────── */
.hero { --s: clamp(44px, 10.2vw, 176px); position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; color: var(--bone); }
.hero-field { position: absolute; left: 0; right: 0; }
.hf-top { top: 0; height: 50%; background: var(--paper); }
.hf-bot { top: 50%; bottom: 0; background: var(--pit); }
:root[data-theme="dark"] .hf-top { background: var(--green); }
.layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.layer-top { clip-path: inset(0 0 50% 0); color: var(--ink); pointer-events: auto; }
.layer-bot { clip-path: inset(50% 0 0 0); color: var(--bone); }
.hl { position: absolute; left: var(--m); right: var(--m); top: calc(50% - 1.425 * var(--s)); margin: 0; font-size: var(--s); line-height: 0.95; font-weight: 800; letter-spacing: -0.05em; }
.hl .nb { white-space: nowrap; }
.hl .b1 { display: none; }
.seam-label { position: absolute; right: var(--m); z-index: 3; }
.top-label { top: calc(50% - 40px); color: var(--ink); font-weight: 800; font-size: 16px; text-align: right; }
.bot-label { top: calc(50% + 22px); display: flex; flex-direction: column; align-items: flex-end; color: var(--bone); }
.bot-label b { font-size: clamp(56px, 6vw, 96px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 800; color: var(--amber); }
.bot-label span { font-weight: 600; font-size: 16px; margin-top: 8px; opacity: 0.9; }
.hero-lower { position: relative; z-index: 4; grid-row: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; padding: 0 var(--m) 44px; }
.hero .hero-copy { grid-column: 1 / span 6; display: block; }
.hero .hero-copy .lede { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.5; max-width: 40ch; margin-bottom: 28px; color: var(--bone); }
.trust { grid-column: 8 / span 5; display: grid; gap: 18px; }
.trust li { display: grid; gap: 2px; }
.trust b { font-size: 19px; font-weight: 800; }
.trust span { font-size: 16px; opacity: 0.85; }

/* ───────── chapters ───────── */
.chapter { display: flex; align-items: center; min-height: 86svh; padding: clamp(88px, 11vw, 170px) var(--m); }
.chapter-short { min-height: 0; padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.inner { width: 100%; max-width: 1620px; margin: 0 auto; }
.c-green { background: var(--g-bg); color: var(--g-tx); }
.c-forest { background: var(--pit); color: var(--bone); }
.c-bone { background: var(--paper); color: var(--ink); }
.c-water { background: var(--w-bg); color: var(--w-tx); }
.h2 { font-size: var(--t-h2); line-height: 1; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
#sa-fungerar-det .h2, #how-it-works .h2 { font-size: clamp(44px, 7.4vw, 124px); line-height: 0.96; }
.intro { margin-top: 28px; max-width: 46ch; font-size: clamp(18px, 1.5vw, 22px); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.split > .left { grid-column: 1 / span 6; }
.split > .right { grid-column: 8 / span 5; }

/* steps as one bar */
.bar { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 72px); }
.seg { padding: clamp(28px, 3vw, 44px); min-height: clamp(380px, 32vw, 470px); display: flex; flex-direction: column; }
.seg-1 { background: var(--pit); color: var(--bone); }
.seg-2 { background: var(--paper); color: var(--ink); }
.seg-3 { background: var(--amber); color: #17251f; }
.seg h3 { font-size: clamp(40px, 4.6vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.seg h4 { margin-top: auto; padding-top: 28px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.seg p { margin-top: 10px; font-size: 17px; line-height: 1.5; max-width: 34ch; }
.spark { display: block; width: 100%; height: auto; margin-top: 26px; overflow: visible; }
.spark .sp-limit { fill: var(--amber); }
.spark .sp-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.spark .sp-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.mini { margin-top: 26px; display: grid; gap: 8px; }
.mini li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 16px; font-size: 15.5px; line-height: 1.3; }
.mini b { font-weight: 800; }
.mini span { opacity: 0.85; text-align: right; }
.seg-1 .mini li { background: rgba(244, 241, 234, 0.1); }
.seg-1 .mini .flag { background: var(--amber); color: var(--forest); }
.seg-1 .mini .flag span { opacity: 1; }
.seg-3 .mini li { background: rgba(23, 37, 31, 0.13); }
.sample-note { margin-top: 14px; }

/* the live thing: the limit slider */
.c-forest .split > .left { grid-column: 1 / span 5; }
.c-forest .split > .right { grid-column: 7 / span 6; --tone: var(--amber); }
.c-forest .right[data-tone="ok"] { --tone: var(--green); }
.c-forest .right[data-tone="watch"] { --tone: var(--amber); }
.c-forest .right[data-tone="over"] { --tone: var(--coral); }
.slider-label { display: block; margin: 44px 0 14px; font-weight: 800; font-size: 19px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; padding: 0; background: rgba(244, 241, 234, 0.2); border: 0; border-radius: 0; outline-offset: 8px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 0; background: var(--bone); border: 0; }
input[type="range"]::-moz-range-thumb { width: 40px; height: 40px; border-radius: 0; background: var(--bone); border: 0; }
.c-forest .fine { margin-top: 22px; }
.bignum { display: flex; align-items: baseline; gap: 14px; line-height: 0.82; color: var(--tone); transition: color 0.25s; }
.bignum span { font-size: clamp(120px, 17vw, 280px); font-weight: 800; letter-spacing: -0.07em; }
.bignum small { font-size: clamp(22px, 2.2vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
.meter { position: relative; height: 30px; margin: clamp(40px, 4vw, 64px) 0 14px; background: rgba(244, 241, 234, 0.14); }
.meter-fill { width: 53.3%; height: 100%; background: var(--tone); transition: width 0.2s var(--ease), background 0.25s; }
.meter-limit { position: absolute; left: 66.667%; top: -16px; bottom: -16px; width: 5px; background: var(--bone); }
.meter-limit span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 15px; font-weight: 700; }
.share { font-weight: 800; font-size: 19px; color: var(--tone); }
.status-title { margin-top: 26px; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.status-text { margin-top: 10px; max-width: 40ch; font-size: clamp(18px, 1.45vw, 21px); min-height: 3.1em; }
.c-forest .right .button { margin-top: 26px; }

/* the limits */
.krav > .left { grid-column: 1 / span 5; }
.krav > .right { grid-column: 7 / span 6; }
.photo { margin: 0; }
.photo img { width: 100%; }
.photo figcaption { margin-top: 12px; font-size: 15px; opacity: 0.88; max-width: 52ch; }
.krav .photo { margin-top: clamp(32px, 3.5vw, 56px); }
.krav .photo img { filter: grayscale(1); aspect-ratio: 3 / 2; object-fit: cover; }
.laws { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.laws li { padding: clamp(22px, 2.4vw, 36px); display: grid; gap: 8px; background: var(--mineral); }
.laws li.law-hi { background: var(--pit); color: var(--bone); }
.where { font-weight: 700; font-size: 15px; opacity: 0.88; }
.fig { font-size: clamp(76px, 9.4vw, 160px); line-height: 0.88; font-weight: 800; letter-spacing: -0.065em; }
.fig small { font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.01em; margin-left: 10px; font-weight: 700; }
.law-hi .fig { color: var(--amber); }
.laws p { font-size: 17px; max-width: 44ch; }
.sources { margin-top: 26px; font-size: 15px; max-width: 60ch; opacity: 0.92; }

/* who it is for */
.vem > .left { grid-column: 1 / span 7; }
.vem > .photo { grid-column: 9 / span 4; }
.photo.tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% center; }
.who { margin-top: clamp(32px, 3.5vw, 56px); display: grid; gap: clamp(18px, 2vw, 30px); max-width: 60ch; }
.who h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.who p { margin-top: 6px; }

/* pricing: two plans, two fields */
.pricing { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; }
.plan { display: flex; align-items: center; padding: clamp(72px, 9vw, 140px) var(--m); }
.plan-pilot { background: var(--pit); color: var(--bone); padding-right: clamp(24px, 4vw, 64px); }
.plan-std { background: var(--mineral); color: var(--ink); padding-left: clamp(24px, 4vw, 64px); }
.plan-in { width: 100%; max-width: 640px; }
.plan-pilot .plan-in { margin-left: auto; }
.plan-std .plan-in { margin-right: auto; }
.h3 { font-size: clamp(24px, 2.3vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.price { margin-top: 22px; font-size: clamp(88px, 11.5vw, 190px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.88; }
.price small { font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.01em; margin-left: 14px; font-weight: 700; }
.price-note { margin-top: 14px; font-weight: 700; font-size: 17px; }
.incl { margin: 34px 0; display: grid; gap: 14px; }
.incl li { font-size: 18px; line-height: 1.4; }
.incl b { font-weight: 800; }
.plan-pilot .button { margin-bottom: 18px; }
.plan-text { margin-top: 22px; max-width: 44ch; }

/* faq */
.faq > .left { grid-column: 1 / span 5; }
.faq > .right { grid-column: 7 / span 6; display: grid; gap: 12px; align-content: start; }
.faq details { background: var(--mineral); color: var(--ink); transition: background 0.2s; }
.faq details[open] { background: var(--pit); color: var(--bone); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 28px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 800; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 30px; line-height: 1; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 28px 28px; max-width: 58ch; }

/* closing call */
.cta .left { grid-column: 1 / span 7; }
.cta .photo { grid-column: 9 / span 4; }
.cta .h2 { font-size: clamp(34px, 4.5vw, 74px); }
.cta .actions { margin-top: clamp(28px, 3vw, 44px); }
.cta .fine { margin-top: 22px; }
.cta .photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 56% center; }
.cta .button-primary { background: var(--forest); color: var(--bone); }
:root[data-theme="dark"] .cta .button-primary { background: var(--bone); color: var(--forest); }

/* ───────── sub pages: page head, facts, lists ───────── */
.ph { min-height: 0; padding-top: clamp(72px, 9vw, 150px); padding-bottom: clamp(72px, 9vw, 150px); }
.ph h1 { font-size: clamp(42px, 7.2vw, 124px); line-height: 0.96; letter-spacing: -0.05em; text-wrap: balance; max-width: 16ch; }
.ph .lede { margin-top: 28px; color: inherit; max-width: 52ch; }
.ph .actions { margin-top: clamp(28px, 3vw, 44px); }
.back { display: inline-block; margin-bottom: 28px; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 72px); }
.fact { padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 6px; align-content: start; background: var(--pit); color: var(--bone); }
.fact:nth-child(2) { background: var(--paper); color: var(--ink); }
.fact:nth-child(3) { background: var(--amber); color: #17251f; }
.fact .where { opacity: 0.9; }
.fact strong { font-size: clamp(28px, 3.2vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.fact small { font-size: 0.45em; letter-spacing: -0.01em; margin-left: 6px; font-weight: 700; }
.fact span { font-size: 16px; }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.cols > .a { grid-column: 1 / span 5; }
.cols > .b { grid-column: 7 / span 6; }
.cols .h2 { font-size: clamp(34px, 4.2vw, 68px); }
.items { display: grid; gap: 18px; margin-top: 28px; max-width: 62ch; }
.items li { padding-left: 22px; border-left: 4px solid currentColor; font-size: 18px; line-height: 1.45; }
.items b { font-weight: 800; }
.steps-ol { counter-reset: s; display: grid; gap: 14px; margin-top: 28px; max-width: 62ch; }
.steps-ol li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: baseline; font-size: 18px; line-height: 1.45; }
.steps-ol li::before { content: counter(s); font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.steps-ol b { font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.tiles li { padding: 16px 18px; background: rgba(244, 241, 234, 0.1); font-size: 16px; line-height: 1.4; }
.tiles code { display: block; margin-bottom: 4px; font: 800 16px "Manrope", sans-serif; padding: 0; background: none; color: var(--green); }
.c-bone .tiles li, .c-green .tiles li { background: rgba(23, 37, 31, 0.1); }
.c-bone .tiles code { color: var(--accent); }
.terms { margin-top: 28px; display: grid; gap: 12px; }
.terms li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 20px; background: rgba(23, 37, 31, 0.12); font-size: 18px; }
.terms b { font-weight: 800; }
.terms span { text-align: right; }
.page-actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 36px; }

/* ───────── inner pages (glossary, portal) ───────── */
.page { padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 9vw, 128px); }
.page-intro { max-width: 760px; display: grid; gap: 24px; }
.page-intro h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.045em; }
.page-intro > p:not(.meta) { color: var(--text-soft); font-size: 19px; }

/* forms */
.input, .field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2px solid var(--line-strong); border-radius: 0; background: var(--field); color: var(--text);
  font: 500 16px "Manrope", sans-serif; outline: none; transition: border-color 0.15s;
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--amber); }
.field { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.field input, .field select, .field textarea { margin-top: 8px; }
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { margin: -4px 0 16px; color: var(--text-faint); font-size: 14px; line-height: 1.5; }
.form-note { font-size: 14px; color: var(--text-faint); }
.message { min-height: 20px; margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.message.ok { color: var(--signal); font-weight: 700; }
.message.error { color: var(--danger); font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* contact dialog */
dialog.lightbox { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 0; background: var(--bg); color: var(--text); box-shadow: 0 0 0 4px var(--green), 0 30px 80px rgba(0, 0, 0, 0.45); }
dialog.lightbox::backdrop { background: rgba(8, 12, 10, 0.7); }
dialog.lightbox[open] { animation: rise 0.26s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.lightbox-inner { padding: clamp(24px, 4vw, 40px); }
.lightbox-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.lightbox-head h2 { font-size: 32px; }
.lightbox-head .form-note { margin-top: 8px; font-size: 15px; }
.close { width: 44px; height: 44px; flex-shrink: 0; border: 2px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--text); font-size: 22px; cursor: pointer; }
.close:hover { border-color: var(--text); }
dialog.lightbox .button { width: 100%; }

/* ───────── footer ───────── */
.footer { background: var(--deep); color: var(--bone); padding: clamp(56px, 7vw, 110px) var(--m) 36px; }
.word { font-size: clamp(60px, 18.1vw, 300px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.8; margin-left: -0.035em; padding-bottom: 0.3em; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: clamp(36px, 4vw, 64px); font-size: 16px; }
.foot-row a { text-decoration: none; font-weight: 600; }
.foot-row a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.foot-row .push { margin-left: auto; }
.credits { margin-top: 26px; font-size: 13.5px; line-height: 1.6; opacity: 0.75; max-width: 120ch; }

/* entrance */
.reveal { transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
:root[data-theme="dark"] .photo img { filter: brightness(0.88); }
:root[data-theme="dark"] .krav .photo img { filter: grayscale(1) brightness(0.88); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .button:hover, .nav .lang:hover, .theme-toggle:hover, .menu-toggle:hover { transform: none; }
  dialog.lightbox[open] { animation: none; }
}

/* ───────── tablet and phone ───────── */
@media (max-width: 1100px) {
  .seam-label { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--m) 28px; background: var(--bg); color: var(--text); border-bottom: 4px solid var(--green); }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .lang { width: auto; height: auto; min-height: 46px; padding: 0 18px; margin-top: 18px; border: 2px solid var(--text); background: var(--bg); color: var(--text); }
  .header.open .nav { display: flex; }
  .header.open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .header.open .menu-toggle span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
}
@media (max-width: 900px) {
  .meter-limit span { bottom: auto; top: calc(100% + 8px); }
  .share { margin-top: 34px; }
  .hero { --s: 11vw; }
  .hl .b1 { display: inline; }
  .hero-lower { grid-template-columns: 1fr; padding-bottom: 36px; }
  .hero .hero-copy, .trust { grid-column: 1; }
  .trust { display: none; }
  .button { padding: 16px 22px; font-size: 16px; }
  .split, .cols { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .split > .left, .split > .right, .vem > .photo, .cta .photo, .cols > .a, .cols > .b { width: 100%; }
  .bar, .facts { grid-template-columns: 1fr; }
  .seg { min-height: 0; gap: 20px; }
  .seg h4 { margin-top: 24px; }
  .pricing { grid-template-columns: 1fr; }
  .plan-pilot { padding-right: var(--m); }
  .plan-std { padding-left: var(--m); }
  .photo.tall img, .cta .photo img { aspect-ratio: 4 / 3; }
  .chapter { min-height: 0; }
  .foot-row .push { margin-left: 0; }
  .tiles { grid-template-columns: 1fr; }
  .terms li { flex-direction: column; gap: 4px; }
  .terms span { text-align: left; }
}
@media (max-width: 640px) {
  .header .button { display: none; }
  .nav .nav-contact { display: block; }
  .header-row { gap: 12px; }
}
.lightbox-inner > .form-note { margin-top: 8px; }
@media (max-width: 960px) { .account span { display: none; } }
