@font-face{font-family:'JetBrains Mono';font-weight:400;font-style:normal;font-display:swap;src:url(fonts/jetbrains-mono-400.woff2) format('woff2');}
@font-face{font-family:'JetBrains Mono';font-weight:500;font-style:normal;font-display:swap;src:url(fonts/jetbrains-mono-500.woff2) format('woff2');}
@font-face{font-family:'Schibsted Grotesk';font-weight:400 800;font-style:normal;font-display:swap;src:url(fonts/schibsted-grotesk-400-800.woff2) format('woff2');}
:root {
  --ink: #0f1a2b;
  --ink-soft: #4a586c;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #d9dfea;
  --cobalt: #2350e8;
  --cobalt-dark: #1a3dba;
  --term: #0d1420;
  --term-bar: #161f2e;
  --term-line: #26324a;
  --prod: #d6403a;
  --ok: #3ecf8e;
  --radius: 10px;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--cobalt); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 9px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-note { color: var(--ink-soft); font-size: 0.92rem; }

/* Type */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 46ch; line-height: 1.5; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

section { padding: clamp(56px, 8vw, 104px) 0; }

/* Hero */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* The app window in the hero */
.window { background: var(--term); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(15, 26, 43, .55), 0 0 0 1px rgba(15, 26, 43, .12); font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 0.82rem; line-height: 1.65; color: #d7deea; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--term-bar); border-bottom: 1px solid var(--term-line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #3a4660; }
.dot:nth-child(1) { background: #ff5f57; } .dot:nth-child(2) { background: #febc2e; } .dot:nth-child(3) { background: #28c840; }
.window-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 330px; }
.sidebar { background: #101827; border-right: 1px solid var(--term-line); padding: 12px 8px; font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 0.8rem; }
.sidebar .group { color: #6f7d96; font-size: 0.72rem; margin: 4px 8px 6px; }
.profile { display: block; padding: 6px 8px; border-radius: 6px; color: #aab5c8; line-height: 1.3; margin-bottom: 2px; }
.profile small { display: block; color: #6f7d96; font-size: 0.7rem; }
.profile.on { background: #1d2940; color: #fff; }
.profile.prod { box-shadow: inset 3px 0 0 var(--prod); }
.pane { padding: 14px 16px 18px; min-width: 0; transition: box-shadow .3s; }
.pane.prod { box-shadow: inset 0 0 0 2px var(--prod); background: #170f14; }
.pane-title { font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 0.78rem; color: #8f9cb3; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tag-prod { background: var(--prod); color: #fff; font-weight: 700; font-size: 0.68rem; padding: 1px 7px; border-radius: 4px; }
.t-line { white-space: pre-wrap; word-break: break-word; min-height: 1.65em; }
.t-prompt { color: var(--ok); }
.t-dim { color: #7a879f; }
.t-warn { color: #f4b860; }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: #d7deea; vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.guard { margin-top: 12px; border: 1px solid var(--prod); border-radius: 8px; padding: 12px 14px; background: #22121a; font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 0.86rem; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.guard.show { opacity: 1; transform: none; }
.guard strong { color: #fff; display: block; margin-bottom: 4px; }
.guard-actions { display: flex; gap: 8px; margin-top: 10px; }
.guard-actions span { padding: 4px 12px; border-radius: 6px; border: 1px solid #5a2a35; color: #e6bcc4; font-size: 0.8rem; }
.guard-actions span.primary { background: #3b1c26; color: #fff; }
.caption { color: var(--ink-soft); font-size: 0.9rem; margin-top: 14px; max-width: 60ch; }
@media (max-width: 560px) { .window-body { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* Ruled lists (Pro tools, features) */
.rows { border-top: 1.5px solid var(--ink); margin-top: 36px; }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row h3 { padding-top: 2px; }
.row p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split .intro p { color: var(--ink-soft); max-width: 44ch; margin-top: 18px; }

.band { background: var(--ink); color: #e8edf6; }
.band h2, .band h3 { color: #fff; }
.band .intro p, .band .row p { color: #aab6ca; }
.band .rows { border-top-color: #e8edf6; }
.band .row { border-bottom-color: #2a3750; }
.band a { color: #8fb0ff; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.plan.pro { border: 2px solid var(--cobalt); }
.price { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; }
.plan li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 6px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
.plan .muted { color: var(--ink-soft); font-size: 0.95rem; }
.faq { max-width: 70ch; margin-top: 28px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* Download */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); max-width: 560px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 550; }
.steps { padding-left: 1.2em; max-width: var(--measure); }
.steps li { margin-bottom: 0.6em; }
code, kbd { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 0.88em; background: #e7ecf6; padding: 1px 6px; border-radius: 5px; }

.page-head { padding: clamp(32px, 6vw, 72px) 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: 18px; }
.updated { color: var(--ink-soft); font-size: 0.92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-soft); font-size: 0.93rem; }
.site-footer .wrap { display: flex; gap: 20px 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .guard { transition: none; }
}

/* Nav links must not override the button's own colors (equal-specificity trap). */
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--white); }

/* Thank-you page */
.notice { padding: 14px 16px; border-left: 3px solid var(--cobalt); background: var(--white); max-width: 62ch; }
.key-box { margin: 24px 0 8px; max-width: 62ch; }
.key-box textarea { width: 100%; min-height: 120px; resize: vertical; padding: 14px; font: 0.8rem/1.5 'JetBrains Mono', ui-monospace, Menlo, monospace; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); word-break: break-all; }
.key-box .btn { margin-top: 12px; cursor: pointer; font-family: inherit; }
[hidden] { display: none !important; }

/* Text pages: keep the reading column on the same left edge as the headline above it. */
.wrap.prose { max-width: 1120px; }
.wrap.prose > * { max-width: var(--measure); }
