/* Psykolod — product page styles
   Loads after tokens.css, a verbatim copy of https://www.tralhavet.se/brand/tokens.css.
   The page shell (header, sections, cards, buttons, contact panel, footer) mirrors the
   main site's main.css and ISeaYou's site/css/main.css, so all three read as one family.
   Psykolod-only additions below are the app's own tokens (docs/brand/BRAND.md): Dis, Djup,
   Line, and the fixed-order data palette — never cycled, never used for the mark's beacon.
   Beacon stays the logo's signal and the focus ring; it is never a button fill or a data
   colour on this page either (D-061). */

:root {
  --color-dis:  #DDE8F3; /* haze over the water: selected / current */
  --color-djup: #132A3E; /* deeper slate: hover/pressed primary buttons */
  --color-line: #DCE3EA; /* dividers, table rules */

  --data-1: #245DA8; /* slate blue — totals, single-series */
  --data-2: #00856E; /* sea teal */
  --data-3: #8E59C4; /* heather */
  --data-neutral: #C2CDD9;

  --state-ok-fg:   #1A6957;
  --state-ok-bg:   #E3F5EF;
  --state-warn-fg: #B7791F;
  --state-danger-fg: #B42318;

  --chart-grid: #E3E8EE;
  --chart-axis: #889AAE;
  --chart-axis-text: #3D5C7A;
  --cutoff-line: #1F3A52;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color var(--duration-base) var(--ease-out); }
a:hover { color: var(--color-link-hover); }

/* ===== Base ===== */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--gradient-page) var(--color-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text);
  line-height: var(--leading-tight);
}
h2 { font-size: var(--text-xl); }
h3 { font-family: var(--font-serif); font-size: var(--text-lg); line-height: var(--leading-snug); }

p { margin-bottom: var(--space-3); max-width: var(--content-text); }
p.lead { font-size: var(--text-md); color: var(--color-text-muted); max-width: 56ch; }

.eyebrow {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
section { padding: var(--space-8) 0 var(--space-6); }
section[id] { scroll-margin-top: 104px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 246, 249, 0.92);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 0.5px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-4);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 72px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-4); position: relative; }
.site-nav-links { display: flex; gap: var(--space-5); align-items: center; }
.site-nav a { font-size: var(--text-sm); color: var(--color-text); }
.site-nav a:hover { color: var(--color-beacon); }
.lang-toggle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: 8px 12px;
  border: 0.5px solid var(--color-border-hover);
  border-radius: var(--radius-sm);
  line-height: 1;
}
.site-nav .lang-toggle { font-size: var(--text-xs); color: var(--color-text-muted); }
.lang-toggle:hover { border-color: var(--color-text); color: var(--color-text); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: '▾'; font-size: 9px; }
.lang-menu[open] summary { border-color: var(--color-text); color: var(--color-text); }
.lang-menu ul {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 11;
  min-width: 140px;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: rgba(244, 246, 249, 0.98);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.lang-menu li a { display: block; padding: 8px 12px; font-size: var(--text-sm); color: var(--color-text); border-radius: var(--radius-sm); }
.lang-menu li a:hover { background: rgba(31, 58, 82, 0.06); color: var(--color-text); }
.lang-menu li a[aria-current="page"] { color: var(--color-text-subtle); pointer-events: none; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}
.nav-toggle:hover { background: rgba(31, 58, 82, 0.06); }
.burger-icon, .burger-icon::before, .burger-icon::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-out), top var(--duration-base) var(--ease-out);
}
.burger-icon { position: relative; }
.burger-icon::before, .burger-icon::after { content: ''; position: absolute; left: 0; }
.burger-icon::before { top: -6px; }
.burger-icon::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger-icon::after  { top: 0; transform: rotate(-45deg); }

/* ===== Buttons ===== */
/* Primary CTAs are slate, not beacon: on this page, as in the product, beacon stays the
   mark's signal and the focus ring, never a call to action or a data colour. */
.cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-ghost { color: var(--color-slate); padding: 14px 4px; }
.btn-ghost:hover { color: var(--color-beacon); }
.btn-primary { background: var(--color-slate); color: var(--color-white); }
.btn-primary:hover {
  background: var(--color-djup);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

/* ===== Hero ===== */
.hero { padding: var(--space-7) 0 var(--space-8); }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-7);
  align-items: center;
}
.hero .eyebrow { margin-bottom: var(--space-3); }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--data-1); }
.hero p.lead { margin-bottom: var(--space-3); max-width: 46ch; }
.hero-aside {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text-subtle);
  margin: 0 0 var(--space-5);
}
.hero-note {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  letter-spacing: var(--tracking-wide);
}

/* The idea: copy beside a figure, one step quieter than the hero. */
.idea { background: var(--color-white); border-top: 0.5px solid var(--color-border); border-bottom: 0.5px solid var(--color-border); padding-bottom: var(--space-8); }
.idea .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.idea h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin-bottom: var(--space-4); max-width: 22ch; }
.stage-copy .eyebrow { margin-bottom: var(--space-2); }
.stage-copy p.lead { max-width: 46ch; }
.stage-copy p.lead a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== The result plate: the product, in a picture ===== */
.window { position: relative; margin: 0; }
.window-plate {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 0.5px solid var(--color-border);
}
.window-plate svg { width: 100%; height: auto; display: block; }
.window figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-align: right;
}

/* ===== Instrument: the form plate ===== */
.instrument { position: relative; margin: 0; }
.chart-plate {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 0.5px solid var(--color-border);
}
.chart-plate svg { width: 100%; height: auto; }
.chart-plate text {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--chart-axis-text);
}
.chart-plate text.ui { font-family: var(--font-sans); font-size: 13px; fill: var(--color-text); }
.chart-plate text.code, .window-plate text.code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--color-text-subtle); }
.window-plate text { font-family: var(--font-sans); font-size: 11px; fill: var(--chart-axis-text); }
.window-plate text.score { font-family: var(--font-display); font-size: 40px; fill: var(--color-text); }
.window-plate text.score-sub { font-family: var(--font-sans); font-size: 13px; fill: var(--color-text-muted); }
.window-plate text.label { font-family: var(--font-sans); font-size: 12px; fill: var(--color-text-muted); }
.window-plate text.eyebrow-svg { font-family: var(--font-serif); font-size: 10px; letter-spacing: 0.15em; fill: var(--color-text-subtle); }
.window-plate text.tick { font-family: var(--font-mono); font-size: 10px; fill: var(--chart-axis); }
.instrument figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-align: right;
}

/* A toast, as the app shows it, landing on the plate's corner. */
.alert {
  position: absolute;
  left: calc(-1 * var(--space-6));
  bottom: calc(-1 * var(--space-6));
  width: min(300px, 80%);
  background: var(--color-white);
  color: var(--color-text);
  border: 0.5px solid var(--color-border);
  border-left: 2px solid var(--data-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px 14px;
}
.alert-top { left: auto; bottom: auto; right: calc(-1 * var(--space-5)); top: calc(-1 * var(--space-5)); width: min(320px, 85%); }
.alert-right { left: auto; right: calc(-1 * var(--space-6)); }

.pl-tel {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  font-variant-numeric: tabular-nums;
}
.pl-event { display: flex; align-items: center; gap: 8px; }
.pl-event::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--data-1); flex-shrink: 0; }
.pl-title { font-family: var(--font-serif); font-weight: 400; color: var(--color-text); line-height: 1.2; font-size: 18px; margin: 6px 0 2px; }
.pl-sub { font-size: 13px; color: var(--color-text-muted); margin: 0 0 8px; }

/* ===== Section header ===== */
.section-header { margin-bottom: var(--space-6); max-width: var(--content-narrow); }
.section-header .eyebrow { margin-bottom: var(--space-2); }
.section-header h2 { margin-bottom: var(--space-3); max-width: 24ch; }
.section-header p { font-size: var(--text-md); color: var(--color-text-muted); margin: 0; }

/* ===== Panels ===== */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.panel-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split + .split { margin-top: var(--space-7); }
.split-block { margin-bottom: var(--space-7); }
.panel {
  background: var(--gradient-card);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--duration-base) var(--ease-out-soft),
    box-shadow var(--duration-base) var(--ease-out-soft),
    transform var(--duration-base) var(--ease-out-soft),
    background var(--duration-base) var(--ease-out-soft);
}
.panel:hover {
  border-color: var(--color-border-hover);
  background: var(--gradient-card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.panel-label {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.panel h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: var(--space-3); }
.panel > p { font-size: 15px; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.panel h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.bullet-list li {
  font-size: 14px;
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: var(--leading-snug);
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--color-text-muted);
}

/* ===== Split (two columns, copy + figure) ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}
.split .section-header { margin-bottom: var(--space-4); }
.split-copy > p { color: var(--color-text-muted); }

.ladder { counter-reset: rung; margin: var(--space-4) 0 var(--space-5); border-top: 0.5px solid var(--color-border); }
.ladder li {
  counter-increment: rung;
  display: grid;
  grid-template-columns: 2.5rem 11rem minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 0.5px solid var(--color-border);
  font-size: 15px;
}
.ladder li::before {
  content: counter(rung, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}
.ladder strong { font-family: var(--font-serif); font-weight: 500; }
.ladder span { color: var(--color-text-muted); }

/* ===== Form groups: the instrument list ===== */
.form-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); margin-bottom: var(--space-5); }
.form-group h3 { font-size: var(--text-base); font-family: var(--font-sans); font-weight: 600; margin-bottom: var(--space-2); }
.form-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}
.forms-note { font-size: 14px; color: var(--color-text-subtle); }

/* ===== Vessel-style card reused for the result card ===== */
.result-card {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
  border-left: 2px solid var(--data-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  margin-left: auto;
}
.result-card .head { padding: 14px 18px 0; display: flex; align-items: center; }
.result-card .head .close { margin-left: auto; color: var(--color-text-subtle); font-size: 14px; letter-spacing: 0; }
.result-card .pl-title { font-size: 26px; margin: 8px 18px 2px; }
.result-card .pl-sub { font-size: 13px; color: var(--color-text-muted); margin: 0 18px 14px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-line); }
.spec { background: var(--color-white); padding: 10px 18px; }
.spec dt { margin-bottom: 3px; }
.spec dd { font-size: 14px; font-variant-numeric: tabular-nums; }
.spec dd.over { color: var(--color-text); font-weight: 600; }
.credit { padding: 10px 18px 12px; font-size: 12px; color: var(--color-text-subtle); border-top: 1px solid var(--color-line); line-height: 1.5; }

/* ===== Measured ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-border-hover);
  border-bottom: 0.5px solid var(--color-border);
  margin-bottom: var(--space-5);
}
.stat { padding: var(--space-4) var(--space-4) var(--space-4) 0; display: flex; flex-direction: column; }
.stat + .stat { padding-left: var(--space-4); border-left: 0.5px solid var(--color-border); }
.stat-value {
  display: block;
  order: -1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.stat-value small { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); margin-left: 4px; }
.stat-label { display: block; font-size: 14px; color: var(--color-text-muted); line-height: var(--leading-snug); }

/* ===== Privacy table ===== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.privacy-table {
  min-width: 560px;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--gradient-card);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.privacy-table th {
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 0.5px solid var(--color-border-hover);
}
.privacy-table td { padding: 10px var(--space-4); border-bottom: 0.5px solid var(--color-border); vertical-align: top; }
.privacy-table tr:last-child td { border-bottom: none; }
.privacy-table td + td, .privacy-table th + th { border-left: 0.5px solid var(--color-border); }
.privacy-table td:last-child { color: var(--color-text-muted); }
.privacy-notes { margin-top: var(--space-4); }
.privacy-notes .bullet-list li { font-size: 15px; color: var(--color-text-muted); }

/* ===== Access — the night contact panel (same idea as the main site / ISeaYou) ===== */
.contact-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--space-7);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--color-border);
  min-height: clamp(420px, 48vw, 600px);
  display: flex;
  align-items: center;
}
.contact-cta-bg { position: absolute; inset: 0; z-index: -1; }
.contact-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 30, 45, 0.10) 0%, rgba(15, 30, 45, 0.25) 100%);
}
.contact-cta-bg picture { display: block; width: 100%; height: 100%; }
.contact-cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-cta .container { width: 100%; }
.contact-cta-panel {
  background: rgba(15, 30, 45, 0.18);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-on-image);
  color: var(--color-fog);
  max-width: 480px;
  padding: var(--space-5);
}
.contact-cta-panel .eyebrow { color: rgba(244, 246, 249, 0.7); margin-bottom: var(--space-3); }
.contact-cta-panel h2 { color: var(--color-fog); margin: 0 0 var(--space-3); }
.contact-cta-panel > p { font-size: var(--text-md); color: rgba(244, 246, 249, 0.82); margin: 0 0 var(--space-5); }
.contact-cta-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-channel { display: block; color: var(--color-fog); }
.contact-channel:hover { color: var(--color-beacon); }
.contact-channel-label {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(244, 246, 249, 0.6);
  margin-bottom: var(--space-1);
}
.contact-channel-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  word-break: break-word;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-5) 0;
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer-links a:hover { color: var(--color-beacon); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
}
.footer-bottom a:hover { color: var(--color-beacon); }

/* ===== Utility ===== */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  transform: translateY(calc(-100% - var(--space-3)));
  z-index: 100;
  background: var(--color-slate);
  color: var(--color-fog);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: transform var(--duration-base) var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--color-fog);
  outline: 2px solid var(--color-beacon);
  outline-offset: 2px;
}
:focus-visible { outline: 2px solid var(--color-beacon); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ===== Reveal ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-out-soft), transform var(--duration-slow) var(--ease-out-soft);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .panel-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.js .panel-grid .reveal:nth-child(3) { transition-delay: 160ms; }

/* ===== How it works: a slice of the app at the top of each step ===== */
.shot {
  position: relative;
  height: 220px;
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4);
  background: var(--color-fog);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 0.5px solid var(--color-border);
  overflow: hidden;
  color: var(--color-text);
}
.shot > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot-hint {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  margin: 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
}
.shot-stack { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 16px; }

.shot-push {
  background: var(--color-white);
  border: 1px solid var(--color-border-hover);
  border-radius: 12px;
  padding: 10px 12px 11px;
  box-shadow: var(--shadow-md);
}
.shot-push-head { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--color-text-subtle); letter-spacing: 0.04em; text-transform: uppercase; }
.shot-push-head img { width: 18px; height: 18px; border-radius: 4px; }
.shot-push-when { margin-left: auto; text-transform: none; letter-spacing: 0; }
.shot-push-title { margin: 6px 0 1px; font-size: 14px; font-weight: 500; color: var(--color-text); }
.shot-push-body { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--color-text-muted); }
.shot-log { border-top: 1px solid var(--color-line); }
.shot-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--color-line); }
.shot-row.is-dim { opacity: 0.6; }
.shot-kind { color: var(--data-1); font-size: 13px; width: 1em; }
.shot-vessel { font-family: var(--font-serif); font-size: 15px; }
.shot-new { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--data-2); }
.shot-row .pl-tel { margin-left: auto; }

.rc-mini { max-width: none; margin: 0; box-shadow: var(--shadow-md); }
.rc-mini .head { padding: 10px 14px 0; }
.rc-mini .pl-title { font-size: 20px; margin: 6px 14px 1px; }
.rc-mini .pl-sub { font-size: 12px; margin: 0 14px 10px; }
.rc-mini .spec { padding: 7px 14px; }
.rc-mini .spec dd { font-size: 13px; margin: 0; }

/* Stats are <dt> label then <dd> value in the markup; the value reads first. */
.stat dt { order: 1; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .stage, .idea .stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .instrument, .window { max-width: 640px; }
  .alert-top { left: auto; right: var(--space-3); bottom: auto; top: calc(-1 * var(--space-4)); }
  .alert { left: var(--space-3); bottom: calc(-1 * var(--space-5)); }
  .alert-right { left: auto; right: var(--space-3); }
  .hero { padding-bottom: var(--space-8); }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .result-card { margin-left: 0; }
  .form-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .panel-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: none; }
  .stat:nth-child(n+3) { border-top: 0.5px solid var(--color-border); }
  .site-logo img { height: 60px; }
  .site-nav-links { gap: var(--space-4); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav-links {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(244, 246, 249, 0.98);
    border: 0.5px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    min-width: 200px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out),
                visibility 0s linear var(--duration-base);
  }
  .site-nav-links[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  }
  .site-nav-links li { width: 100%; }
  .site-nav-links a { display: block; padding: var(--space-2) var(--space-3); font-size: var(--text-base); border-radius: var(--radius-sm); }
  .site-nav-links a:hover { background: rgba(31, 58, 82, 0.06); color: var(--color-text); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav-links {
    position: static; flex-direction: row; flex-wrap: wrap; visibility: visible; opacity: 1;
    transform: none; background: none; border: none; box-shadow: none; padding: 0; min-width: 0; gap: var(--space-3);
  }
  html:not(.js) .site-nav-links a { padding: 0; font-size: var(--text-sm); }
}
@media (max-width: 720px) {
  section { padding: var(--space-7) 0 var(--space-5); }
  .hero { padding-top: var(--space-5); }
  .container { padding-left: var(--space-3); padding-right: var(--space-3); }
  .site-logo img { height: 52px; }

  .alert { position: relative; left: auto; bottom: auto; width: auto; margin: calc(-1 * var(--space-5)) var(--space-3) 0; }
  .alert-right { right: auto; }
  .instrument figcaption, .window figcaption { text-align: left; }
  .alert-top { right: auto; top: auto; margin: calc(-1 * var(--space-5)) var(--space-3) 0; }
  .window { display: flex; flex-direction: column; }

  .ladder li { grid-template-columns: 2rem minmax(0, 1fr); }
  .ladder li span { grid-column: 2; }
  .privacy-table { font-size: 14px; }
  .privacy-table th, .privacy-table td { padding-left: var(--space-3); padding-right: var(--space-3); }
  .contact-cta { padding: var(--space-6) 0; min-height: clamp(460px, 95vw, 600px); }
  .contact-cta-panel { max-width: none; padding: var(--space-4); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding-left: 0; border-left: none; }
  .stat + .stat { border-top: 0.5px solid var(--color-border); }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Legal pages (unused today, kept for parity with the other sites) ===== */
.legal .section-header { max-width: var(--content-text); }
.legal h1 { font-size: var(--text-xl); margin-bottom: var(--space-3); max-width: 18ch; }
.legal .lead { font-size: var(--text-md); color: var(--color-text-muted); }
.legal-body { max-width: var(--content-text); }
.legal-body h2 { font-size: var(--text-lg); margin: var(--space-6) 0 var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.legal-body p, .legal-body li { line-height: var(--leading-loose); }
.legal-body ul { list-style: disc; margin: 0 0 var(--space-3); padding-left: var(--space-4); }
.legal-body li { margin-bottom: var(--space-2); }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }
