/*
  Calaminus Group site styles.
  One stylesheet, no build step. Colors, type sizes and spacing are all
  custom properties at the top, so the site can be rethemed in one place.
*/

/* ---------------------------------------------------------------
   1. Design tokens
--------------------------------------------------------------- */
:root {
  /* Color: warm paper, near-black ink, one deep green accent */
  --bg: #FAF8F4;          /* page background */
  --band: #F2EEE6;        /* section bands and muted cards */
  --paper: #FFFEFB;       /* document cards */
  --ink: #1A1A1A;         /* main text */
  --ink-2: #47443E;       /* secondary text */
  --ink-3: #6A665D;       /* labels and captions (AA on --bg and --band) */
  --rule: #E3DDD1;        /* thin borders and rules */
  --rule-strong: #CFC7B8;
  --accent: #1F5C45;      /* deep green: buttons, links, highlights */
  --accent-hover: #164735;
  --accent-soft: #E2ECE5; /* pill and chip backgrounds */
  --on-accent: #FFFFFF;
  --focus: #1F5C45;
  --shadow: 0 1px 2px rgba(40, 32, 20, .05), 0 8px 24px -12px rgba(40, 32, 20, .18);

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: .75rem;
  --text-sm: .9375rem;
  --text-base: 1.0625rem;                               /* 17px */
  --text-lg: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --text-h3: clamp(1.25rem, 1.15rem + .4vw, 1.4rem);
  --text-h2: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --text-h1: clamp(2.75rem, 1.8rem + 4.6vw, 5.5rem);

  /* Spacing */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-pad: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, .8rem + 2vw, 2.5rem);
  --max: 1200px;
  --measure: 66ch;

  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Optional dark theme, follows the visitor's system setting */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151613;
    --band: #1C1E1A;
    --paper: #22241F;
    --ink: #ECE9E2;
    --ink-2: #C4BFB5;
    --ink-3: #A29D92;
    --rule: #33362F;
    --rule-strong: #474A42;
    --accent: #86C8A6;
    --accent-hover: #A3D8BC;
    --accent-soft: #24382D;
    --on-accent: #0E1A13;
    --focus: #86C8A6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  }
}

/* ---------------------------------------------------------------
   2. Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: var(--text-h1); letter-spacing: -.035em; line-height: .98; }
h2 { font-size: var(--text-h2); letter-spacing: -.028em; }
h3 { font-size: var(--text-h3); line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "opsz" 36; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: var(--bg); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small monospace labels, e.g. "Step 01" */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.eyebrow {
  font-size: var(--text-sm);
  color: var(--ink-2);
  margin-bottom: var(--space-5);
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  line-height: 1.3;
}

.lede {
  font-size: var(--text-lg);
  color: var(--ink-2);
  max-width: 34em;
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   3. Buttons and links
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { transform: translateY(1px); }
.btn-small { padding: .6rem 1rem; font-size: var(--text-sm); }

.link-arrow {
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  gap: .4em;
  align-items: center;
  padding: .9rem .25rem;
}
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   4. Header and navigation
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-5);
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "opsz" 36;
}
.wordmark:hover { color: var(--ink); }

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: 500 var(--text-sm)/1 var(--font-body);
  padding: .55rem .8rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile: nav is a panel under the header. Without JS it simply shows. */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-2) var(--gutter) var(--space-5);
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { margin-bottom: var(--space-4); }
.site-nav li a {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
}
.site-nav li a:hover { color: var(--accent); }
.site-nav .btn { width: 100%; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav ul { display: flex; gap: var(--space-6); margin: 0; }
  .site-nav li a {
    border: 0;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--ink-2);
  }
  .site-nav .btn { width: auto; }
}

/* ---------------------------------------------------------------
   5. Hero and the demo
--------------------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 1rem + 5vw, 6rem) 0 var(--section-pad);
}
.hero-grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: var(--space-5); max-width: 11ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}

/* The demo holds a few scenarios. Each is a stack: the "before" input,
   a small processing line, then the finished document. */
.demo {
  margin: 0;
  position: relative;
}
.scenario { display: grid; }
.scenario[hidden] { display: none; }

/* Example switcher (added by site.js) */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.demo-tabs[hidden] { display: none; }
.demo-tab {
  font: 500 var(--text-sm)/1 var(--font-body);
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: .5rem .85rem;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.demo-tab:hover { color: var(--accent); border-color: var(--accent); }
.demo-tab[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.demo-input {
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  width: min(100%, 30rem);
}
.demo-input-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.mic {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  color: var(--accent);
  background: var(--paper);
  flex: none;
}
.levels { display: inline-flex; align-items: center; gap: 2px; height: 14px; margin-left: auto; }
.levels i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--ink-3);
  border-radius: 1px;
}
.transcript {
  font-family: var(--font-head);
  font-variation-settings: "opsz" 24;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  min-height: 4.5em;
}
.caret {
  display: none;
  width: 1.5px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -.15em;
  margin-left: 1px;
}

/* Processing step: a thin line and a quiet label */
.demo-process {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-4) var(--space-6);
}
.process-track {
  position: relative;
  width: 72px;
  height: 1px;
  background: var(--rule-strong);
  overflow: hidden;
}
.process-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(1);
}

/* Document cards (used in the demo and the contact form) */
.doc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.demo-output {
  width: min(100%, 32rem);
  justify-self: end;
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.doc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1.5px solid var(--ink);
}
.doc-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 36;
}
.doc-fields { margin: 0; }
.doc-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}
.doc-row:last-child { border-bottom: 0; }
.doc-row dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-row dd { margin: 0; font-size: 1rem; line-height: 1.4; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .2rem .65rem;
  border-radius: 999px;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-3);
}
.demo-replay {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font: 500 var(--text-sm)/1 var(--font-body);
  padding: .45rem .8rem;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.demo-replay:hover { color: var(--accent); border-color: var(--accent); }
.demo-replay[hidden] { display: none; }

/* Demo animation states. These classes are only ever added by site.js,
   and site.js does nothing when reduced motion is requested. */
.demo.is-animating .doc-row dd {
  opacity: 0;
  transform: translateY(4px);
}
.demo.is-animating .doc-row.is-filled dd {
  opacity: 1;
  transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.demo.is-animating .doc-row.is-filled { animation: row-flash 1.2s var(--ease); }
@keyframes row-flash {
  from { background-color: var(--accent-soft); }
  to { background-color: transparent; }
}
.demo.is-animating .demo-output { opacity: .55; transition: opacity .5s var(--ease); }
.demo.is-animating.is-processing .demo-output,
.demo.is-animating.is-filling .demo-output { opacity: 1; }

.demo.is-animating .process-fill { transform: scaleX(0); }
.demo.is-animating.is-processing .process-fill {
  transform: scaleX(1);
  transition: transform 1.3s var(--ease);
}
.demo.is-animating.is-filling .process-fill { transform: scaleX(1); }

.demo.is-listening .caret { display: inline-block; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.demo.is-listening .levels i { background: var(--accent); animation: level 0.9s var(--ease) infinite alternate; }
.demo.is-listening .levels i:nth-child(2) { animation-delay: .15s; }
.demo.is-listening .levels i:nth-child(3) { animation-delay: .3s; }
.demo.is-listening .levels i:nth-child(4) { animation-delay: .45s; }
@keyframes level { from { height: 3px; } to { height: 14px; } }

@media (min-width: 1024px) {
  .demo-input { width: 88%; }
  .demo-output { width: 90%; }
}

/* ---------------------------------------------------------------
   6. Sections
--------------------------------------------------------------- */
.section { padding: var(--section-pad) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .mono-label,
.split-head .mono-label,
.about-lead .mono-label,
.contact-copy .mono-label { margin-bottom: var(--space-4); }
.section-intro { margin-top: var(--space-5); color: var(--ink-2); font-size: var(--text-lg); max-width: 36em; }

/* Asymmetric two-column layout: heading on the left, content on the right */
.split { display: grid; gap: var(--space-7); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .split-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* Problem */
.problem { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.problem h2 { max-width: 12ch; }
.pain-list { counter-reset: pain; border-top: 1px solid var(--rule-strong); }
.pain-list li {
  counter-increment: pain;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--rule-strong);
}
.pain-list li::before {
  content: counter(pain, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  padding-top: .45rem;
  grid-row: span 2;
}
.pain-list h3 { margin-bottom: var(--space-2); }
.pain-list p { color: var(--ink-2); max-width: var(--measure); }

/* How it works: three steps along a shared rule */
.steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  border-top: 1.5px solid var(--ink);
  padding-top: var(--space-4);
}
.step .step-num { margin-bottom: var(--space-6); }
.step h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: var(--space-3); }
.step p { color: var(--ink-2); max-width: 32em; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}

/* How we build it: a quieter row */
.process {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: grid;
  gap: var(--space-5);
}
.process-title {
  font-size: var(--text-h3);
}
.process-list { display: grid; gap: var(--space-4); }
.process-list li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.55;
}
.process-list .mono-label {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-size: .6875rem;
  color: var(--ink-2);
}
.process-list strong { color: var(--ink); font-weight: 600; }
@media (min-width: 768px) {
  .process { padding: var(--space-6); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
}
@media (min-width: 1100px) {
  .process { grid-template-columns: 11rem 1fr; align-items: start; }
  .process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Examples */
.examples { border-top: 1px solid var(--rule); }
.example-grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.example {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color .2s var(--ease);
}
.example:hover { border-color: var(--rule-strong); }
.example-who { margin-bottom: var(--space-3); }
.example h3 { margin-bottom: var(--space-4); }
.example-say {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--band);
  border-radius: var(--radius);
}
.example-say .mono-label { display: block; margin-bottom: var(--space-1); font-size: .6875rem; }
.example-say p {
  font-family: var(--font-head);
  font-variation-settings: "opsz" 18;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.example-arrow { color: var(--ink-3); padding: var(--space-2) 0 var(--space-2) var(--space-4); line-height: 0; }
.example-get { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .3rem .65rem;
}
.chip::before {
  /* tiny document glyph */
  content: "";
  width: 9px;
  height: 11px;
  border: 1.25px solid var(--accent);
  border-radius: 1.5px;
  flex: none;
}
.examples-close {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  max-width: 28ch;
}

/* About */
.about { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about-grid { display: grid; gap: var(--space-7); }
.about-lead h2 { max-width: 14ch; }
.facts {
  display: flex;
  gap: var(--space-7);
  margin: var(--space-7) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-strong);
}
.facts dt {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
}
.facts dd { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--ink-2); }
.about-body > p { max-width: var(--measure); color: var(--ink-2); }
.about-body > p:first-child { font-size: var(--text-lg); color: var(--ink); }
.trust-list {
  display: grid;
  gap: 0;
  margin-top: var(--space-6);
  border-top: 1px solid var(--rule-strong);
}
.trust-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--rule-strong); }
.trust-list h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }
.trust-list p { color: var(--ink-2); font-size: var(--text-sm); }
@media (min-width: 640px) {
  .trust-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq-list details { border-bottom: 1px solid var(--rule-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-head);
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 36;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  /* plus sign that turns into a minus */
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--accent);
  transition: transform .2s var(--ease);
}
.faq-list details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat;
}
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { color: var(--ink-2); max-width: var(--measure); padding-bottom: var(--space-5); margin: 0; }

/* Contact: one big email link */
.contact { border-top: 1px solid var(--rule); }
.contact-simple .lede { max-width: 40rem; }
.contact-simple h2 { max-width: 14ch; margin-bottom: var(--space-5); }
.contact-big {
  display: inline-block;
  margin-top: var(--space-6);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
}

/* ---------------------------------------------------------------
   Terminal windows (decorative). A warm near-black, not neon.
--------------------------------------------------------------- */
:root {
  --term-bg: #1D1C1A;
  --term-bar: #2A2926;
  --term-line: #3A3833;
  --term-text: #E8E3D8;
  --term-dim: #9C968A;
  --term-ok: #8FCBA9;
  --term-prompt: #D8B46E;
}
@media (prefers-color-scheme: dark) {
  :root {
    --term-bg: #0F100E;
    --term-bar: #1B1C19;
    --term-line: #2E302B;
  }
}

.term {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(20, 16, 10, .08), 0 22px 44px -22px rgba(20, 16, 10, .45);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--term-text);
}
.term-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-line);
}
.term-dots { display: flex; gap: 7px; }
.term-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #E2685D;
}
.term-dots i:nth-child(2) { background: #E3B34F; }
.term-dots i:nth-child(3) { background: #6DBA5C; }
.term-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  color: var(--term-dim);
  white-space: nowrap;
}
.term-body {
  padding: 14px 18px 16px;
  min-height: 15.5em;
}
.tl { display: flex; gap: .75em; white-space: nowrap; }
.tl.cmd::before { content: "$"; color: var(--term-prompt); }
.tl.tl-step { padding-left: 1.1em; }
.tl .mark { font-weight: 400; color: var(--term-ok); width: 1ch; flex: none; }
.tl .label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 480px) { .term { font-size: .75rem; } .term-body { padding: 12px 14px 14px; } }
.tl .res { margin-left: auto; padding-left: 1em; color: var(--term-dim); }
.tl.note { color: var(--term-ok); padding-top: .25em; }
.cursor {
  display: inline-block;
  width: .6em;
  height: 1.15em;
  background: var(--term-text);
  vertical-align: -.2em;
  animation: caret-blink 1.1s steps(1) infinite;
}

/* Animation states, only ever added by site.js */
.term.is-playing .tl:not(.is-shown) { display: none; }
.term .tl.is-running .mark { color: var(--term-prompt); }
.term .tl.is-running .res { visibility: hidden; }
.term .cmd.is-typing .cursor-inline {
  display: inline-block;
  width: .6em;
  height: 1.15em;
  background: var(--term-text);
  vertical-align: -.2em;
}

/* Layout: How it works header with a terminal beside it */
.how-top {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.how-top .section-head { margin-bottom: 0; }
@media (min-width: 1024px) {
  .how-top { grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); gap: var(--space-8); align-items: end; }
}
.term-about { margin-top: var(--space-7); max-width: 30rem; }

/* ---------------------------------------------------------------
   7. Footer
--------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule-strong);
  padding: var(--space-7) 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.footer-grid { display: grid; gap: var(--space-5); }
.footer-desc { margin-top: var(--space-2); max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-base {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: var(--text-xs);
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
}

/* ---------------------------------------------------------------
   8. Scroll reveal (only with JS, and never with reduced motion)
--------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
