/* ==========================================================================
   Quietworks - site stylesheet
   One file, no build step. Edit the tokens below to restyle the whole site.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Warm paper + ink + a single copper accent. The product screenshots are
     blue, so the chrome around them is deliberately warm - they pop. */
  --bg:          #fbfaf8;
  --bg-alt:      #f4f1ec;
  --surface:     #ffffff;
  --surface-2:   #f7f5f1;
  --border:      #e6e1d9;
  --border-firm: #d5cec3;

  --ink:         #14171c;
  --ink-2:       #4d545d;
  --ink-3:       #7d858f;

  --accent:      #b4530f;
  --accent-hov:  #97440b;
  --accent-ink:  #8f4109;
  --accent-soft: #fbeee1;
  --accent-line: #ecd7c0;

  --ok:          #1f7a4d;
  --ok-soft:     #e6f4ec;

  --shadow-sm: 0 1px 2px rgba(20, 23, 28, .05), 0 1px 3px rgba(20, 23, 28, .04);
  --shadow-md: 0 2px 4px rgba(20, 23, 28, .04), 0 8px 24px rgba(20, 23, 28, .07);
  --shadow-lg: 0 4px 8px rgba(20, 23, 28, .05), 0 24px 56px rgba(20, 23, 28, .12);

  --radius:    12px;
  --radius-lg: 18px;
  --maxw:      1140px;
  --pad:       clamp(20px, 5vw, 40px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* Dark palette: applied when the OS asks for it (unless the visitor chose
   light) and whenever the visitor picks dark explicitly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0d1015;
    --bg-alt:      #12161d;
    --surface:     #161b23;
    --surface-2:   #1b212a;
    --border:      #262d38;
    --border-firm: #333c49;

    --ink:         #e9edf3;
    --ink-2:       #9ba5b2;
    --ink-3:       #6f7885;

    --accent:      #ef9f57;
    --accent-hov:  #f4b276;
    --accent-ink:  #f2ab68;
    --accent-soft: #241a11;
    --accent-line: #3d2c1b;

    --ok:          #4ec98a;
    --ok-soft:     #12251b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 24px 56px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --bg:          #0d1015;
  --bg-alt:      #12161d;
  --surface:     #161b23;
  --surface-2:   #1b212a;
  --border:      #262d38;
  --border-firm: #333c49;

  --ink:         #e9edf3;
  --ink-2:       #9ba5b2;
  --ink-3:       #6f7885;

  --accent:      #ef9f57;
  --accent-hov:  #f4b276;
  --accent-ink:  #f2ab68;
  --accent-soft: #241a11;
  --accent-line: #3d2c1b;

  --ok:          #4ec98a;
  --ok-soft:     #12251b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 24px 56px rgba(0, 0, 0, .55);
}

/* --- 2. Reset ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

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

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
a  { color: var(--accent-ink); text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
a:hover { color: var(--accent-hov); }
code, kbd { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* A class selector beats the user agent's [hidden] rule, so anything this
   stylesheet gives a display value to needs its own [hidden] rule. */
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- 3. Layout ----------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 780px; }

section { padding-block: clamp(56px, 9vw, 104px); }
section.tight { padding-block: clamp(40px, 6vw, 68px); }
.band     { background: var(--bg-alt); border-block: 1px solid var(--border); }
.band-ink { background: #0f1319; color: #e9edf3; border-block: 1px solid #1e252f; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p, .band-ink li  { color: #a8b2be; }
.band-ink a { color: #f0a65c; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 14px;
}
.band-ink .eyebrow { color: #f0a65c; }

h1 { font-size: clamp(34px, 5.6vw, 58px); }
h2 { font-size: clamp(27px, 3.8vw, 40px); }
h3 { font-size: clamp(19px, 2.1vw, 23px); }

.lede      { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); line-height: 1.6; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.muted     { color: var(--ink-2); }
.small     { font-size: 14.5px; }
.center    { text-align: center; }

/* --- 4. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hov); color: #fff; box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-primary:hover { color: #14171c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary,
  :root:not([data-theme="light"]) .btn-primary:hover { color: #14171c; }
}

.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--border-firm); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.band-ink .btn-ghost { background: transparent; color: #e9edf3; border-color: #39424f; }
.band-ink .btn-ghost:hover { border-color: #6f7885; color: #fff; }
.band-ink .btn-primary { color: #14171c; }

.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-sm { padding: 9px 17px; font-size: 14.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

.note-under { font-size: 14.5px; color: var(--ink-3); margin-top: 16px; }

/* --- 5. Header ----------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; gap: 20px; height: 68px; position: relative; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-mark-bg { fill: var(--accent); }
.brand-mark-fg { fill: #fff; }
:root[data-theme="dark"] .brand-mark-fg { fill: #14171c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark-fg { fill: #14171c; }
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px; border-radius: 8px;
  font-size: 15.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 9px; cursor: pointer; color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; padding: 0;
    background: transparent; border: 1.5px solid var(--border);
    border-radius: 9px; cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 19px; height: 19px; }
  .nav-links {
    position: absolute; top: 100%; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px var(--pad) 20px; box-shadow: var(--shadow-md);
  }
  .nav-links a { padding: 12px 14px; font-size: 16.5px; }
  .nav-actions .btn { display: none; }
}

/* --- 6. Hero ------------------------------------------------------------- */

.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% auto -20%; height: 620px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  opacity: .85; pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 54ch; margin-bottom: 30px; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 60px); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14.5px; color: var(--ink-2);
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; flex: none; color: var(--ok); }

/* --- 7. Screenshot frames ------------------------------------------------ */

.shot {
  border: 1px solid var(--border-firm); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg);
}
.shot img { width: 100%; display: block; }
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-firm); flex: none; }
.shot-title {
  margin-left: 6px; font-size: 12.5px; color: var(--ink-3);
  font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot-caption { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }

.shot-crop { max-height: 470px; overflow: hidden; position: relative; }
.shot-crop::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(transparent, var(--surface));
  pointer-events: none;
}

/* The employee strip is 1920x41 - a 47:1 ribbon. Shown at page width its text
   is about six pixels tall, so it appears twice: once whole, to show how little
   of the screen it takes, and once as two close-ups at their natural size,
   which is the only way the words are actually readable. */

.strip-actual {
  margin: 0 0 26px;
  padding: 18px 18px 0;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.strip-actual img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.strip-actual figcaption { padding-bottom: 16px; }

.strip-zoom {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: clamp(30px, 5vw, 52px);
}
.strip-zoom figure { margin: 0; }
/* Never upscale past 1:1 - these are screenshots, and blur reads as sloppy. */
.strip-zoom .shot { max-width: 100%; }
.strip-zoom img { width: 100%; max-width: 560px; }

.strip-stack { margin: 0; display: grid; gap: 12px; }
.strip-stack .shot img { width: 100%; }
.strip-stack figcaption { margin-top: 4px; }

/* On a phone these would shrink to about half size and stop being readable.
   Let the frame scroll instead and keep the screenshot at 1:1. */
@media (max-width: 620px) {
  .strip-zoom .shot, .strip-stack .shot { overflow-x: auto; }
  .strip-zoom .shot img, .strip-stack .shot img { width: auto; max-width: none; }
}

/* --- 8. Cards and grids -------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card h3 { font-size: 19px; margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-hover:hover { border-color: var(--border-firm); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 10px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); color: var(--accent-ink);
  margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; }

/* --- 9. Steps ------------------------------------------------------------ */

.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 17px;
}
:root[data-theme="dark"] .step::before { color: #14171c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step::before { color: #14171c; }
}
.step h3 { font-size: 19px; }
.step p:last-child { margin-bottom: 0; }

/* --- 10. Feature rows (alternating text / screenshot) -------------------- */

.feature-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(30px, 5vw, 64px); align-items: center;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.feature-row:last-child { margin-bottom: 0; }
@media (min-width: 781px) { .feature-row.reverse .feature-text { order: 2; } }
.feature-text h3 { font-size: clamp(22px, 2.6vw, 28px); }
.feature-text p:last-child { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.1em; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink-2);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ok-soft);
  border: 1.5px solid var(--ok);
}
.check-list li::after {
  content: ""; position: absolute; left: 5.5px; top: .66em;
  width: 5px; height: 8px; border: solid var(--ok);
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.check-list strong { color: var(--ink); font-weight: 600; }
.band-ink .check-list li { color: #a8b2be; }
.band-ink .check-list strong { color: #fff; }

/* --- 11. Stat strip ------------------------------------------------------ */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat-n {
  font-size: clamp(30px, 4vw, 42px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05; color: var(--accent-ink);
}
.band-ink .stat-n { color: #f0a65c; }
.stat-l { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.band-ink .stat-l { color: #a8b2be; }

/* --- 12. Tools catalogue ------------------------------------------------- */

.tool-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tool-card.live:hover { border-color: var(--border-firm); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-card.soon { background: var(--surface-2); border-style: dashed; box-shadow: none; }
.tool-card h3 { margin-bottom: .3em; }
.tool-card p { color: var(--ink-2); font-size: 15.5px; }
.tool-card .btn { margin-top: auto; align-self: flex-start; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 14px;
}
.tag-live { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.tag-soon { background: var(--surface); color: var(--ink-3); border: 1px solid var(--border-firm); }

/* --- 13. Pricing --------------------------------------------------------- */

.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }

.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: var(--accent); border-width: 2px;
  box-shadow: var(--shadow-md); padding-block: 36px 30px;
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 15px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
:root[data-theme="dark"] .price-badge { color: #14171c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .price-badge { color: #14171c; }
}
.price-card h3 { font-size: 20px; margin-bottom: .25em; }
.price-tagline { color: var(--ink-3); font-size: 14.5px; margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount .amt { font-size: clamp(32px, 4.4vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price-amount .per { font-size: 15px; color: var(--ink-3); }
.price-alt { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
.price-card .btn { width: 100%; margin-top: 24px; }
.price-card .check-list { margin-top: 24px; margin-bottom: 0; font-size: 15.5px; }
.price-card .check-list li { margin-bottom: 9px; }

/* --- 14. Tables ---------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--surface); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 600; }
.yes { color: var(--ok); font-weight: 600; }
.no  { color: var(--ink-3); }

/* --- 15. FAQ ------------------------------------------------------------- */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 17.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-left: auto; margin-top: 7px;
  border: solid var(--ink-3); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq .faq-body { padding: 0 34px 22px 0; color: var(--ink-2); }
.faq .faq-body p:last-child, .faq .faq-body ul:last-child { margin-bottom: 0; }

/* --- 16. Callouts and spec lists ----------------------------------------- */

.callout {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin-bottom: 1.5em;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-ink); }

.spec-list { display: grid; gap: 0; margin: 0; }
.spec-list > div {
  display: grid; grid-template-columns: minmax(140px, 210px) 1fr; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid var(--border);
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { font-weight: 600; color: var(--ink); }
.spec-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 620px) { .spec-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* --- 17. Diagram --------------------------------------------------------- */

.diagram {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.diagram svg { width: 100%; height: auto; }
.dg-box   { fill: var(--surface-2); stroke: var(--border-firm); stroke-width: 1.5; }
.dg-box-a { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.dg-line  { stroke: var(--border-firm); stroke-width: 1.5; fill: none; }
.dg-t     { fill: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--font); }
.dg-s     { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font); }
.dg-l     { fill: var(--accent-ink); font-size: 11.5px; font-weight: 600; font-family: var(--mono); }

/* --- 18. Form ------------------------------------------------------------ */

.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border-firm);
  border-radius: 9px; padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 14px 18px; border-radius: 9px; font-size: 15.5px; font-weight: 500; }
.form-status.ok   { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.form-status.err  { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.form-status.busy { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }

/* --- 19. Contact channels ------------------------------------------------ */

.channel {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.channel:last-child { border-bottom: 0; }
.channel > svg { width: 21px; height: 21px; flex: none; margin-top: 3px; color: var(--accent-ink); }
.channel-label { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.channel a { font-size: 15.5px; }
.channel .small { color: var(--ink-3); margin: 2px 0 0; }

/* --- 20. CTA band -------------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { max-width: 52ch; margin-inline: auto; margin-bottom: 30px; }

/* --- 21. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding-block: clamp(44px, 6vw, 68px) 30px; font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 36px; margin-bottom: 40px;
}
/* Below this the auto-fit columns cannot fit beside the about block without
   pushing the page sideways, so drop to two link columns. */
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .footer-about { grid-column: 1 / -1; }
}
.footer-about p { color: var(--ink-2); font-size: 15px; max-width: 40ch; margin-top: 14px; }
.footer-col h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--ink-3); font-size: 14px;
}
.footer-bottom a { color: var(--ink-3); }

/* --- 22. Reveal on scroll ------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- 23. Print ----------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .theme-toggle, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .shot { box-shadow: none; }
  section { padding-block: 18px; }
}
