/* ==========================================================================
   GittieLabs Front Desk theme
   Light, warm, calm. One accent (deep teal green). One friendly sans (Figtree).
   Every color, size, radius and shadow below comes from the tokens in :root.
   See site/THEME.md before adding anything new.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* ---- Color: surfaces ---- */
  --color-bg: #faf8f4;          /* warm paper, page background */
  --color-bg-alt: #f3efe7;      /* sand, alternating sections */
  --color-surface: #ffffff;     /* cards */
  --color-surface-muted: #f7f4ee; /* inset areas inside cards */
  --color-line: #e7e1d6;        /* hairlines and card borders */
  --color-line-strong: #d3cbbd; /* stronger hairlines, secondary button borders */
  --color-field: #8a8377;       /* form field borders, 3.7:1 on white for WCAG non-text contrast */

  /* ---- Color: text ---- */
  --color-ink: #1e2329;         /* headings and body, 15:1 on bg */
  --color-ink-soft: #4b5361;    /* secondary text, 7.4:1 on bg */
  --color-ink-faint: #656d7a;   /* hints and captions, 4.9:1 on bg, 4.6:1 on bg-alt */

  /* ---- Color: the one accent ---- */
  --color-accent: #1d6b5c;      /* buttons, links, highlights. White on it is 6.4:1 */
  --color-accent-hover: #165548;
  --color-accent-tint: #e4f1ec; /* soft fills: badges, assistant bubbles */
  --color-accent-ink: #145043;  /* text sitting on accent-tint */
  --color-on-accent: #ffffff;

  /* ---- Color: supporting ---- */
  --color-warm: #f6e6c8;        /* decorative glow only, never text */
  --color-urgent: #b03a2e;      /* emergency tags and errors, 5.6:1 on white */
  --color-urgent-tint: #fbeae6;
  --color-focus: #1d6b5c;

  /* ---- Type ---- */
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.8125rem;   /* 13px tags */
  --text-sm: 0.9375rem;   /* 15px hints, captions */
  --text-base: 1.0625rem; /* 17px body */
  --text-lg: 1.1875rem;   /* 19px lead on phones */
  --text-xl: 1.25rem;     /* 20px h3 */
  --text-2xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem);  /* h2, 28 to 38px */
  --text-3xl: clamp(2.25rem, 1.5rem + 3.2vw, 3.625rem);   /* h1, 36 to 58px */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  /* ---- Space (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(64px, 9vw, 112px);
  --gutter: 20px;
  --width-page: 1120px;
  --width-narrow: 760px;

  /* ---- Shape and depth ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(30, 35, 41, 0.05);
  --shadow-md: 0 1px 2px rgba(30, 35, 41, 0.04), 0 8px 24px rgba(30, 35, 41, 0.06);
  --shadow-lg: 0 2px 4px rgba(30, 35, 41, 0.04), 0 18px 48px rgba(30, 35, 41, 0.10);
  --ring: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--color-focus);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 280ms;
  --dur-slow: 600ms;

  --header-h: 68px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 var(--space-4); line-height: var(--leading-tight); font-weight: var(--weight-bold); text-wrap: balance; }
h1 { font-size: var(--text-3xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
h3, .h3-size { font-size: var(--text-xl); letter-spacing: -0.01em; line-height: var(--leading-snug); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: var(--weight-semibold); color: var(--color-ink); }
a { color: var(--color-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-hover); }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--color-accent-tint); color: var(--color-accent-ink); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 50;
  background: var(--color-surface); color: var(--color-ink); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-weight: var(--weight-semibold);
}
.skip:focus { top: var(--space-4); }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap { width: 100%; max-width: var(--width-page); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: var(--width-narrow); }
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-lead { font-size: var(--text-lg); color: var(--color-ink-soft); }

.grid-2, .grid-3 { display: grid; gap: var(--space-5); list-style: none; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Header and nav
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: var(--weight-bold); font-size: 1.125rem; letter-spacing: -0.01em;
  color: var(--color-ink); text-decoration: none;
}
.brand:hover { color: var(--color-ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav a:not(.btn) {
  color: var(--color-ink-soft); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav a:not(.btn):hover { color: var(--color-ink); background: var(--color-bg-alt); }
.nav .btn { margin-left: var(--space-2); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 799px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: var(--space-3); right: var(--space-3); top: calc(var(--header-h) - 4px);
    flex-direction: column; align-items: stretch; gap: var(--space-1);
    padding: var(--space-3); background: var(--color-surface);
    border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
  }
  .js .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .js .nav a:not(.btn) { font-size: var(--text-base); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
  .js .nav .btn { margin: var(--space-2) 0 0; }
  .no-js .nav a:not(.btn) { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-weight: var(--weight-semibold); font-size: var(--text-base); line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--radius-pill); }
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-line-strong); }
.btn-secondary:hover { border-color: var(--color-ink-faint); color: var(--color-ink); background: var(--color-surface); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: var(--text-sm); }
.btn-small .icon { width: 18px; height: 18px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }

/* The big call button in the hero: label on top, number underneath */
.btn-call { min-height: 64px; padding: 12px 28px 12px 22px; gap: 14px; text-align: left; }
.btn-call .icon {
  width: 22px; height: 22px; padding: 9px; box-sizing: content-box;
  background: rgba(255, 255, 255, 0.16); border-radius: var(--radius-pill);
}
.btn-stack { display: flex; flex-direction: column; gap: 2px; }
.btn-label { font-size: var(--text-base); }
.btn-number { font-size: var(--text-sm); font-weight: var(--weight-medium); opacity: 0.9; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Small parts: pills, tags, badges, hints
   ========================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-5); padding: 6px 14px 6px 10px;
  font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-accent-ink);
  background: var(--color-accent-tint); border-radius: var(--radius-pill); line-height: 1.35;
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
@media (max-width: 559px) { .eyebrow { font-size: var(--text-xs); border-radius: 14px; } }

.pill {
  display: inline-flex; align-items: center; padding: 4px 12px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  color: var(--color-ink-soft); background: var(--color-surface-muted);
  border: 1px solid var(--color-line); border-radius: var(--radius-pill); white-space: nowrap;
}
.pill-accent { color: var(--color-accent-ink); background: var(--color-accent-tint); border-color: transparent; }

.tag {
  display: inline-flex; align-items: center; padding: 3px 10px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1.4;
  color: var(--color-ink-soft); background: var(--color-bg-alt); border-radius: var(--radius-pill); white-space: nowrap;
}
.tag.urgent { color: var(--color-urgent); background: var(--color-urgent-tint); }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  color: var(--color-accent); background: var(--color-accent-tint);
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge-lg { width: 56px; height: 56px; border-radius: 18px; }
.icon-badge-lg .icon { width: 28px; height: 28px; }

.hint { font-size: var(--text-sm); color: var(--color-ink-faint); }
.hint.small { font-size: var(--text-xs); }
.opt { font-weight: var(--weight-regular); color: var(--color-ink-faint); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-md);
}
.card-tint { background: var(--color-accent-tint); border-color: transparent; box-shadow: none; }
.card-tint .icon-badge { background: var(--color-surface); }
.card > .icon-badge { margin-bottom: var(--space-4); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero::before {
  /* Soft warm glow behind the call log. Decorative. */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; right: -200px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--color-warm), transparent 70%);
  opacity: 0.85;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; right: 160px; top: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--color-accent-tint), transparent 70%);
}
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--space-8); } }
.hero h1 { max-width: 13em; margin-bottom: var(--space-5); }
.lead { font-size: var(--text-lg); color: var(--color-ink-soft); max-width: 34em; margin-bottom: var(--space-6); }
@media (min-width: 960px) { .lead { font-size: 1.25rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.hero-ctas .btn-secondary { min-height: 64px; padding: 12px 26px; }
.cta-note { font-size: var(--text-sm); color: var(--color-ink-soft); margin-bottom: var(--space-3); }
.hero .hint { max-width: 36em; }

@media (max-width: 559px) {
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .btn-secondary { min-height: 52px; }
  .btn-call { justify-content: flex-start; }
}

/* Last night's calls card */
.log { padding: var(--space-5); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.log-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 0 var(--space-1) var(--space-4); margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line);
}
.log-title { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); }
.log-title .icon { color: var(--color-accent); }
.log-list { list-style: none; }
.log-list li {
  display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: start;
  padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-sm); line-height: 1.45;
}
.log-list li + li { border-top: 1px solid var(--color-line); }
.log-list .t { color: var(--color-ink-faint); font-variant-numeric: tabular-nums; font-weight: var(--weight-medium); padding-top: 1px; }
.log-list .d { color: var(--color-ink); }
.log-list li.is-urgent { background: var(--color-urgent-tint); border-top-color: transparent; }
.log-list li.is-urgent + li { border-top-color: transparent; }
.log-list li.is-urgent .tag.urgent { background: var(--color-surface); }
.log-foot { margin-top: var(--space-3); padding: var(--space-3) var(--space-2) 0; font-size: var(--text-sm); color: var(--color-ink-soft); border-top: 1px solid var(--color-line); }
@media (max-width: 459px) {
  .log-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .log-list .t { grid-column: 1 / -1; padding: 0; margin-bottom: -6px; }
}

/* ==========================================================================
   Problem band and steps
   ========================================================================== */

.band { background: var(--color-bg-alt); }
.band h2 { margin-bottom: var(--space-6); max-width: 18em; }
.problem { display: flex; flex-direction: column; gap: var(--space-4); }
.problem > .icon-badge { margin-bottom: 0; }
.problem p { color: var(--color-ink-soft); }
.problem strong { display: block; margin-bottom: var(--space-1); font-size: var(--text-lg); line-height: var(--leading-snug); }

.steps { counter-reset: none; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.step .num {
  font-size: 2.5rem; font-weight: var(--weight-bold); line-height: 1; letter-spacing: -0.03em;
  color: var(--color-line-strong);
}
.step p { color: var(--color-ink-soft); }

/* ==========================================================================
   Tabs, transcript and email preview
   ========================================================================== */

.tabs {
  display: inline-flex; gap: var(--space-1); padding: 5px; margin-bottom: var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap;
  color: var(--color-ink-soft); padding: 10px 18px; min-height: 44px; border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--color-ink); background: var(--color-bg-alt); }
.tab[aria-selected="true"] { background: var(--color-accent); color: var(--color-on-accent); }
.tab:focus-visible { border-radius: var(--radius-pill); }
.panel:focus-visible { border-radius: var(--radius-lg); }
.js .panel.is-entering { animation: panel-in var(--dur) var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-grid { align-items: start; }

.convo { display: flex; flex-direction: column; gap: var(--space-3); }
.convo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.convo-title { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: var(--weight-semibold); }
.convo-title .icon { color: var(--color-accent); width: 18px; height: 18px; }
.convo-key { display: inline-flex; gap: var(--space-3); margin: 0; font-size: var(--text-xs); color: var(--color-ink-faint); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.key-ai::before { background: var(--color-accent-tint); border: 1px solid var(--color-accent); }
.key-caller::before { background: var(--color-surface-muted); border: 1px solid var(--color-line-strong); }

.msg {
  max-width: 88%; margin: 0; padding: 10px 14px;
  font-size: var(--text-sm); line-height: 1.5; border-radius: 18px;
}
.msg.ai { align-self: flex-start; background: var(--color-accent-tint); color: var(--color-ink); border-bottom-left-radius: 6px; }
.msg.caller { align-self: flex-end; background: var(--color-surface-muted); color: var(--color-ink); border: 1px solid var(--color-line); border-bottom-right-radius: 6px; }
.msg.sys {
  align-self: center; max-width: 100%; display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-2); padding: 6px 14px; font-size: var(--text-xs); font-weight: var(--weight-semibold);
  color: var(--color-accent-ink); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-pill);
}
.msg.sys .icon { width: 16px; height: 16px; color: var(--color-accent); }

.email-card { padding: 0; overflow: hidden; }
.email-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); background: var(--color-surface-muted); border-bottom: 1px solid var(--color-line);
}
.email-from { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-ink-soft); font-weight: var(--weight-medium); }
.email-from .icon { width: 18px; height: 18px; color: var(--color-accent); }
.email-subject { margin: 0; padding: var(--space-5) var(--space-5) var(--space-2); font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.email-fields { margin: 0; padding: var(--space-2) var(--space-5) var(--space-5); }
.email-fields > div {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--space-3);
  padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); line-height: 1.5;
}
.email-fields > div:last-child { border-bottom: 0; }
.email-fields dt { color: var(--color-ink-faint); font-weight: var(--weight-medium); }
.email-fields dd { margin: 0; color: var(--color-ink); }
.fake-link { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 459px) {
  .email-fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Call it yourself */
.demo-card {
  display: grid; gap: var(--space-5); align-items: center; margin-top: var(--space-7);
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 2px solid var(--color-accent); box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) { .demo-card { grid-template-columns: minmax(0, 1.2fr) auto; gap: var(--space-7); } }
.demo-card h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.demo-copy p { color: var(--color-ink-soft); max-width: 34em; }
.demo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
@media (min-width: 860px) { .demo-actions { align-items: flex-end; } }
.phone {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); font-weight: var(--weight-bold); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--color-accent); text-decoration: none; white-space: nowrap;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease);
}
.phone:hover { background: var(--color-accent-tint); color: var(--color-accent-hover); }
.phone .icon {
  width: 24px; height: 24px; padding: 12px; box-sizing: content-box;
  color: var(--color-on-accent); background: var(--color-accent); border-radius: var(--radius-pill);
}
.demo-card .web-call { grid-column: 1 / -1; margin: 0; }

/* ==========================================================================
   Lists
   ========================================================================== */

.list { list-style: none; display: grid; gap: var(--space-3); }
.list li { position: relative; padding-left: 34px; color: var(--color-ink-soft); }
.list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.list-check li::before {
  background-color: var(--color-accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6b5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.list-x li::before {
  background-color: var(--color-bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5361' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}
@media (min-width: 760px) { .list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); } }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing { align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: var(--space-2); }
.price-card h3 { margin: var(--space-2) 0 0; }
.price-card > .pill { align-self: flex-start; }
.price-card > p:not(.price):not(.price-sub) { color: var(--color-ink-soft); margin: var(--space-3) 0 var(--space-5); }
.price-card .btn { margin-top: auto; }
.price { margin: 0; color: var(--color-ink-soft); font-weight: var(--weight-medium); }
.price .amt { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: var(--weight-bold); letter-spacing: -0.03em; color: var(--color-ink); margin-right: 4px; line-height: 1.1; }
.price-sub { margin: 0; color: var(--color-ink-soft); }
.price-card.featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-lg); }
.included { margin-top: var(--space-5); }
.included h3 { margin-bottom: var(--space-5); }
.included .hint { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }

/* ==========================================================================
   FAQ accordion (native <details>, enhanced by main.js)
   ========================================================================== */

.faq { margin-top: var(--space-6); border-top: 1px solid var(--color-line); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-1); cursor: pointer; list-style: none;
  font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-snug);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6b5c' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--color-line); transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--color-accent-tint); border-color: transparent; }
.faq summary:hover { color: var(--color-accent-ink); }
.faq summary:focus-visible { border-radius: var(--radius-sm); }
.faq-body { padding: 0 var(--space-1) var(--space-5); color: var(--color-ink-soft); max-width: 40em; }
.faq-body.is-animating { overflow: hidden; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.form-card { padding: clamp(20px, 4vw, 40px); }
.form { display: grid; gap: var(--space-5); }
.field-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-ink); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--color-ink);
  background: var(--color-surface); border: 1px solid var(--color-field); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5361' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
input::placeholder, textarea::placeholder { color: var(--color-ink-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--color-ink-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent); border-radius: var(--radius-sm); }
[aria-invalid="true"] { border-color: var(--color-urgent); }
[aria-invalid="true"]:focus-visible { border-color: var(--color-urgent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-urgent) 20%, transparent); }
.field-error { margin: 0; font-size: var(--text-sm); color: var(--color-urgent); font-weight: var(--weight-medium); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-actions .btn { min-width: 140px; }
.form-actions .hint { margin: 0; }
.form-status { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.form-status:empty { display: none; }
.form-status.err { padding: var(--space-3) var(--space-4); color: var(--color-urgent); background: var(--color-urgent-tint); border-radius: var(--radius-sm); }
.form-status.busy { color: var(--color-ink-soft); }
.form-success { text-align: center; padding: var(--space-6) var(--space-4); }
.form-success .icon-badge { margin: 0 auto var(--space-4); }
.form-success h3 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.form-success p { color: var(--color-ink-soft); margin-bottom: var(--space-5); }
.form-success:focus-visible { box-shadow: none; }

/* Spinner inside a busy button */
.btn[aria-busy="true"]::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Footer, toast, phone call bar
   ========================================================================== */

.site-footer { padding: var(--space-7) 0; border-top: 1px solid var(--color-line); font-size: var(--text-sm); color: var(--color-ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.footer-inner p { margin: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 12px);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--color-ink); color: #ffffff; font-size: var(--text-sm); font-weight: var(--weight-medium);
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 18px; height: 18px; color: #9fd8c6; }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-line);
  transform: translateY(110%); transition: transform var(--dur) var(--ease);
}
.callbar.is-visible { transform: none; }
.callbar .btn { min-height: 52px; }
@media (min-width: 800px) { .callbar { display: none; } }
body.has-callbar .toast { bottom: 96px; }

/* ==========================================================================
   Reveal on scroll. Only runs when main.js adds .reveal-ready, and never
   when the visitor asked for reduced motion.
   ========================================================================== */

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Windows high contrast and forced colors: keep focus and selection visible */
@media (forced-colors: active) {
  :focus-visible { outline: 2px solid CanvasText; outline-offset: 2px; }
  .tab[aria-selected="true"] { outline: 2px solid Highlight; }
}
