/* Aretu CAD website.
   Palette and type follow docs/branding/identity-system.md: Midnight bands for
   brand and product moments, Cool white for reading. Flat colour only; the Zen
   tile gradients belong to the application interface being illustrated. */

/* Website type trial: Source Serif 4 headings, Source Sans 3 text, Source Code
   Pro code (SIL OFL 1.1, licences in ../fonts/). Self-hosted Latin, Latin
   Extended and arrow/diameter subsets; the application keeps its own font. */
/* All three families reserve the font name "Source" (OFL 1.1), so the files are
   Adobe's unmodified upright variable fonts, not web subsets: Source Sans 3
   3.052, Source Serif 4 4.005 (with its optical-size axis, so headings keep the
   Display design at large sizes) and Source Code Pro 1.026. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/SourceSans3VF-Upright.ttf.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/SourceSerif4Variable-Roman.ttf.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/SourceCodeVF-Upright.ttf.woff2") format("woff2"); }

:root {
  --midnight: #101D35;
  --midnight-deep: #0A1426;
  --cool: #F3F6FA;
  --paper: #FFFFFF;
  --deep: #234B82;
  --clear: #487DE0;
  --signal: #4989F3; /* Clear blue's tint for dark grounds, as on the logo leg */
  --slate: #52627A;
  --ink: #101D35;
  --muted: #52627A;
  --rule: #D6DEE9;
  --rule-strong: #B9C5D6;
  --on-dark: #F3F6FA;
  --on-dark-muted: #AEBBD0;
  --on-dark-rule: #26365A;
  --link-dark: #8DB4FF;
  --cyan: #2BBEC9;
  --ok: #3FA66B;
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --font: "Source Sans 3", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "Source Code Pro", ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

/* ---- base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cool); color: var(--ink);
  font: 400 18px/1.62 var(--font); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--deep); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clear); outline-offset: 3px; border-radius: 4px; }
.theme-dark :focus-visible { outline-color: var(--link-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 1.16rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .3em 0; }
code, kbd, .mono { font-family: var(--mono); font-size: .88em; }
kbd {
  display: inline-block; min-width: 1.6em; padding: .05em .45em; border: 1px solid var(--rule-strong);
  border-bottom-width: 2px; border-radius: 6px; background: var(--paper); text-align: center; line-height: 1.5;
}
.theme-dark kbd { background: rgba(255, 255, 255, .06); border-color: #3A4C70; color: var(--on-dark); }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Stage visibility: an element with data-when shows only in the listed stages. */
html[data-stage="preview"] [data-when]:not([data-when~="preview"]),
html[data-stage="beta"] [data-when]:not([data-when~="beta"]),
html[data-stage="launch"] [data-when]:not([data-when~="launch"]) { display: none !important; }
[hidden] { display: none !important; }

/* ---- layout ------------------------------------------------------------------ */

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 118px); }
.section-tight { padding-block: clamp(44px, 6vw, 72px); }
.band-dark { background: var(--midnight); color: var(--on-dark); }
.band-deep { background: var(--midnight-deep); color: var(--on-dark); }
.band-paper { background: var(--paper); }
.theme-dark h1, .theme-dark h2, .theme-dark h3 { color: #FFFFFF; }
.theme-dark p, .theme-dark li { color: var(--on-dark-muted); }
.theme-dark strong, .theme-dark b { color: var(--on-dark); }
.theme-dark a:not(.btn) { color: var(--link-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.centred { margin-inline: auto; text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
.split-wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--deep);
}
.theme-dark .eyebrow { color: var(--link-dark); }
.lead { font-size: clamp(1.08rem, 1.55vw, 1.28rem); line-height: 1.58; max-width: 62ch; }
.fine { font-size: .95rem; color: var(--muted); max-width: 78ch; }
.spaced { margin-top: clamp(28px, 4vw, 40px); }
.figure-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); max-width: 80ch; }
.theme-dark .figure-note { color: var(--on-dark-muted); }
figure { margin: 0; }

/* ---- preview notice, header and navigation --------------------------------------- */

.preview-notice {
  background: var(--midnight-deep); color: var(--on-dark-muted); font-size: .86rem;
  padding: 8px 0; text-align: center; border-bottom: 1px solid var(--on-dark-rule);
}
.pill {
  display: inline-block; padding: .1em .65em; margin-right: .5em; border-radius: 999px;
  border: 1px solid #3A4C70; color: var(--on-dark); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(16, 29, 53, .94);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--on-dark-rule);
}
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: block; flex: none; padding: 6px 0; }
.brand img { display: block; height: 40px; width: auto; } /* S lockup: 40-56 px tier */
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a:not(.btn) {
  color: var(--on-dark); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .96rem;
}
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: #FFFFFF; box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav-cta { margin-left: 10px; }
.menu-toggle {
  display: none; align-items: center; gap: 10px; margin-left: auto; padding: 8px 12px;
  background: transparent; color: var(--on-dark); border: 1px solid #3A4C70; border-radius: 8px;
  font: 600 .95rem var(--font); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

@media (max-width: 920px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 10px var(--gutter) 20px; background: var(--midnight); border-bottom: 1px solid var(--on-dark-rule);
  }
  .js .nav.open { display: flex; }
  .js .nav a:not(.btn) { padding: 12px; }
  .js .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---- buttons, badges, links ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.3em;
  border-radius: 10px; border: 1px solid transparent; font: 650 1rem/1.2 var(--font);
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--midnight); color: var(--cool); }
.btn-primary:hover { background: var(--deep); }
.btn-light { background: var(--cool); color: var(--midnight); }
.btn-light:hover { background: #FFFFFF; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.theme-dark .btn-secondary { color: var(--on-dark); border-color: rgba(243, 246, 250, .3); }
.theme-dark .btn-secondary:hover { border-color: var(--on-dark); }
.btn-sm { padding: .52em .95em; font-size: .92rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.text-link { font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.badge {
  display: inline-block; padding: .18em .7em; border-radius: 999px; font-size: .76rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; background: #E3EBF7; color: var(--deep);
}
.badge-live { background: #DDF1E5; color: #1E6B3E; }
.badge-test { background: #FFF1D6; color: #7A4B00; }
.theme-dark .badge { background: rgba(141, 180, 255, .14); color: var(--link-dark); }
.stage-note {
  display: inline-block; margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(141, 180, 255, .1); border: 1px solid rgba(141, 180, 255, .28); font-size: .92rem;
}
.notice {
  padding: 14px 18px; border-radius: var(--radius-sm); background: #E9F0FB; border: 1px solid #C8D7EE;
  color: var(--ink); font-size: 1rem;
}
.notice strong { color: var(--deep); }

/* ---- hero and page heroes ---------------------------------------------------------- */

.hero { background: var(--midnight); color: var(--on-dark); padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero h1 { margin-bottom: .3em; }
.hero .lead { color: #D3DCEA; }
.offer-line { font-size: 1rem; }

/* Home hero: actual screenshots fade in behind the copy, from the right, and dissolve into the midnight ground. */
.hero-reel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; padding-block: 0;
  min-height: clamp(560px, calc(100svh - 110px), 860px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(72, 125, 224, .16), transparent 55%),
    linear-gradient(90deg, var(--midnight) 0%, #0B1528 30%, #04070D 58%, #000 75%);
}
.hero-reel .container { position: relative; }
/* Narrow enough to stay clear of the model; wide enough for a one-line title on large screens. */
.hero-reel .hero-copy { max-width: min(38rem, 46vw); padding-block: clamp(36px, 4.5vw, 64px); }
.hero-reel h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); margin-bottom: .28em; }
.hero-reel .offer-line { font-size: .92rem; max-width: 34em; opacity: .85; }
.reel-stage { position: absolute; inset: 0 0 1.5% 32%; z-index: -1; }
.reel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.reel-slide.is-on { opacity: 1; }
.reel-slide img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%;
  transform-origin: 55% 96%;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--fade-from, 0%), #000 var(--fade, 26%)), linear-gradient(180deg, transparent 0%, #000 7%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent var(--fade-from, 0%), #000 var(--fade, 26%)), linear-gradient(180deg, transparent 0%, #000 7%);
  mask-composite: intersect;
}
/* Models that spread to the left edge of the screenshot fade further from the copy. */
.reel-wide { --fade-from: 8%; --fade: 42%; }
@media (prefers-reduced-motion: no-preference) {
  .reel-slide img { transition: transform 9s linear; }
  .reel-live .reel-slide.is-on img { transform: scale(1.035); }
}
.reel-strip-label {
  position: absolute; left: 50%; bottom: 9.5%; transform: translateX(-50%); margin: 0; white-space: nowrap;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 1px 6px #000;
}
.reel-strip-label::after { content: ""; display: block; width: 1px; height: 12px; margin: 4px auto 0; background: var(--cyan); opacity: .7; }
.reel-caption { margin-top: clamp(28px, 4vw, 44px); padding-top: 16px; border-top: 1px solid var(--on-dark-rule); max-width: 30rem; }
.reel-text { transition: opacity .4s ease; }
.reel-caption.is-swapping .reel-text { opacity: 0; }
.reel-caption p { margin: 0; }
.reel-caption .reel-category { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link-dark); }
.reel-caption .reel-name { margin-top: 2px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #FFFFFF; }
.reel-caption .reel-desc { margin-top: .2em; font-size: .9rem; line-height: 1.45; min-height: 2.9em; }
.reel-caption .reel-proof { margin-top: .4em; font-size: .78rem; color: #8C9AB3; }
.reel-links { white-space: nowrap; }
.reel-controls { display: none; align-items: center; gap: 6px; margin-top: 10px; }
.reel-live .reel-controls { display: flex; }
.reel-dots { display: flex; flex: 1; gap: 6px; }
.reel-dot { position: relative; flex: 1; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.reel-dot::before, .reel-dot span { position: absolute; left: 0; top: 12px; height: 2px; border-radius: 2px; }
.reel-dot::before { content: ""; right: 0; background: rgba(243, 246, 250, .22); }
.reel-dot span { width: 0; background: var(--on-dark); }
.reel-dot:hover::before { background: rgba(243, 246, 250, .45); }
.reel-dot.is-done span { width: 100%; }
.reel-dot.is-on span { animation: reel-fill var(--reel-dwell, 6s) linear forwards; }
.hero-reel.is-paused .reel-dot.is-on span { animation-play-state: paused; }
@keyframes reel-fill { from { width: 0; } to { width: 100%; } }
.reel-pause {
  position: relative; flex: none; width: 28px; height: 28px; margin-left: 4px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(243, 246, 250, .3); background: transparent; color: var(--on-dark);
}
.reel-pause:hover { border-color: var(--on-dark); }
/* Two bars while playing, a triangle while paused. */
.reel-pause span { position: absolute; left: 50%; top: 50%; width: 8px; height: 9px; transform: translate(-50%, -50%); border-inline: 2.5px solid currentColor; }
.reel-pause[aria-pressed="true"] span { width: 0; height: 0; border-inline: 0; border-left: 8px solid currentColor; border-block: 5px solid transparent; transform: translate(-35%, -50%); }

/* The five priorities, each leading to the section that develops it. */
.priorities { background: var(--midnight-deep); border-top: 1px solid var(--on-dark-rule); padding-block: clamp(32px, 4.5vw, 52px); }
.priority-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.priority-list a { display: block; height: 100%; padding-top: 14px; border-top: 1px solid rgba(141, 180, 255, .25); text-decoration: none; transition: border-color .15s; }
.priority-list a:hover { border-top-color: var(--link-dark); }
.priority-num { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--link-dark); }
.priority-list h3 { font-size: 1.12rem; margin: .35em 0 .3em; }
.priority-list a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.priority-list p { margin: 0; font-size: .92rem; line-height: 1.5; }
.page-hero { background: var(--midnight); color: var(--on-dark); padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { color: #D3DCEA; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 18px 0; font-size: .94rem; border-bottom: 1px solid var(--rule); }
.toc a { text-decoration: none; font-weight: 600; }

/* ---- points and cards -------------------------------------------------------------------- */

.point h3 { margin-bottom: .35em; }
.point p { margin: 0; color: var(--muted); }
.theme-dark .point p { color: var(--on-dark-muted); }
.point .glyph { margin-bottom: 12px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); }
.theme-dark .card { background: rgba(255, 255, 255, .035); border-color: var(--on-dark-rule); }
.card > :last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: .75em 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--clear); border-bottom: 2.5px solid var(--clear); transform: rotate(-45deg);
}
.theme-dark .ticks li::before { border-color: var(--link-dark); }

.glyph { display: inline-block; width: 40px; height: 40px; flex: none; }
.glyph svg { display: block; width: 100%; height: 100%; }

/* A small Zen tile behind a glyph: point-up hexagon, edge then glass. */
.tile-hex {
  position: relative; display: inline-grid; place-items: center; width: 58px; height: 66px; flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #819E9F;
}
.tile-hex::before {
  content: ""; position: absolute; inset: 1.2px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, #EFF6F2, #C2D8D7);
}
.tile-hex .glyph { position: relative; width: 38px; height: 38px; }
.theme-dark .tile-hex { background: #4C5F60; }
.theme-dark .tile-hex::before { background: linear-gradient(135deg, #22292A, #323A3A); }

.feature-grid .feature-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.feature-grid .feature-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.feature-card h3 { margin: 6px 0 0; }
.feature-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.stage-label { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.stage-label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--clear); margin-right: 8px; }

/* ---- comparison and captures ------------------------------------------------------------- */

.compare { align-items: stretch; margin-bottom: 8px; }
.compare-item { display: flex; flex-direction: column; gap: 12px; }
.compare-item svg { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); }
/* The Aretu CAD mock: a drawing with the application's own glyphs laid over its tiles. */
.mock-ws { position: relative; border-radius: var(--radius); border: 1px solid var(--rule); overflow: hidden; background: #000; }
.compare-item .mock-ws svg { border: 0; border-radius: 0; }
.mock-glyphs { position: absolute; inset: 0; pointer-events: none; }
.mock-glyphs .glyph { position: absolute; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); }
.compare-item figcaption { font-size: 1rem; color: var(--muted); }
.compare-item figcaption strong { color: var(--ink); display: block; font-size: 1.02rem; }
.capture { margin-top: clamp(40px, 6vw, 64px); }
.capture-frame { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid #1C2840; }
.capture-frame img { display: block; width: 100%; height: auto; }
.points { margin-top: clamp(36px, 5vw, 56px); }
.split-wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.zen-try { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.zen-try h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.zen-try p:not(.figure-note) { color: var(--muted); }

/* ---- Zen illustration ----------------------------------------------------------------------- */

.zen-demo {
  position: relative; aspect-ratio: 4 / 3; background: #000; border: 1px solid #1C2840; border-radius: 16px;
  overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; outline-offset: 4px;
}
.zen-demo .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zen-demo .face { cursor: pointer; transition: filter .12s; }
.zen-demo .face:hover { filter: brightness(1.07); }
.zen-demo .face.sel { fill: #2F7E86; }
.zen-demo .hole { pointer-events: none; }
.zen-demo .edge-vis { fill: none; stroke: #4F5761; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.zen-demo .edge-hit { fill: none; stroke: transparent; stroke-width: 13; vector-effect: non-scaling-stroke; cursor: pointer; pointer-events: stroke; }
.zen-demo .edge:hover .edge-vis { stroke: #7CF3F5; stroke-width: 2; }
.zen-demo .edge.sel .edge-vis, .zen-demo .sel-body .edge-vis { stroke: #7CF3F5; stroke-width: 2.2; }
.zen-console {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(74%, 440px);
  padding: 6px 8px 7px; border-radius: 6px; background: rgba(30, 37, 41, .86); border: 1px solid #3A4648;
  font: 11px/1.3 var(--font); color: #9FD9DE; pointer-events: none;
}
.zen-console .row { display: flex; align-items: center; gap: 6px; }
.zen-console .chip { padding: 1px 6px; border: 1px solid #5A6A6C; border-radius: 4px; color: #D9E6E7; }
.zen-console .state { margin-left: auto; color: #57D38A; }
.zen-console .field { margin-top: 5px; height: 16px; border-radius: 3px; background: #050607; border: 1px solid #39474A; }
.zen-ring { position: absolute; inset: 0; pointer-events: none; }
.zen-ring .zt {
  position: absolute; padding: 0; margin: 0; background: none; border: 0; cursor: pointer; pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.zen-ring .zt:focus-visible { outline: none; }
.zen-ring .zt:focus-visible .edge { stroke: #2BBEC9; stroke-width: 2; }
.zen-ring .zt svg.hex { display: block; overflow: visible; }
.zen-ring .zt .g { position: absolute; pointer-events: none; }
.zen-ring .zt .g svg { display: block; width: 100%; height: 100%; }
.zen-ring .zt[aria-disabled="true"] { cursor: not-allowed; }
.zen-ring .zt .keycap {
  position: absolute; right: 18%; bottom: 14%; font: 700 9px/1 var(--font); color: rgba(220, 235, 236, .55);
  pointer-events: none;
}
.zen-ring.open .zt { animation: zt-in .16s ease-out both; }
@keyframes zt-in { from { opacity: 0; transform: scale(.82); } }
.zen-callout {
  position: absolute; z-index: 3; padding: 4px 9px; border-radius: 6px; background: rgba(12, 18, 20, .94);
  border: 1px solid #3E5254; color: #E3EEEE; font: 600 12px/1.35 var(--font); white-space: nowrap; pointer-events: none;
  max-width: 240px;
}
.zen-callout small { display: block; font-weight: 400; color: #9FB3B4; white-space: normal; }
.zen-status {
  position: absolute; left: 12px; right: 12px; bottom: 10px; min-height: 1.4em; font: 13px/1.4 var(--font);
  color: #C9DADB; text-align: center; pointer-events: none; text-shadow: 0 1px 2px #000;
}
.zen-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px;
  background: rgba(16, 29, 53, .9); border: 1px solid #2E4470; color: var(--on-dark); font: 600 13px/1.3 var(--font);
  pointer-events: none; white-space: nowrap; transition: opacity .3s;
}
.zen-hint.gone { opacity: 0; }

/* ---- pricing ------------------------------------------------------------------------------------ */

.price-card { border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 1px solid var(--rule); }
.theme-dark .price-card { background: rgba(255, 255, 255, .04); border-color: var(--on-dark-rule); }
.price-label { margin: 0 0 6px; font-size: .86rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); }
.theme-dark .price-label { color: var(--link-dark); }
.price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(3.2rem, 7vw, 4.6rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.theme-dark .price { color: #FFFFFF; }
.price-unit { font: 600 1.05rem var(--font); letter-spacing: 0; color: var(--muted); }
.theme-dark .price-unit { color: var(--on-dark-muted); }
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.phases li { margin: 0; padding: 22px; border-right: 1px solid var(--rule); position: relative; }
.phases li:last-child { border-right: 0; }
.phases .phase-price { display: block; font: 650 1.9rem/1.1 var(--font-display); letter-spacing: -.03em; }
.phases .phase-name { display: block; margin: 6px 0 4px; font-weight: 650; }
.phases .phase-desc { display: block; color: var(--muted); font-size: 1rem; }
.phases li[aria-current="step"] { background: #EEF3FC; box-shadow: inset 0 3px 0 var(--clear); }
.phases li[aria-current="step"]::after {
  content: "Current"; position: absolute; top: 18px; right: 18px; padding: .15em .6em; border-radius: 999px;
  background: var(--midnight); color: var(--cool); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.disclosure { border-left: 3px solid var(--clear); padding: 4px 0 4px 18px; margin: 0; color: var(--ink); }
.disclosure p { margin: 0; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; cursor: pointer;
  font-weight: 650; font-size: 1.05rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font); color: var(--deep); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 2px 18px; color: var(--muted); max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- downloads ------------------------------------------------------------------------------------ */

.download-card { display: flex; flex-direction: column; gap: 12px; }
.download-card .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.download-card h3 { margin: 0; font-size: 1.35rem; }
.dl-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.dl-list li { margin: 0; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--cool); }
.dl-list li.is-match { border-color: #1E6B3E; box-shadow: 0 0 0 1px #1E6B3E; }
.dl-list .dl-match { margin-left: 10px; vertical-align: middle; }
.dl-list .meta { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); }
.dl-list code { word-break: break-all; }
.store-option { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.store-option p { margin: 0; }
.store-badge { display: inline-block; line-height: 0; border-radius: 6px; }
.store-badge img { height: 56px; width: auto; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin: 0; min-height: 36px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--midnight); color: var(--cool); font-weight: 700;
}
.theme-dark .steps li::before { background: var(--cool); color: var(--midnight); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.spec-table th { width: 32%; font-weight: 650; }
.spec-table td { color: var(--muted); }
.status { margin: 0; font-size: .86rem; font-weight: 700; color: var(--muted); }
.status-live { color: #1E6B3E; }
.platform-step { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }

/* ---- learn ---------------------------------------------------------------------------------------- */

.tutorials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tutorial { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.tutorial-media { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; }
.tutorial-media img, .tutorial-media iframe, .tutorial-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.tutorial-placeholder { display: grid; justify-items: center; gap: 10px; color: #8FA0B8; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; color: #FFFFFF; text-decoration: none; }
.video-facade .play {
  position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(16, 29, 53, .88); border: 2px solid rgba(255, 255, 255, .8);
}
.video-facade .play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 18px solid #FFFFFF; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.tutorial-body { padding: 18px 20px 22px; }
.tutorial-meta { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); }
.tutorial-body h3 { margin-bottom: .35em; }
.tutorial-body p { margin: 0; color: var(--muted); font-size: 1rem; }
.shortcut-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.shortcut-table th, .shortcut-table td { padding: 11px 16px; border-bottom: 1px solid var(--rule); text-align: left; }
.shortcut-table th { background: #EEF2F7; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.shortcut-table tr:last-child td { border-bottom: 0; }
/* Learn: keyboard view of the default shortcuts. */
.keyboard-figure { margin: 0 0 clamp(28px, 4vw, 44px); }
.keyboard { --u: clamp(26px, 3.4vw, 46px); display: grid; gap: 6px; width: max-content; max-width: 100%; overflow-x: auto; padding: 16px; background: #E9EEF5; border: 1px solid var(--rule); border-radius: var(--radius); }
.keyboard-row { display: flex; gap: 6px; }
.key { position: relative; flex: 0 0 auto; width: calc(var(--w) * var(--u) + (var(--w) - 1) * 6px); height: var(--u); display: grid; place-items: center; font-weight: 600; font-size: .78rem; line-height: 1; color: #8A97AA; background: var(--paper); border: 1px solid var(--rule-strong); border-bottom-width: 3px; border-radius: 7px; }
.key[title] { cursor: help; color: var(--ink); }
.key-menu { background: #DCE8FD; border-color: var(--clear); }
.key-view { background: #DDF3EC; border-color: #2E9C7A; }
.key-edit { background: #FBE9D6; border-color: #D9822B; }
.key-mod { background: #ECE3FA; border-color: #8A5CD6; }
.key-ctrl { background: #F3F6FA; border-color: var(--deep); border-style: dashed; }
.key-ctrl-mark { position: absolute; top: 2px; right: 4px; font-size: .5rem; letter-spacing: .02em; color: var(--deep); }
.keyboard-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.keyboard-legend span { display: inline-flex; align-items: center; gap: 8px; }
.keyboard-legend .swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid; }
.key-ctrl-sample { font-size: .6rem; color: var(--deep); padding: 1px 4px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper); }
.shortcut-grid { align-items: start; }
.shortcut-table caption { caption-side: top; text-align: left; padding: 0 0 10px; font-weight: 650; color: var(--ink); }

/* ---- about ------------------------------------------------------------------------------------------- */

.motif { display: block; width: min(100%, 380px); height: auto; margin-inline: auto; }
/* The motif animation (motif-anim.js) draws over cube-enso.png and hands back to it. */
/* Replay sits just below the stage, outside the flow, so showing it never moves the motif. */
.motif-figure { position: relative; }
.motif-stage { position: relative; aspect-ratio: 1; }
.motif-stage > img { display: block; width: 100%; height: auto; transition: opacity .45s ease; }
/* The animation stays within the motif's own box, so the canvas covers the stage exactly. */
.motif-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.motif-stage.motif-live > .motif-canvas { opacity: 1; }
.motif-stage.motif-done > .motif-canvas { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* Hide the still while the script starts; show it anyway if the script never runs. */
  .js .motif-stage > img { opacity: 0; animation: motif-still 0s linear 2.5s forwards; }
  .js .motif-stage.motif-live > img { animation: none; opacity: 0; }
  .js .motif-stage.motif-done > img { animation: none; opacity: 1; }
}
@keyframes motif-still { to { opacity: 1; } }
.motif-replay {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px;
  font: inherit; font-size: .875rem; color: var(--on-dark-muted); background: none; cursor: pointer;
  border: 1px solid var(--on-dark-rule); border-radius: 999px; padding: 4px 14px;
}
.motif-replay:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.principles .card h3 { margin-bottom: .4em; }
.principles .card p { color: var(--muted); margin: 0; }
.pronounce { font-family: var(--mono); font-size: .92em; color: var(--deep); }

/* ---- prose and legal drafts ------------------------------------------------------------------------- */

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #2B3A52; }
.draft-banner {
  margin: 0 0 32px; padding: 16px 20px; border-radius: var(--radius-sm); background: #FFF6E3; border: 1px solid #F0D49B; color: #5B3D00;
}
.draft-banner strong { color: #5B3D00; }
.last-updated { margin: 0 0 32px; font-size: .9rem; color: var(--muted); }
.placeholder { background: #FFF1D6; padding: 0 .3em; border-radius: 4px; font-family: var(--mono); font-size: .88em; color: #7A4B00; }
.release { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.release h2 { font-size: 1.5rem; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.release h2 span { font: 600 .95rem var(--font); color: var(--muted); letter-spacing: 0; }
.release-history { border-bottom: 1px solid var(--rule); }
.release-history summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer;
  font-weight: 650; font-size: 1.05rem; list-style: none;
}
.release-history summary::-webkit-details-marker { display: none; }
.release-history summary::after { content: "+"; font: 400 1.5rem/1 var(--font); color: var(--deep); flex: none; }
.release-history[open] summary::after { content: "−"; }
.release-history .release:first-of-type { padding-top: 4px; }
.release-history .release:last-child { border-bottom: 0; }
.empty-state { padding: 36px; text-align: center; border: 1px dashed var(--rule-strong); border-radius: var(--radius); color: var(--muted); background: var(--paper); }

/* Actual development captures: retain the complete viewport and its aspect ratio. */
.model-example { margin: 0; min-width: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--cool); }
.model-image { display: block; background: #000; border-radius: var(--radius) var(--radius) 0 0; }
.model-image img { display: block; width: 100%; height: auto; border-radius: inherit; }
.model-example figcaption { padding: clamp(20px, 3vw, 28px); }
.model-example .model-category { margin-bottom: 8px; color: var(--deep); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.model-example figcaption > p:not(.model-category) { color: var(--muted); }
.model-example figcaption > a { font-size: .9rem; font-weight: 600; }

/* ---- footer ------------------------------------------------------------------------------------------- */

.site-footer { background: var(--midnight-deep); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.footer-brand img { display: block; height: 44px; width: auto; }
.footer-tagline { margin: 14px 0 2px; color: var(--on-dark); font-weight: 600; }
.footer-endorse { margin: 0; color: var(--on-dark-muted); }
.site-footer h2 { font: 700 .76rem/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin: 4px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--on-dark-rule); font-size: .86rem; }
.footer-base p { margin: 0; }

/* Review aid: switches the stage on this device only. Hidden unless stageSwitch is on. */
.stage-switch {
  position: fixed; right: 14px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 12px; background: rgba(10, 20, 38, .94); border: 1px solid #2E4470; box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  font: 600 12px/1 var(--font); color: var(--on-dark-muted);
}
.stage-switch-label { padding: 0 6px 0 4px; }
.stage-switch button { padding: 7px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--on-dark); font: inherit; cursor: pointer; }
.stage-switch button[aria-pressed="true"] { background: var(--cool); color: var(--midnight); }

/* ---- responsive --------------------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .priority-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Short laptop screens: keep the caption and its controls near the fold. */
@media (min-width: 961px) and (max-height: 780px) {
  .hero-reel .hero-copy { padding-block: 28px; }
  .hero-reel h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
  .hero-reel .cta-row { margin-block: 20px 12px; }
  .reel-caption { margin-top: 20px; padding-top: 12px; }
  .reel-caption .reel-desc { display: none; }
}
@media (max-width: 960px) {
  .split, .split-wide-left, .split-wide-right { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .tutorials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The screenshot sits above the copy instead of behind it. */
  .hero-reel { display: block; min-height: 0; background: linear-gradient(180deg, #000 0%, #000 45%, var(--midnight) 100%); }
  .reel-stage { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3.3; }
  .reel-slide img { -webkit-mask-image: none; mask-image: none; }
  .reel-strip-label { font-size: .62rem; }
  .hero-reel .hero-copy { max-width: 40rem; padding-block: 8px 48px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4, .tutorials, .priority-list { grid-template-columns: minmax(0, 1fr); }
  .priority-list { gap: 0; }
  .priority-list a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 8px; padding: 12px 0; }
  .priority-num { grid-row: span 2; padding-top: .3em; }
  .priority-list h3 { font-size: 1.05rem; margin: 0 0 .15em; }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phases li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .phases li:last-child { border-bottom: 0; }
  .spec-table th { width: 40%; }
  .stage-switch { left: 10px; right: 10px; justify-content: center; }
  .zen-console { display: none; }
  .zen-demo .edge-hit { stroke-width: 8; }
  .key-ctrl-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .preview-notice, .stage-switch, .zen-demo, .skip-link, .reel-stage, .reel-controls { display: none !important; }
  body { background: #FFFFFF; }
  .band-dark, .band-deep, .hero, .page-hero, .site-footer { background: #FFFFFF !important; color: #000 !important; }
  .theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark p, .theme-dark li { color: #000 !important; }
}
