/* OrgSight website. Glass, buttons and type follow the app (src/index.css); colours are the brand's
   (branding/brand-pack/brand-guidelines.md). Dark or light follows the visitor's system setting, unless they use
   the header switch, which sets data-theme on <html> (assets/site.js). */
:root {
  color-scheme: dark;
  --bg: #061423; --window: rgb(6 20 35 / .55);
  /* The SecureReport backdrop in OrgSight's colours: soft glows over the base colour, with the animated canvas
     (assets/site.js) drawn on top. No scene pictures. */
  --backdrop:
    radial-gradient(55rem 40rem at 18% -8%, color-mix(in srgb, #6cc4ff 13%, transparent), transparent 70%),
    radial-gradient(45rem 34rem at 88% 6%, color-mix(in srgb, #6fd6b0 7%, transparent), transparent 70%),
    radial-gradient(70rem 50rem at 50% 115%, color-mix(in srgb, #1d5fa8 22%, transparent), transparent 72%),
    var(--bg);
  --surface: rgb(8 24 40 / .78); --surface-solid: #0c2236; --surface-2: rgb(255 255 255 / .07);
  --border: rgb(160 210 255 / .16);
  --ink: #eef1f6; --muted: #b0b8c6;
  --accent: #6cc4ff; --accent-ink: #04203a;
  --ok: #6fd6b0; --warn: #f0c259; --danger: #ff9f87; --focus: #f0c259;
  --panel-blur: 24px;
  --panel-shadow: 0 1px 0 0 rgb(255 255 255 / .08) inset, 0 20px 50px -20px rgb(0 0 0 / .45);
  --line: var(--border);
  --display: "Archivo", "Atkinson Hyperlegible Next", sans-serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
/* Light tokens appear twice: once for the system setting, once for the switch. Keep the two blocks the same. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f7fa; --window: rgb(245 247 250 / .7);
    --backdrop:
      radial-gradient(55rem 40rem at 18% -8%, color-mix(in srgb, #1d7acd 16%, transparent), transparent 70%),
      radial-gradient(45rem 34rem at 88% 6%, color-mix(in srgb, #28c199 12%, transparent), transparent 70%),
      radial-gradient(70rem 50rem at 50% 115%, color-mix(in srgb, #5eaff0 22%, transparent), transparent 72%),
      var(--bg);
    --surface: rgb(255 255 255 / .72); --surface-solid: #ffffff; --surface-2: rgb(10 31 50 / .05);
    --border: rgb(10 31 50 / .14);
    --ink: #0a1f32; --muted: #4a5f75;
    --accent: #1a6dbb; --accent-ink: #ffffff;
    --ok: #0f7a5a; --warn: #8f6200; --danger: #b5452b; --focus: #1a6dbb;
  }
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: block; }
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fa; --window: rgb(245 247 250 / .7);
    --backdrop:
      radial-gradient(55rem 40rem at 18% -8%, color-mix(in srgb, #1d7acd 16%, transparent), transparent 70%),
      radial-gradient(45rem 34rem at 88% 6%, color-mix(in srgb, #28c199 12%, transparent), transparent 70%),
      radial-gradient(70rem 50rem at 50% 115%, color-mix(in srgb, #5eaff0 22%, transparent), transparent 72%),
      var(--bg);
    --surface: rgb(255 255 255 / .72); --surface-solid: #ffffff; --surface-2: rgb(10 31 50 / .05);
    --border: rgb(10 31 50 / .14);
    --ink: #0a1f32; --muted: #4a5f75;
    --accent: #1a6dbb; --accent-ink: #ffffff;
    --ok: #0f7a5a; --warn: #8f6200; --danger: #b5452b; --focus: #1a6dbb;
}
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.logo-light { display: none; }
@media (prefers-reduced-transparency: reduce) { :root { --surface: var(--surface-solid); --panel-blur: 0px; } }

* { box-sizing: border-box; }
/* Author styles like `input { display: block }` would otherwise un-hide hidden elements (the form's spam trap among them). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
/* body stays transparent so the fixed scene behind it shows through the glass */
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; }
/* One fixed backdrop behind every page. */
body::before { content: ""; position: fixed; inset: 0; z-index: -10; background: var(--backdrop); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.06; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 3.9vw, 3.1rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.15; }
p { margin: 0; max-width: 62ch; }
.muted { color: var(--muted); }
.symbol { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: .01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(40px, 6vw, 84px) 0; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); margin-top: 20px; }

/* Glass, as in the app: the tint is fixed for contrast, so glassiness comes from the rim, top edge and inner glow. */
.glass {
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  backdrop-filter: blur(var(--panel-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(140%);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, #fff 16%, transparent),
    inset 0 0 0 1px color-mix(in oklab, #fff 4%, transparent),
    inset 0 -12px 24px -20px color-mix(in oklab, var(--accent) 35%, transparent),
    var(--panel-shadow);
}
.panel { border-radius: 28px; padding: clamp(20px, 3vw, 36px); }
.well { background: color-mix(in oklab, var(--surface-solid) 72%, transparent); border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); box-shadow: inset 0 2px 6px -2px rgb(0 0 0 / .35), inset 0 -1px 0 color-mix(in oklab, #fff 8%, transparent); }
/* The app's frosted selection pill. */
.selected, .nav nav a:hover, .tabs button[aria-selected="true"], .cap[aria-pressed="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 17%, transparent), color-mix(in oklab, var(--ink) 7%, transparent));
  border-color: color-mix(in oklab, var(--ink) 20%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 28%, transparent), 0 8px 18px -10px rgb(0 0 0 / .55);
}

/* The app's glass buttons. Primary: accent glass. Quiet: frosted tint and rim. */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none; font: 700 1rem var(--sans); white-space: nowrap;
  background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 92%, #000));
  color: var(--accent-ink);
  border: 1px solid color-mix(in oklab, var(--accent) 65%, #fff);
  box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 45%, transparent), 0 8px 20px -10px var(--accent);
  transition: filter .2s, box-shadow .2s, transform .15s, background .2s, border-color .2s;
}
.btn:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 50%, transparent), 0 10px 24px -8px var(--accent); }
.btn:active { transform: scale(.97); }
.btn.quiet {
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 13%, transparent), color-mix(in oklab, var(--ink) 5%, transparent));
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--ink) 24%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 24%, transparent), 0 6px 14px -10px rgb(0 0 0 / .55);
  backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.btn.quiet:hover { filter: none; background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 19%, transparent), color-mix(in oklab, var(--ink) 9%, transparent)); border-color: color-mix(in oklab, var(--accent) 55%, transparent); }

/* nav: a floating glass bar */
.nav { position: sticky; top: 0; z-index: 20; padding: 12px var(--gutter) 0; }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 14px 0 18px; border-radius: 22px; }
.nav img { height: 40px; width: auto; }
.nav nav { margin-left: auto; display: flex; gap: 4px; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.nav .btn { padding: 9px 18px; font-size: .95rem; }
@media (max-width: 900px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 84px); }
.hero .wrap { display: grid; gap: 24px; align-items: stretch; }
.hero .wrap > * { min-width: 0; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 5fr 6fr; } }
.hero .intro { display: flex; flex-direction: column; justify-content: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* hero: capability map. Each tile is a capability with its maturity now against target; choosing one traces it to skills and people. */
.maphead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.maphead span { font-size: .85rem; color: var(--muted); }
.bandname { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr 1fr; } }
.cap { text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; transition: background .2s, border-color .2s, box-shadow .2s; }
.cap:hover { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.cap b { display: block; font: 700 .86rem/1.2 var(--sans); min-height: 2.4em; }
.cap small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.cap.ok { --c: var(--ok); } .cap.below { --c: var(--warn); } .cap.risk { --c: var(--danger); } .cap.none { --c: transparent; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 8px; position: relative; }
.meter i { height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 14%, transparent); }
.meter i.f { background: var(--c); transform-origin: left; animation: fill-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n) * 90ms + 500ms); }
/* the target level: a tick at the end of its segment */
.meter::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--ink); left: calc(var(--t) * 20% - 2px); }
@keyframes fill-in { from { transform: scaleX(0); } }
.trace { margin-top: 16px; padding: 14px 16px; border-radius: 16px; min-height: 11.5rem; }
.trace h3 { font-size: 1.05rem; }
.trace .state { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.sk { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 10px; align-items: baseline; font-size: .9rem; padding: 7px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.sk + .sk { margin-top: 0; }
.sk .symbol { font-size: .82rem; }
.sk .q { font-weight: 600; text-align: right; }
.sk .q.short { color: var(--warn); } .sk .q.one { color: var(--danger); } .sk .q.full { color: var(--ok); }
.trace .tip { font-size: .9rem; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); }

/* problem */
.problem .wrap { display: grid; gap: 24px; }
@media (min-width: 1000px) {
  .problem .wrap { grid-template-columns: 5fr 6fr; }
  .problem .head { position: sticky; top: 100px; align-self: start; }
}
.pain { display: grid; grid-template-columns: 132px 1fr; gap: 26px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line); }
.pain:first-child { border-top: 0; padding-top: 0; }
.pain:last-child { padding-bottom: 0; }
.pain p { color: var(--muted); margin-top: 8px; }
@media (max-width: 520px) { .pain { grid-template-columns: 1fr; } }
.fig { width: 132px; height: 96px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); box-shadow: inset 0 2px 6px -2px rgb(0 0 0 / .35); padding: 12px; position: relative; overflow: hidden; }

.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 100%; }
.cells span { position: relative; border-radius: 4px; background: color-mix(in oklab, var(--ink) 9%, transparent); font: 700 .7rem var(--sans); display: grid; place-items: center; color: var(--ok); animation: fade-val 5s var(--d, 0s) infinite; }
.cells span::after { content: "?"; position: absolute; color: var(--warn); animation: fade-q 5s var(--d, 0s) infinite; }
@keyframes fade-val { 0%, 25% { color: var(--ok); } 45%, 85% { color: transparent; } 100% { color: var(--ok); } }
@keyframes fade-q { 0%, 25% { opacity: 0; } 45%, 85% { opacity: 1; } 100% { opacity: 0; } }

.scales { display: grid; gap: 13px; align-content: center; height: 100%; }
.scales i { display: block; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 14%, transparent); position: relative; }
.scales i::after { content: ""; position: absolute; top: -5px; left: var(--at); width: 16px; height: 16px; border-radius: 50%; background: var(--accent); animation: wander 4s var(--d) ease-in-out infinite alternate; }
@keyframes wander { to { left: var(--to); } }

.spof { display: grid; align-content: center; gap: 12px; height: 100%; }
.spof b { display: block; height: 14px; border-radius: 7px; background: var(--ok); animation: bar-fail 6s infinite; }
.spof span { display: flex; gap: 7px; }
.spof span i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed color-mix(in oklab, var(--ink) 35%, transparent); }
.spof span i:first-child { border: 0; background: var(--accent); animation: leave 6s infinite; }
@keyframes leave { 0%, 35% { transform: none; opacity: 1; } 55%, 90% { transform: translate(60px, -30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bar-fail { 0%, 40% { background: var(--ok); width: 100%; } 60%, 90% { background: var(--danger); width: 18%; } 100% { background: var(--ok); width: 100%; } }

/* frameworks */
.fwcols { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .fwcols { grid-template-columns: 1fr 1fr; } }
.fwcols h3 { margin-bottom: 8px; }
.fw { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.fw:last-child { padding-bottom: 0; }
.fw b { font: 800 1.05rem var(--display); font-stretch: 112%; }
.fw p { grid-column: 1 / -1; color: var(--muted); font-size: .98rem; }
.pill { align-self: start; white-space: nowrap; font-size: .82rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.pill.now { background: color-mix(in oklab, var(--ok) 16%, transparent); color: var(--ok); }
.pill.ask { color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.fwnote { margin-top: 24px; padding: 16px 24px; border-radius: 18px; max-width: none; color: var(--muted); font-size: .98rem; }

/* how it works */
.how .cols { display: grid; gap: 24px; margin-top: 24px; }
.step .n { font: 800 1rem var(--display); font-stretch: 112%; color: var(--accent); display: block; margin-bottom: 10px; }
.step p { color: var(--muted); margin-top: 10px; }
.step img, .stage { border-radius: 22px; border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent); box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 16%, transparent), 0 30px 80px -20px rgb(0 0 0 / .65); }
.step img { margin-top: 16px; }
.step { margin-bottom: 24px; }
.stage { display: none; }
@media (min-width: 1000px) {
  .how .cols { grid-template-columns: 4fr 8fr; gap: 40px; }
  .step { min-height: 62vh; margin: 0; display: flex; flex-direction: column; justify-content: center; opacity: .45; transition: opacity .4s; }
  .step.on { opacity: 1; }
  .step img { display: none; }
  .stage { display: grid; position: sticky; top: 100px; align-self: start; overflow: hidden; background: var(--surface-solid); aspect-ratio: 1440 / 1040; }
  .stage img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.03); transition: opacity .55s, transform .9s; }
  .stage img.on { opacity: 1; transform: none; }
}

/* product: the app's filter track */
.tabs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 28px 0 14px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs button { font: 600 .95rem var(--sans); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: color .3s, background .2s, border-color .2s; }
.tabs button:hover { color: var(--ink); }
.caption { color: var(--muted); min-height: 3.2em; }
.shot { perspective: 1600px; margin-top: 24px; }
.shot .frame { display: grid; border-radius: 28px; overflow: hidden; border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent); box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 16%, transparent), 0 30px 80px -20px rgb(0 0 0 / .65); background: var(--surface-solid); transform-origin: 50% 100%; aspect-ratio: 1440 / 1100; }
.shot img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s; }
.shot img.on { opacity: 1; }

/* ask: the app's glass field */
.ask .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .ask .wrap { grid-template-columns: 1fr 1fr; gap: 40px; } }
.askbar { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-radius: 999px; font-size: clamp(1rem, 1.5vw, 1.2rem); min-height: 66px; background: color-mix(in oklab, var(--surface-solid) 82%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); box-shadow: inset 0 2px 6px -2px rgb(0 0 0 / .35), 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); backdrop-filter: blur(8px) saturate(150%); -webkit-backdrop-filter: blur(8px) saturate(150%); }
.askbar svg { flex: none; color: var(--accent); }
.askbar span::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 3px; vertical-align: -.15em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* principles + standards */
.grid2 { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2 p { color: var(--muted); margin-top: 10px; }
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; margin: 24px 0 0; list-style: none; }
.standards b { font: 800 1.15rem var(--display); font-stretch: 112%; display: block; }
.standards span { color: var(--muted); font-size: .95rem; }

/* cta + footer */
.cta { text-align: center; }
.ctacard { max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 56px); }
.cta p { margin: 20px auto 30px; }
footer { border-top: 1px solid var(--line); padding: 44px 0 26px; color: var(--muted); font-size: .95rem; background: var(--window); backdrop-filter: blur(var(--panel-blur)); -webkit-backdrop-filter: blur(var(--panel-blur)); }
.footmain { display: grid; gap: 36px; }
@media (min-width: 900px) { .footmain { grid-template-columns: 1fr 2fr; gap: 64px; } }
.footbrand img { height: 36px; width: auto; }
.footbrand p { margin-top: 14px; max-width: 34ch; }
.footcols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 620px) { .footcols { grid-template-columns: repeat(4, 1fr); } }
footer h3 { font: 700 .85rem var(--sans); letter-spacing: 0; color: var(--ink); }
footer ul { list-style: none; margin: 10px 0 0; padding: 0; }
footer li { margin: 7px 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.footbase { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; max-width: none; }

/* animated background: between the scene and the page */
.ambient { position: fixed; inset: 0; z-index: -5; width: 100%; height: 100%; pointer-events: none; }

/* header: the light and dark switch, a round glass button showing the mode it switches to */
.themeswitch { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 999px; cursor: pointer; color: var(--ink);
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 13%, transparent), color-mix(in oklab, var(--ink) 5%, transparent));
  border: 1px solid color-mix(in oklab, var(--ink) 24%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 24%, transparent), 0 6px 14px -10px rgb(0 0 0 / .55);
  transition: border-color .2s, transform .15s; }
.themeswitch:hover { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.themeswitch:active { transform: scale(.94); }
.themeswitch svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .themeswitch { margin-left: auto; } .nav .themeswitch + .talk + .btn, .nav .themeswitch ~ .btn { margin-left: 0; } }

/* header: Talk to us sits beside Book a demo on wide screens */
.nav .talk { display: none; }
@media (min-width: 1100px) { .nav .talk { display: inline-block; } }
.nav nav + .btn { margin-left: 0; }

/* forms: the app's glass fields */
.fields { display: grid; gap: 16px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .fields .wide { grid-column: 1 / -1; } }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); }
input, textarea {
  display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--sans); color: var(--ink);
  background: color-mix(in oklab, var(--surface-solid) 72%, transparent);
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  box-shadow: inset 0 2px 6px -2px rgb(0 0 0 / .35), inset 0 -1px 0 color-mix(in oklab, #fff 8%, transparent);
  border-radius: 12px; padding: .65rem .85rem; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:hover, textarea:hover { border-color: color-mix(in oklab, var(--ink) 34%, transparent); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 2px 6px -2px rgb(0 0 0 / .35), 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
lead-form .btn { margin-top: 20px; border-width: 1px; cursor: pointer; }
lead-form .btn:disabled { opacity: .6; cursor: default; }
.formerror { color: var(--danger); font-weight: 600; margin-top: 14px; }
.formnote { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.formnote a { color: var(--accent); }
.sent { text-align: center; padding: 28px 8px; }
.sent h3 { color: var(--ok); }
.sent p { margin: 10px auto 0; color: var(--muted); }

/* contact and demo pages */
.page { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 96px); }
.split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: 5fr 6fr; } }
.points { list-style: none; margin: 26px 0 0; padding: 0; }
.points li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.points b { color: var(--ink); display: block; }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.or { display: flex; align-items: center; gap: 16px; margin: 28px 0; color: var(--muted); font-size: .92rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#cal { min-height: 520px; margin-top: 24px; border-radius: 22px; overflow: hidden; }

/* FAQ: native disclosure, so it works without JavaScript */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { border-radius: 20px; padding: 0 clamp(18px, 2.4vw, 28px); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 800 1.08rem/1.25 var(--display); font-stretch: 112%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--sans); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 75ch; }

/* blog */
.posts { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, transform .2s; }
.post:hover { border-color: color-mix(in oklab, var(--accent) 55%, transparent); transform: translateY(-3px); }
.post .meta, .prose .meta { font-size: .85rem; color: var(--muted); }
.post h2 { font-size: 1.35rem; margin: 10px 0; }
.post p { color: var(--muted); }
.post .more { margin-top: auto; padding-top: 18px; color: var(--accent); font-weight: 600; }
.prose .back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 600; }
.prose .back:hover { color: var(--ink); }
.prose .standfirst { font-size: 1.2rem; color: var(--muted); margin-top: 14px; }
.prose blockquote { margin: 1.2rem 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose .next { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* privacy and terms */
.legal { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 96px); }
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose .updated { color: var(--muted); margin-top: 10px; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.prose p, .prose ul { margin: .7rem 0; max-width: 68ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose a { color: var(--accent); }

/* motion: scroll-driven, no JS. Browsers without view() timelines simply show everything. */
@media (prefers-reduced-motion: no-preference) {
  .hero .intro, .hero .viz { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .viz { animation-delay: .15s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    .shot .frame { animation: untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes untilt { from { transform: rotateX(24deg) scale(.88); opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
