@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #e8edf3;
  --paper-fold: #d6dde8;
  --sheet: #f6f8fb;
  --ink: #18202e;
  --ink-soft: #4a5568;
  --dot: #2d3ae0;
  --dot-ink: #ffffff;
  --rule: #c3ccd9;
  --focus: #2d3ae0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131926;
    --paper-fold: #1c2433;
    --sheet: #202a3b;
    --ink: #e6ebf3;
    --ink-soft: #a6b1c2;
    --dot: #7f89ff;
    --dot-ink: #0d1120;
    --rule: #2e3a4f;
    --focus: #9aa2ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131926;
  --paper-fold: #1c2433;
  --sheet: #202a3b;
  --ink: #e6ebf3;
  --ink-soft: #a6b1c2;
  --dot: #7f89ff;
  --dot-ink: #0d1120;
  --rule: #2e3a4f;
  --focus: #9aa2ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-head { padding-block: 20px; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-end: -12px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding-block: clamp(32px, 8vw, 96px) clamp(48px, 9vw, 112px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.display {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 750;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--dot);
  color: var(--dot-ink);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }

/* The sheet: a creased plane with one dot resting in the fold. */
.sheet { width: 100%; height: auto; display: block; max-width: 520px; justify-self: end; }
.sheet .plane-a { fill: var(--sheet); }
.sheet .plane-b { fill: var(--paper-fold); }
.sheet .crease { stroke: var(--rule); stroke-width: 1.5; fill: none; }
.sheet .dot { fill: var(--dot); }
.sheet .shadow { fill: var(--ink); opacity: 0.12; }
.dot-handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 12%;
  aspect-ratio: 1;
  min-width: 48px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.is-dragging + .dot-handle { cursor: grabbing; }
.hint { margin: 12px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.sheet-wrap { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.sheet-wrap .sheet { max-width: none; }
.sheet-wrap .hint { text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .sheet .dot-group { animation: settle 1.1s cubic-bezier(.2, .9, .25, 1.15) 0.25s both; }
  .sheet .shadow { animation: shadow 1.1s cubic-bezier(.2, .9, .25, 1.15) 0.25s both; transform-box: fill-box; transform-origin: center; }
}
@keyframes settle {
  from { transform: translateY(-120px); opacity: 0; }
  40% { opacity: 1; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes shadow {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 0.12; }
}

/* What Wrinkledot builds */
.section { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--rule); }
.section-title {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.builds {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.builds h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 650;
  font-size: 1.3rem;
  line-height: 1.25;
}
.builds h3::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--dot);
}
.builds p { margin: 12px 0 0; color: var(--ink-soft); max-width: 36ch; }

.ai .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); }
.ai p { margin: 0 0 16px; max-width: 60ch; color: var(--ink-soft); }
.ai p:last-child { margin-bottom: 0; }

/* Prose pages */
.prose { padding-block: clamp(32px, 6vw, 72px) clamp(64px, 10vw, 120px); }
.prose .wrap { max-width: 720px; }
.prose h1 {
  margin: 0 0 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 750;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.prose h2 {
  margin: 40px 0 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
}
.prose p, .prose li { color: var(--ink-soft); }
.prose .updated { margin-top: 0; font-size: 0.95rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 24px 32px; font-size: 0.95rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px; margin-inline: -12px; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sheet-wrap { justify-self: center; max-width: 420px; }
  .builds { grid-template-columns: 1fr; }
  .ai .wrap { grid-template-columns: 1fr; }
}

.prose address { font-style: normal; color: var(--ink-soft); line-height: 1.6; }

/* ================= Home: redesign ================= */
:root { --panel: #f6f8fb; --ink-faint: #8a94a6; --ok: #1f8a5b; --warn: #b4531a; --console: #121826; --console-ink: #d7deea; --console-soft: #8792a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --panel: #1a2232; --ink-faint: #6f7a8f; --ok: #45c08a; --warn: #f0935a; --console: #0c111b; } }
:root[data-theme="dark"] { --panel: #1a2232; --ink-faint: #6f7a8f; --ok: #45c08a; --warn: #f0935a; --console: #0c111b; }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); filter: none; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: .45; cursor: default; }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-sub { margin: 12px 0 0; color: var(--ink-soft); }
.display-sm { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-weight: 750; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }

/* --- Build demo --- */
.build-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.console { background: var(--console); color: var(--console-ink); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 20, 40, .45); }
.console-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.console-title { font: 500 .85rem/1.3 ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; color: var(--console-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-steps { list-style: none; margin: 0; padding: 12px 10px; }
.run-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--console-soft); transition: color .3s, background-color .3s; }
.run-steps li strong { color: inherit; font-weight: 650; }
.run-steps li[data-state] { color: var(--console-ink); }
.run-steps li[data-state="active"], .run-steps li[data-state="waiting"] { background: rgba(255,255,255,.05); }
.step-mark { flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); position: relative; }
li[data-state="active"] .step-mark { border-color: #7f89ff; border-top-color: transparent; animation: spin .8s linear infinite; }
li[data-state="waiting"] .step-mark { border-color: #f0b44a; background: rgba(240,180,74,.18); }
li[data-state="done"] .step-mark { border-color: #45c08a; background: #45c08a; }
li[data-state="done"] .step-mark::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid #0c111b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.console-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.console .btn { background: #7f89ff; color: #0d1120; }
.console .btn-ghost { background: transparent; color: var(--console-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.run-status { margin: 0; font-size: .95rem; color: var(--console-soft); flex: 1 1 200px; }

/* Phone */
.phone { justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 18.5; background: #151b28; border-radius: 42px; padding: 12px; position: relative; box-shadow: 0 40px 70px -35px rgba(10, 20, 40, .55); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: #151b28; border-radius: 12px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 31px; background: #fbfaf7; color: #1d2230; overflow: hidden; position: relative; font-size: 14px; }
.ph-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa1ad; font-size: .9rem; transition: opacity .4s; pointer-events: none; }
.ph-app { padding: 50px 18px 18px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.ph-app > * { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.phone-screen:not([data-stage="0"]) .ph-empty { opacity: 0; }
.phone-screen[data-stage="1"] .ph-top, .phone-screen[data-stage="1"] .ph-h { opacity: 1; transform: none; }
.phone-screen:not([data-stage="0"]):not([data-stage="1"]) .ph-app > * { opacity: 1; transform: none; }
.phone-screen[data-stage="0"] .ph-app, .phone-screen[data-stage="1"] .ph-app { pointer-events: none; }
.ph-top { display: flex; align-items: center; gap: 8px; }
.ph-logo { width: 22px; height: 22px; border-radius: 7px; background: #e9793f; }
.ph-name { font-weight: 700; font-size: .95rem; }
.ph-h { margin: 6px 0 0; font: 700 1.35rem/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.01em; }
.ph-services { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip, .ph-slot { font: inherit; font-size: .82rem; border: 1px solid #dcd8cf; background: #fff; color: inherit; border-radius: 999px; padding: 7px 11px; min-height: 34px; cursor: pointer; }
.ph-chip.is-on, .ph-slot.is-on { background: #1d2230; color: #fff; border-color: #1d2230; }
.ph-label { margin: 6px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #8a8f99; }
.ph-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-slot { border-radius: 12px; }
.ph-cta { margin-top: auto; font: inherit; font-weight: 700; border: 0; border-radius: 14px; min-height: 46px; background: #e9793f; color: #fff; cursor: pointer; }
.ph-cta:disabled { background: #eadfd6; color: #8a6e5b; cursor: default; }
.ph-app > .ph-confirm { position: absolute; inset: 0; background: #fbfaf7; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; opacity: 1; transform: none; }
.ph-app > .ph-confirm[hidden] { display: none; }
.ph-tick { width: 58px; height: 58px; border-radius: 50%; background: #e9793f; position: relative; }
.ph-tick::after { content: ""; position: absolute; left: 21px; top: 12px; width: 12px; height: 24px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.ph-confirm-h { margin: 8px 0 0; font: 700 1.3rem "Bricolage Grotesque", sans-serif; }
.ph-confirm-p { margin: 0; color: #5f6570; font-size: .9rem; }
.ph-link { font: inherit; font-weight: 600; background: none; border: 0; color: #b54f1b; text-decoration: underline; min-height: 44px; cursor: pointer; }
.ph-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.ph-badge { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eceae4; color: #8a909b; transition: background-color .3s, color .3s; }
.ph-badge.is-on { background: #dff3e8; color: #1c6e47; }
.ph-badge-human.is-on { background: #e1e3fb; color: #2d3ae0; }

/* --- Tabs & panels --- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--paper-fold); border-radius: 999px; margin-bottom: clamp(20px, 3vw, 32px); }
.tab { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft); padding: 0 18px; min-height: 44px; border-radius: 999px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(10,20,40,.3); }
.panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--panel); border-radius: 24px; padding: clamp(20px, 4vw, 44px); }
.panel[hidden] { display: none; }
.panel h3 { margin: 0; font: 700 clamp(1.4rem, 2.4vw, 1.8rem)/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.panel-copy p { color: var(--ink-soft); }
.panel-demo { min-width: 0; }

.seg { display: inline-flex; padding: 4px; background: var(--paper-fold); border-radius: 12px; gap: 4px; }
.seg-btn { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft); padding: 0 16px; min-height: 44px; border-radius: 9px; cursor: pointer; }
.seg-btn.is-on { background: var(--sheet); color: var(--ink); }

.mobile-demo { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; align-items: center; }
.code { margin: 0; background: var(--console); color: var(--console-ink); border-radius: 16px; padding: 18px 20px; font: 500 .82rem/1.65 ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; overflow-x: auto; white-space: pre; }
.code[hidden] { display: none; }
.code .k { color: #a9b0ff; } .code .f { color: #7fd3b4; } .code .s { color: #f2c38b; }
.mini-phone { background: #fbfaf7; color: #1d2230; border: 7px solid #151b28; border-radius: 22px; padding: 10px 10px 14px; font-size: .72rem; display: flex; flex-direction: column; gap: 8px; transition: border-radius .35s; }
.mp-bar { display: flex; justify-content: center; font-weight: 700; }
.mp-title { font-weight: 700; font-size: .85rem; }
.mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mp-row span { text-align: center; padding: 5px 0; border: 1px solid #dcd8cf; border-radius: 8px; }
.mp-row span.is-on { background: #1d2230; color: #fff; border-color: #1d2230; }
.mp-btn { text-align: center; font-weight: 700; color: #fff; background: #2f6b3a; padding: 8px 0; border-radius: 20px; transition: border-radius .35s, background-color .35s; }
.mobile-demo[data-os="android"] .mp-bar { justify-content: flex-start; }
.mobile-demo[data-os="ios"] .mini-phone { border-radius: 30px; }
.mobile-demo[data-os="ios"] .mp-btn { border-radius: 10px; background: #0a6fd8; }

/* Agents */
.agent-graph { width: 100%; height: auto; display: block; overflow: visible; }
.edge { fill: none; stroke: var(--rule); stroke-width: 2; stroke-dasharray: 5 6; }
.edge-human { stroke: var(--dot); opacity: .55; }
.packet { fill: var(--dot); }
.packet-human { fill: #e0a03a; }
.node { cursor: pointer; outline: none; }
.node circle { fill: var(--sheet); stroke: var(--rule); stroke-width: 2; transition: stroke .2s; }
.node text { text-anchor: middle; font: 650 14px "Instrument Sans", sans-serif; fill: var(--ink); pointer-events: none; }
.node-core circle { fill: var(--dot); stroke: var(--dot); }
.node-core text { fill: var(--dot-ink); }
.node-human circle { stroke: #e0a03a; stroke-width: 3; }
.node:hover circle, .node.is-on circle { stroke: var(--ink); stroke-width: 3.5; }
.node:focus-visible circle { stroke: var(--focus); stroke-width: 4; }
.panel-copy .agent-detail { min-height: 3.2em; padding: 12px 14px; border-radius: 12px; background: var(--sheet); color: var(--ink); }

/* Board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lane { background: var(--paper-fold); border-radius: 16px; padding: 12px; min-height: 250px; transition: box-shadow .2s; }
.lane-inbox { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule); }
.lane.is-over { box-shadow: inset 0 0 0 2px var(--dot); }
.lane-h { margin: 0 0 10px; font-weight: 700; font-size: .95rem; }
.lane-h small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .78rem; }
.lane-list { display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.job { background: var(--sheet); box-shadow: 0 1px 2px rgba(10,20,40,.08); border-radius: 12px; padding: 10px 12px; min-height: 44px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border: 1.5px solid transparent; }
.job strong { display: block; font-size: .92rem; }
.job span { font-size: .8rem; color: var(--ink-soft); }
.job.is-dragging { position: fixed; z-index: 50; cursor: grabbing; box-shadow: 0 18px 30px -12px rgba(10,20,40,.35); pointer-events: none; }
.job.is-bad { border-color: var(--warn); }
.job.is-new { animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.panel-copy .board-status { color: var(--ink); font-weight: 600; min-height: 1.6em; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps h3 { margin: 14px 0 6px; font: 700 1.15rem/1.25 "Bricolage Grotesque", sans-serif; }
.steps p { margin: 0; color: var(--ink-soft); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dot); color: var(--dot-ink); font-weight: 700; }

/* Founder & start */
.founder .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); }
.founder p { margin: 0 0 16px; max-width: 60ch; color: var(--ink-soft); }
.start .lede { max-width: 50ch; }

@media (max-width: 900px) {
  .build-stage { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav a:not([href="/support/"]) { display: none; }
  .mobile-demo { grid-template-columns: 1fr; }
  .mini-phone { width: 170px; justify-self: center; }
  .board { grid-template-columns: 1fr; }
  .lane { min-height: 0; }
  .lane-list { min-height: 64px; }
  .steps { grid-template-columns: 1fr; }
  .founder .wrap { grid-template-columns: 1fr; }
  .tabs { display: flex; border-radius: 16px; }
  .tab { flex: 1 1 auto; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-app > *, .ph-empty, .run-steps li { transition: none; }
  li[data-state="active"] .step-mark { animation: none; }
  .job.is-new { animation: none; }
}

/* Products */
.product { border-radius: 24px; background: var(--panel); padding: clamp(20px, 4vw, 44px); }
.product + .product { margin-top: 16px; }
.product-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: #0f1524; color: #e6ebf3; }
.product-feature .product-line, .product-feature .product-for, .product-feature .product-points li { color: #b9c2d3; }
.product-feature .product-points strong { color: #fff; }
.product-feature .btn { background: #f2b23a; color: #1b1300; }
.product-feature .btn-ghost { background: transparent; color: #e6ebf3; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.product-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; font-weight: 600; color: #f2b23a; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.product-status-live { color: var(--ok); }
.product-name { margin: 8px 0 0; font: 750 clamp(2rem, 4vw, 2.8rem)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
.product-line { margin: 14px 0 0; font-size: 1.08rem; color: var(--ink-soft); max-width: 52ch; }
.product-for { margin: 10px 0 0; font-weight: 600; }
.product-points { margin: 18px 0 0; padding-left: 1.1em; display: grid; gap: 8px; }
.product-points em { font-style: normal; font-size: .85em; opacity: .75; }
.product-credit { margin: 16px 0 0; font-size: .8rem; color: #8792a8; }
.product-art { margin: 0; }
.product-art img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.product-small { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.product-small .product-tags { margin-top: 20px; }
.product-small .text-link { margin-top: 8px; }
.brainai-art img { border-radius: 14px; box-shadow: 0 24px 50px -30px rgba(20,30,60,.45); border: 1px solid rgba(20,30,60,.08); }
.brainai-art .product-credit { color: var(--ink-soft); }
.product-small .product-tags li { background: #fff; box-shadow: inset 0 0 0 1px rgba(20,30,60,.12); }
.product-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.product-tags li { background: var(--sheet); border-radius: 999px; padding: 8px 14px; font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--dot); }
@media (max-width: 900px) {
  .product-feature { grid-template-columns: 1fr; }
  .product-feature .product-art { order: -1; }
  .product-small { grid-template-columns: 1fr; }
}

/* Product pair */
.product-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.product-pair + .product { margin-top: 16px; }
.product-card { display: flex; flex-direction: column; gap: 20px; }
.product-card .product-name { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.product-card .product-credit { color: var(--ink-soft); }
.product-card .product-status { color: #b07a12; }
.product-porch .product-art { background: #101a33; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.product-porch .product-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 0; box-shadow: none; }
.mat-art { background: #13213a; border-radius: 16px; padding: 22px; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: #e6ebf3; }
.mat-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mat-state { font: 700 .8rem ui-monospace, "Cascadia Code", Menlo, monospace; background: rgba(255,255,255,.1); border-radius: 6px; text-align: center; padding: 4px 0; }
.mat-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #f2b23a, rgba(242,178,58,.15)); width: 92%; }
.mat-bar-2 { width: 70%; } .mat-bar-3 { width: 82%; } .mat-bar-4 { width: 58%; }
.mat-tag { font-size: .78rem; color: #b9c2d3; }
.mat-caption { margin: 6px 0 0; font-size: .8rem; color: #8792a8; }
.product-card, .product-feature > * { min-width: 0; }
@media (max-width: 900px) { .product-pair { grid-template-columns: minmax(0, 1fr); } }

/* ================= Agent studio ================= */
.studio { background: radial-gradient(1200px 600px at 70% -10%, #1d2a55 0%, rgba(13,17,32,0) 60%), #0b0f1c; color: #e6ebf3; padding-block: clamp(56px, 9vw, 110px); }
.studio-head { max-width: 64ch; }
.studio-title { margin: 0; font: 750 clamp(2rem, 4.6vw, 3.3rem)/1.02 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
.studio-sub { margin: 16px 0 0; color: #a9b3c6; font-size: 1.08rem; }
.studio-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: clamp(28px, 4vw, 40px) 0 18px; }
.briefs { display: flex; flex-wrap: wrap; gap: 8px; }
.brief { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 650; color: #e6ebf3; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 8px 14px; min-height: 48px; cursor: pointer; text-align: left; }
.brief small { display: block; font-weight: 500; font-size: .75rem; color: #8792a8; }
.brief:hover { background: rgba(255,255,255,.08); }
.brief.is-on { background: rgba(127,137,255,.14); border-color: #7f89ff; }
.brief-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
[data-brief="groom"] .brief-dot { background: #f09a62; }
[data-brief="quote"] .brief-dot { background: #5cc4c4; }
[data-brief="cafe"] .brief-dot { background: #b39af0; }
.studio-buttons { display: flex; gap: 8px; }
.studio .btn { background: #7f89ff; color: #0b0f1c; }
.studio .btn-ghost { background: transparent; color: #e6ebf3; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.studio .btn.approve { background: #f2b23a; color: #1b1300; }

.studio-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.08fr) minmax(0, 1.1fr); gap: 14px; }
.pane { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 16px; min-width: 0; }
.pane-label { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #8792a8; }
.team { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.team li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; transition: background-color .3s; }
.team li[data-state="work"] { background: rgba(127,137,255,.12); }
.team li[data-state="flag"] { background: rgba(240,120,90,.14); }
.team li[data-state="wait"] { background: rgba(242,178,58,.12); }
.av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #0b0f1c; }
.av-orch { background: #7f89ff; } .av-design { background: #f2a0c4; } .av-android { background: #7fd3a0; } .av-ios { background: #8fc8ff; }
.av-test { background: #f2c38b; } .av-judge { background: #c9b8ff; } .av-you { background: #f2b23a; font-size: .62rem; }
.ag-name { font-weight: 600; font-size: .92rem; }
.ag-state { font-size: .75rem; color: #8792a8; }
li[data-state="work"] .ag-state { color: #aab1ff; } li[data-state="done"] .ag-state { color: #6fd6a0; }
li[data-state="flag"] .ag-state { color: #f5a08a; } li[data-state="wait"] .ag-state { color: #f2c86a; }
li[data-state="work"] .av { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(127,137,255,.25); } }
.log { list-style: none; margin: 0; padding: 0; height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: .84rem; color: #c3cad8; scrollbar-width: thin; }
.log li { animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lg-who { font-weight: 700; }
.lg-orch { color: #aab1ff; } .lg-design { color: #f2a0c4; } .lg-android { color: #7fd3a0; } .lg-ios { color: #8fc8ff; }
.lg-test { color: #f2c38b; } .lg-judge { color: #c9b8ff; } .lg-you { color: #f2b23a; }

.pane-editor { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.editor-tabs { display: flex; gap: 2px; padding: 10px 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.etab { font: 500 .8rem ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; color: #8792a8; padding: 8px 12px; border-radius: 8px 8px 0 0; }
.etab.is-on { color: #e6ebf3; background: rgba(255,255,255,.06); }
.editor { flex: 1; margin: 0; padding: 16px 18px; min-height: 300px; font: 500 .76rem/1.7 ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; color: #d7deea; overflow: auto; white-space: pre; }
.editor .k { color: #aab1ff; } .editor .s { color: #f2c38b; } .editor .a { color: #f2a0c4; } .editor .t { color: #7fd3b4; }
.caret { display: inline-block; width: 7px; height: 1.1em; background: #aab1ff; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.08); }
.check { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 12px 14px; border-right: 1px solid rgba(255,255,255,.06); }
.check:last-child { border-right: 0; }
.ck-mark { grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ck-name { font-size: .75rem; color: #8792a8; }
.ck-val { font: 600 .85rem ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; }
.check[data-state="run"] .ck-mark { background: #7f89ff; animation: pulse 1s infinite; }
.check[data-state="ok"] .ck-mark { background: #45c08a; } .check[data-state="ok"] .ck-val { color: #6fd6a0; }
.check[data-state="bad"] .ck-mark { background: #f0785a; } .check[data-state="bad"] .ck-val { color: #f5a08a; }

/* Phones */
.pane-phones { display: flex; align-items: center; justify-content: center; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.dev { margin: 0; }
.dev figcaption { text-align: center; font-size: .75rem; color: #8792a8; margin-top: 8px; }
.dev-screen { position: relative; aspect-ratio: 9 / 19; background: #faf9f6; color: #1d2230; border: 6px solid #232b3d; border-radius: 30px; overflow: hidden; font-size: 11px; }
.dev-android .dev-screen { border-radius: 22px; }
.dev-island { position: absolute; top: 6px; left: 50%; width: 38%; height: 14px; margin-left: -19%; background: #0b0f1c; border-radius: 10px; z-index: 3; }
.dev-status { display: flex; justify-content: space-between; padding: 7px 14px 0; font-weight: 700; font-size: 9px; }
.dev-ios .dev-status { padding-top: 8px; padding-inline: 18px; }
.dev-icons { width: 26px; height: 7px; border-radius: 2px; background: currentColor; opacity: .7; }
.app { padding: 16px 10px 16px; display: flex; flex-direction: column; gap: 7px; height: calc(100% - 20px); position: relative; }
.dev-screen[data-stage="0"] .app { opacity: 0; }
.dev-screen[data-stage="0"]::after { content: "Waiting for a build"; position: absolute; inset: 0; display: grid; place-items: center; color: #9aa1ad; font-size: 10px; }
/* Skeleton (wireframe) */
.dev-screen[data-stage="1"] .app *, .dev-screen[data-stage="2"] .app .a-chip, .dev-screen[data-stage="2"] .app .a-slot, .dev-screen[data-stage="2"] .app .a-label, .dev-screen[data-stage="2"] .app .a-title, .dev-screen[data-stage="2"] .app .a-name { color: transparent !important; }
.dev-screen[data-stage="1"] .app .a-mark, .dev-screen[data-stage="1"] .app .a-cta, .dev-screen[data-stage="1"] .app .a-chip, .dev-screen[data-stage="1"] .app .a-slot { background: #e6e3dc !important; border-color: transparent !important; }
.dev-screen[data-stage="1"] .app .a-title, .dev-screen[data-stage="1"] .app .a-name, .dev-screen[data-stage="1"] .app .a-label,
.dev-screen[data-stage="2"] .app .a-title, .dev-screen[data-stage="2"] .app .a-name, .dev-screen[data-stage="2"] .app .a-label { background: #e6e3dc; border-radius: 4px; width: max-content; }
.app * { transition: color .35s, background-color .35s, border-color .35s; }
.a-top { display: flex; align-items: center; gap: 6px; }
.a-mark { width: 18px; height: 18px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 800; font-size: 10px; display: grid; place-items: center; }
.a-name { font-weight: 700; }
.a-title { margin: 4px 0 0; font: 700 16px/1.1 "Bricolage Grotesque", sans-serif; }
.a-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.a-chip, .a-slot { font: inherit; border: 1px solid #dcd8cf; background: #fff; color: inherit; padding: 5px 8px; border-radius: 999px; cursor: pointer; }
.a-chip.is-on, .a-slot.is-on { background: #1d2230; color: #fff; border-color: #1d2230; }
.a-label { margin: 4px 0 0; font-size: 9.5px; font-weight: 700; color: #8a8f99; }
.a-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.a-slot { border-radius: 8px; }
.a-cta { margin-top: auto; font: inherit; font-weight: 700; border: 0; min-height: 32px; border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer; }
.app[data-os="android"] .a-cta { border-radius: 999px; }
.app[data-os="android"] .a-chip { border-radius: 8px; }
.a-cta:disabled { opacity: .55; cursor: default; }
.a-confirm { position: absolute; inset: 0; background: #faf9f6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 12px; }
.a-confirm[hidden] { display: none; }
.a-tick { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); position: relative; }
.a-tick::after { content: ""; position: absolute; left: 13px; top: 7px; width: 8px; height: 16px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.a-done { margin: 4px 0 0; font: 700 14px "Bricolage Grotesque", sans-serif; }
.a-detail { margin: 0; color: #5f6570; }
.a-again { font: inherit; font-weight: 700; background: none; border: 0; color: var(--brand); min-height: 32px; cursor: pointer; text-decoration: underline; }
.a-ready { display: none; margin: 0; text-align: center; font-size: 9px; font-weight: 700; color: #1c6e47; }
.studio.is-shipped .a-ready { display: block; }
.studio.is-shipped .dev-screen { box-shadow: 0 0 0 2px #45c08a, 0 0 40px -6px rgba(69,192,138,.6); }

.studio-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.progress { flex: 1 1 100%; height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7f89ff, #45c08a); transition: width .5s ease; }
.studio-status { margin: 0; flex: 1 1 280px; color: #c3cad8; }

@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pane-team { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 20px; }
  .pane-team .pane-label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .pane-team .team { grid-row: 2; margin: 0; }
  .pane-team .log { grid-column: 2; grid-row: 2; height: 250px; }
}
@media (max-width: 720px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .pane-team { grid-template-columns: minmax(0, 1fr); }
  .pane-team .pane-label:nth-of-type(2), .pane-team .log { grid-column: 1; grid-row: auto; }
  .pane-team .log { height: 170px; }
  .team { grid-template-columns: 1fr 1fr; }
  .pane-phones { order: -1; }
  .checks { grid-template-columns: 1fr 1fr; }
  .check:nth-child(2) { border-right: 0; }
  .check:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.06); }
  .editor { min-height: 220px; max-height: 260px; font-size: .72rem; }
  .studio-buttons { width: 100%; }
  .studio-buttons .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .log li, li[data-state="work"] .av, .check[data-state="run"] .ck-mark, .caret { animation: none; }
  .progress span, .app * { transition: none; }
}

/* Studio phones scale with their own width (container units) */
.dev-screen { container-type: inline-size; }
.dev-screen > .app, .dev-screen > .dev-status { font-size: 6.2cqi; }
.dev-screen[data-stage="0"]::after { font-size: 6cqi; }
.dev-screen > .dev-status { font-size: 5cqi; }
.app { gap: .55em; padding: 1.4em .9em 1.3em; }
.a-name { font-size: 1em; }
.a-title { font-size: 1.45em; }
.a-chip, .a-slot { padding: .42em .7em; font-size: .92em; }
.a-label { font-size: .85em; }
.a-cta { min-height: 2.7em; flex: none; }
.a-mark { width: 1.6em; height: 1.6em; font-size: .9em; }
.a-ready { font-size: .8em; }

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* ================= Night hero ================= */
body.home .site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #e6ebf3; }
body.home .site-head .nav a { color: #b9c2d3; }
body.home .site-head .nav a:hover { color: #fff; }
.night { position: relative; overflow: hidden; background: #070a12; color: #e6ebf3; min-height: min(92svh, 860px); display: flex; align-items: center; isolation: isolate; }
.night-stage { position: absolute; inset: 0; z-index: -2; }
.night:not(.is-live) .night-stage { width: 100%; height: 100%; }
.night-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.night-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,8,15,.92) 0%, rgba(5,8,15,.72) 38%, rgba(5,8,15,.1) 70%, rgba(5,8,15,0) 100%), linear-gradient(0deg, #070a12 0%, rgba(7,10,18,0) 22%); pointer-events: none; }
.night-content { padding-block: 120px 72px; }
.night-kicker { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: #f2b23a; }
.night-title { margin: 14px 0 0; font: 780 clamp(2.7rem, 7vw, 5.6rem)/.98 "Bricolage Grotesque", sans-serif; letter-spacing: -.035em; max-width: 12ch; text-wrap: balance; }
.night-lede { margin: 24px 0 0; max-width: 50ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.55; color: #c3cad8; }
.night .actions { margin-top: 32px; }
.night-btn { background: #f2b23a; color: #1b1300; }
.night-ghost { background: transparent; color: #e6ebf3; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.night-signals { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #b9c2d3; }
.night-signals li { display: inline-flex; align-items: center; gap: 8px; }
.night-signals strong { color: #fff; font-weight: 650; }
.sig-dot { width: 8px; height: 8px; border-radius: 50%; background: #f2b23a; box-shadow: 0 0 0 4px rgba(242,178,58,.2); }

.night-pulses { position: absolute; inset: 0; pointer-events: none; }
.pulse { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #ffc15a; box-shadow: 0 0 14px 4px rgba(255,176,60,.55); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(255,193,90,.7); animation: ping 4s ease-out infinite; animation-delay: inherit; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 70%, 100% { transform: scale(4.2); opacity: 0; } }
.sig-label { position: absolute; transform: translate(14px, -50%); display: flex; flex-direction: column; gap: 1px; padding: 7px 11px; border-radius: 10px; background: rgba(10,14,26,.78); border: 1px solid rgba(255,193,90,.35); backdrop-filter: blur(6px); white-space: nowrap; font-size: .78rem; color: #e6ebf3; opacity: 0; translate: 0 6px; transition: opacity .6s, translate .6s; }
.sig-label b { font-weight: 700; color: #ffc15a; font-size: .72rem; }
.sig-label i { font-style: normal; }
.sig-label.is-on { opacity: 1; translate: 0 0; }

@media (max-width: 900px) {
  .night { align-items: flex-end; min-height: 0; }
  .night-content { padding-block: calc(105vw - 70px) 56px; }
  .night-stage { overflow: hidden; }
  .night-shade { background: linear-gradient(180deg, rgba(7,10,18,.35) 0, rgba(7,10,18,0) 90px, rgba(7,10,18,0) calc(105vw - 200px), #070a12 calc(105vw - 20px)); }
  .sig-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; opacity: 0; }
  .sig-label { transition: none; }
}

/* Sample record cards */
.sample { background: #fbfaf6; color: #1d2230; border-radius: 14px; padding: 14px 16px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.55); font-size: .86rem; }
.sample-kicker { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .03em; color: #8a6e1a; }
.sample-h { margin: 4px 0 10px; font: 700 1.05rem/1.2 "Bricolage Grotesque", sans-serif; }
.sample-fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.sample-fields div { min-width: 0; }
.sample-fields dt { font-size: .7rem; color: #7a7f88; }
.sample-fields dd { margin: 0; font-weight: 600; }
.sample-stamp { margin: 12px 0 0; padding-top: 8px; border-top: 1px dashed #d6d1c4; font: 600 .72rem ui-monospace, "Cascadia Code", Menlo, monospace; color: #5d6470; }
.sample-bars { display: grid; gap: 5px; margin-bottom: 12px; }
.sample-bars i, .mask { display: block; height: 9px; border-radius: 3px; background: #1d2230; }
.sample-bars i { width: 78%; } .sample-bars i.short { width: 46%; }
.mask { width: 80px; margin-top: 4px; }
.sample-mat { aspect-ratio: auto; }
.product-porch .product-art { position: relative; overflow: visible; }
.product-porch .product-art img { border-radius: 16px; }
.sample-porch { position: absolute; right: 12px; bottom: -18px; width: min(260px, 72%); }
.product-porch .product-copy { padding-top: 10px; }
.product-tag { margin: 10px 0 0; font: 700 clamp(1.1rem, 1.8vw, 1.3rem)/1.25 "Bricolage Grotesque", sans-serif; }
.product-feature .product-tag { color: #f2b23a; }
.studio-kicker { margin: 0 0 12px; font-weight: 700; color: #f2b23a; }

.mat-frame { background: radial-gradient(420px 260px at 70% 20%, #24345c, #101a33 70%); border-radius: 16px; padding: clamp(22px, 4vw, 36px); display: grid; place-items: center; }
.mat-frame .sample { width: min(100%, 360px); }

/* ===== Critic round 1 ===== */
.studio .btn.studio-run { background: #f2b23a; color: #1b1300; }
.a-cta:disabled { opacity: 1; filter: saturate(.35) brightness(1.15); }
.a-cta { transition: background-color .7s, filter .3s; position: relative; }
.a-cta.is-fixed::after { content: "4.5:1 ✓"; position: absolute; right: .5em; top: 50%; transform: translateY(-50%); font-size: .7em; background: #dff3e8; color: #1c6e47; padding: .15em .45em; border-radius: 999px; animation: rise .4s ease both; }
@media (min-width: 1101px) { .studio-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1fr) minmax(0, 1.3fr); } }
.phones { gap: 20px; }
.dev-ios { transform: translateY(28px); }
.log { mask-image: linear-gradient(transparent, #000 28px); -webkit-mask-image: linear-gradient(transparent, #000 28px); }
button.etab { font: 500 .8rem ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace; border: 0; background: transparent; cursor: pointer; min-height: 36px; }
button.etab.is-on { background: rgba(255,255,255,.06); }
.ck-name { white-space: nowrap; }
.panel-copy .agent-detail { background: var(--paper-fold); }
.sig-label { display: none; }
@media (max-width: 900px) {
  .night-content { padding-block: calc(72vw - 70px) 40px; }
  .night-shade { background: linear-gradient(180deg, rgba(7,10,18,.35) 0, rgba(7,10,18,0) 90px, rgba(7,10,18,0) calc(75vw - 150px), #070a12 calc(75vw - 10px)); }
}
@media (max-width: 640px) {
  .nav a:not([href="/support/"]):not([href="#build"]) { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 720px) {
  .editor { white-space: pre; overflow-x: auto; word-break: normal; }
  .dev-ios { transform: none; }
}

@media (max-width: 640px) { .nav a[href="#build"] { display: inline-flex; } }

/* ===== Critic round 2 ===== */
/* One action colour on the home page: amber buttons, blue stays for text links. */
.home .btn:not(.btn-ghost) { background: #f2b23a; color: #1b1300; }
.product-card { justify-content: flex-start; }
.product-card .btn-waitlist { align-self: flex-start; margin-top: auto; }
.product-pair { align-items: stretch; }
.sig-dot.sig-live { background: #3ccf8e; box-shadow: 0 0 0 4px rgba(60,207,142,.22); }
.night-signals a { color: inherit; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; min-height: 32px; }
.night-signals a:hover strong { text-decoration: underline; }
.a-cta.is-fixed::after { top: 0; right: .4em; transform: translateY(-60%); }
@media (max-width: 600px) {
  .sample-porch { position: static; width: 100%; margin-top: 12px; }
  .product-porch .product-art { aspect-ratio: auto; background: none; }
  .product-porch .product-art img { aspect-ratio: 4 / 3; height: auto; object-position: 50% 30%; }
}
/* Dark finale that answers the hero. */
.home .start { position: relative; isolation: isolate; background: #070a12; color: #eef2f8; overflow: hidden; }
.home .start::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,10,18,.96) 30%, rgba(7,10,18,.55)), url(/img/hero-city-960.jpg) right center / cover no-repeat; opacity: .9; }
.home .start .lede { color: #c9d2e8; }
.home .start .btn-ghost { color: #eef2f8; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.founder-side { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 40px); }
.founder .founder-side .product-status-live { color: var(--ok); margin: 0; }
.founder .founder-side .product-line { margin: 14px 0 0; }
