/* Shared styles for the home page and the partner pages. The home page is one long scroll: the four-step journey, the problem, "every AI is yours", how it works, apps that stay alive, a forwardable IT section, why Gliss, and the waiting list. */
:root {
  --paper: #f4f6f8;
  --card: #ffffff;
  --ink: #121826;
  --muted: #586274;
  --line: #dde2e9;
  --accent: #0d7a68;
  --accent-ink: #ffffff;
  --glide: #f2a43a;
  --soft: #e6f2ef;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e131b; --card: #151c27; --ink: #e8ecf2; --muted: #9ba6b6; --line: #253041;
    --accent: #3cc6ab; --accent-ink: #062b24; --glide: #ffbe5c; --soft: #12302b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e131b; --card: #151c27; --ink: #e8ecf2; --muted: #9ba6b6; --line: #253041;
  --accent: #3cc6ab; --accent-ink: #062b24; --glide: #ffbe5c; --soft: #12302b; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--glide); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--muted); font-size: 19px; max-width: 62ch; }
section { padding-block: clamp(56px, 9vw, 104px); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark { font: 800 26px/1 var(--display); letter-spacing: -0.04em; }
.wordmark i { font-style: normal; color: var(--glide); }
.logo { display: block; height: 42px; width: auto; }
footer .logo { height: 28px; }
.by { font-size: 13px; color: var(--muted); }
.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--body); padding: 14px 20px; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.nav .btn { padding: 10px 16px; font-size: 15px; }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero h1 { font-size: clamp(42px, 7.2vw, 84px); font-weight: 800; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 22px; font-size: clamp(19px, 2.2vw, 23px); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.tools { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Four equal cards in a row, joined by arrows in the gaps; on narrow screens they stack with down arrows. */
.journey { position: relative; margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.stop { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stop:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -36px; width: 36px; transform: translateY(-50%); text-align: center; font: 700 22px/1 var(--display); color: var(--glide); }
.stop-label { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stop-label b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--glide); color: #2b1a00; font-size: 12px; letter-spacing: 0; }
.bubble { background: var(--soft); border-radius: 12px 12px 12px 4px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.code { font: 12.5px/1.6 var(--mono); color: var(--muted); background: var(--paper); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
.code .k { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.livecard { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.livebar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--paper); font: 12px/1 var(--mono); color: var(--muted); overflow: hidden; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.livebody { padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.row { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; font-variant-numeric: tabular-nums; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--accent); }
.stop small { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Name: a dictionary entry for "gliss" */
.name { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.entry { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.headword { font: 800 clamp(44px, 6vw, 64px)/1 var(--display); letter-spacing: -0.04em; }
.headword i { font-style: normal; color: var(--glide); }
.pron { margin-top: 10px; font: 15px/1.4 var(--mono); color: var(--muted); }
.entry .def { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.entry .def p { color: var(--muted); }
.entry .def p:first-child { color: var(--ink); font-size: 19px; }
.keys { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 18px; }
.keys span { flex: 1; max-width: 14px; border-radius: 3px 3px 0 0; background: var(--glide); opacity: .85; }

/* Split: what the AI writes vs what Gliss provides */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 44px; }
.ledger { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.ledger dt, .ledger .who { font-weight: 600; }
.ledger .what { color: var(--muted); }
.yaml { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.yaml-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 13px/1 var(--mono); color: var(--muted); flex-wrap: wrap; }
.yaml pre { margin: 0; padding: 18px 16px; font: 14px/1.7 var(--mono); overflow-x: auto; }
.yaml .k { color: var(--accent); } .yaml .c { color: var(--muted); }
.yaml-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.stage { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage + .stage { border-left: 1px solid var(--line); }
.stage .tag { align-self: flex-start; font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--paper); color: var(--muted); }
.stage p { color: var(--muted); }
.stage .act { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--accent); }
.frictions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.frictions p { color: var(--muted); margin-top: 6px; }

/* Alive */
.alive { border-top: 1px solid var(--line); }
.feed { margin-top: 40px; display: grid; gap: 10px; max-width: 760px; }
.event { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.event time { font: 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.event .state { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--accent); white-space: nowrap; }

/* For IT */
.forit-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.forit-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.forit-top .stack { max-width: 640px; }
.copy-status { font-size: 14px; color: var(--accent); min-height: 1.4em; }
.it-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.it-item { padding-block: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.it-item p { color: var(--muted); font-size: 16px; }
.where { overflow-x: auto; }
.where table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.where th, .where td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.where th { font: 600 13px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.where td:first-child { font-weight: 600; white-space: nowrap; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: 16px/1.4 var(--body); padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note.error { color: #b42318; }
.thanks { font-weight: 600; color: var(--accent); }
.optional { font-weight: 400; color: var(--muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.done h3 { color: var(--accent); }
footer { padding-block: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.example { align-self: flex-start; font: 600 11px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px dashed var(--line); color: var(--muted); }

/* Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
/* Without Gliss / with Gliss, side by side: the old way stays readable, the Gliss way is the highlight. */
.mess { display: grid; gap: 10px; margin: 0; }
.mess-head, .mess-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; align-items: center; }
.mess-head { padding: 0 16px; font: 600 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mess-head span:last-child { grid-column: 3; color: var(--accent); }
.mess-row { padding: 14px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 16px; line-height: 1.35; }
.mess-row .was, .mess-row .now { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.mess-row .was { color: var(--muted); }
.mess-row .now { font-weight: 600; color: var(--ink); }
.mess-row .was::before { content: "✕"; color: var(--muted); font-size: 13px; flex: none; }
.mess-row .now::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.mess-row .to { color: var(--glide); font-weight: 700; text-align: center; }

/* Every AI is yours */
.yours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.yours div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.yours .who { font: 600 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--glide); }
.yours p { color: var(--muted); font-size: 16px; }
.yours-note { margin-top: 22px; color: var(--muted); font-size: 16px; max-width: 70ch; }

/* Checkable fix */
.alive-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 40px; }
.alive-grid .feed { margin-top: 0; }
.fixcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fixhead { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.fixhead small { color: var(--muted); font-size: 14px; }
.proofs { list-style: none; margin: 0; padding: 8px 18px; }
.proofs li { display: flex; gap: 10px; align-items: baseline; padding-block: 9px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.proofs li:last-child { border-bottom: 0; }
.tick { color: var(--accent); font-weight: 700; flex: none; }
.fixfoot { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fixfoot code { font: 13px/1.4 var(--mono); color: var(--ink); }

/* Decision packet */
.decision { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.dec-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 15px; }
.dec-head span { color: var(--muted); font-size: 14px; }
.dec-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.dec-body > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.dec-body > div + div { border-left: 1px solid var(--line); }
.dec-body .lbl { font: 600 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dec-ai { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.dec-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 18px 16px; }
.dec-actions .btn { padding: 10px 14px; font-size: 15px; }

.dec-head .example { margin-right: 8px; vertical-align: 2px; }

@media (max-width: 900px) {
  .journey { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 32px; }
  .stop:not(:last-child)::after { content: "↓"; top: auto; bottom: -32px; right: auto; left: 50%; width: 32px; height: 32px; line-height: 32px; transform: translateX(-50%); }
  .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .stages, .yours, .problem, .alive-grid { grid-template-columns: minmax(0, 1fr); }
  .frictions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage + .stage { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .entry { grid-template-columns: minmax(0, 1fr); }
  .it-grid, .frictions, .dec-body { grid-template-columns: minmax(0, 1fr); }
  .dec-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .event { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nav-links a:not(.btn) { display: none; }
}

/* Partner pages */
.money { margin-top: clamp(40px, 6vw, 64px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 28px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.money-head p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.money-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.money-lines li { display: grid; grid-template-columns: 12px minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: baseline; padding-block: 11px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.money-lines li:last-child { border-bottom: 0; }
.money-lines .dot { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.money-lines span:not(.dot) { color: var(--muted); }
.money-lines em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.money-lines li:first-child em { background: var(--soft); color: var(--accent); }
.groups { margin-top: 32px; }
.groups table { min-width: 680px; }
.verdict { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: var(--paper); color: var(--muted); }
.verdict.yes { background: var(--soft); color: var(--accent); }
.verdict.partly { border: 1px dashed var(--glide); background: transparent; color: var(--ink); }
.callout { margin-top: 32px; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--glide); background: var(--card); display: grid; gap: 6px; max-width: 860px; }
.callout p { color: var(--muted); }
.journey .stop-label { line-height: 1.25; }
.journey .stop p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.calc { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.calc-out { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: grid; gap: 14px; }
.calc-out table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.calc-out th, .calc-out td { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.calc-out th:first-child, .calc-out td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.calc-out th { font: 600 12px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.calc-out tbody td:first-child { color: var(--muted); }
.calc-out tfoot td { border-bottom: 0; padding-top: 16px; font-weight: 700; }
.calc-out tfoot td:not(:first-child) { font: 800 clamp(19px, 2vw, 24px)/1 var(--display); color: var(--accent); }
.calc-out tfoot td.neg { color: #e5484d; }
.calc-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dont { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dont div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 6px; }
.dont .who { font: 600 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.dont div + div .who { color: var(--muted); }
.tm-note { color: var(--muted); font-size: 12px; padding-bottom: 28px; }
@media (max-width: 900px) {
  .money, .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .money-lines li { grid-template-columns: 12px minmax(0, 1fr) auto; row-gap: 2px; }
  .money-lines em { grid-column: 3; grid-row: 1; }
  .money-lines span:not(.dot) { grid-column: 2 / -1; grid-row: 2; font-size: 14px; }
  .groups table { min-width: 0; }
  .groups th:nth-child(2), .groups td:nth-child(2) { display: none; }
  .calc-pair, .dont { grid-template-columns: minmax(0, 1fr); }
}
