/* Meridian site.
   Concept: a meridian, the one gold line that divides and joins two halves (the icon's bar,
   the two panes, light and dark, what undo puts back and what asks first).
   Colours sampled from the approved icon. Type: Schibsted Grotesk (OFL, self-hosted). */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  --teal: #0B6E7E;
  --petrol: #04363F;
  --deep: #03272E;
  --cream: #F6F5F1;
  --gold: #CC9A3D;
  --sun: #F4C76E;
  --mist: #A9CBD0;

  --bg: var(--cream);
  --bg-2: #EEEDE6;
  --ink: #0D2C32;
  --muted: #47605F;
  --line: #D6D8CF;
  --link: var(--teal);
  --meridian: var(--gold);
  --gold-ink: #835B12;
  --shadow: 0 1px 2px rgba(4, 54, 63, .08), 0 18px 40px -18px rgba(4, 54, 63, .35);

  --r: 12px;
  --r-in: 6px;
  --wrap: 1180px;
  --font: "Schibsted Grotesk", -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--deep);
    --bg-2: var(--petrol);
    --ink: #F1EFE8;
    --muted: var(--mist);
    --line: rgba(169, 203, 208, .2);
    --link: var(--sun);
    --meridian: #E2B04E;
    --gold-ink: var(--sun);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 50px -20px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--meridian); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--bg); padding: 8px 12px; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--link); }
.nav .btn { padding: 9px 16px; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--gold); color: var(--petrol); text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 14px 22px; border-radius: var(--r-in);
  box-shadow: inset 0 -2px 0 rgba(4, 54, 63, .18);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #D9A949; transform: translateY(-1px); }
.btn small { font-weight: 500; opacity: .8; font-size: 14px; }
.brew {
  display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line);
  border-radius: var(--r-in); background: var(--bg-2); font-family: var(--mono); font-size: 14px;
  max-width: 100%;
}
.brew code { padding: 13px 14px; white-space: nowrap; overflow-x: auto; font-size: 14px; }
.brew code::before { content: "$ "; color: var(--muted); }
.brew button {
  font: 600 13px var(--font); color: var(--ink); background: transparent; border: 0;
  border-left: 1px solid var(--line); padding: 0 14px; align-self: stretch; cursor: pointer;
}
.brew button:hover { color: var(--link); }

/* Keycaps */
kbd {
  display: inline-block; min-width: 1.9em; text-align: center; padding: .1em .45em;
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px;
  background: var(--bg); color: var(--ink); font-size: .82em; line-height: 1.5; font-weight: 600;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.stage { position: relative; --pos: 74%; }
.stage .globe {
  position: absolute; width: 500px; height: 500px; pointer-events: none; z-index: 0;
  left: calc(var(--pos) - 250px); top: -470px; color: var(--teal); opacity: .32;
}
@media (prefers-color-scheme: dark) { .stage .globe { color: var(--mist); opacity: .2; } }
.hero-copy { position: relative; z-index: 1; max-width: 900px; }
.hero .lede { max-width: 30em !important; }
.hero h1 { font-size: clamp(38px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; max-width: 21ch; }
.hero .lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 34em; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.req { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Signature: the meridian split. Light window on the left, dark on the right, the icon's gold bar between. */
.split {
  position: relative; z-index: 1; margin: 56px auto 0; aspect-ratio: 2400 / 1520; max-width: 1180px;
  filter: drop-shadow(0 30px 40px rgba(4, 54, 63, .28));
  touch-action: pan-y;
}
.split img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.split .dark { clip-path: inset(0 0 0 var(--pos)); }
.split .bar {
  position: absolute; top: -250px; bottom: -8px; left: var(--pos); width: 6px; margin-left: -3px;
  background: linear-gradient(to bottom, transparent, var(--gold) 120px, var(--gold) calc(100% - 20px), transparent);
  pointer-events: none;
}
.split .sun {
  position: absolute; top: -236px; left: var(--pos); width: 34px; height: 34px; margin-left: -17px;
  border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(244, 199, 110, .25), 0 4px 10px rgba(4, 54, 63, .3);
  pointer-events: none;
}
.split .knob {
  position: absolute; top: 50%; left: var(--pos); width: 22px; height: 64px; margin: -32px 0 0 -11px;
  border-radius: 11px; background: var(--gold); box-shadow: 0 4px 14px rgba(4, 54, 63, .35);
  pointer-events: none; display: grid; place-items: center;
}
.split .knob::before { content: ""; width: 2px; height: 26px; border-left: 2px solid rgba(4, 54, 63, .45); border-right: 2px solid rgba(4, 54, 63, .45); width: 8px; }
.split input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize;
}
.split input:focus-visible ~ .knob { outline: 3px solid var(--ink); outline-offset: 3px; }
.split-note { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* Sections */
section.band { padding: 112px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.head { max-width: 40ch; margin-bottom: 18px; }
.prose { max-width: 62ch; color: var(--muted); font-size: 18px; }
.prose strong { color: var(--ink); }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.shot { border-radius: var(--r); }
.framed { border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; background: var(--bg-2); }

/* Panes: text + clip */
.panes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 26px 0 0; font-size: 16px; }
.keys dt { text-align: right; }
.keys dd { margin: 0; color: var(--muted); align-self: center; }

/* Views: a switcher that behaves like the app's own Command-1 to Command-4 */
.views-top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button {
  font: 600 15px var(--font); color: var(--ink); background: transparent; border: 0; border-radius: var(--r-in);
  padding: 9px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.seg button kbd { font-size: 12px; }
.seg button[aria-selected="true"] { background: var(--bg); box-shadow: 0 1px 3px rgba(4, 54, 63, .2); }
@media (prefers-color-scheme: dark) { .seg button[aria-selected="true"] { background: var(--teal); } }
.view-panel[hidden] { display: none; }

/* Notes: mixed-size grid */
.notes-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 24px; margin-top: 44px; align-items: start; }
.notes-grid .tall img { width: 100%; }
.notes-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }

/* AI */
.ai { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; vertical-align: top; }
thead th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
tbody td:first-child { font-weight: 600; padding-left: 10px; }
.providers { margin: 28px 0; }
.plan { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; margin-top: 96px; }

/* Undo ledger: the meridian runs down the middle */
.ledger { display: grid; grid-template-columns: 1fr 6px 1fr; gap: 0 48px; margin-top: 44px; }
.ledger .rule { background: linear-gradient(to bottom, var(--meridian), var(--meridian) 92%, transparent); border-radius: 3px; position: relative; }
.ledger .rule::before { content: ""; position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--sun); }
.ledger h3 { margin-bottom: 14px; }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ledger li { padding: 12px 16px; border-radius: var(--r-in); background: var(--bg-2); font-weight: 500; }
.ledger .back li::before { content: "\2318Z"; font: 600 12px var(--mono); color: var(--gold-ink); margin-right: 10px; }
.ledger .asks li::before { content: "Plan"; font: 600 12px var(--mono); color: var(--muted); margin-right: 10px; }
.ledger p { color: var(--muted); font-size: 15px; margin-top: 16px; }
.toast-shot { margin-top: 20px; width: 300px; border-radius: 10px; box-shadow: var(--shadow); }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.privacy h2 { font-size: clamp(36px, 4.6vw, 60px); }
.flows { display: grid; gap: 0; }
.flow { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.flow:first-child { border-top: 0; padding-top: 0; }
.flow b { font-weight: 700; }
.flow span { color: var(--muted); }

/* Also in the box */
.box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; margin-top: 40px; }
.box div { border-left: 2px solid var(--meridian); padding-left: 14px; }
.box b { display: block; font-weight: 700; margin-bottom: 4px; }
.box span { color: var(--muted); font-size: 15px; }
.also { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

/* Video slot */
.video-slot { aspect-ratio: 16 / 9; border: 2px dashed var(--meridian); border-radius: var(--r); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.player { position: relative; }
.player button.play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--petrol); font: 700 15px var(--font); cursor: pointer; box-shadow: var(--shadow);
}

/* Clip */
.clip { position: relative; }
.clip button {
  position: absolute; right: 12px; bottom: 12px; font: 600 13px var(--font); border: 0; border-radius: var(--r-in);
  padding: 6px 10px; background: rgba(4, 54, 63, .78); color: var(--cream); cursor: pointer;
}

/* Closing */
.closing { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.closing h2 { font-size: clamp(34px, 4.4vw, 56px); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: start; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--link); text-decoration: underline; }

/* Docs and text pages */
.page { padding: 56px 0 96px; }
.page-head { margin-bottom: 36px; max-width: 60ch; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.035em; }
.page-head p { color: var(--muted); font-size: 19px; margin-top: 14px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.docs nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 24px; display: grid; gap: 2px; }
.docs nav a { display: block; padding: 8px 12px; border-radius: var(--r-in); color: var(--ink); text-decoration: none; font-weight: 500; border-left: 3px solid transparent; }
.docs nav a:hover { background: var(--bg-2); }
.docs nav a[aria-current] { border-left-color: var(--meridian); background: var(--bg-2); font-weight: 700; }
.md { max-width: 74ch; }
.md h2 { font-size: 28px; margin: 48px 0 14px; letter-spacing: -.02em; }
.md h3 { margin: 32px 0 10px; }
.md p, .md li { color: var(--ink); }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 1em; }
.md li { margin-bottom: .35em; }
.md picture img, .md > p > img { border-radius: var(--r); box-shadow: var(--shadow); margin: 24px 0; }
.md img[width] { width: min(100%, 420px); }
.md pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-in); padding: 14px 16px; overflow-x: auto; }
.md :not(pre) > code { background: var(--bg-2); padding: .1em .35em; border-radius: 4px; }
.md table { margin: 16px 0 24px; }
.md td, .md th { border-bottom: 1px solid var(--line); }
.md tbody tr:nth-child(even) td { background: transparent; }
.md tbody td:first-child { padding-left: 0; }
.md td:first-child kbd, .md td kbd { white-space: nowrap; }
.md blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--meridian); color: var(--muted); }

/* Press */
.facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.facts table td { border-bottom: 1px solid var(--line); }
.facts table td:first-child { color: var(--muted); font-weight: 500; width: 9em; padding-left: 0; }
.facts tbody tr:nth-child(even) td { background: transparent; }
.assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.asset { background: var(--bg-2); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; align-content: start; }
.asset img { border-radius: var(--r-in); }
.asset .dl { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.swatch { border-radius: var(--r-in); overflow: hidden; border: 1px solid var(--line); font-size: 13px; }
.swatch i { display: block; height: 70px; }
.swatch span { display: block; padding: 8px 10px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 24px; margin-top: 24px; }
.shots figure img { border-radius: var(--r-in); box-shadow: var(--shadow); aspect-ratio: 2400 / 1520; object-fit: cover; object-position: top left; width: 100%; }
.shots figcaption a + a { margin-left: 12px; }
.press-sec { margin-top: 80px; }
.press-sec > p { color: var(--muted); max-width: 62ch; }

/* Support */
.support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--bg-2); border-radius: var(--r); padding: 28px; }
.card h2 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card ol { padding-left: 1.2em; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .panes, .ai, .plan, .privacy, .also, .closing, .notes-intro, .facts { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .notes-grid .wide { grid-column: 1 / -1; }
  .box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs nav ul { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .docs nav a { border-left: 0; border-bottom: 3px solid transparent; }
  .docs nav a[aria-current] { border-bottom-color: var(--meridian); }
  .assets, .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage .globe, .split .bar, .split .sun { display: none; }
  .split .bar { display: block; top: -8px; background: var(--gold); }
  section.band { padding: 80px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 36px; }
  .nav ul { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 44px; }
  .split { margin-top: 64px; }
  .split .knob { height: 48px; margin-top: -24px; }
  .ledger { grid-template-columns: 1fr; gap: 32px; }
  .ledger .rule { height: 6px; background: linear-gradient(to right, var(--meridian), var(--meridian) 92%, transparent); }
  .ledger .rule::before { top: 50%; left: -4px; margin: -11px 0 0; }
  .flow { grid-template-columns: 1fr; gap: 4px; }
  .box, .support, .assets, .shots, .swatches { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { flex-wrap: wrap; }
  .seg button kbd { display: none; }
  .brew code { font-size: 12.5px; padding: 12px 10px; }
  section.band { padding: 64px 0; }
  .plan { margin-top: 64px; }
  .keys dt { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Tall panel crops read at roughly the size they have in the app. */
.ai figure img { max-width: min(100%, 380px); margin-inline: auto; }
.notes-grid .tall img { max-width: min(100%, 340px); }
