/* ── Carrel site ──
   Structure, rhythm and components follow nostos.page: eyebrow + light serif
   headings, hairline rules, near-square corners, glass header, framed
   screenshots, a dark hero band that the product rises out of. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

a, button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { -webkit-appearance: none; appearance: none; font: inherit; user-select: none; }

h1, h2 { line-height: 1.18; }

:focus { outline: none; }
:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: 2px; }

body {
  background-color: var(--bg-body);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* A theme flip changes colour in one step (same approach as nostos.page). */
:root.theme-instant,
:root.theme-instant *,
:root.theme-instant *::before,
:root.theme-instant *::after {
  transition-property: transform, translate, scale, rotate !important;
  transition-delay: 0s !important;
}
:root.theme-instant .theme-glyph {
  transition-property: transform !important;
  transition-duration: 520ms !important;
  transition-timing-function: var(--ease-spring) !important;
}

img { max-width: 100%; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

.skip-link {
  position: fixed; z-index: 10000; top: 1rem; left: 1rem;
  transform: translateY(calc(-100% - 1.5rem));
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--color-text-main);
  font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.skip-link:focus-visible { transform: translateY(0); outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── Header ── */
header.site-header {
  background-color: var(--header-glass-bg);
  border-bottom: 1px solid var(--header-glass-border);
  position: sticky; top: 0; z-index: 100;
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: var(--header-glass-shadow);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

/* While the header overlaps the dark hero band it turns into dark glass. */
header.site-header.is-over-hero:not(.is-menu-open) {
  background-color: rgba(10, 7, 5, 0.34);
  border-bottom-color: rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(10px) saturate(118%);
  backdrop-filter: blur(10px) saturate(118%);
  box-shadow: none;
}
header.site-header.is-over-hero:not(.is-menu-open) .brand-wordmark { color: #f4f4f2; }
header.site-header.is-over-hero:not(.is-menu-open) nav.site-nav a { color: rgba(244, 244, 242, 0.78); }
header.site-header.is-over-hero:not(.is-menu-open) nav.site-nav a:hover { color: #fff; }
header.site-header.is-over-hero:not(.is-menu-open) .theme-toggle { color: rgba(244, 244, 242, 0.78); }
header.site-header.is-over-hero:not(.is-menu-open) .theme-toggle:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
header.site-header.is-over-hero:not(.is-menu-open) .family-link { color: #f4f4f2; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); }
header.site-header.is-over-hero:not(.is-menu-open) .nav-toggle { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: #f4f4f2; }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  header.site-header { background-color: var(--bg-body); }
  header.site-header.is-over-hero:not(.is-menu-open) { background-color: rgba(10, 7, 5, 0.9); }
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(16px, 3vw, 40px);
  height: 64px; min-width: 0;
}

.brand-lockup {
  justify-self: start; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--color-text-main); flex: 0 0 auto;
}
.brand-icon { width: 30px; height: 30px; display: block; border-radius: 6px; }
.brand-wordmark {
  font-family: var(--font-sans); font-size: 20px; font-weight: 500;
  letter-spacing: -0.03em; color: var(--color-text-main);
}
header.site-header.is-over-hero:not(.is-menu-open) .brand-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }

nav.site-nav {
  justify-self: center; display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 2.1vw, 30px); flex: 1 1 auto; min-width: 0; white-space: nowrap;
}
nav.site-nav a {
  color: var(--color-text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  white-space: nowrap; position: relative; padding: 7px 0;
  transition: color var(--motion-fast) ease;
}
nav.site-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px;
  background: currentColor; opacity: 0.5;
  transition: left var(--motion-base) var(--ease-spring), right var(--motion-base) var(--ease-spring);
}
nav.site-nav a:hover, nav.site-nav a[aria-current="page"] { color: var(--color-text-main); }
nav.site-nav a:hover::after, nav.site-nav a:focus-visible::after, nav.site-nav a[aria-current="page"]::after { left: 0; right: 0; }

.header-controls {
  grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; flex: 0 0 auto;
}

/* "Part of the Nostos family": the header's one outlined action. */
.family-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--border-color); border-radius: 6px;
  background: var(--bg-surface); color: var(--color-text-main);
  font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.family-link:hover { background: var(--bg-surface-alt); border-color: var(--color-text-light); }
.family-link .arrow { font-size: 12px; opacity: 0.7; }
.family-link .long { display: none; }
@media (min-width: 1240px) { .family-link .long { display: inline; } }

/* Menu button + sheet (phones and tablets) */
.nav-toggle {
  position: relative; display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; flex: 0 0 auto;
  background: var(--bg-surface-alt); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--color-text-main); cursor: pointer;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-spring);
}
.nav-toggle:hover { border-color: var(--color-text-light); }
.nav-toggle:active { transform: scale(0.94); }
.nav-glyph, .theme-glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: opacity var(--motion-base) ease, transform 520ms var(--ease-spring);
}
.nav-glyph svg, .theme-glyph svg { width: 18px; height: 18px; display: block; }
.glyph-menu, .glyph-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.glyph-close, .glyph-moon { opacity: 0; transform: rotate(-90deg) scale(0.55); }
.nav-toggle[aria-expanded="true"] .glyph-menu { opacity: 0; transform: rotate(90deg) scale(0.55); }
.nav-toggle[aria-expanded="true"] .glyph-close { opacity: 1; transform: rotate(0deg) scale(1); }

.nav-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-surface); border-bottom: 1px solid var(--border-color); box-shadow: var(--dock-shadow);
}
.nav-panel[data-open="true"] { display: block; animation: nav-panel-in var(--motion-base) var(--ease-spring) both; }
@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-panel-list a {
  display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border-light);
  color: var(--color-text-main); font-size: 15px; font-weight: 500; text-decoration: none;
}
.nav-panel-list a:hover { color: var(--color-text-light); }
.nav-panel-list a:last-child { border-bottom: 0; color: var(--color-text-muted); }

/* Theme toggle: one quiet utility, two glyphs */
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex: 0 0 auto;
  background: transparent; border: 1px solid transparent; border-radius: 50%;
  color: var(--color-text-muted); cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-spring), background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.theme-toggle:hover { background: var(--bg-surface-alt); color: var(--color-text-main); }
.theme-toggle:active { transform: scale(0.92); }
.theme-glyph .sun-rays { transform-origin: 12px 12px; transition: transform 420ms var(--ease-spring); }
:root[data-theme="dark"] .glyph-sun { opacity: 0; transform: rotate(90deg) scale(0.55); }
:root[data-theme="dark"] .theme-glyph .sun-rays { transform: scale(0.35); }
:root[data-theme="dark"] .glyph-moon { opacity: 1; transform: rotate(0deg) scale(1); }

@media (max-width: 900px) {
  nav.site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .family-link { display: none; }
  .header-controls { gap: 10px; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background-color: var(--primary-fill); color: var(--on-primary);
  padding: 11px 24px; border-radius: 6px; font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--border-color); transition: opacity 0.15s ease;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  display: inline-block; background-color: var(--bg-surface); color: var(--color-text-main);
  border: 1px solid var(--border-color); padding: 11px 22px; border-radius: 6px;
  font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover { background-color: var(--bg-surface-alt); border-color: var(--color-text-light); }

/* ── Hero: a dark band in both themes; the product rises out of it ── */
section.hero {
  --hero-skirt: 380px;
  margin-top: -64px;
  padding: calc(4rem + 64px) 0 4.5rem;
  position: relative; isolation: isolate; overflow: hidden;
  color: #f2f2f0;
  background:
    linear-gradient(#0b0807, #0b0807) top / 100% calc(100% - var(--hero-skirt)) no-repeat,
    var(--bg-body);
}
.hero-bloom {
  position: absolute; inset: 0 0 var(--hero-skirt) 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 85% at 6% 112%, rgba(150, 70, 42, 0.92) 0%, rgba(125, 59, 37, 0.42) 44%, transparent 72%),
    radial-gradient(ellipse 42% 62% at 98% -8%, rgba(229, 169, 59, 0.30) 0%, transparent 66%),
    radial-gradient(ellipse 46% 58% at 76% 114%, rgba(176, 86, 50, 0.46) 0%, transparent 68%),
    #0b0807;
}
.hero-bloom::after { /* fine grain, no image request */
  content: ""; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.hero-head {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: 24px 56px; align-items: end;
}
.hero-kicker {
  margin: 0 0 1.5rem; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #e5a93b;
}
h1.hero-title {
  font-family: var(--font-serif); font-weight: 300; line-height: 0.98; letter-spacing: -0.035em;
  font-size: clamp(44px, 5.6vw, 80px); color: #f6f4f0; max-width: 640px; text-wrap: balance;
}
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 6px; }
.hero-subhead { font-size: 17px; line-height: 1.65; color: #d6d3ce; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background-color: #f2f2f0; border-color: #f2f2f0; color: #0b0d0f; }
.hero .btn-secondary { background-color: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #f2f2f0; box-shadow: none; }
.hero .btn-secondary:hover { background-color: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.5;
  color: #d6d3ce; font-weight: 500;
}
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #e5a93b; flex: none; }

.hero-stage { position: relative; z-index: 2; margin-top: 3.5rem; }
.hero-stage figcaption { margin-top: 1.25rem; text-align: center; font-size: 13px; color: var(--color-text-muted); }

@media (max-width: 900px) { .hero-head { grid-template-columns: minmax(0, 1fr); } section.hero { --hero-skirt: 300px; } }
@media (max-width: 720px) {
  section.hero { --hero-skirt: 180px; padding-bottom: 3rem; }
  .hero-stage { margin-top: 2.5rem; }
  .hero-subhead { font-size: 16px; }
}

/* ── Laptop frame: a 2012-era business laptop, inline SVG ── */
.laptop {
  position: relative; max-width: 1076px; margin: 0 auto;
  aspect-ratio: 1200 / 1060;
}
.laptop-shell { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.laptop-screen {
  /* The SVG is 1200×1060; the screen cutout is x=130 y=76 w=940 h=588. */
  position: absolute; z-index: 1; left: 10.8333%; top: 7.1698%;
  width: 78.3333%; height: 55.4717%; overflow: hidden; border-radius: 2px;
  background: var(--bg-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 18px rgba(0, 0, 0, 0.08);
}
.laptop-screen .shot, .laptop-screen .shot-img, .laptop-screen img { display: block; width: 100%; height: 100%; }
.laptop-screen .shot-img img { object-fit: cover; }
@media (max-width: 720px) {
  /* On a phone the page is tiny, so the screen shows the middle of the editor, larger. */
  .laptop-screen .shot { overflow: hidden; }
  .laptop-screen .shot img { width: 165%; max-width: none; height: auto; margin-left: -32.5%; margin-top: -2%; }
  .laptop-deck-detail { display: none; }
}

/* ── Sections ── */
section.block { padding: 6.5rem 0; scroll-margin-top: 64px; }
section.block.alt {
  background-color: color-mix(in srgb, var(--bg-surface-alt) 94%, transparent);
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
:root[data-theme="dark"] section.block.alt { background-color: var(--bg-surface); }

.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 0.75rem;
}
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem; align-items: end; margin-bottom: 2.75rem;
}
.section-head h2 {
  margin: 0; font-family: var(--font-serif); font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.section-head p { margin: 0; color: var(--color-text-muted); }
@media (max-width: 900px) { .section-head { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

/* Three or two steps under one hairline each, like nostos.page's formats row */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px; margin: 0; padding: 0; list-style: none;
}
.steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 28px; border-top: 1px solid var(--border-color); }
.step .num { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.step h3 { margin: 0; font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 32px); font-weight: 400; line-height: 1.1; }
.step p { margin: 0; max-width: 36ch; font-size: 15px; color: var(--color-text-muted); }
.step p.wide { max-width: 52ch; }
.step kbd, .inline-keys kbd, p kbd {
  display: inline-block; padding: 1px 7px; border: 1px solid var(--border-color); border-bottom-width: 2px;
  border-radius: var(--radius-md); background: var(--bg-surface); color: var(--color-text-main);
  font: 500 12.5px/1.5 var(--font-sans);
}
@media (max-width: 1000px) {
  .steps, .steps.two { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .step p, .step p.wide { max-width: 52ch; }
}

/* Facts strip under the steps */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 4rem; }
.fact { padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 15px; color: var(--color-text-muted); }
.fact strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--color-text-main); font-size: 15px; }
@media (max-width: 1000px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 3rem; } }

/* ── Screenshot frames ── */
.frame {
  background: var(--bg-surface); border: 1px solid var(--mockup-frame-border);
  border-radius: 11px; box-shadow: var(--mockup-window-shadow); overflow: hidden; text-align: left;
}
figure.figure { margin: 0; }
figure.figure figcaption { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--color-text-muted); }
figure.figure figcaption strong { color: var(--color-text-main); font-weight: 600; }

.shot {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: inherit; cursor: zoom-in;
}
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot .shot-img.is-dark { display: none; }
:root[data-theme="dark"] .shot:not([data-fixed]) .shot-img.is-light { display: none; }
:root[data-theme="dark"] .shot:not([data-fixed]) .shot-img.is-dark { display: block; }
.shot-hint {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--bg-surface); color: var(--color-text-muted); opacity: 0; transition: opacity 0.18s ease; pointer-events: none;
}
.shot-hint svg { width: 15px; height: 15px; }
.shot:hover .shot-hint, .shot:focus-visible .shot-hint { opacity: 1; }
@media (hover: none) { .shot-hint { opacity: 0.65; } }

/* Writing section: Paper and Night side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair-wide { margin-bottom: 4.5rem; }
@media (max-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Feature rows: text beside a frame */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 4.5rem; align-items: center; }
.feature + .feature { margin-top: 6rem; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h3 { font-family: var(--font-serif); font-size: clamp(30px, 3.2vw, 42px); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 1rem; }
.feature-copy p { color: var(--color-text-muted); margin-bottom: 1rem; max-width: 46ch; }
.feature-copy ul { list-style: none; margin-top: 1.25rem; }
.feature-copy li { padding: 12px 0; border-top: 1px solid var(--border-color); font-size: 15px; color: var(--color-text-muted); }
.feature-copy li:last-child { border-bottom: 1px solid var(--border-color); }
.feature-copy li strong { color: var(--color-text-main); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; list-style: none; }
.feature-copy .chips li { padding: 4px 12px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-surface); font-size: 13px; color: var(--color-text-main); }
.feature-copy .chips li:last-child { border-bottom: 1px solid var(--border-color); }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .feature.flip .feature-copy { order: 0; }
  .feature + .feature { margin-top: 4rem; }
}

/* Pair of captioned frames inside a block (sync) */
.trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 3.5rem; }
@media (max-width: 760px) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* ── Principles ── */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; list-style: none; counter-reset: rule; }
.rule { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 12px; padding: 24px 0 26px; border-top: 1px solid var(--border-color); }
.rule::before {
  counter-increment: rule; content: counter(rule, decimal-leading-zero);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--color-accent); padding-top: 7px; font-variant-numeric: tabular-nums;
}
.rule h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 400; line-height: 1.15; margin-bottom: 6px; }
.rule p { font-size: 15px; color: var(--color-text-muted); max-width: 44ch; }
@media (max-width: 800px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* ── Research ── */
.research-note { max-width: 62ch; margin-top: 3rem; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 15px; color: var(--color-text-muted); }

/* ── Family band ── */
section.family { padding: 7rem 0; text-align: center; }
section.family .family-inner { max-width: 760px; margin: 0 auto; }
section.family h2 {
  font-family: var(--font-serif); font-size: clamp(38px, 4.6vw, 56px); font-weight: 300; line-height: 1.05;
  letter-spacing: -0.025em; text-wrap: balance; margin-bottom: 1.25rem;
}
section.family p { color: var(--color-text-muted); max-width: 52ch; margin: 0 auto 2rem; }
@media (max-width: 720px) { section.family { padding: 4rem 0; } }

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--border-color); padding: 4rem 0 3rem; background-color: var(--bg-body);
  font-size: 13px; color: var(--color-text-muted);
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3rem; flex-wrap: wrap; gap: 2.5rem; }
.footer-desc { max-width: 340px; line-height: 1.6; }
.footer-desc > p { margin-top: 12px; }
.footer-links { display: flex; gap: 3.5rem; }
.footer-col h3, .footer-col .footer-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-main); margin-bottom: 0.9rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--color-text-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-col ul li a:hover { color: var(--color-text-main); }
.footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 1.75rem; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: var(--color-text-muted); flex-wrap: wrap; gap: 1rem;
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.footer-legal a:hover { color: var(--color-text-main); }

@media (max-width: 620px) {
  section.block { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
  .pair-wide { margin-bottom: 3rem; }
  .feature + .feature { margin-top: 3.25rem; }
  .trio { margin-top: 2.5rem; }
  footer.site-footer { padding: 2.75rem 0 1.5rem; }
  .footer-top { margin-bottom: 1.75rem; gap: 2rem; }
  .footer-links { gap: 2.5rem; }
  .footer-bottom { padding-top: 1.25rem; gap: 0.65rem 1rem; }
}

/* ── Screenshot viewer ── */
.shot-viewer {
  position: fixed; inset: 0; margin: auto; width: fit-content; height: fit-content;
  max-width: none; max-height: none; padding: 0; border: 0; background: none; color: var(--color-text-main);
}
.shot-viewer::backdrop { background: rgba(251, 251, 252, 0.9); }
:root[data-theme="dark"] .shot-viewer::backdrop { background: rgba(8, 9, 11, 0.92); }
.shot-viewer-frame { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.shot-viewer-stage {
  display: grid; place-items: center; overflow: hidden; max-width: 94vw; max-height: 80vh;
  border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface);
  box-shadow: var(--dock-shadow); touch-action: none; cursor: zoom-in;
}
.shot-viewer-stage img {
  display: block; width: auto; max-width: 94vw; max-height: 80vh; height: auto;
  transform-origin: center center; user-select: none; -webkit-user-drag: none;
}
.shot-viewer-stage.is-zoomed { cursor: grab; }
.shot-viewer-stage.is-panning { cursor: grabbing; }
.shot-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px; }
.shot-viewer-caption { font-size: 0.82rem; color: var(--color-text-muted); }
.shot-viewer-tools { display: flex; align-items: center; gap: 6px; }
.shot-viewer-tools .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  background: var(--bg-surface-alt); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  color: var(--color-text-main); cursor: pointer; transition: background-color 0.18s ease;
}
.shot-viewer-tools .icon-btn:hover { background: var(--bg-hover); }
.shot-viewer-tools .icon-btn svg { width: 15px; height: 15px; }
.shot-viewer-scale { min-width: 46px; font-size: 0.78rem; font-variant-numeric: tabular-nums; text-align: center; color: var(--color-text-muted); }
@media (max-width: 640px) {
  .shot-viewer-stage, .shot-viewer-stage img { max-width: 96vw; max-height: 72vh; }
  .shot-viewer-caption { display: none; }
}

/* ── Privacy / long text ── */
.doc { padding: 5rem 0 6rem; }
.doc .doc-inner { max-width: 720px; }
.doc h1 {
  font-family: var(--font-serif); font-size: clamp(44px, 5.2vw, 64px); font-weight: 300; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.doc .doc-meta { color: var(--color-text-muted); font-size: 15px; margin-bottom: 3rem; }
.doc h2 {
  font-family: var(--font-serif); font-size: 30px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em;
  margin: 3rem 0 1rem; padding-top: 1.75rem; border-top: 1px solid var(--border-color);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: var(--color-text-muted); font-size: 16.5px; line-height: 1.7; }
.doc p { margin-bottom: 1rem; }
.doc ul { margin: 0 0 1.25rem 1.2rem; }
.doc li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.doc li strong, .doc p strong { color: var(--color-text-main); font-weight: 600; }
.doc a { color: var(--color-text-main); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--color-text-light); }
.doc a:hover { text-decoration-color: currentColor; }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; padding: 1px 6px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-surface-alt); color: var(--color-text-main); }
.doc .back { display: inline-block; font-size: 14px; color: var(--color-text-muted); text-decoration: none; margin-bottom: 2rem; }
.doc .back:hover { color: var(--color-text-main); }
.doc .short { margin-bottom: 2.5rem; padding: 1.5rem 1.75rem 0.5rem; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-surface); }
.doc .short h2 { margin: 0 0 1rem; padding: 0; border: 0; font-size: 24px; }
@media (max-width: 620px) { .doc { padding: 3rem 0 4rem; } .doc .short { padding: 1.25rem 1.25rem 0.25rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-glyph, .theme-glyph .sun-rays, .nav-glyph { transition: none; }
  .nav-panel[data-open="true"] { animation: none; }
}
.footer-h { font-weight: 600; }

/* ── Header download action (same weight as Get started on nostos.page) ── */
.btn-header-cta {
  background-color: var(--primary-fill); color: var(--on-primary); padding: 7px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid var(--border-color);
  transition: opacity 0.15s ease; white-space: nowrap;
}
.btn-header-cta:hover { opacity: 0.9; }
header.site-header.is-over-hero:not(.is-menu-open) .btn-header-cta {
  background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.18); color: #f4f4f2;
}
.nav-panel-list a.nav-panel-cta {
  margin: 1rem 0 0.35rem; padding: 11px 24px; border: 1px solid var(--border-color); border-radius: 6px;
  background-color: var(--primary-fill); color: var(--on-primary); text-align: center;
}
.nav-panel-list a.nav-panel-cta:hover { color: var(--on-primary); opacity: 0.9; }
@media (max-width: 560px) { .btn-header-cta { display: none; } }

/* ── Download ── */
code, kbd, mark { font-family: inherit; }
code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em; padding: 1px 6px; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--bg-surface-alt); color: var(--color-text-main); overflow-wrap: anywhere;
}
:root[data-theme="dark"] code { background: var(--bg-surface-alt); }

.release {
  background: var(--bg-surface); border: 1px solid var(--mockup-frame-border); border-radius: 11px;
  box-shadow: var(--mockup-window-shadow); overflow: hidden;
}
.release-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 3rem; padding: 2.25rem 2.5rem; align-items: center; }
.release-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.release-name { font-family: var(--font-serif); font-weight: 300; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.release-meta { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 0.25rem 2.5rem; justify-content: start; }
.release-meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 2px; }
.release-meta dd { font-size: 15px; color: var(--color-text-main); }
.release-action { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.btn-download {
  display: block; width: 100%; text-align: center; background-color: var(--primary-fill); color: var(--on-primary);
  padding: 16px 28px; border-radius: 6px; font-size: 17px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--border-color); transition: opacity 0.15s ease; cursor: pointer;
}
.btn-download:hover { opacity: 0.9; }
.btn-download[hidden] { display: none; }
.btn-download:disabled {
  background-color: var(--bg-surface-alt); color: var(--color-text-muted); border-color: var(--border-color);
  cursor: not-allowed; opacity: 1;
}
.release-hint { font-size: 13.5px; line-height: 1.55; color: var(--color-text-muted); }
.release-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.release-links[hidden] { display: none; }
.release-links a { color: var(--color-text-main); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--color-text-light); }
.release-links a:hover { text-decoration-color: currentColor; }
.release-sum { padding: 1.25rem 2.5rem 1.75rem; border-top: 1px solid var(--border-color); }
.release-sum-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 8px; }

.codeline {
  display: flex; align-items: stretch; gap: 0; border: 1px solid var(--border-color); border-radius: 6px;
  background: var(--bg-surface-alt); overflow: hidden;
}
.codeline code {
  flex: 1 1 auto; min-width: 0; display: block; border: 0; border-radius: 0; background: transparent;
  padding: 11px 14px; font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
}
.codeline code mark { background: transparent; color: var(--color-accent); font-weight: 600; }
.copy-btn {
  flex: none; padding: 0 16px; border: 0; border-left: 1px solid var(--border-color); background: var(--bg-surface);
  color: var(--color-text-main); font-size: 13px; font-weight: 500; cursor: pointer; min-width: 72px;
  transition: background-color 0.15s ease;
}
.copy-btn:hover:not(:disabled) { background: var(--bg-hover); }
.copy-btn:disabled { color: var(--color-text-muted); cursor: not-allowed; }

.install, .laptops { margin-top: 5rem; }
.install-title { font-family: var(--font-serif); font-size: clamp(30px, 3.2vw, 42px); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 2rem; }
.install-steps { list-style: none; }
.istep { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; padding: 28px 0 32px; border-top: 1px solid var(--border-color); }
.istep:last-child { border-bottom: 1px solid var(--border-color); }
.istep-head .num { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.istep-head h4 { font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 32px); font-weight: 400; line-height: 1.1; margin-top: 8px; }
.istep-body p { font-size: 15px; color: var(--color-text-muted); max-width: 62ch; margin-bottom: 0.9rem; }
.istep-body p:last-child { margin-bottom: 0; }
.istep-body strong { color: var(--color-text-main); font-weight: 600; }
.istep-body .chips { margin: 0.25rem 0 1rem; }
.istep-body .chips li { padding: 4px 12px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-surface); font-size: 13px; color: var(--color-text-main); }
.istep-body .tool-note { font-size: 14px; }
.istep-body .cmd-label { margin: 1.25rem 0 6px; font-size: 13.5px; font-weight: 500; color: var(--color-text-main); }
.istep-body .cmd-label code { font-size: 0.9em; }
.istep-body .codeline { max-width: 62ch; }
.warning {
  margin-top: 1.1rem; padding: 14px 16px; border: 1px solid var(--border-color); border-left: 3px solid var(--color-accent);
  border-radius: 6px; background: var(--bg-surface); font-size: 14px; line-height: 1.6; color: var(--color-text-muted);
}
.warning strong { color: var(--color-text-main); }
.laptops-lede { max-width: 62ch; margin: -0.75rem 0 2.25rem; color: var(--color-text-muted); }
.laptops-lede strong { color: var(--color-text-main); font-weight: 600; }
.tiers .step h3 { font-size: clamp(24px, 2.2vw, 28px); }
.facts { margin-top: 4rem; }
.install ~ .facts { margin-top: 4rem; }

@media (max-width: 900px) {
  .release-main { grid-template-columns: minmax(0, 1fr); padding: 1.75rem 1.5rem; }
  .release-sum { padding: 1.25rem 1.5rem 1.5rem; }
  .release-meta { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .istep { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding: 24px 0 28px; }
  .install, .laptops { margin-top: 3.5rem; }
}
@media (max-width: 620px) {
  .btn-download { padding: 14px 20px; font-size: 16px; }
}
.steps.two { row-gap: 44px; }
.steps.two .step { padding-bottom: 4px; }

/* ---------- Round-1 restructure: less text, more product ---------- */
.glance { padding: 4.5rem 0 1rem; }
.glance-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.glance-list li { display: flex; flex-direction: column; gap: 6px; }
.glance-icon { width: 28px; height: 28px; color: var(--color-accent, #A8461F); margin-bottom: 8px; }
.glance-list strong { font-family: var(--font-serif); font-size: 22px; font-weight: 400; line-height: 1.2; color: var(--color-text-main); }
.glance-list span { font-size: 15px; color: var(--color-text-muted); }
@media (max-width: 900px) { .glance-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .glance-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .glance { padding-top: 3rem; } }

.showcase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 20px; border-top: 1px solid var(--border-color); }
.showcase-tabs [role="tab"] { appearance: none; background: none; border: 0; border-top: 2px solid transparent; margin-top: -1px; padding: 14px 16px 0 0; text-align: left; font: inherit; color: var(--color-text-muted); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.showcase-tabs [role="tab"] strong { font-size: 15px; font-weight: 600; color: var(--color-text-muted); }
.showcase-tabs [role="tab"] span { font-size: 13.5px; }
.showcase-tabs [role="tab"][aria-selected="true"] { border-top-color: var(--color-accent, #A8461F); }
.showcase-tabs [role="tab"][aria-selected="true"] strong { color: var(--color-text-main); }
.showcase-tabs [role="tab"]:hover strong { color: var(--color-text-main); }
.showcase-tabs [role="tab"]:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--color-accent, #A8461F); outline-offset: 4px; }
.showcase-panel .figure { margin: 0; }
@media (max-width: 720px) {
  .showcase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .showcase-tabs [role="tab"] { padding-bottom: 12px; }
}
.spec-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.spec-chips li { padding: 4px 12px; border: 1px solid var(--border-color); border-radius: 999px; font-size: 13.5px; color: var(--color-text-muted); }

.feature-title { font-family: var(--font-serif); font-size: clamp(34px, 4vw, 52px); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; margin: 10px 0 18px; }
.kbd-big { font-family: var(--font-sans, inherit); font-size: 0.8em; padding: 0 0.3em; border: 1px solid var(--border-color); border-bottom-width: 3px; border-radius: 8px; color: var(--color-accent, #A8461F); background: var(--bg-surface, transparent); }
.feature-copy ul.dest li { display: flex; flex-direction: column; gap: 2px; }
.feature-copy ul.dest li strong { font-size: 15px; }

.quick-steps { list-style: none; counter-reset: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 3rem; }
.quick-steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-surface, transparent); }
.quick-steps .qs-num { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--bg-body); background: var(--color-accent, #A8461F); margin-bottom: 8px; }
.quick-steps strong { font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: var(--color-text-main); }
.quick-steps span strong { font-family: inherit; font-size: inherit; font-weight: 600; color: var(--color-text-main); }
.quick-steps span:not(.qs-num) { font-size: 15px; color: var(--color-text-muted); }
@media (max-width: 860px) { .quick-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.requirements { margin-top: 1.75rem; font-size: 14.5px; color: var(--color-text-muted); max-width: 72ch; }

.more { margin-top: 2rem; border-bottom: 1px solid var(--border-color); }
.disclosure { border-top: 1px solid var(--border-color); }
.disclosure summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; color: var(--color-text-main); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--color-text-muted); line-height: 1; }
.disclosure[open] summary::after { content: "\2212"; }
.disclosure summary:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--color-accent, #A8461F); outline-offset: 4px; }
.disclosure-body { padding: 0 0 26px; max-width: 72ch; }
.disclosure-body.istep-body .codeline { max-width: 72ch; }
.evidence { list-style: none; }
.evidence li { padding: 10px 0; border-top: 1px solid var(--border-color); font-size: 15px; color: var(--color-text-muted); }
.evidence li:first-child { border-top: 0; padding-top: 0; }
.evidence strong { color: var(--color-text-main); font-weight: 600; }
.evidence .ev { display: inline-block; min-width: 5.5rem; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent, #A8461F); }
.small-note { margin-top: 1rem; font-size: 14px; color: var(--color-text-muted); }

.rule-list { list-style: none; counter-reset: rule; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.rule-list li { counter-increment: rule; display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border-color); font-family: var(--font-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.25; color: var(--color-text-main); }
.rule-list li::before { content: counter(rule, decimal-leading-zero); font-family: var(--font-sans, inherit); font-size: 12px; font-weight: 600; color: var(--color-accent, #A8461F); min-width: 1.5rem; }
@media (max-width: 800px) { .rule-list { grid-template-columns: minmax(0, 1fr); } }

/* Round 2 */
.feature-copy li kbd, .quick-steps kbd, .disclosure kbd, .showcase-tabs kbd, figcaption kbd {
  font-family: var(--font-sans, inherit); font-size: 0.82em; padding: 1px 6px; border: 1px solid var(--border-color);
  border-bottom-width: 2px; border-radius: 5px; background: var(--bg-surface); color: var(--color-text-main); white-space: nowrap;
}
.disclosure summary > span { flex: 1; }
@media (max-width: 520px) {
  .glance-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .glance-list strong { font-size: 18px; }
  .glance-list span { font-size: 13.5px; }
  .glance-icon { width: 24px; height: 24px; margin-bottom: 4px; }
}
@media (max-width: 860px) {
  .quick-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 14px; padding: 16px; }
  .quick-steps .qs-num { grid-row: span 2; margin: 2px 0 0; }
  .quick-steps strong { font-size: 19px; }
}
@media (min-width: 901px) {
  .showcase { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .showcase-tabs { grid-template-columns: minmax(0, 1fr); border-top: 0; margin: 0; }
  .showcase-tabs [role="tab"] { border-top: 0; border-left: 2px solid var(--border-color); margin: 0; padding: 14px 0 14px 18px; }
  .showcase-tabs [role="tab"][aria-selected="true"] { border-left-color: var(--color-accent); }
  .showcase-panel { grid-column: 2; grid-row: 1 / span 4; }
  .showcase-panel[hidden] { display: none; }
  .showcase + .spec-chips { margin-left: 260px; }
}
