/* ==========================================================================
   Santech Innovations — main stylesheet
   Uses only the variables in tokens.css.

   1. Reset and base
   2. Layout helpers
   3. Components (buttons, icons, header, nav, forms)
   4. Sections (stage hero, ticker, services bento, process, plans, about, faq, contact)
      Live demos (schedule, reminders, calculator) are styled in demos.css
   5. Footer
   6. Simple pages (privacy, thanks, 404)
   7. Motion
   ========================================================================== */

/* 1. Reset and base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* Paints the phone's status-bar strip so content never shows behind it */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--text); }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--text-2); }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft); color: var(--text); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: var(--s-3); text-decoration: none; }

/* 2. Layout helpers ------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section-y); }
.section-band { background: var(--surface-2); }
.section-head { max-width: var(--measure); margin-bottom: var(--s-7); }
.section-head h2 { margin-top: var(--s-2); }
.section-sub { margin-top: var(--s-4); font-size: var(--fs-lg); }
.kicker {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary);
}

/* 3. Components ----------------------------------------------------------- */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  font: 600 var(--fs-sm)/1 var(--font-body);
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-text { background: none; border: 0; padding: var(--s-2); font: 600 var(--fs-sm)/1 var(--font-body); color: var(--text-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--text); }

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.link-arrow .icon { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

/* Theme toggle shows the icon of the theme you'd switch to */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary); color: var(--on-primary);
  font: 700 19px/1 var(--font-display);
}
.brand-name { font: 700 1.125rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand-name span { color: var(--text-3); font-weight: 600; }

/* Header and nav */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-cta { display: none; }
.icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.nav-list {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  flex-direction: column; gap: var(--s-1);
  padding: var(--s-4) var(--gutter) var(--s-5);
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.nav-list.is-open { display: flex; }
.nav-list a {
  display: block; padding: var(--s-3) var(--s-2); color: var(--text); font-weight: 500;
  border-radius: var(--r-sm);
}
.nav-list a:hover { text-decoration: none; background: var(--surface-2); }
.nav-cta-mobile { margin-top: var(--s-3); }
.nav-cta-mobile .btn { color: var(--on-primary); padding: 0 var(--s-5); }
.nav-cta-mobile .btn:hover { background: var(--primary-hover); }

@media (min-width: 960px) {
  .menu-btn, .nav-cta-mobile { display: none; }
  .header-cta { display: inline-flex; }
  .nav-list {
    display: flex; position: static; flex-direction: row; gap: var(--s-1);
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-list a { padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
  .nav-list a:hover { color: var(--text); background: none; }
}

/* Forms */
.field { display: flex; flex-direction: column; gap: var(--s-2); border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field legend { margin-bottom: var(--s-2); }
.opt { font-weight: 400; color: var(--text-3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  font: inherit; font-size: var(--fs-base); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select { appearance: none; padding-right: 44px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--text-3); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: var(--fs-xs); color: var(--error); }
.field-row { display: grid; gap: var(--s-5); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); background: var(--surface);
  transition: all var(--dur) var(--ease);
}
.chip:hover span { border-color: var(--text-3); color: var(--text); }
.chip input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--text); }
.chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

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

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; font-size: var(--fs-sm); font-weight: 500; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Check list */
.check-list { display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-2); font-size: var(--fs-sm); }
.check-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); stroke-width: 2.25; }

/* 4. Sections ------------------------------------------------------------- */

/* Hero "stage": always dark in both themes, uses the --stage-* tokens */
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--stage-bg); color: var(--stage-text);
  padding-block: var(--s-8) var(--s-9);
}
.stage-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(91, 132, 255, 0.28), transparent 70%),
    radial-gradient(45% 45% at 10% 90%, rgba(240, 180, 86, 0.16), transparent 70%);
}
/* Faint grid, fading out toward the edges */
.stage-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--stage-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.stage-inner { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 1000px) {
  .stage { padding-block: var(--s-9) var(--s-10); }
  .stage-inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); }
}
.stage-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm); font-weight: 500; color: var(--stage-text-2);
  padding: 6px var(--s-3) 6px var(--s-3);
  border: 1px solid var(--stage-border); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
}
.live-dot {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--stage-success); flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--stage-success); opacity: 0;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.stage h1 {
  margin-top: var(--s-5); color: var(--stage-text);
  font-size: var(--fs-5xl); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
}
.hl {
  background: linear-gradient(100deg, var(--stage-primary) 0%, #C9D7FF 45%, var(--stage-accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage-lead { margin-top: var(--s-5); font-size: var(--fs-lg); color: var(--stage-text-2); max-width: 52ch; }
.stage-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.stage-note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--stage-text-3); }
.btn-light { background: var(--stage-text); color: var(--stage-bg); }
.btn-light:hover { background: #FFFFFF; }
.btn-ghost-light { background: transparent; color: var(--stage-text); border-color: var(--stage-border-strong); }
.btn-ghost-light:hover { border-color: var(--stage-text); }
.stage :focus-visible { outline-color: var(--stage-primary); }
.btn-light .icon { transition: transform var(--dur) var(--ease); }
.btn-light:hover .icon { transform: translateY(2px); }

/* Automation pipeline card */
.flow { position: relative; width: 100%; max-width: 480px; margin-inline: auto; }
.flow-card {
  background: var(--stage-surface); border: 1px solid var(--stage-border); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.flow-title { font: 700 var(--fs-lg)/1.2 var(--font-display); color: var(--stage-text); }
.flow-status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 13px; font-weight: 600; color: var(--stage-success); }
.flow-nodes { position: relative; display: grid; gap: var(--s-2); }
/* The connector line running down behind the icons */
.flow-nodes::before {
  content: ""; position: absolute; left: 27px; top: 24px; bottom: 24px; width: 2px;
  background: var(--stage-border);
}
.flow-nodes li {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-2); border-radius: var(--r-md);
  transition: background-color 300ms var(--ease);
}
.node-icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--stage-bg); border: 1px solid var(--stage-border); color: var(--stage-text-3);
  transition: all 300ms var(--ease);
}
.node-icon .icon { width: 18px; height: 18px; }
.node-text strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--stage-text-2); line-height: 1.3; transition: color 300ms var(--ease); }
.node-text small { display: block; font-size: 13px; color: var(--stage-text-3); line-height: 1.3; }
.node-time { font: 500 12px/1 var(--font-mono); color: var(--stage-text-3); font-variant-numeric: tabular-nums; }
.flow-nodes li.done .node-icon { background: rgba(92, 201, 142, 0.14); border-color: rgba(92, 201, 142, 0.5); color: var(--stage-success); }
.flow-nodes li.done strong { color: var(--stage-text); }
.flow-nodes li.done .node-time { color: var(--stage-success); }
.flow-nodes li.active { background: rgba(142, 174, 255, 0.08); }
.flow-nodes li.active .node-icon { background: var(--stage-primary); border-color: var(--stage-primary); color: var(--stage-bg); box-shadow: 0 0 0 6px rgba(142, 174, 255, 0.18); }
.flow-nodes li.active strong { color: var(--stage-text); }

/* Little notification feed that pops in under the card */
.feed { display: grid; gap: var(--s-2); margin-top: var(--s-3); min-height: 112px; }
.feed li {
  display: flex; align-items: center; gap: var(--s-3);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stage-border); border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3); font-size: 13px; color: var(--stage-text-2);
  animation: feed-in 450ms var(--ease) both;
}
.feed li strong { color: var(--stage-text); font-weight: 600; }
.feed .icon { width: 16px; height: 16px; color: var(--stage-accent); }
@keyframes feed-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  .feed { position: absolute; left: -64px; right: 48px; top: calc(100% + 12px); margin: 0; }
}

/* Who it's for: marquee ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface); padding-block: var(--s-4); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.ticker-list li {
  display: flex; align-items: center; gap: var(--s-5); padding-right: var(--s-5);
  font: 600 var(--fs-lg)/1.4 var(--font-display); color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
}
.ticker-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Services: bento grid */
.bento { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.bento-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.bento-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.bento-card h3 { margin-bottom: var(--s-2); }
.bento-card p { font-size: var(--fs-sm); }
.bento-lg { background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); }
.bento-lg h3 { font-size: var(--fs-2xl); }
.bento-lg p { font-size: var(--fs-base); }
@media (min-width: 720px) { .bento-lg { grid-column: span 2; } }
@media (min-width: 1000px) { .bento-lg { grid-row: span 2; grid-column: span 1; display: flex; flex-direction: column; } }
.bento-wide { display: flex; flex-direction: column; }
@media (min-width: 1000px) { .bento-wide { grid-column: span 2; flex-direction: row; gap: var(--s-5); align-items: flex-start; } .bento-wide .service-icon { margin-bottom: 0; } }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-5); }
.tag-list li {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface);
}
.service-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: var(--s-4); flex: none;
}
.service-icon .icon { width: 22px; height: 22px; }

/* Process */
.steps { display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.steps li { padding-top: var(--s-4); border-top: 2px solid var(--border); }
.step-num { display: block; font: 700 var(--fs-sm)/1 var(--font-display); color: var(--accent); letter-spacing: 0.04em; margin-bottom: var(--s-4); }
.steps h3 { margin-bottom: var(--s-2); }
.steps p { font-size: var(--fs-sm); }

/* Plans */
.plan-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
}
.plan .check-list { flex: 1; }
.plan .btn { margin-top: var(--s-3); }
.plan-for { font-size: var(--fs-sm); margin-top: calc(var(--s-3) * -1); }
.plan-featured { border: 2px solid var(--primary); }
.plan-tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 4px 10px; border-radius: var(--r-pill);
}
.plan-price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; color: var(--text); }
.plan-price strong { font: 800 var(--fs-3xl)/1 var(--font-display); letter-spacing: -0.02em; }
.plan-price s { color: var(--text-3); font-size: var(--fs-lg); }
.plan-price span { color: var(--text-3); font-size: var(--fs-sm); }
.plan-alt { font-size: var(--fs-xs); color: var(--text-3); margin-top: calc(var(--s-3) * -1); }
.plan-extras {
  display: grid; gap: var(--s-3); margin-top: var(--s-6); padding: var(--s-5);
  background: var(--surface-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--text-2);
}
@media (min-width: 900px) { .plan-extras { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } .plan-extras .plan-fine { grid-column: 1 / -1; } }
.plan-extras strong { color: var(--text); }
.plan-fine { font-size: var(--fs-xs); color: var(--text-3); }

/* About */
.about-grid { display: grid; gap: var(--s-7); }
.about-copy h2 { margin-top: var(--s-2); margin-bottom: var(--s-5); }
.about-copy p + p { margin-top: var(--s-4); }
.about-copy p { font-size: var(--fs-lg); max-width: 60ch; }
.values { display: grid; gap: var(--s-4); }
@media (min-width: 620px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: center; } }
.values li { padding: var(--s-5); border-radius: var(--r-md); background: var(--surface-2); }
.values h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.values p { font-size: var(--fs-sm); }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-lg); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform var(--dur) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-5); max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-9); } }
.contact-copy h2 { margin-top: var(--s-2); margin-bottom: var(--s-4); }
.contact-copy > p { font-size: var(--fs-lg); }
.contact-list { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.contact-list li { display: flex; align-items: center; gap: var(--s-3); color: var(--text-2); }
.contact-list .icon { color: var(--primary); }
.contact-list a { word-break: break-word; }
.contact-form {
  display: grid; gap: var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
}
@media (min-width: 620px) { .contact-form { padding: var(--s-7) var(--s-6); } }

/* 5. Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-top: var(--s-8); background: var(--bg); }
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { margin-top: var(--s-3); font-size: var(--fs-sm); }
.footer-nav ul { display: grid; gap: var(--s-2); }
.footer-nav a, .footer-meta a { color: var(--text-2); font-size: var(--fs-sm); }
.footer-nav a:hover, .footer-meta a:hover { color: var(--text); }
.footer-meta { display: grid; gap: var(--s-2); align-content: start; font-size: var(--fs-sm); color: var(--text-3); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: var(--s-5); }
.footer-bottom p { font-size: var(--fs-xs); color: var(--text-3); }

/* 6. Simple pages --------------------------------------------------------- */
.page { padding-block: var(--s-8) var(--section-y); }
.page-narrow { max-width: var(--measure); }
.page h1 { font-size: var(--fs-3xl); margin-bottom: var(--s-5); }
.page h2 { font-size: var(--fs-xl); margin: var(--s-6) 0 var(--s-3); }
.page p, .page li { color: var(--text-2); }
.page p + p { margin-top: var(--s-3); }
.page ul { list-style: disc; padding-left: var(--s-5); display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.page .meta { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: var(--s-6); }
.page .btn { margin-top: var(--s-6); }
.simple-header .header-inner { justify-content: space-between; }

/* 7. Motion --------------------------------------------------------------- */
/* Content is always visible; it only eases up a few pixels as it scrolls in. */
.reveal { transform: translateY(14px); transition: transform 600ms var(--ease); }
.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { transform: none; }
  .ticker-track, .live-dot::after, .feed li { animation: none !important; }
  .ticker-track { width: auto; flex-wrap: wrap; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list { flex-wrap: wrap; row-gap: var(--s-2); padding-inline: var(--gutter); }
}
