:root {
  --focus: #ffd69b;
  --readable-muted: #aaa4b3;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff9f1;
  color: #17131a;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(16, 14, 20, 0.94);
  color: #fff;
  cursor: pointer;
}

.site-header nav .mobile-pilot {
  display: none;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.button,
.header-cta,
.text-link,
.copy-email,
.site-header nav a,
.brand,
.footer-links a {
  min-height: 44px;
}

.button,
.header-cta,
.text-link,
.site-header nav a,
.brand,
.footer-links a {
  display: inline-flex;
  align-items: center;
}

.footer-links a {
  padding-block: 0.4rem;
}

.copy-email {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: transparent;
  color: #fffaf4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-email:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.copy-status {
  min-width: 8rem;
  color: #d8d1dd !important;
  font-size: 0.78rem;
}

.status-note {
  border-left: 3px solid #ffbb83;
  padding: 0.8rem 1rem;
  background: rgba(255, 187, 131, 0.08);
  color: #f1e6dc;
}

.pricing-title {
  font-family: var(--font-editorial, Georgia, serif);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.founder-portrait picture {
  display: block;
  width: 100%;
}

.founder-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.not-found {
  min-height: 64vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.3rem;
}

.not-found h1 {
  max-width: 12ch;
  font-family: var(--font-editorial, Georgia, serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.not-found > p:not(.kicker) {
  max-width: 56ch;
  color: #c4bdc9;
  line-height: 1.7;
}

.section-label,
.kicker,
.card-note,
.use-case-meta,
.plan-tag,
.site-footer,
.site-footer a,
.site-footer p,
.placeholder-copy,
.quote-placeholder,
.price-note {
  color: var(--readable-muted);
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.65rem;
    overflow: visible;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header .header-cta {
    display: none;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: auto;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    border: 1px solid transparent;
    border-radius: 0 0 18px 18px;
    background: rgba(12, 11, 16, 0.98);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    opacity: 0;
    transition: max-height 180ms ease, opacity 180ms ease, padding 180ms ease;
  }

  .site-header.menu-open nav {
    max-height: 25rem;
    padding: 0.55rem;
    visibility: visible;
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
  }

  .site-header nav a {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: #e8e2eb;
    font-size: 0.88rem;
  }

  .site-header nav .mobile-pilot {
    display: inline-flex;
    margin-top: 0.35rem;
    background: #fff9f1;
    color: #17131a;
    font-weight: 750;
  }

  .site-header nav .mobile-pilot:hover {
    background: #fff;
    color: #17131a;
  }

  .site-header nav a:hover,
  .site-header nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .cta-actions {
    align-items: flex-start;
  }

  .copy-status {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Website improvement wave 1–2: sticky CTA, lead forms, trust block, footer capture */
.sticky-cta { z-index: 60; background: #141219f2; border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 16px; display: none; position: fixed; bottom: 14px; left: 50%; transform: translate(-50%, 12px); opacity: 0; transition: opacity .18s, transform .18s; }
.sticky-cta.show { display: inline-flex; opacity: 1; transform: translate(-50%, 0); }
.sticky-cta .button { min-height: 44px; width: auto; padding-inline: 22px; }

.lead-form { margin-top: 4px; }
.lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.lead-field { display: block; gap: 7px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.lead-field input { width: 100%; min-height: 48px; background: #ffffff08; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 400; }
.lead-field input::placeholder { color: #5e5964; }
.lead-field input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-actions { margin-top: 4px; }
.lead-actions .button { width: 100%; justify-content: center; }
.lead-actions button:disabled { opacity: .55; cursor: default; }
.lead-status { margin: 12px 0 0; font-size: 13.5px; color: var(--cyan); min-height: 1.2em; }
.lead-status a { text-decoration: underline; }
.lead-fallback { margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); }
.consent-line { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); }
.consent-line a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 620px) { .consent-line { font-size: 12px; } }

.demo-call { margin: 16px 0 0; font-size: 15px; color: var(--ink-muted, #aaa4b3); }
.demo-call a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.demo-call strong { color: inherit; }
.lead-fallback a { text-decoration: underline; }

.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust-item { background: #141219ad; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.trust-item h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.01em; }
.trust-item p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.trust-item a { text-decoration: underline; }

.footer-lead-wrap { max-width: 420px; margin: 26px 0 0; }
.footer-lead-wrap .lead-grid { grid-template-columns: 1fr; margin-bottom: 12px; }
.footer-lead-wrap .lead-actions .button { width: auto; min-height: 44px; padding-inline: 20px; }
.footer-lead-wrap .lead-fallback { margin-top: 10px; font-size: 12.5px; }

@media (max-width: 720px) {
  .lead-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .services-link { margin: 0 0 20px; }
}

/* Confirmation dialog — shown after a successful lead submission */
.dv-confirm { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.dv-confirm.open { visibility: visible; pointer-events: auto; }
.dv-confirm-backdrop { position: fixed; inset: 0; background: #05040a73; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.dv-confirm.open .dv-confirm-backdrop { opacity: 1; }
.dv-confirm-panel { position: fixed; top: 50%; left: 50%; width: min(calc(100% - 40px), 440px); text-align: center; background: linear-gradient(145deg, #ffffff0e, transparent 42%), #15121b; border: 1px solid var(--line-strong); border-radius: 24px; padding: 42px 32px 32px; transform: translate(-50%, -45%) scale(.96); opacity: 0; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 40px 110px #000000a8, inset 0 1px #ffffff14; }
.dv-confirm.open .dv-confirm-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dv-confirm-mark { background: #8edea612; border: 1px solid #8edea633; border-radius: 50%; width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; box-shadow: inset 0 0 22px #8edea61c; }
.dv-confirm-mark::before { content: "✓"; color: #8edea6; font-size: 30px; font-weight: 400; }
.dv-confirm-panel h2 { font-family: Iowan Old Style, Baskerville, Times New Roman, serif; font-weight: 400; letter-spacing: -.03em; font-size: 33px; line-height: 1.05; margin: 0 0 12px; }
.dv-confirm-panel #dv-body { color: #b7b2bc; margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.dv-confirm-next { color: #77727e; margin: 0 0 24px; font-size: 12px; line-height: 1.6; }
.dv-confirm-next[hidden] { display: none; }
.dv-confirm-panel .button { width: 100%; justify-content: center; }
@media (max-width: 520px) {
  .dv-confirm-panel { padding: 34px 22px 24px; }
  .dv-confirm-panel h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-confirm-backdrop, .dv-confirm-panel { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Motion pass — web-revamp-next (2026-09)
   Source of truth: DESIGN.md. All motion is pure CSS keyframes: zero new JS,
   zero new requests, zero trackers. The conversion surfaces (CTA, form, copy)
   are visible with JS disabled and with animation-timeline unsupported — this
   block degrades to the static page, never the other way round.
   Reduced motion: the global kill in this file collapses durations; every
   keyframe below ends in its visible, readable state, so "instant" = "done".
   ═══════════════════════════════════════════════════════════════════════════ */

/* — scroll progress hairline (scroll-driven; static 1px rule otherwise) — */
.scroll-progress {
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  border-radius: 0 0 3px 0;
  height: 3px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: dh-progress linear both;
    animation-timeline: scroll(root);
    opacity: 1;
  }
}
@keyframes dh-progress {
  from { scale: 0 1; }
  to { scale: 1 1; }
}

/* — section reveals: enter the viewport → 14px settle (view timeline only) — */
@keyframes dh-reveal {
  from { opacity: 0; transform: translateY(14px); }
}
@supports (animation-timeline: view()) {
  .rv { animation: dh-reveal 1ms cubic-bezier(.22, 1, .36, 1) both; animation-range: entry 18% entry 82%; }
  .service-grid .rv:nth-child(2), .trust-grid .rv:nth-child(2) { animation-range: entry 26% entry 90%; }
  .service-grid .rv:nth-child(3), .trust-grid .rv:nth-child(3) { animation-range: entry 34% entry 98%; }
  .steps .rv:nth-child(2) { animation-range: entry 24% entry 88%; }
  .steps .rv:nth-child(3) { animation-range: entry 30% entry 94%; }
  .steps .rv:nth-child(4) { animation-range: entry 36% entry 100%; }
  .use-case-grid .rv:nth-child(3) { animation-range: entry 26% entry 90%; }
  .use-case-grid .rv:nth-child(4) { animation-range: entry 32% entry 96%; }
}

/* — hero call card: the "live call" signature (self-typing booking flow) —
   One-shot, resolves around 7s, then holds. Plays ONCE (iteration 1, fill both):
     0.0–1.0   line 1 types in
     1.6–3.3   line 2 types in
     4.0–5.6   line 3 types in
     6.2–7.0   "✓ Appointment held" settles in
     7.0–16    hold — the finished booking stays readable (end == visible state)
   The card keeps breathing via its existing ambient loops (orb, waveform,
   live-dot), so it reads "alive" without the transcript re-acting.
   Reduced motion: duration→0 + fill both → the whole sequence lands on its
   final readable state instantly (all lines + result), never hidden. */
.t-line {
  background: #ffffff08;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 9px 0;
  padding: 10px 12px;
}
.t-who {
  color: #6e6974;
  display: block;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 3px;
  text-transform: uppercase;
  font-size: 10px;
}
.t-line .t-text {
  color: #cec9d2;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}
.t-line.l1 { border-left: 2px solid var(--violet); }
.t-line.l2 { border-left: 2px solid var(--cyan); }
.t-line.l3 { border-left: 2px solid var(--violet); }
.l1 .t-text { animation: dh-type-1 16s linear both; }
.l2 .t-text { animation: dh-type-2 16s linear both; }
.l3 .t-text { animation: dh-type-3 16s linear both; }
.transcript .transcript-result { animation: dh-result 16s linear both; }
.transcript .transcript-result .result-check { animation: dh-check 16s linear both; }

.transcript-note {
  color: #635f68;
  font-size: 10.5px;
  margin: 12px 0 0;
  max-width: 42ch;
}

/* 16s clock, plays once (iteration 1, fill both):
   0.0–1.0   line 1 types in
   1.6–3.3   line 2 types in
   4.0–5.6   line 3 types in
   6.2–7.0   "✓ Appointment held" settles in
   7.0–16    hold — the finished booking stays readable (100% == end == visible) */
@keyframes dh-type-1 {
  0% { opacity: 0; translate: -6px 0; }
  4.125% { opacity: 1; translate: 0 0; }
  96.875%, 100% { opacity: 1; }
}
@keyframes dh-type-2 {
  0%, 9.375% { opacity: 0; translate: -6px 0; }
  14.25% { opacity: 1; translate: 0 0; }
  96.875%, 100% { opacity: 1; }
}
@keyframes dh-type-3 {
  0%, 25% { opacity: 0; translate: -6px 0; }
  34.375% { opacity: 1; translate: 0 0; }
  96.875%, 100% { opacity: 1; }
}
@keyframes dh-result {
  0%, 38.75% { opacity: 0; border-top-color: #0000; }
  43.75% { opacity: 1; border-top-color: var(--line); }
  96.875%, 100% { opacity: 1; }
}
@keyframes dh-check {
  0%, 38.75% { transform: scale(0); opacity: 0; }
  43.75% { transform: scale(1); opacity: 1; }
  96.875%, 100% { transform: scale(1); opacity: 1; }
}

/* — micro-interactions (hover/only; static page unaffected) — */
.button-primary { transition: transform 180ms cubic-bezier(.33, 1, .68, 1), box-shadow 180ms ease, background 180ms ease; }
.button-primary > span { transition: translate 180ms cubic-bezier(.33, 1, .68, 1); }
a.button-primary:hover { transform: translateY(-1.5px); }
a.button-primary:hover > span { translate: 2.5px -1px; }
.service-card, .use-case-card { transition: transform 220ms cubic-bezier(.33, 1, .68, 1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease; }
.service-amber:hover { box-shadow: 0 18px 44px #00000042, inset 0 1px 0 #ffba7214; }
.service-violet:hover { box-shadow: 0 18px 44px #00000042, inset 0 1px 0 #9880ff14; }
.service-cyan:hover { box-shadow: 0 18px 44px #00000042, inset 0 1px 0 #75d9df14; }
.trust-item { transition: transform 220ms cubic-bezier(.33, 1, .68, 1), border-color 220ms ease, background 220ms ease; }
.trust-item:hover { border-color: var(--line-strong); background: #18151ee6; transform: translateY(-3px); }
.call-card { transition: transform 320ms cubic-bezier(.33, 1, .68, 1), box-shadow 320ms ease; }
.hero:hover .call-card { transform: translateY(-4px); }
.lead-field input { transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.lead-field input:hover { border-color: #ffffff2e; }
.lead-field input:focus { box-shadow: 0 0 0 4px #75d9df1c; background: #ffffff0d; }
.demo-call a { transition: color 180ms ease; }
.demo-call a:hover { color: var(--ink); }
details[open] summary { color: #e6e2e8; }
details[open] summary strong { color: #e9e6ec; }

@media (prefers-reduced-motion: reduce) {
  .l1 .t-text, .l2 .t-text, .l3 .t-text,
  .transcript .transcript-result, .transcript .transcript-result .result-check {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }
  /* global kill stops these ambient loops; restate the calm final state */
  .call-card .waveform span, .live-dot:after, .voice-orb { animation: none; }
  .live-dot { box-shadow: 0 0 0 5px #8edea62e; }
}
