@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── lern.life ───────────────────────────────────────────────────────
   Editorial layout: Roboto throughout, paper tones, hairline rules.
   Colours are tokens redefined per theme; components only read tokens.
   Default (no attribute / data-theme="dark") is dark. */

/* ── Tokens: dark (default) ─────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --bg:          #0C151F;
  --bg-alt:      #111C28;
  --surface:     #162330;
  --line:        #1E2D3A;
  --line-strong: #2B3C4B;

  --text:        #F2F6F7;
  --text-mid:    #B5C1C9;
  --text-soft:   #8FA1AD;

  --accent:      #5AC5BD;
  --accent-fill: #5AC5BD;   /* button fill */
  --accent-ink:  #0C151F;   /* text on accent fill */
  --accent-wash: rgba(90, 197, 189, 0.10);
  --brand-dot:   #00C8BE;

  --live:        #6FC98A;
  --pilot:       #9AA8F0;

  --display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 68px;
  --bar-h: 36px;
  --head-h: calc(var(--nav-h) + var(--bar-h));
  --radius: 14px;
}

/* ── Tokens: light ──────────────────────────────────────────────────── */
[data-theme="light"] {
  color-scheme: light;

  --bg:          #FFFFFF;
  --bg-alt:      #EDF8F7;
  --surface:     #FFFFFF;
  --line:        #D9ECE9;
  --line-strong: #C6E0DD;

  --text:        #111E2A;
  --text-mid:    #3A5060;
  --text-soft:   #566B7A;

  --accent:      #077C76;   /* teal for text and links (AA on white and mint) */
  --accent-fill: #5AC5BD;   /* button fill */
  --accent-ink:  #091520;   /* text on accent fill */
  --accent-wash: rgba(7, 124, 118, 0.07);
  --brand-dot:   #00C8BE;

  --live:        #2F7A3F;
  --pilot:       #3D4FB0;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ── Utilities ──────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 2000;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Links in running text */
.link {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ── Type ───────────────────────────────────────────────────────────── */
.display, .h2, .page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}
.display { font-size: clamp(2.6rem, 5.6vw, 4.3rem); line-height: 1.06; letter-spacing: -0.03em; }
.display em { font-style: normal; color: var(--accent); }
/* The one hand-drawn touch on the page */
.scribble { position: relative; white-space: nowrap; }
.scribble svg {
  position: absolute; left: 0; right: 0.1em; bottom: -0.1em; width: calc(100% - 0.15em); height: 0.18em;
  overflow: visible; pointer-events: none;
}
.scribble path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.55; }
.h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--text-mid); line-height: 1.65; }
.label {
  display: block;
  font-size: 0.85rem; font-weight: 600; color: var(--text-soft);
  margin-bottom: 12px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-fill) 86%, var(--text)); }
.btn-secondary { border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 40px; }
/* Sector strip above the main nav */
.topbar { height: var(--bar-h); border-bottom: 1px solid var(--line); background: var(--bg-alt); font-size: 0.85rem; }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links span { color: var(--text-soft); }
.topbar-links a { color: var(--text-mid); font-weight: 500; }
.topbar-links a:hover, .topbar-note:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.topbar-note { color: var(--accent); font-weight: 500; }

.logo {
  font-family: var(--sans);
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--text);
}
.logo span { color: var(--brand-dot); }
.nav-links { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.nav-links a { font-size: 0.93rem; font-weight: 500; color: var(--text-mid); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle, .nav-hamburger {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-mid);
}
.theme-toggle:hover, .nav-hamburger:hover { color: var(--text); background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.nav-hamburger { display: none; position: relative; }
.nav-hamburger span {
  position: absolute; left: 10px; width: 18px; height: 1.5px;
  background: currentColor; transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger span:nth-child(1) { transform: translateY(-5px); }
.nav-hamburger span:nth-child(3) { transform: translateY(5px); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 999;
  background: var(--bg); padding: 12px 28px 28px;
  display: none; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display); font-size: 1.6rem; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text);
}
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn {
  font-family: var(--sans); font-size: 1rem; margin-top: 24px; padding: 14px;
  border-bottom: 0; color: var(--accent-ink);
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--bg-alt); }

/* Heading column + content column */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-head { position: sticky; top: calc(var(--head-h) + 40px); }
.split-head .lead { margin-bottom: 28px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: calc(var(--head-h) + 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
/* Opt-in: equal columns, image centred on the text block (the default above bottom-aligns it) */
.hero-grid.is-centered { grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; }
.hero .display { margin-bottom: 28px; max-width: 13ch; }
.hero .lead { max-width: 34rem; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { font-size: 0.9rem; color: var(--text-soft); }

/* Illustrative product fragment */
.demo { font-size: 0.9rem; }
.demo-frame {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.demo-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.8rem; color: var(--text-soft);
}
.demo-head strong { color: var(--text); font-weight: 700; }
.demo-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.demo-q {
  align-self: flex-end; max-width: 85%;
  background: var(--bg-alt); border-radius: 10px 10px 2px 10px;
  padding: 10px 14px; color: var(--text);
}
.demo-a {
  max-width: 92%; padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--text-mid); line-height: 1.6;
}
.demo-a b { color: var(--text); font-weight: 600; }
.demo-src { display: block; margin-top: 8px; font-size: 0.78rem; color: var(--text-soft); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.demo-actions span {
  font-size: 0.78rem; color: var(--text-mid);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 9px;
}
.demo-caption { margin-top: 10px; font-size: 0.8rem; color: var(--text-soft); }

/* Figures row */
.figures {
  margin-top: 88px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.figure { padding: 28px 24px 32px 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
.figure dd { display: flex; flex-direction: column; }
.figure-num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--text);
  font-variant-numeric: lining-nums;
}
.figure-label { font-size: 0.92rem; color: var(--text-mid); margin-top: 10px; max-width: 16rem; }

.partners {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--text-mid);
}
.partners .label { margin: 0; }
.partners strong { color: var(--text); font-weight: 700; }
.partners .aside { margin-left: auto; color: var(--text-soft); font-size: 0.88rem; }

/* ── Audiences ──────────────────────────────────────────────────────── */
.stack > * + * { border-top: 1px solid var(--line); }
.stack-item { padding: 28px 0; }
.stack-item:first-child { padding-top: 0; }
.stack-item h3 {
  font-family: var(--display); font-weight: 500; font-size: 1.6rem;
  line-height: 1.2; margin-bottom: 8px;
}
.stack-item p { color: var(--text-mid); }

/* ── Portals ────────────────────────────────────────────────────────── */
.portals { margin-top: 56px; border-top: 1px solid var(--text); }
.portal {
  display: grid; grid-template-columns: 3.2fr 5fr 1.3fr 24px; gap: 32px;
  align-items: baseline;
  padding: 30px 12px 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s, padding 0.15s;
}
a.portal:hover { background: var(--accent-wash); padding-left: 12px; }
.portal-name {
  font-family: var(--display); font-weight: 500; font-size: 1.65rem; line-height: 1.15;
  color: var(--text);
}
.portal-name span { color: var(--text-soft); }
.portal-sector { display: block; font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--text-soft); margin-top: 6px; }
.portal p { color: var(--text-mid); font-size: 0.98rem; }
.portal-status { font-size: 0.88rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.portal-status::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; margin-right: 8px; vertical-align: 1px;
}
.portal-status.is-live  { color: var(--live); }
.portal-status.is-pilot { color: var(--pilot); }
.portal-go { color: var(--text-soft); font-size: 1.2rem; transition: transform 0.15s, color 0.15s; }
a.portal:hover .portal-go { color: var(--accent); transform: translateX(4px); }
.portal-note { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* ── Product ────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.feature { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 0.97rem; color: var(--text-mid); }

.subhead {
  font-family: var(--display); font-weight: 500; font-size: 1.7rem;
  margin: 72px 0 8px;
}
.numbered { counter-reset: n; }
.numbered li {
  counter-increment: n;
  display: grid; grid-template-columns: 48px 1fr; gap: 8px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.numbered li::before {
  content: counter(n);
  font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--accent);
}
.numbered h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.numbered p { font-size: 0.97rem; color: var(--text-mid); }

/* Solid teal band, light theme only (dark theme keeps the plain section) */
[data-theme="light"] .section-brand {
  --bg: #3F8A84; --text: #FFFFFF; --text-mid: #FFFFFF; --text-soft: #F1FAF9;
  --accent: #FFFFFF; --line: rgba(255, 255, 255, 0.28); --line-strong: rgba(255, 255, 255, 0.4);
  background: #3F8A84; color: #FFFFFF;
}

/* ── Mission ────────────────────────────────────────────────────────── */
.quote-block { max-width: 900px; margin-bottom: 88px; }
.quote {
  font-family: var(--display); font-style: normal; font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--text); text-indent: -0.42em;
}
.quote strong { font-weight: 500; color: var(--accent); }
.quote .nowrap { white-space: nowrap; }
.quote-attr { margin-top: 18px; font-size: 0.95rem; color: var(--text-soft); }
.facts > * + * { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 9rem 1fr; gap: 24px; align-items: baseline; padding: 22px 0; }
.fact:first-child { padding-top: 0; }
.fact-num { font-family: var(--display); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.fact-label { color: var(--text-mid); }

/* ── Pricing ────────────────────────────────────────────────────────── */
.price-table { border-top: 1px solid var(--text); font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table thead th { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); padding-top: 14px; padding-bottom: 14px; }
.price-table tbody th { font-family: var(--display); font-weight: 500; font-size: 1.35rem; color: var(--text); }
.price-table td { color: var(--text-mid); }
.price-table .num { text-align: right; padding-right: 0; }
.price-table td.num { font-family: var(--display); font-size: 1.35rem; color: var(--text); }
.price-table td.num small { font-family: var(--sans); font-size: 0.85rem; color: var(--text-soft); }
.price-table td.per { font-family: var(--sans); font-size: 0.95rem; color: var(--text-soft); }
.price-foot { margin-top: 20px; font-size: 0.95rem; color: var(--text-mid); }
.price-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Contact ────────────────────────────────────────────────────────── */
.contact-list { margin-top: 32px; }
.contact-list div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 6rem 1fr; gap: 16px; }
.contact-list dt { font-size: 0.88rem; font-weight: 600; color: var(--text-soft); }
.contact-list dd { color: var(--text); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-label .opt { font-weight: 400; color: var(--text-soft); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem; color: var(--text);
}
.form-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238E9795' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-select option { background: var(--surface); color: var(--text); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-soft); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-fine { font-size: 0.85rem; color: var(--text-soft); flex: 1; min-width: 220px; }
.form-fine a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-status { grid-column: 1 / -1; font-size: 0.92rem; color: var(--accent); font-weight: 600; }
.form-status:empty { display: none; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-grid.is-three { grid-template-columns: 2fr 1fr 1fr; }
.footer-tagline { font-size: 0.93rem; color: var(--text-soft); max-width: 300px; margin-top: 14px; }
.footer-company {
  display: flex; flex-direction: column; gap: 2px;
  max-width: 300px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-style: normal; font-size: 0.78rem; line-height: 1.55; color: var(--text-soft);
}
.footer-company strong { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text); }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.93rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--text-soft);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text); }

/* ── Inner page hero ────────────────────────────────────────────────── */
.page-hero { padding: calc(var(--head-h) + 72px) 0 48px; border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 760px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.88rem; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-mid); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span { opacity: 0.6; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; color: var(--text-mid); }
.page-hero p a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ── Content page (legal / FAQ) ─────────────────────────────────────── */
.content-page { padding: 56px 0 104px; }
.content-page .container > * { max-width: 780px; }
.meta-badge { display: block; font-size: 0.9rem; color: var(--text-soft); margin-bottom: 40px; }
.content-section { margin-bottom: 44px; }
.content-section h2 {
  font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.2;
  color: var(--text); margin-bottom: 12px;
}
.content-section h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.content-section p { color: var(--text-mid); line-height: 1.75; margin-bottom: 12px; }
.content-section ul { margin: 8px 0 14px 1.2em; list-style: disc; display: flex; flex-direction: column; gap: 6px; }
.content-section ul li { color: var(--text-mid); line-height: 1.7; padding-left: 4px; }
.content-section ul li::marker { color: var(--text-soft); }
.content-section strong { color: var(--text); }
.content-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.content-section th, .content-section td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--text-mid); }
.content-section th { color: var(--text); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-tools { margin-bottom: 40px; }
.faq-search { position: relative; display: block; }
.faq-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-soft); pointer-events: none; }
.faq-search input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 13px 110px 13px 44px; font-size: 1rem; color: var(--text);
}
.faq-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.faq-search input::placeholder { color: var(--text-soft); }
.faq-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; color: var(--text-soft); }
.faq-empty { padding: 28px 0; color: var(--text-mid); border-top: 1px solid var(--line); }
.faq-empty a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-category { margin-bottom: 48px; }
.faq-category-title {
  font-family: var(--display); font-weight: 500; font-size: 1.5rem;
  padding-bottom: 12px; border-bottom: 1px solid var(--text);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 18px 0; font-size: 1.02rem; font-weight: 600; color: var(--text);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; font-size: 1.3rem; font-weight: 400; line-height: 1; color: var(--text-soft);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer { display: none; padding: 0 40px 22px 0; color: var(--text-mid); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }
.faq-answer strong { color: var(--text); }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer ul { margin: 10px 0 0 1.2em; list-style: disc; display: flex; flex-direction: column; gap: 6px; }
.faq-answer ul li::marker { color: var(--text-soft); }
.faq-cta { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--text); }
.faq-cta h2 { font-family: var(--display); font-weight: 500; font-size: 1.8rem; margin-bottom: 6px; }
.faq-cta p { color: var(--text-mid); margin-bottom: 20px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-grid.is-centered { grid-template-columns: 1fr; gap: 56px; }
  .hero .display { max-width: 15ch; }
  .demo { max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-head { position: static; }
  .portal { grid-template-columns: 1fr 1.4fr auto 20px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid.is-three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; --bar-h: 0px; }
  .topbar { display: none; }
  .nav-links, .nav-actions .nav-cta { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-hamburger { display: inline-flex; }
  .section { padding: 72px 0; }
  .figures { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .portal { grid-template-columns: 1fr auto; gap: 10px 20px; padding-right: 0; }
  .portal-name { grid-column: 1; }
  .portal-status { grid-column: 2; grid-row: 1; }
  .portal p { grid-column: 1 / -1; }
  .portal-go { display: none; }
  a.portal:hover { padding-left: 0; background: none; }
  .partners .aside { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding-top: calc(var(--head-h) + 48px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .figure { padding-right: 12px; }
  .figure + .figure { padding-left: 16px; }
  .figure:nth-child(3) { padding-left: 0; }
  .features { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 6px; }
  .price-table thead, .price-table td.per { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table td:not(.num) { grid-column: 1; grid-row: 2; font-size: 0.92rem; }
  .price-table td.num { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-grid.is-three { grid-template-columns: 1fr 1fr; }
  .faq-search input { padding-right: 16px; }
  .faq-count { display: none; }
  .faq-answer { padding-right: 0; }
}


/* ── Scroll reveal (see site.js) ───────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* ── Theme toggle circle wipe (see site.js) ────────────────────── */
::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
.theme-wipe::view-transition-old(root) { z-index: 1; }
.theme-wipe::view-transition-new(root) { z-index: 2; }
.theme-wipe-in::view-transition-old(root) { z-index: 2; }
.theme-wipe-in::view-transition-new(root) { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
