/* KONSOLL — site stylesheet.
   The plug-in's own Soft Strata world: a warm light body, light cards with hairlines, the dark
   performance panel for emphasis, teal for actions and the four module colours (Brand tokens in
   Source/UI/StudioLookAndFeel.h). Geist Mono for everything the plug-in would label, a system
   sans for running copy. Self-hosted font (SIL OFL); nothing from a CDN. */

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #deddd6;
  --header: #e8e6de;
  --card: #f4f2ec;
  --well: #ebe9e2;
  --field: #faf9f5;
  --line: #cfcdc5;
  --line-soft: #d6d3cb;
  --ink: #303b3d;
  --ink-soft: #3d494b;
  --muted: #5d6766;     /* 5.0:1 on --surface */
  --teal: #387e7b;
  --teal-wash: #e0ebe6;
  --perf: #43514e;
  --perf-ink: #f0efe8;
  --perf-muted: #c4cec6;
  --heat: #cf794e; --sway: #4584b1; --air: #68a58e; --grain: #9280bb;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5.6vw, 48px);
  --measure: 1120px;
  --measure-text: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.6 var(--sans); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(56, 126, 123, .3); }
a:hover { border-bottom-color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--field); padding: 8px 12px; z-index: 10; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(232, 230, 222, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.brandline { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumb { font: 11.5px/1 var(--mono); letter-spacing: .16em; color: var(--muted); border: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.crumb .logo { display: block; height: 14px; width: auto; transform: translateY(-1.6px); } /* letters' body centred, not the tall f and l */
.crumb:hover { color: var(--teal); }
.crumb-sep { font: 11.5px/1 var(--mono); color: #9aa19c; }
.wordmark-link { border: 0; display: inline-flex; }
.wordmark-link img { height: 18px; width: auto; }
.topnav { display: flex; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; }
.topnav a { font: 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 0; padding-block: 8px; }
.topnav a:hover { color: var(--ink); }

/* Phones: the bar stacks into two rows with room above, between and below; the links stay on
   one line and scroll sideways if a narrow screen cannot fit them (04.10: the rows sat flush
   against the top edge and the bottom rule). */
@media (max-width: 600px) {
  .topbar .wrap { min-height: 0; padding-block: 14px 10px; row-gap: 10px; }
  .topnav { width: 100%; flex-wrap: nowrap; gap: 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; letter-spacing: .08em; padding-block: 6px; }
}
@media (max-width: 360px) {
  .topnav { gap: 13px; }
  .topnav a { letter-spacing: .03em; font-size: 11px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 80px) clamp(28px, 4vw, 44px); }
.eyebrow { font: 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; gap: 14px; align-items: baseline; }
.eyebrow .num { color: var(--ink); }
.hero .mark { height: clamp(34px, 6vw, 56px); width: auto; margin-bottom: 24px; }
h1 { font: 400 clamp(26px, 4.4vw, 42px)/1.15 var(--mono); letter-spacing: -.015em; margin: 0 0 18px; max-width: 22ch; text-wrap: balance; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); max-width: var(--measure-text); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.chips li.soon { color: var(--teal); border-color: rgba(56, 126, 123, .45); background: var(--teal-wash); }
.hero-shot { margin-top: clamp(28px, 4vw, 44px); }
.hero-shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(48, 59, 61, .14); }

/* ---------- sections ---------- */
section { padding-block: clamp(40px, 7vw, 76px); border-top: 1px solid var(--line-soft); }
section.hero { border-top: 0; }
h2 { font: 400 clamp(22px, 3vw, 28px)/1.25 var(--mono); margin: 0 0 14px; text-wrap: balance; }
h3 { font: 400 15px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.text { max-width: var(--measure-text); }
.text p { margin: 0 0 14px; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
figure { margin: 0; }
figure img { border-radius: 10px; border: 1px solid var(--line); }
figcaption { font: 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* modules: the plug-in's cards */
/* One, two or four across, never three: a lone GRAIN on its own row reads as a leftover. */
.modules { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
@media (min-width: 520px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .modules { grid-template-columns: repeat(4, 1fr); } }
.module { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.module h3 { display: flex; gap: 10px; align-items: center; }
.module h3 .d { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.module h3 .n { color: var(--muted); }
.module p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.module .fx { font: 12px/1.6 var(--mono); color: var(--ink); margin-top: 10px; }

/* features on the dark performance panel, as Trace / Hold / Master sit in the plug-in */
.perf { background: var(--perf); color: var(--perf-ink); border-radius: 10px; padding: clamp(18px, 3vw, 28px); margin-top: 28px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.features li { padding: 14px 0; border-bottom: 1px solid rgba(240, 239, 232, .14); display: grid; gap: 4px; align-content: start; }
.features b { font: 400 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.features span { color: var(--perf-muted); font-size: 15px; }

/* get the beta */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 24px; container-type: inline-size; }
/* Each card spans five shared rows (platform, format, details, two buttons), so side by side
   their lines and first buttons stay level even when one card's details wrap. */
.dl { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 8px; align-content: start; }
.dl .plat { font: 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.dl p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.dl .size { font: 12px/1.5 var(--mono); color: var(--muted); }
/* Stacked in one column there is nothing to line up with; drop the shared rows so a short card keeps its own height. */
@container (max-width: 655px) { .dl { grid-row: auto; grid-template-rows: none; } }
.btn { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 10px; font: 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 13px 18px; border-radius: 7px; border: 1px dashed #b9b7af; color: var(--muted); background: transparent; }
.btn .pill { font-size: 10px; letter-spacing: .12em; padding: 4px 6px; border-radius: 4px; background: var(--teal); color: var(--field); }
.btn.later .pill { background: #9aa19c; }
@media (max-width: 600px) { .btn { justify-self: stretch; justify-content: space-between; } }
.note { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--teal); background: var(--teal-wash); border-radius: 0 8px 8px 0; color: var(--ink-soft); max-width: 78ch; }
.note p { margin: 0; }

/* links */
.link-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 28px; margin-top: 18px; }
.link-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.link-row .k { font: 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

footer { border-top: 1px solid var(--line-soft); padding-block: 28px 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 12px/1.6 var(--mono); color: var(--muted); letter-spacing: .04em; }
