/* Sæga remake — styles.css
   Tokens mirror saega/index.html :root so promotion is a drop-in.
   Editorial: Gelasio serif titles, Geist sans body, Ubuntu Mono labels. */

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

:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-subtle: #F0F0EC;
  --bg-footer: #F5F3EE;
  --text: #111111;
  --text-muted: #666666;
  --text-dim: #767676;
  --accent-nordic: #5B7B94;
  --accent-nordic-soft: rgba(91, 123, 148, 0.08);
  --accent-fjord: #3A5A6E;
  --accent-rust:  #A65D45;
  --accent-moss:  #6B7D5C;
  --bg-cool: #EEF1F2;
  --border: #E5E5E0;
  --red: #c0392b;
  --green: #1a7a3a;
  --header-bg: rgba(250, 250, 248, 0.9);
  --shadow: 0 2px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --scroll-shadow: rgba(0,0,0,0.13);
  /* One colour, used at full strength. The page had three muted accents that each
     appeared once or twice and black buttons, which reads as an essay rather than a
     product. Rust was already the Pro colour, so committing to it costs no new hue.
     --brand-ink is the text that sits ON the brand: white clears AA here (4.91:1),
     but the lighter dark-mode rust does not, so it flips to near-black there. */
  --brand: #A65D45;
  --brand-hover: #8F4A34;
  --brand-ink: #FFFFFF;
  --brand-tint: #FAF3F0;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Gelasio', Georgia, serif;
  --mono: 'Ubuntu Mono', 'Courier New', monospace;
  --radius: 16px;
  --maxw: 940px;
}

html.dark {
  --bg: #111111;
  --bg-card: #1A1A1A;
  --bg-subtle: #1E1E1E;
  --bg-footer: #151515;
  --text: #E8E8E6;
  --text-muted: #999999;
  --text-dim: #888888;
  --accent-nordic: #7BA3C4;
  --accent-nordic-soft: rgba(123, 163, 196, 0.1);
  --accent-fjord: #6F92AB;
  --accent-rust: #C28167;
  --accent-moss: #94A883;
  --bg-cool: #15181A;
  --border: #2A2A28;
  --red: #e74c3c;
  --green: #2ecc71;
  --header-bg: rgba(17, 17, 17, 0.9);
  --shadow: 0 2px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
  --scroll-shadow: rgba(255,255,255,0.16);
  /* #C28167 with white text is 3.17:1 — fails AA. Against near-black it is 5.96:1,
     so the ink flips rather than the hue. */
  --brand: #C28167;
  --brand-hover: #D0937B;
  --brand-ink: #111111;
  --brand-tint: #1C1614;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}
.mono { font-family: var(--mono); }
em { font-style: italic; color: var(--brand); }
strong { font-weight: 600; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 8px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw); width: calc(100% - 16px); margin: 0 auto;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--border); border-radius: 16px;
  transition: transform 0.34s cubic-bezier(.4, 0, .2, 1), box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.site-header.header-hidden { transform: translateY(calc(-100% - 20px)); }
.scroll-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--text); color: var(--bg); border: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover { opacity: 0.88; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand-logo { width: 30px; height: 30px; border-radius: 7px; display: block; box-shadow: 0 0 0 1px rgba(120,120,120,0.18); }
.footer-brand-lockup { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.footer-brand-lockup .brand-logo { width: 28px; height: 28px; }
.brand-word { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -0.005em; }
.header-right { display: flex; align-items: center; gap: 12px; }
.ab-lang { display: flex; gap: 2px; }
.lang-toggle { display: flex; gap: 2px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-toggle button {
  font-family: var(--mono); font-size: 0.76rem; padding: 4px 9px;
  border: none; background: none; color: var(--text-dim); cursor: pointer; border-radius: 999px;
}
.lang-toggle button.active { color: var(--text); background: var(--accent-nordic-soft); }
.theme-toggle {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 9px; background: none; color: var(--text-dim); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); }
.icon-sun { display: none; } .icon-moon { display: block; }
html.dark .icon-sun { display: block; } html.dark .icon-moon { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
  /* A call to action that breaks across two lines stops reading as a button — and
     the header one did exactly that on a 390 px phone ("Ladda / ner"), pushing the
     header from 60 px to 90 px. */
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.full { width: 100%; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(56px, 10vw, 110px) clamp(16px, 5vw, 48px) 40px; }
.hero-title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; margin-bottom: 22px;
}
.hero-desc { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--text-muted); max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
/* Phone-only: a desktop visitor is already where they need to be. */
.hero-mac-note { display: none; }
.hero-mac-note p { color: var(--text-dim); font-size: 0.82rem; margin: 0; }
.hero-mac-note .share-status { color: var(--accent-moss); }
/* Risk reversal sits directly under the button, requirements one step quieter
   below it — a visitor on the wrong hardware should find that out here, not
   after downloading. */
.hero-trial { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; margin: 0 0 6px; }
.hero-trust { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 26px; }

/* proof strip */
.proof-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px; max-width: var(--maxw); margin: 8px auto 0;
  padding: 22px clamp(16px, 5vw, 48px) 8px; color: var(--text-muted); font-size: 0.9rem;
}
.proof-item { text-decoration: none; color: var(--text-muted); white-space: nowrap; }
/* The dot separators only make sense between items on the same line; once the
   strip wraps they strand at line ends, so they go away with the single row. */
@media (max-width: 860px) { .proof-sep { display: none; } }
a.proof-item:hover { color: var(--accent-nordic); }
.proof-item strong { color: var(--text); font-weight: 600; }
.proof-sep { color: var(--border); }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 100px) clamp(16px, 5vw, 48px); }
.section.band { background: var(--brand-tint); max-width: none; }
.section.band > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; margin-bottom: 16px; }
.section-title.xl { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.section-desc { font-size: 1.12rem; color: var(--text-muted); max-width: 640px; margin-bottom: 40px; }

/* ---------- A/B flagship ---------- */
.ab { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.ab-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ab-lang { border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.ab-lang button { border: none; background: none; font-family: var(--mono); font-size: 0.82rem; padding: 6px 14px; border-radius: 999px; color: var(--text-dim); cursor: pointer; }
.ab-lang button.active { background: var(--accent-nordic-soft); color: var(--text); }
.ab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-col { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: border-color 0.3s ease, background 0.3s ease; }
.ab-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ab-tag { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); }
.ab-reveal-label { font-family: var(--mono); font-size: 0.74rem; opacity: 0; transition: opacity 0.4s ease; }
.ab-col.revealed .ab-reveal-label { opacity: 1; }
.ab-col.is-good.revealed { border-color: var(--accent-moss); }
.ab-col.is-good.revealed .ab-reveal-label { color: var(--accent-moss); }
.ab-col.is-bad.revealed { border-color: var(--red); }
.ab-col.is-bad.revealed .ab-reveal-label { color: var(--red); }
.ab-transcript { font-size: 1.02rem; line-height: 1.7; min-height: 3em; }
/* the person behind the privacy claim */
.founder { display: flex; align-items: flex-start; gap: 14px; margin: 30px 0 0; padding: 20px 22px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); max-width: 620px; }
.founder p { margin: 0 0 6px; font-size: 1rem; }
.founder-name { font-size: 0.9rem; font-weight: 600; }
.founder-role { font-weight: 400; color: var(--text-muted); }

/* pricing: the free tier stated as a claim, and the own-key route */
.price-forever { color: var(--text); font-weight: 500; margin: -22px 0 34px; max-width: 640px; }
.price-ownkey { color: var(--text-muted); font-size: 0.95rem; margin-top: 26px; max-width: 640px; }

/* product video frame — the rewrite demo; the how-it-works clip moved to the hero */
.rw-demo { margin: 36px 0 0; max-width: 680px; }
.rw-demo video { width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--bg-subtle); }
.rw-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.rw-chip { font: inherit; font-size: 0.88rem; padding: 7px 14px; border-radius: 20px; cursor: pointer;
  background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease; }
.rw-chip:hover { border-color: var(--text-dim); color: var(--text); }
.rw-chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.rw-chip:focus-visible { outline: 2px solid var(--accent-nordic); outline-offset: 2px; }

/* closing CTA — centred, unlike the left-aligned body sections */
.closing { text-align: center; }
.closing .section-desc { margin-left: auto; margin-right: auto; }
.closing .hero-actions { margin-bottom: 14px; }
.dl-guarantee { color: var(--text-muted); font-size: 0.92rem; margin-top: 18px; }

/* Progressive disclosure. Everything behind a fold is material that convinces a
   visitor who is already interested; nothing that carries the first pass lives
   here. Same affordance everywhere on the page so it reads as one pattern. */
.fold { margin: 26px 0 0; }
.fold > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--accent-nordic); font-size: 0.95rem; list-style: none;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 22px;
  background: var(--bg-card); transition: border-color .15s ease; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "↓"; font-size: 0.85rem; transition: transform .2s ease; }
.fold[open] > summary::after { transform: rotate(180deg); }
.fold > summary:hover { border-color: var(--accent-nordic); }
.fold > summary:focus-visible { outline: 2px solid var(--accent-nordic); outline-offset: 2px; }
.fold[open] > summary { margin-bottom: 24px; }
.fold--center { text-align: center; }
/* The two disclosures are equal-weight siblings, not a stack — side by side
   reads as "two more things to explore" instead of a queue of expando rows. */
.fold-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 26px 0 0; }
.fold-group .fold { margin: 0; }
.fold-desc { color: var(--text-muted); max-width: 640px; margin: 0 0 24px; }
.specs-body { color: var(--text-muted); font-size: 0.95rem; max-width: 620px; margin: 0 auto; }

/* The six modes as a single line rather than a section of their own. */
.mode-strip { margin: 26px 0 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.mode-strip b { color: var(--text); font-weight: 600; }

/* auto mode — one sentence, four destinations. The apps are columns in an
   argument here, not a wall of logos. */
.auto-said { color: var(--text-muted); margin: 0 0 20px; font-size: 1.02rem; }
.auto-said .mt-label { margin-right: 10px; }
.auto-list { list-style: none; margin: 0 0 32px; padding: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.auto-list li { display: grid; grid-template-columns: 92px 104px 1fr; gap: 16px;
  align-items: baseline; padding: 15px 24px; border-bottom: 1px solid var(--border); }
.auto-list li:last-child { border-bottom: 0; }
.auto-app { font-weight: 600; }
.auto-mode { font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-rust); }
.auto-out { color: var(--text-muted); }
.auto-out.mono { font-family: var(--mono); font-size: 0.92rem; }
.auto-foot { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 16px; }
/* A divider before this, and a tinted tray under the marquee, so the jump from
   muted mode copy into a burst of colourful app logos reads as a deliberate
   new zone ("the rest of your apps") instead of everything just running on. */
.apps-shelf { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .auto-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .auto-mode { justify-self: start; }
}

/* comparison + total cost + testimonial */
.tco { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 32px; max-width: 560px; box-shadow: var(--shadow); }
.tco-lead { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.tco-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 9px 0; }
.tco-row + .tco-row { border-top: 1px solid var(--border); }
.tco-row strong { font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; }
.tco-row span span { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--text-dim); }
.tco-row strong span { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--text-dim); }
.tco-row.is-us strong { color: var(--accent-moss); }

/* The table scrolls inside its own box rather than pushing the page sideways.
   On a phone the last column is off-screen with nothing to say so — the shadow
   below appears only on the side that has more table behind it, because the
   cover gradients scroll with the content (`local`) while the shadows don't. */
.cmp-wrap {
  overflow-x: auto; margin-bottom: 40px; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--bg) 40%, rgba(255,255,255,0)) left center / 28px 100% no-repeat local,
    linear-gradient(to left,  var(--bg) 40%, rgba(255,255,255,0)) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--scroll-shadow), rgba(0,0,0,0)) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--scroll-shadow), rgba(0,0,0,0)) right center / 12px 100% no-repeat scroll;
}
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
.cmp th, .cmp td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.cmp thead th { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; border-bottom-width: 2px; }
.cmp thead th:nth-child(2) { color: var(--accent-nordic); }
.cmp tbody td:first-child { color: var(--text-muted); }
.cmp td.yes { color: var(--text); font-weight: 600; }
.cmp td.no { color: var(--text-dim); }
.cmp tbody tr:last-child td { border-bottom: 0; }

.quote { margin: 0; padding: 26px 28px; background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent-rust); border-radius: var(--radius); max-width: 620px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.quote-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-rust); color: #fff; font-weight: 600; flex-shrink: 0; }

/* how it works — speed comparison + the three steps */
.how-speed { max-width: 560px; margin: 0 0 40px; }
.how-speed-row { display: grid; grid-template-columns: 68px 1fr 106px; align-items: center; gap: 14px; margin-bottom: 12px; }
.how-speed-label { font-size: 0.92rem; color: var(--text-muted); }
.how-speed-bar { height: 10px; background: var(--bg-subtle); border-radius: 5px; overflow: hidden; }
.how-speed-bar > span { display: block; height: 100%; width: var(--w); background: var(--text-dim); border-radius: 5px; }
.how-speed-bar.is-fast > span { background: var(--accent-nordic); }
.how-speed-num { font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); text-align: right; }
.how-speed-verdict { margin-top: 18px; color: var(--text-muted); }
.how-speed-verdict strong { font-family: var(--serif); font-size: 1.7rem; color: var(--accent-nordic); margin-right: 6px; }
.how-steps { list-style: none; margin: 0; padding: 0; position: relative; display: flex; }
.how-steps::before { content: ""; position: absolute; top: 22px; left: calc(100% / 6); right: calc(100% / 6);
  height: 2px; background: var(--border); z-index: 0; }
.how-step { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; padding: 0 14px;
  opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.no-js .how-step { opacity: 1; transform: none; }
#how.in .how-step { opacity: 1; transform: none; }
#how.in .how-step:nth-child(2) { transition-delay: 0.12s; }
#how.in .how-step:nth-child(3) { transition-delay: 0.24s; }
.how-step-ico { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border); color: var(--text-dim);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.how-step.is-active .how-step-ico { background: var(--brand); border-color: var(--brand);
  color: var(--brand-ink); transform: scale(1.1); }
.how-step-body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.how-num { color: var(--accent-rust); font-size: 0.82rem; letter-spacing: 0.06em; }
.how-step-text { font-size: 0.95rem; max-width: 230px; }
.how-steps kbd { font-family: var(--mono); font-size: 0.86rem; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
@media (max-width: 720px) {
  .how-steps { flex-direction: column; align-items: flex-start; gap: 26px; }
  .how-steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; }
  .how-step { flex-direction: row; align-items: flex-start; text-align: left; padding: 0; gap: 16px; }
  .how-step-body { align-items: flex-start; }
  .how-step-text { max-width: none; }
}
@media (max-width: 560px) { .how-speed-row { grid-template-columns: 56px 1fr 88px; gap: 10px; } }

/* static "understands Swedish" card — the version of the proof that needs no
   sound, no click and no guess. Rows are two fixed columns so the arrows line
   up; on narrow screens they stack instead of squeezing the words. */
.und-list { list-style: none; margin: 0 0 28px; padding: 26px 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.und-list li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--border); }
.und-list li:last-child { border-bottom: 0; }
.und-wrong { text-align: right; color: var(--red); text-decoration: line-through; opacity: 0.75; }
.und-arrow { color: var(--text-dim); font-size: 0.9rem; }
.und-right { font-weight: 600; color: var(--text); }
.und-note { color: var(--text-muted); font-size: 0.98rem; max-width: 640px; margin: 0 0 28px; }
/* The blind test folds in under the card it backs up, so the visitor meets one
   proof instead of three in a row. Open it and it behaves exactly as before. */
.und-ab > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--accent-nordic); font-size: 0.95rem; list-style: none;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 22px;
  background: var(--bg-card); transition: border-color .15s ease; }
.und-ab > summary::-webkit-details-marker { display: none; }
.und-ab > summary::after { content: "↓"; font-size: 0.85rem; transition: transform .2s ease; }
.und-ab[open] > summary::after { transform: rotate(180deg); }
.und-ab > summary:hover { border-color: var(--accent-nordic); }
.und-ab > summary:focus-visible { outline: 2px solid var(--accent-nordic); outline-offset: 2px; }
.und-ab[open] > summary { margin-bottom: 26px; }
.und-ab .eyebrow, .und-ab .section-title { display: none; }
.und-ab .section-desc { margin-bottom: 26px; }
@media (max-width: 560px) {
  .und-list li { grid-template-columns: 1fr; gap: 2px; text-align: left; }
  .und-wrong { text-align: left; }
  .und-arrow { display: none; }
}

.ab-transcript .err { color: var(--red); text-decoration: underline wavy var(--red); text-underline-offset: 3px; }
.ab-transcript .ok { color: var(--accent-moss); }
.ab-transcript.typing::after { content: '▍'; color: var(--accent-nordic); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ab-guess { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.98rem; }
.ab-guess-btns { display: flex; gap: 8px; }
.ab-guess-btns button { border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 7px 16px; cursor: pointer; font-family: var(--sans); color: var(--text); }
.ab-guess-btns button:hover { border-color: var(--accent-nordic); }
.ab-footnote { margin-top: 20px; color: var(--text-muted); font-size: 0.86rem; }
.ab-placeholder { margin-top: 14px; color: var(--accent-rust); font-size: 0.78rem; opacity: 0.85; }

/* ---------- mode transformer ---------- */
.mt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mt-tab { border: 1px solid var(--border); background: var(--bg-card); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: var(--sans); font-size: 0.9rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; }
.mt-tab .mt-key { font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; }
.mt-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.mt-tab .pro { font-size: 0.64rem; background: var(--accent-rust); color: #fff; padding: 1px 5px; border-radius: 4px; }
.mt-panel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.mt-label { font-size: 0.76rem; color: var(--text-dim); display: block; margin-bottom: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.mt-input { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }
.mt-output { font-size: 1.05rem; line-height: 1.7; white-space: pre-line; }
.mt-arrow { color: var(--accent-nordic); font-size: 1.5rem; }
.mt-output.swap { animation: fadeup 0.35s ease; }
.mt-output.typing::after { content: '▍'; color: var(--accent-nordic); animation: blink 1s step-end infinite; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- privacy pipeline ---------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.flow-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 116px; flex: 1 1 116px; max-width: 180px; text-align: center; }
.flow-step.optional { border-style: dashed; background: transparent; }
.flow-ico { color: var(--accent-nordic); display: flex; }
.flow-name { font-weight: 500; font-size: 0.98rem; }
.flow-tag { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.flow-tag.local { color: var(--accent-moss); }
.flow-arrow { display: flex; align-items: center; color: var(--text-dim); font-size: 1.1rem; }
.df-never { color: var(--accent-moss); font-size: 0.9rem; text-align: center; }
@media (max-width: 720px) { .flow { flex-direction: column; align-items: stretch; } .flow-step { max-width: none; } .flow-arrow { transform: rotate(90deg); justify-content: center; } }

/* ---------- marquee (app row) ---------- */
.marquee { overflow: hidden; background: var(--bg-subtle); border-radius: var(--radius); padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.app-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px 9px 9px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow); }
.app-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-ico svg { width: 17px; height: 17px; }
.app-glyph-letter { color: #fff; font-weight: 700; font-size: 15px; font-family: var(--sans); line-height: 1; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent-rust); box-shadow: var(--shadow-lg); }
.price-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.price-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.price-num { font-size: 1.4rem; font-weight: 600; }
.price-sub { font-size: 0.78rem; color: var(--text-dim); }
.price-list {
  list-style: none; color: var(--text-muted); font-size: 0.98rem;
  margin-bottom: 22px; flex: 1;
  display: flex; flex-direction: column; gap: 9px;
}
.price-list li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; line-height: 1.45; }
/* A glyph rather than an inline SVG per item: no markup to keep in sync when the
   language switch rebuilds the list, and it recolours with the brand token. */
.price-list li::before { content: "\2713"; color: var(--brand); font-weight: 700; line-height: 1.45; }
.price-guarantee { color: var(--text-dim); font-size: 0.85rem; margin-top: 22px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 2px; }
.faq details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq summary { font-weight: 500; font-size: 1.05rem; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-nordic); font-size: 1.3rem; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--text-muted); padding: 0 0 16px; max-width: 700px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: 56px clamp(16px, 5vw, 48px) 40px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.footer-brand-col .brand-word { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.footer-tagline { color: var(--text-dim); font-size: 0.82rem; margin-top: 8px; max-width: 240px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-nordic); }
.footer-signature { font-family: var(--serif); font-style: italic; color: var(--text-muted); text-align: center; max-width: 560px; margin: 44px auto 12px; font-size: 1rem; line-height: 1.5; }
.footer-built { text-align: center; color: var(--text-dim); font-size: 0.8rem; }

/* ---------- section divider — full-width waveform seam (bars rise on scroll-in) ---------- */
.divider { width: 100%; height: 92px; margin: -46px auto; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; z-index: 10; pointer-events: none; }
.divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent-nordic); opacity: 0.16; z-index: 0; }
.divider-wave { flex: 1 1 0; max-width: 440px; height: 48px; display: flex; align-items: center; gap: 2px; overflow: hidden; contain: layout paint; position: relative; z-index: 1; }
.divider-wave--left { justify-content: flex-end; }
.divider-wave--right { justify-content: flex-start; }
.divider-wave-bar { flex: 1; min-width: 0; max-width: 4px; background: var(--accent-nordic); border-radius: 2px; opacity: 0.42; transform-origin: center; transform: scaleY(0); transition: transform 0.6s cubic-bezier(.25,1,.5,1), opacity 0.4s ease; will-change: transform; }
.divider-wave-bar.loud { opacity: 0.75; }
.divider.visible .divider-wave-bar { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .divider-wave-bar { transform: scaleY(1) !important; transition: none !important; } }
@media (max-width: 600px) { .divider { height: 72px; margin: -36px auto; gap: 8px; } .divider-wave { max-width: none; height: 38px; } }

/* ---------- rewrite feature ---------- */
.rw-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.rw-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 3vw, 26px); display: flex; flex-direction: column; }
.rw-side .mt-label { margin-bottom: 12px; }
.rw-before { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; }
.rw-after { font-size: 1.05rem; line-height: 1.6; }
.rw-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.rw-instruction { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-nordic-soft); color: var(--text); border-radius: 999px; padding: 9px 15px; font-size: 0.85rem; white-space: nowrap; }
.rw-kbd { font-family: var(--mono); font-size: 0.72rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.rw-arrow { color: var(--accent-nordic); font-size: 1.5rem; line-height: 1; }
.eyebrow .pro { font-size: 0.62rem; background: var(--brand); color: #fff; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.02em; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .hero-mac-note { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 18px; max-width: 320px; }
  .rw-flow { grid-template-columns: 1fr; }
  .rw-arrow { transform: rotate(90deg); justify-self: center; }
  .ab-cols, .price-grid { grid-template-columns: 1fr; }
  .mt-panel { grid-template-columns: 1fr; }
  .mt-arrow { transform: rotate(90deg); justify-self: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Four groups — wordmark, theme, SV|NO|EN, download — do not fit across a phone
   at full size. Everything gives up a few pixels so the button keeps its one line
   and nothing has to be hidden; the language switch in particular has to survive,
   since it is the only way to reach the Norwegian and English versions. */
@media (max-width: 480px) {
  .site-header { padding: 10px 14px; }
  .header-right { gap: 8px; }
  .btn-sm { padding: 8px 14px; font-size: 0.86rem; }
  .lang-toggle button { padding: 4px 7px; font-size: 0.72rem; }
  .brand-word { font-size: 1.28rem; }
}

/* ---------- motion / no-js ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .ab-transcript.typing::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
html.no-js .ab-placeholder { display: block; }

/* hero product shot — the app itself, above the fold */
.hero-shot { margin: 34px auto 0; max-width: 720px; }
.hero-shot img, .hero-shot video { width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--bg-subtle); }

/* the model credit reads as substance here, not as fine print under a button */
.how-models { font-size: 1rem; color: var(--text-muted); max-width: 640px; margin: -26px 0 34px; }
.model-info { position: relative; color: var(--accent-nordic); font-weight: 600;
  border-bottom: 1px dotted var(--accent-nordic); cursor: help; }
.model-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 260px; background: var(--text); color: var(--bg); font-family: var(--sans);
  font-weight: 400; font-size: 0.82rem; line-height: 1.45; padding: 10px 12px; border-radius: 8px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none; z-index: 20;
  transition: opacity 0.18s ease, transform 0.18s ease; }
.model-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--text); }
.model-info:hover .model-tip, .model-info:focus .model-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (max-width: 480px) {
  .model-tip { left: 0; transform: translateX(0) translateY(4px); }
  .model-tip::after { left: 24px; }
  .model-info:hover .model-tip, .model-info:focus .model-tip { transform: translateX(0) translateY(0); }
}

/* the blind test, out of its fold and back in the open */
.und-ab { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.und-ab-lead { color: var(--text); font-weight: 500; margin: 0 0 22px; }
