/* autafy.ca — direction A (Signal).
   Rules: text never waits for JS; motion is transform/opacity only; everything respects
   prefers-reduced-motion and the lab's own Motion toggle (html[data-motion="off"]). */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f4f6f5;
  --ink: #0f1412;
  --muted: #5a6460;
  --line: rgba(15, 20, 18, 0.09);
  --accent: #a2e6cf;
  --accent-ink: #087a5e;
  --accent-soft: rgba(162, 230, 207, 0.28);
  --btn-bg: #0f1412;
  --btn-fg: #ffffff;
  --btn2-bg: transparent;
  --btn2-fg: #0f1412;
  --btn2-line: rgba(15, 20, 18, 0.18);
  --header-bg: rgba(251, 251, 249, 0.78);
  --shadow: 0 1px 2px rgba(15, 20, 18, 0.04), 0 8px 24px rgba(15, 20, 18, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 20, 18, 0.05), 0 16px 40px rgba(15, 20, 18, 0.10);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%,
    0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
  --t-fast: 160ms var(--ease-out);
  --t-med: 320ms var(--ease-out);

  color-scheme: light;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t-med), color var(--t-med);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1.35; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; z-index: 100; text-decoration: none; transition: top var(--t-fast); }
.skip:focus { top: 12px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.35em;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  transform: translateY(var(--lift)) scale(var(--press, 1));
  transition: transform 420ms var(--ease-spring), box-shadow var(--t-med), background-color var(--t-med), color var(--t-med), border-color var(--t-med);
  -webkit-tap-highlight-color: transparent;
}
.btn .arrow { transition: transform 420ms var(--ease-spring); }
.btn:hover { --lift: -2px; box-shadow: var(--shadow-hover); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { --press: 0.96; --lift: 0px; transition-duration: 90ms; }
.btn-secondary { background: var(--btn2-bg); color: var(--btn2-fg); border-color: var(--btn2-line); }
.btn-secondary:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 1.05em; font-size: 0.9rem; }

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid rgba(15, 20, 18, 0.10);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--t-med);
}
.header.is-scrolled { box-shadow: 0 2px 32px rgba(0, 0, 0, 0.10); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { position: relative; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #211d18; display: grid; place-items: center; }
.brand-mark-a { font-size: 20px; width: 0.5455em; height: 1em; fill: #f1ece3; margin-top: 1px; }   /* the logo's italic a, drawn (no font download) */
.brand-mark-dot { position: absolute; top: 3px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #c9612e; }
.brand small { font-weight: 500; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 8px 9px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--accent-soft); }
.nav .btn { margin-left: 6px; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); border-radius: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform var(--t-med), opacity var(--t-fast); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--t-med), opacity var(--t-med), visibility 0s linear 320ms;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform var(--t-med), opacity var(--t-med); }
  .nav a:not(.btn) { padding: 12px 8px; font-size: 1.05rem; color: var(--ink); }
  .nav .btn { margin: 10px 0 0; }
  .nav .btn + .btn { margin-top: 8px; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(20px, 3vw, 40px)) 0 clamp(48px, 6vw, 80px); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; min-height: min(560px, 64vh); }
.hero-copy { display: grid; gap: 20px; justify-items: start; padding-top: clamp(8px, 2vw, 24px); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 42%, var(--surface));
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  box-shadow: 0 6px 18px -10px rgba(8, 122, 94, 0.55);
  transition: transform 420ms var(--ease-spring), box-shadow var(--t-med), background var(--t-med);
}
a.pill:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 60%, var(--surface)); box-shadow: 0 10px 24px -12px rgba(8, 122, 94, 0.6); }
a.pill:active { transform: scale(0.97); }
.pill i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); flex: none; }
.pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-ink); animation: pill-pulse 2.2s var(--ease-out) infinite; }
@keyframes pill-pulse { from { transform: scale(1); opacity: 0.55; } to { transform: scale(3.2); opacity: 0; } }
.pill .arrow { color: var(--accent-ink); transition: transform 420ms var(--ease-spring); }
a.pill:hover .arrow { transform: translateX(3px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 0.875rem; color: var(--muted); }
.hero-note b { color: var(--ink); font-weight: 600; }

.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-fallback { position: absolute; inset: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero-canvas.is-live { opacity: 1; }
.hero-fallback { transition: opacity 900ms var(--ease-out); }
.hero-stage:has(.hero-canvas.is-live) .hero-fallback { opacity: 0; }

/* Signal: full-bleed wave behind, text keeps a clean field on the left */
.hero-fallback { background:
  radial-gradient(60% 55% at 78% 62%, rgba(162, 230, 207, 0.55), transparent 70%),
  radial-gradient(40% 40% at 95% 20%, rgba(11, 143, 110, 0.10), transparent 70%); }
.hero-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 14%, color-mix(in srgb, var(--bg) 55%, transparent) 40%, transparent 62%); }


@media (max-width: 860px) {
  /* Phone: the wave gets its own band right under the headline, at full strength — where the eye lands.
     The hero still fills the first screen, so a font swap can never shift the trust strip into view. */
  .hero { display: flex; flex-direction: column; min-height: 100svh; padding-bottom: 28px; }
  .hero-inner, .hero-copy { display: contents; }
  .hero-copy > * { margin-inline: var(--gutter); }
  .pill { order: 1; align-self: flex-start; margin-bottom: 16px; white-space: nowrap; font-size: clamp(0.68rem, 3.3vw, 0.82rem); gap: 8px; padding: 7px 12px 7px 10px; }
  .hero h1 { order: 2; max-width: 14ch; }
  .hero-stage { order: 3; position: relative; inset: auto; flex: none; height: 150px; margin: 2px 0 6px; }
  .hero .lede { order: 4; font-size: 1rem; line-height: 1.55; }
  .hero-ctas { order: 5; margin-top: 20px; }
  .hero-note { order: 6; margin-top: 14px; }
  /* Until the wave starts: a still plane of dots in perspective — same idea, zero script. */
  .hero-fallback {
    inset: -20% -30%;
    background: radial-gradient(circle, rgba(8, 122, 94, 0.55) 1.3px, transparent 1.9px) 0 0 / 11px 11px;
    transform: perspective(260px) rotateX(58deg);
    -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 55%, #000 25%, transparent 72%);
            mask-image: radial-gradient(ellipse 55% 60% at 50% 55%, #000 25%, transparent 72%);
  }
  .hero-stage::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
}

/* ── Trust strip ────────────────────────────────────────── */
.trust { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.trust b { display: block; font-size: 0.95rem; }
.trust span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .trust ul { grid-template-columns: 1fr 1fr; } }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.section-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-alt { background: var(--surface-2); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: grid; gap: 10px; align-content: start;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 520ms var(--ease-spring), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 6px; transition: transform 520ms var(--ease-spring); }
.card:hover .icon { transform: rotate(-6deg) scale(1.06); }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.cards-sm { list-style: none; margin: 16px 0 0; padding: 0; }
.card-sm { grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 20px; border-radius: var(--radius); }
.card-sm .icon { width: 38px; height: 38px; border-radius: 10px; margin: 0; }
.card-sm .icon svg { width: 19px; height: 19px; }
.card-sm h3 { font-size: 1rem; margin-bottom: 4px; }
.card-sm p { font-size: 0.9rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs { display: grid; gap: 28px; }
.tablist {
  position: relative; display: inline-flex; gap: 4px; padding: 5px; justify-self: start;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tab-indicator {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: var(--btn-bg); transform: translateX(var(--x, 5px)); width: var(--w, 0);
  transition: transform 520ms var(--ease-spring), width 520ms var(--ease-spring);
}
.tab {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; font: 600 0.95rem/1 var(--font-body); color: var(--muted);
  transition: color var(--t-med);
}
.tab[aria-selected="true"] { color: var(--btn-fg); }
.tab:not([aria-selected="true"]):hover { color: var(--ink); }
@media (max-width: 600px) {
  .tablist { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; justify-self: stretch; overflow: visible; gap: 2px; }
  .tab { padding: 11px 4px; font-size: clamp(0.8rem, 3.7vw, 0.92rem); text-align: center; }
}
.panels { position: relative; overflow-x: clip; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.panel[hidden] { display: none; }
.panel.is-entering { animation: panel-slide 520ms var(--ease-out) both; }
@keyframes panel-slide { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 36px)); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel .step { font: 500 0.85rem/1 var(--font-body); color: var(--accent-ink); letter-spacing: 0.06em; text-transform: uppercase; }
.panel h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 12px; }
.panel p { color: var(--muted); }
.panel-visual { border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; padding: 28px 24px; }

/* ── App screens: the real AIDA web app, rebuilt in markup (its cream, ink and ember) ── */
.app {
  --a-bg: #f1ece4; --a-card: #fffdf9; --a-ink: #211d18; --a-muted: #6e665c; --a-line: rgba(33, 29, 24, 0.09);
  --a-ember: #c25a2a; --a-ember-soft: #f6e4da; --a-ok: #3c7a4e; --a-ok-soft: #e6f0e3;
  width: 100%; max-width: 380px; min-height: 468px; margin: 0; padding: 16px 16px 18px;
  display: flex; flex-direction: column;
  border-radius: 22px; background: var(--a-bg); color: var(--a-ink); border: 1px solid var(--a-line);
  box-shadow: 0 1px 2px rgba(33, 29, 24, 0.05), 0 18px 40px -18px rgba(33, 29, 24, 0.28);
  font-size: 0.9rem; line-height: 1.45; text-align: left;
}
.app svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.app-bar b { font: 500 1.15rem/1 var(--font-display); letter-spacing: -0.01em; }
.app-live { width: 7px; height: 7px; border-radius: 50%; background: var(--a-ok); }
.app-btns { margin-left: auto; display: flex; gap: 6px; }
.app-btn, .app-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.app-btn { background: var(--a-card); box-shadow: 0 1px 3px rgba(33, 29, 24, 0.08); }
.app-btn svg { width: 15px; height: 15px; }
.app-av { background: linear-gradient(145deg, #1d7f78, #0f5a55); color: #fff; font-weight: 700; font-size: 0.8rem; }
.app-title { font: 500 1.55rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.app-sub { color: var(--a-muted); font-size: 0.84rem; margin-top: 4px; }
.app-label { color: var(--a-muted); font-weight: 600; font-size: 0.8rem; margin: 16px 0 8px 2px; }
.app-card { list-style: none; margin: 0; padding: 4px 14px; border-radius: 18px; background: var(--a-card); box-shadow: 0 1px 3px rgba(33, 29, 24, 0.06); }
.app-auto .app-card { margin-top: 14px; }
.arow { display: flex; align-items: center; gap: 11px; padding: 13px 0; }
.arow + .arow, .job-ctrl + .arow { border-top: 1px solid var(--a-line); }
.arow-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--a-line); display: grid; place-items: center; background: #fff; }
.arow-ic svg, .arow-ic img { width: 18px; height: 18px; }
.arow-text { min-width: 0; flex: 1; display: grid; }
.arow-text b { font: 500 0.98rem/1.2 var(--font-display); }
.arow-text small { color: var(--a-muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { flex: none; width: 16px; height: 16px; color: var(--a-muted); }
.status { flex: none; display: grid; }
.status > * { grid-area: 1 / 1; justify-self: end; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.st-ok { background: var(--a-ok-soft); color: var(--a-ok); }
.st-ok::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: currentColor; vertical-align: middle; }
.st-wait { opacity: 0; color: var(--a-ember); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a-ember) 40%, transparent); }

/* chat */
.convo { flex: 1; display: grid; align-content: start; gap: 14px; }
.msg-me { justify-self: end; max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--a-card); box-shadow: 0 1px 3px rgba(33, 29, 24, 0.07); }
.msg-slot { display: grid; }
.msg-slot > * { grid-area: 1 / 1; align-self: start; display: flex; gap: 10px; }
.msg-slot .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.msg-slot .brand-mark-a { font-size: 16px; }
.msg-slot .brand-mark-dot { top: 2px; right: 4px; width: 4px; height: 4px; }
.msg-wait { opacity: 0; align-items: center; color: var(--a-muted); font-size: 0.82rem; }
.bars { display: flex; align-items: center; gap: 3px; height: 14px; }
.bars i { width: 3px; height: 12px; border-radius: 2px; background: var(--a-ember); opacity: 0.55; transform-origin: center; }
.msg-ai ul { margin: 8px 0; padding-left: 18px; }
.msg-ai li::marker { color: var(--a-muted); }
.composer { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--a-card); color: var(--a-muted); font-size: 0.8rem; box-shadow: 0 1px 3px rgba(33, 29, 24, 0.06); }
.composer span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--a-ember); color: #fff; display: grid; place-items: center; }
.send svg { width: 14px; height: 14px; transform: rotate(-90deg); }

/* automations */
.job-new { display: flex; align-items: center; gap: 12px; padding: 12px 0 6px; color: var(--a-ember); }
.job-new span { width: 38px; height: 38px; border-radius: 50%; background: var(--a-ember-soft); display: grid; place-items: center; font-size: 1.2rem; }
.job-new b { font: 500 1rem/1 var(--font-display); }
.job-ctrl { display: flex; align-items: center; gap: 12px; padding: 0 0 14px 49px; color: var(--a-muted); font-size: 0.8rem; }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #d9d2c7; overflow: hidden; }
.toggle::before { content: ""; position: absolute; inset: 0; background: var(--a-ember); }
.toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff8ef; transform: translateX(18px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.run { padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--a-ember) 30%, transparent); color: var(--a-ember); font-weight: 600; }

/* The screens play their moment when the tab opens (and once when the section scrolls in).
   Without motion — or before JS — every screen simply shows its finished state. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .panels.hold * { animation-play-state: paused !important; }
  html:not([data-motion="off"]) .is-playing .arow,
  html:not([data-motion="off"]) .is-playing .msg-me { animation: app-in 520ms var(--ease-out) both; }
  html:not([data-motion="off"]) .is-playing .arow + .arow { animation-delay: 120ms; }
  html:not([data-motion="off"]) .is-playing .st-wait { animation: app-out 240ms var(--ease-out) 800ms both; }
  html:not([data-motion="off"]) .is-playing .st-ok { animation: app-pop 560ms var(--ease-spring) 800ms both; }
  html:not([data-motion="off"]) .is-playing .arow + .arow .st-wait { animation-delay: 1350ms; }
  html:not([data-motion="off"]) .is-playing .arow + .arow .st-ok { animation-delay: 1350ms; }
  html:not([data-motion="off"]) .is-playing .app-card + .app-label + .app-card .arow { animation-delay: 240ms; }
  html:not([data-motion="off"]) .is-playing .app-card + .app-label + .app-card :is(.st-wait, .st-ok) { animation-delay: 1900ms; }
  /* chat: question → thinking → answer */
  html:not([data-motion="off"]) .is-playing .msg-wait { animation: app-think 1900ms var(--ease-out) 450ms both; }
  html:not([data-motion="off"]) .is-playing .bars i { animation: app-bar 900ms ease-in-out infinite; }
  html:not([data-motion="off"]) .is-playing .bars i:nth-child(2) { animation-delay: -750ms; }
  html:not([data-motion="off"]) .is-playing .bars i:nth-child(3) { animation-delay: -600ms; }
  html:not([data-motion="off"]) .is-playing .bars i:nth-child(4) { animation-delay: -450ms; }
  html:not([data-motion="off"]) .is-playing .bars i:nth-child(5) { animation-delay: -300ms; }
  html:not([data-motion="off"]) .is-playing .msg-ai .brand-mark,
  html:not([data-motion="off"]) .is-playing .msg-ai div > * { animation: app-in 520ms var(--ease-out) 2300ms both; }
  html:not([data-motion="off"]) .is-playing .msg-ai div > :nth-child(2) { animation-delay: 2450ms; }
  html:not([data-motion="off"]) .is-playing .msg-ai div > :nth-child(3) { animation-delay: 2600ms; }
  /* automations: a new job lands, switches on, goes live */
  html:not([data-motion="off"]) .is-playing .app-auto .arow { animation: none; }
  html:not([data-motion="off"]) .is-playing .app-auto .job-fresh,
  html:not([data-motion="off"]) .is-playing .app-auto .job-ctrl { animation: app-drop 560ms var(--ease-out) 250ms both; }
  html:not([data-motion="off"]) .is-playing .app-auto .job-ctrl { animation-delay: 380ms; }
  html:not([data-motion="off"]) .is-playing .toggle::before { animation: app-fade 300ms var(--ease-out) 1150ms both; }
  html:not([data-motion="off"]) .is-playing .toggle i { animation: app-knob 460ms var(--ease-spring) 1150ms both; }
  html:not([data-motion="off"]) .is-playing .job-fresh .st-wait { animation-delay: 1350ms; }
  html:not([data-motion="off"]) .is-playing .job-fresh .st-ok { animation-delay: 1350ms; }
  html:not([data-motion="off"]) .is-playing .app-auto .arow:not(.job-fresh) .st-ok { animation: none; }
}
@keyframes app-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes app-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes app-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes app-pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes app-think { 0% { opacity: 0; transform: translateY(6px); } 14% { opacity: 1; transform: none; } 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes app-bar { 0%, 100% { transform: scaleY(0.35); opacity: 0.45; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes app-knob { from { transform: none; } to { transform: translateX(18px); } }
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; padding: 24px; gap: 24px; } .panel-visual { padding: 16px 12px; } }
@media (max-width: 400px) { .panel { padding: 18px 14px; } .panel-visual { padding: 10px 6px; } .app { padding: 14px 12px 16px; min-height: 482px; } .app .chev { display: none; } }

/* ── FAQ (real HTML, text always in the DOM) ────────────── */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-med), box-shadow var(--t-med); }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 420ms var(--ease-spring); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 380ms var(--ease-out), content-visibility 380ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ── CTA band + footer ──────────────────────────────────── */
.cta-band { border-radius: 28px; padding: clamp(36px, 6vw, 64px); background: var(--btn-bg); color: var(--btn-fg); display: grid; gap: 18px; justify-items: start; position: relative; overflow: hidden; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { opacity: 0.8; max-width: 52ch; }
.cta-band .btn { background: var(--btn-fg); color: var(--btn-bg); }
.cta-band .btn-secondary { background: transparent; color: var(--btn-fg); border-color: color-mix(in srgb, var(--btn-fg) 35%, transparent); }

/* ── Meet AIDA ──────────────────────────────────────────── */
.meet { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.meet-copy { display: grid; gap: 12px; }
.video { margin: 0; display: grid; gap: 10px; }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #111; box-shadow: var(--shadow-hover); }
.video figcaption { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } }

/* ── Showcase rows ──────────────────────────────────────── */
.rows { display: grid; gap: clamp(40px, 7vw, 88px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.row:nth-child(even) .row-copy { order: 2; }
.row-copy { display: grid; gap: 12px; }
.row-copy h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.row-copy p { color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent-ink); }
.row-visual { border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); padding: clamp(20px, 4vw, 40px); display: grid; place-items: center; min-height: 280px; }
.briefing { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.briefing-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.badge { font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.briefing-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 0.92rem; color: var(--muted); }
.briefing-row + .briefing-row { border-top: 1px solid var(--line); }
.briefing-row b { color: var(--ink); font-weight: 600; }
.channels { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; display: grid; gap: 10px; }
.channels li { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.channels em { font-style: normal; font-size: 0.75rem; padding: 4px 9px; border-radius: 999px; background: var(--line); color: var(--muted); }
.channels em.on { background: var(--accent-soft); color: var(--accent-ink); }
.channels .sync { justify-content: center; background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 380px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; transition: transform 420ms var(--ease-spring), border-color var(--t-fast), box-shadow var(--t-med); }
.chips img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.chips li:hover { border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); box-shadow: var(--shadow); }
.chips li:hover { transform: translateY(-2px); }
.chips .more-chip { padding-left: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-copy { order: 0; }
  .row-visual { min-height: 0; }
}

/* ── Privacy band: the one dark moment (direction B's palette + its 3D form) ── */
.band-dark {
  --bg: #0a0d0c; --surface: #121816; --surface-2: #161d1b; --ink: #eef3f1; --muted: #a3aeaa;
  --line: rgba(238, 243, 241, 0.10); --accent-ink: #a2e6cf; --accent-soft: rgba(162, 230, 207, 0.12);
  position: relative; isolation: isolate; overflow: clip;
  background: var(--bg); color: var(--ink);
  padding: clamp(56px, 8vw, 104px) 0;
}
.band-stage { position: absolute; inset: 0 0 0 50%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.band-fallback { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(42% 46% at 50% 55%, rgba(162, 230, 207, 0.16), transparent 70%);
  transition: opacity 900ms var(--ease-out); }
.rack { width: min(62%, 300px); height: auto; }
.rack rect { stroke: rgba(162, 230, 207, 0.45); stroke-width: 1.2; fill: #121a18; }
.rack rect.bay { stroke: none; fill: #2a3a35; }
.rack .led { fill: #a2e6cf; }
.rack .led.amber { fill: #d49520; }
.band-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease-out); }
.band-canvas.is-live { opacity: 1; }
.band-stage:has(.band-canvas.is-live) .band-fallback { opacity: 0; }
.band-inner { position: relative; z-index: 1; }
.band-copy { max-width: 560px; display: grid; gap: 14px; }
.band-points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 16px; }
.band-points li { display: flex; gap: 14px; align-items: flex-start; }
.band-points svg { flex: none; width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.band-points b { display: block; }
.band-points span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .band-dark { display: flex; flex-direction: column; padding-top: 0; }
  .band-stage { position: relative; inset: auto; order: -1; height: 240px; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
}

/* ── Pricing ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform 520ms var(--ease-spring), box-shadow var(--t-med); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.plan-featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.plan-tag { align-self: flex-start; font-size: 0.78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #d49520; color: #211d18; }
.plan h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; }
.plan-desc { color: var(--muted); font-size: 0.95rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.price b { font-family: var(--font-display); font-weight: 500; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.price s { color: var(--muted); font-size: 1.1rem; }
.price span { color: var(--muted); font-size: 0.88rem; }
.price .from { font-size: 0.95rem; }
.plan .ticks { flex: 1; }
.plan-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.plan-ctas .btn { flex: 1 1 auto; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { box-shadow: none; text-decoration-color: var(--accent-ink); }
.plans-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.plans-note a { color: var(--ink); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ── Full footer ────────────────────────────────────────── */
.footer { padding: clamp(40px, 6vw, 64px) 0 0; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1.3fr 1.3fr; gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand .brand { color: var(--ink); }
.footer h3 { margin: 0 0 12px; font-family: var(--font-body); font-weight: 700; line-height: 1.3; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: var(--ink); }
/* The last line of every page: a full-width dark bar */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; width: auto; max-width: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 16px max(var(--gutter), calc((100% - var(--wrap)) / 2)); background: #0f1412; color: rgba(255, 255, 255, 0.66); font-size: 0.8rem; line-height: 1.4; }
.footer .footer-bottom a { color: rgba(255, 255, 255, 0.66); }
.footer .footer-bottom a:hover { color: #fff; }
.footer-bottom > span:last-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-news { grid-column: 1 / -1; } }

/* ── Parity additions ───────────────────────────────────── */
.hero .lede-sm { font-size: 0.95rem; }
@media (max-width: 860px) { .hero .lede-sm { order: 4; margin-top: 10px; font-size: 0.9rem; } }
.briefing-done span { color: var(--accent-ink); font-weight: 600; }
.chips .more-chip span { font-weight: 600; margin-right: 2px; }
.stats { border-block: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0; padding: clamp(28px, 4vw, 44px) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats li { display: grid; gap: 6px; align-content: start; padding-left: 20px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats b small { font-size: 0.6em; color: var(--accent-ink); }
.stats b.stat-text { white-space: nowrap; font-size: clamp(1.35rem, 2.5vw, 2.1rem); line-height: 1.35; }
.stats span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .stats ul { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { border-left: 0; padding-left: 0; } .stats b.stat-text { font-size: clamp(1rem, 5vw, 1.35rem); line-height: 1.6; } }
.how-cta { display: flex; justify-content: center; margin-top: 40px; }
#how { padding-bottom: 40px; }
.plans-lead { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); font-size: 0.95rem; }
.plan-founding { font-size: 0.82rem; font-weight: 600; color: var(--accent-ink); }
.price-alt { font-size: 0.88rem; color: var(--muted); margin-top: -6px; }
.pay-badges { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badges li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.cta-badge { font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(162, 230, 207, 0.14); color: #a2e6cf; }
.cta-band h2 em { font-style: italic; color: #a2e6cf; }
.footer-strong { color: var(--accent-ink) !important; font-weight: 600; }
.footer-news p { margin-bottom: 10px; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 160px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
.newsletter-msg { margin-top: 8px; font-size: 0.8rem; color: var(--accent-ink); }
.newsletter-msg.is-error { color: #c43c3c; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* spam trap: never seen by people */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: var(--btn-bg); color: #fff; font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-hover); animation: app-in 420ms var(--ease-out) both; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.toast.is-out { opacity: 0; transform: translate(-50%, 10px); }
.footer-pipeda { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.72rem; }


/* ── Inner-page hero: centred, a slow drifting dot field behind ── */
.page-hero { position: relative; overflow: clip; isolation: isolate; padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); text-align: center; }
.page-hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; max-width: 800px; }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.page-hero .lede { margin-inline: auto; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.page-hero .lede-sm { font-size: 0.95rem; max-width: 66ch; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 70% at 50% 0%, rgba(162, 230, 207, 0.45), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.page-hero-bg::before { content: ""; position: absolute; inset: -40px; opacity: 0.55;
  background-image: radial-gradient(circle, rgba(8, 122, 94, 0.28) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 20%, #000, transparent 75%); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .page-hero-bg::before { animation: dot-drift 26s linear infinite; }
}
@keyframes dot-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(22px, 22px, 0); } }
.pill-static { cursor: default; white-space: normal; text-align: left; }
.section-tight { padding-top: clamp(8px, 2vw, 24px); }
@media (max-width: 860px) { .page-hero .pill { order: 0; align-self: auto; margin-bottom: 0; white-space: normal; text-align: center; font-size: clamp(0.74rem, 3.4vw, 0.85rem); } }

/* Plan cards on /pricing: a soft light follows the pointer */
.plans-spot .plan { overflow: hidden; isolation: isolate; }
.plans-spot .plan::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(162, 230, 207, 0.32), transparent 65%);
  transition: opacity var(--t-med); }
.plans-spot .plan:hover::before { opacity: 1; }
.plans-spot .plan-tag { position: relative; }

/* ── Services ──────────────────────────────────────────── */
.svc-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.svc-jump a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.88rem; font-weight: 500; text-decoration: none; transition: border-color var(--t-fast), transform 420ms var(--ease-spring); }
.svc-jump a:hover { border-color: var(--ink); transform: translateY(-1px); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.svc-reverse .svc-copy { order: 2; }
.svc-copy { display: grid; gap: 18px; justify-items: start; }
.svc-copy h2 { max-width: 20ch; }
.svc-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 16px; }
.svc-feats li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.svc-feats .icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.svc-feats .icon svg { width: 20px; height: 20px; }
.svc-feats h3, .svc-steps h3 { font-size: 1rem; margin-bottom: 2px; }
.svc-feats p, .svc-steps p { color: var(--muted); font-size: 0.95rem; }
.svc-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.svc-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 16px; counter-increment: step; }
.svc-steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.88rem; }
.svc-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 2px; width: 1px; background: var(--line); }
.ideal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ideal b { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.ideal span { padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.83rem; }
.section-alt .ideal span { background: var(--bg); }

.svc-visual { display: grid; justify-items: center; gap: 12px; }
.svc-cap { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.svc-chips { max-width: 420px; gap: 8px; }
.svc-chips li { padding: 7px 12px 7px 9px; font-size: 0.84rem; }
.svc-chips svg { width: 18px; height: 18px; color: var(--accent-ink); }
.svc-chat { min-height: 0; }
.svc-convo { display: grid; gap: 12px; align-content: start; }
.svc-convo .ai { display: flex; gap: 10px; align-items: flex-start; }
.svc-convo .ai .brand-mark { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.svc-convo .ai .brand-mark-a { font-size: 16px; }
.svc-convo .ai .brand-mark-dot { top: 2px; right: 4px; width: 4px; height: 4px; }
.svc-convo .ai p { padding-top: 3px; }
.svc-convo .ok { color: var(--a-ok); font-weight: 600; }
.cal-card { flex: 1; padding: 12px 14px; border-radius: 14px; background: var(--a-card); box-shadow: 0 1px 3px rgba(33, 29, 24, 0.07); }
.cal-card b { display: block; font: 500 0.95rem/1.3 var(--font-display); margin-bottom: 6px; }
.cal-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.84rem; }
.cal-card li { display: grid; grid-template-columns: 66px 1fr; color: var(--a-muted); }
.cal-card time { color: var(--a-ember); font-weight: 600; font-variant-numeric: tabular-nums; }

.svc-card { width: 100%; max-width: 420px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; }
.tl li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 16px; }
.tl li:last-child { padding-bottom: 0; }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.tl-dot svg { width: 15px; height: 15px; }
.tl b { display: block; font-size: 0.95rem; }
.tl small { display: block; color: var(--muted); font-size: 0.82rem; }
.tl-done .tl-dot { background: var(--accent-ink); color: #fff; }
.tl-now .tl-dot { background: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.tl-now b { color: var(--accent-ink); }
.tl-next .tl-dot { background: var(--surface-2); color: var(--muted); }
.tl-next b { color: var(--muted); font-weight: 500; }
.tl-bar { display: block; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.tl-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent-ink); transform-origin: left; transform: scaleX(0.62); }

.wf { display: grid; justify-items: center; }
.wf-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wf-node { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; }
.wf-node svg { flex: none; width: 17px; height: 17px; color: var(--accent-ink); }
.wf-ai { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); }
.wf-no svg { color: var(--muted); }
.wf-row { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.wf-row .wf-node { flex: 1 1 0; justify-content: center; min-width: 0; font-size: 0.82rem; }
.wf-plus { color: var(--muted); }
.wf-link { position: relative; display: block; width: 2px; height: 26px; margin: 6px 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.wf-link i { position: absolute; left: 0; top: 0; width: 2px; height: 10px; border-radius: 2px; background: var(--accent-ink); opacity: 0; }

.compare-scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.93rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 0.85rem; font-weight: 700; background: var(--surface-2); }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--muted); }
.compare .yes { color: var(--accent-ink); font-weight: 700; }
.compare .no { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.compare tbody tr { transition: background var(--t-fast); }
.compare tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.compare th:first-child { position: sticky; left: 0; z-index: 1; }
.compare tbody th:first-child { background: var(--surface); }
.section-flush { padding-top: 0; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-reverse .svc-copy { order: 0; }
}
@media (max-width: 600px) {
  .compare { min-width: 600px; font-size: 0.86rem; }
  .compare th, .compare td { padding: 11px 12px; }
  .compare th:first-child { width: 128px; box-shadow: 1px 0 0 var(--line), 6px 0 12px -8px rgba(15, 20, 18, 0.25); }
}

/* Service visuals play once when they scroll in; without motion they simply show the finished state */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) [data-play].hold * { animation-play-state: paused !important; }
  html:not([data-motion="off"]) [data-play].is-playing .svc-convo > * { animation: app-in 480ms var(--ease-out) both; }
  html:not([data-motion="off"]) [data-play].is-playing .svc-convo > :nth-child(2) { animation-delay: 500ms; }
  html:not([data-motion="off"]) [data-play].is-playing .svc-convo > :nth-child(3) { animation-delay: 1100ms; }
  html:not([data-motion="off"]) [data-play].is-playing .svc-convo > :nth-child(4) { animation-delay: 1900ms; }
  html:not([data-motion="off"]) [data-play].is-playing .svc-convo > :nth-child(5) { animation-delay: 2500ms; }
  html:not([data-motion="off"]) [data-play].is-playing .cal-card li { animation: app-in 420ms var(--ease-out) both; }
  html:not([data-motion="off"]) [data-play].is-playing .cal-card li:nth-child(1) { animation-delay: 1300ms; }
  html:not([data-motion="off"]) [data-play].is-playing .cal-card li:nth-child(2) { animation-delay: 1400ms; }
  html:not([data-motion="off"]) [data-play].is-playing .cal-card li:nth-child(3) { animation-delay: 1500ms; }
  html:not([data-motion="off"]) [data-play].is-playing .tl-done .tl-dot { animation: app-pop 520ms var(--ease-spring) both; }
  html:not([data-motion="off"]) [data-play].is-playing .tl li:nth-child(1) .tl-dot { animation-delay: 150ms; }
  html:not([data-motion="off"]) [data-play].is-playing .tl li:nth-child(2) .tl-dot { animation-delay: 450ms; }
  html:not([data-motion="off"]) [data-play].is-playing .tl li:nth-child(3) .tl-dot { animation-delay: 750ms; }
  html:not([data-motion="off"]) [data-play].is-playing .tl-now .tl-dot { animation: tl-pulse 2s var(--ease-out) 1s infinite; }
  html:not([data-motion="off"]) [data-play].is-playing .tl-bar i { animation: tl-grow 1600ms var(--ease-out) 900ms both; }
  html:not([data-motion="off"]) [data-play].is-playing .wf > * { animation: app-in 440ms var(--ease-out) both; }
  html:not([data-motion="off"]) [data-play].is-playing .wf > :nth-child(n+3) { animation-delay: 120ms; }
  html:not([data-motion="off"]) [data-play].is-playing .wf > :nth-child(n+5) { animation-delay: 240ms; }
  html:not([data-motion="off"]) [data-play].is-playing .wf > :nth-child(n+8) { animation-delay: 360ms; }
  html:not([data-motion="off"]) [data-play].is-playing .wf > :nth-child(n+10) { animation-delay: 480ms; }
  html:not([data-motion="off"]) [data-play].is-playing .wf-link i { animation: wf-flow 2.4s linear var(--d, 0s) infinite; }
}
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-ink) 40%, transparent), 0 0 0 0 rgba(8, 122, 94, 0.35); } 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-ink) 40%, transparent), 0 0 0 10px rgba(8, 122, 94, 0); } }
@keyframes tl-grow { from { transform: scaleX(0); } to { transform: scaleX(0.62); } }
@keyframes wf-flow { 0% { transform: translateY(-12px); opacity: 0; } 15% { opacity: 1; } 45% { transform: translateY(28px); opacity: 1; } 46%, 100% { transform: translateY(28px); opacity: 0; } }

/* ── About ─────────────────────────────────────────────── */
.about-hero { position: relative; overflow: clip; isolation: isolate; padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.about-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-hero-copy { display: grid; gap: 20px; justify-items: start; }
.about-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.about-hero h1 em { font-style: italic; color: var(--accent-ink); }
.canada-card { padding: 22px 24px 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-hover); }
.leaf-art { display: grid; place-items: center; height: 190px; font-size: 128px; line-height: 1;
  background: radial-gradient(42% 55% at 50% 52%, rgba(201, 97, 46, 0.12), transparent 70%); }
.canada-cap { text-align: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.canada-facts { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }

.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.story-head { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 32px); }
.story-body { display: grid; gap: 20px; font-size: 1.08rem; color: var(--muted); }
.story-body strong { color: var(--ink); font-weight: 600; }
.pull-quote { margin: 8px 0; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--accent-soft); position: relative; }
.pull-quote::before { content: "\201C"; position: absolute; top: -14px; left: 20px; font: 400 4.5rem/1 var(--font-display); color: var(--accent-ink); }
.pull-quote blockquote { margin: 0; }
.pull-quote p { font: italic 400 clamp(1.2rem, 2vw, 1.45rem)/1.4 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.pull-quote figcaption { margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }

.about-cards .card h3 { font-size: 1.1rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); counter-reset: v; }
.values li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); counter-increment: v; }
.values .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); transition: transform 520ms var(--ease-spring); }
.values .icon svg { width: 22px; height: 22px; }
.values li:hover .icon { transform: rotate(-6deg) scale(1.06); }
.values h3 { font-size: 1.05rem; margin-bottom: 4px; }
.values h3::before { content: "0" counter(v) "  "; white-space: pre; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.values p { color: var(--muted); }

.canada-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.canada-band .band-copy { max-width: none; }
.canada-band h2 { max-width: 18ch; }
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.about-stats li { display: grid; gap: 4px; padding: 24px; background: var(--surface); }
.about-stats b { font: 500 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.about-stats span { font-size: 0.9rem; color: var(--muted); }
.canada-note { margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.canada-note strong { color: var(--ink); }
.about-cta-inner { display: grid; justify-items: center; gap: 16px; text-align: center; max-width: 640px; }
.about-cta .hero-ctas { justify-content: center; }
@media (max-width: 900px) {
  .about-hero-grid, .story-grid, .canada-grid { grid-template-columns: 1fr; }
  .story-head { position: static; }
  .values { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .about-hero .pill { order: 0; align-self: auto; margin-bottom: 0; white-space: normal; font-size: clamp(0.74rem, 3.4vw, 0.85rem); } }
@media (max-width: 860px) { .band-dark.canada-band { display: block; padding-top: clamp(56px, 8vw, 104px); } }
@media (max-width: 480px) { .leaf-art { height: 160px; font-size: 104px; } .canada-card { padding: 18px 18px 20px; } .about-stats li { padding: 18px; } }

/* ── Contact ───────────────────────────────────────────── */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.quick-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 520ms var(--ease-spring), box-shadow var(--t-med), border-color var(--t-med); }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.quick-card .icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.quick-card .icon svg { width: 22px; height: 22px; }
.quick-card b { display: block; font-size: 1.05rem; }
.quick-card small { color: var(--muted); font-size: 0.9rem; }
.quick-card > span:nth-child(2) { flex: 1; }
.quick-card .arrow { color: var(--muted); transition: transform 420ms var(--ease-spring), color var(--t-fast); }
.quick-card:hover .arrow { transform: translateX(4px); color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.contact-info { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg); display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.band-dark.contact-info { display: grid; padding: clamp(24px, 3vw, 32px); }
.info-title { font-size: 1.6rem; }
.info-sub { color: var(--muted); }
.info-methods { margin: 6px 0 4px; }
.info-methods a { color: var(--accent-ink); text-decoration: none; }
.info-methods a:hover { text-decoration: underline; }
.info-label { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hours { margin: 0; display: grid; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.response { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); font-size: 0.88rem; }
.response i { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.response i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-ink); animation: pill-pulse 2.2s var(--ease-out) infinite; }

.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title { font-size: 1.6rem; }
.form-sub { color: var(--muted); margin: 6px 0 20px; }
#contactForm { display: grid; gap: 14px; }
.intents { border: 0; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intents legend { padding: 0; margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; }
.intent { position: relative; cursor: pointer; }
.intent input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.intent-box { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--bg); font-size: 0.88rem; font-weight: 600; text-align: center; transition: border-color var(--t-fast), background var(--t-fast), transform 420ms var(--ease-spring); }
.intent-box svg { width: 22px; height: 22px; color: var(--muted); transition: color var(--t-fast); }
.intent:hover .intent-box { transform: translateY(-2px); }
.intent input:checked + .intent-box { border-color: var(--accent-ink); background: var(--accent-soft); }
.intent input:checked + .intent-box svg { color: var(--accent-ink); }
.intent input:focus-visible + .intent-box { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--btn2-line); background: var(--surface); font: inherit; font-size: 0.97rem; color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.form-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.form-note svg { width: 16px; height: 16px; color: var(--accent-ink); }
.form-error { color: #c43c3c; font-size: 0.88rem; }
.form-success { display: grid; justify-items: center; gap: 12px; padding: 32px 8px; text-align: center; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); animation: app-pop 600ms var(--ease-spring) both; }
.success-icon svg { width: 28px; height: 28px; }
.form-success h3 { font: 500 1.6rem/1.1 var(--font-display); }
.form-success p { color: var(--muted); max-width: 46ch; }
.form-success a { color: var(--accent-ink); }
.cta-center { justify-items: center; text-align: center; }
.cta-lead { font-size: 1.15rem; opacity: 0.85 !important; max-width: 44ch; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; order: 2; }
}
@media (max-width: 600px) {
  .quick, .field-row { grid-template-columns: 1fr; }
  .intents { gap: 8px; }
  .intent-box { padding: 12px 4px; font-size: 0.8rem; }
}

/* ── Install guide (docs layout) ───────────────────────── */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc-nav { display: grid; gap: 2px; }
.toc-group { margin: 18px 0 6px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc-group:first-child { margin-top: 0; }
.toc-link { position: relative; padding: 7px 12px; border-radius: 10px; font-size: 0.92rem; color: var(--muted); text-decoration: none; transition: color var(--t-fast), background var(--t-fast); }
.toc-link:hover { color: var(--ink); background: var(--surface-2); }
.toc-link.is-active { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.toc-link.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent-ink); }

.guide { max-width: 780px; min-width: 0; }
.guide-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 28px; }
.guide h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; }
.guide .page-subtitle { margin-top: 14px; font-size: 1.15rem; color: var(--muted); }
.guide h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 64px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.guide h3 { font-size: 1.1rem; margin: 32px 0 10px; }
.guide p { margin: 0 0 14px; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.guide a { color: var(--accent-ink); text-underline-offset: 3px; }
.guide a.btn { color: var(--btn-fg); }
.guide :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font: 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }
.guide pre { position: relative; margin: 0 0 16px; padding: 16px 52px 16px 18px; border-radius: 14px; background: #0f1412; color: #e6efeb; overflow-x: auto; font: 0.88rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.guide pre code { white-space: pre; }
.copy-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #cfe0da; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.copy-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.is-done { color: #a2e6cf; border-color: rgba(162, 230, 207, 0.5); }
.pre-label { margin: 8px 0 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.fine-print { font-size: 0.85rem; color: var(--muted) !important; }

.req-grid { display: grid; grid-template-columns: minmax(150px, 0.4fr) 1fr; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.req-label, .req-val { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.req-label { font-weight: 600; background: var(--surface-2); }
.req-val { color: var(--muted); }
.req-grid > :nth-last-child(-n+2) { border-bottom: 0; }

.callout { display: flex; gap: 14px; margin: 8px 0 22px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.callout-icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.callout-icon svg { width: 17px; height: 17px; }
.callout-title { font-weight: 700; margin-bottom: 2px; }
.callout-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.callout-tip { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--accent-ink) 22%, transparent); }
.callout-tip .callout-icon { background: var(--accent-soft); color: var(--accent-ink); }
.callout-warn { background: #fdf6e8; border-color: rgba(212, 149, 32, 0.35); }
.callout-warn .callout-icon { background: rgba(212, 149, 32, 0.16); color: #9a6a10; }
.callout-info { background: #eef4fb; border-color: rgba(48, 120, 200, 0.25); }
.callout-info .callout-icon { background: rgba(48, 120, 200, 0.12); color: #2b6cb0; }

.vps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 24px; }
.guide .vps-card { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 520ms var(--ease-spring), box-shadow var(--t-med), border-color var(--t-med); }
.guide .vps-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.vps-name { font: 500 1.15rem/1.2 var(--font-display); }
.vps-note { font-size: 0.9rem; color: var(--muted); }
.vps-badge { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; }

.step-list { display: grid; margin: 10px 0 24px; counter-reset: none; }
.step-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-bottom: 20px; }
.step-item:last-child { padding-bottom: 0; }
.step-item:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.88rem; }
.step-title { font-weight: 700; margin: 5px 0 2px; }
.step-desc { color: var(--muted); font-size: 0.97rem; }

.trouble { margin-top: 8px; max-width: none; }
.trouble .answer code { white-space: normal; }
.support-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 20px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.guide #support + p { margin-bottom: 24px; }
.support-text strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.support-text p { margin: 0; color: var(--muted); }
.guide .support-btn { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: transform 420ms var(--ease-spring); }
.guide .support-btn:hover { transform: translateY(-2px); }
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; padding-top: 0; }
  .toc { position: sticky; top: var(--header-h); z-index: 5; max-height: none; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc-nav { display: flex; gap: 6px; width: max-content; }
  .toc-group { display: none; }
  .toc-link { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; background: var(--surface); }
  .toc-link.is-active::before { display: none; }
  .guide-top { margin-top: 20px; }
  .guide h2 { scroll-margin-top: calc(var(--header-h) + 70px); }
}
@media (max-width: 600px) {
  .vps-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .req-label { border-bottom: 0; padding-bottom: 2px; background: transparent; font-size: 0.82rem; color: var(--muted); }
  .req-val { color: var(--ink); padding-top: 0; }
  .req-grid > .req-label:nth-last-child(2) { border-bottom: 0; }
  .support-box { flex-direction: column; align-items: flex-start; }
}

/* ── Documentation (rendered from aida-docs) ───────────── */
.docs-ref { grid-template-columns: 230px minmax(0, 1fr); }
.docs-ref.has-otp { grid-template-columns: 230px minmax(0, 1fr) 190px; }
.dnav-wrap { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.dnav > summary { display: none; }
.dnav-list { display: grid; gap: 1px; }
.dnav-home { margin-bottom: 8px; padding: 7px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; }
.dnav-link { position: relative; padding: 6px 12px; border-radius: 9px; font-size: 0.9rem; color: var(--muted); text-decoration: none; transition: color var(--t-fast), background var(--t-fast); }
.dnav-link:hover { color: var(--ink); background: var(--surface-2); }
.dnav-link.is-current { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.dnav-link.is-current::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--accent-ink); }
.otp { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 6px; }
.otp-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-left: 12px; }
.otp nav { display: grid; align-content: start; gap: 1px; border-left: 1px solid var(--line); }
.otp .toc-link { border-radius: 0 8px 8px 0; font-size: 0.85rem; padding: 5px 12px; }
.doc .eyebrow a { color: inherit; text-decoration: none; }
.doc h1 { margin-top: 10px; }
.post-meta { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.doc .post-meta { padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.post-meta a { color: var(--accent-ink); }
.post-body { font-size: 1.04rem; }
.post-body h2:first-child { margin-top: 28px; padding-top: 0; border-top: 0; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 1.3em; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.post-body li { margin-bottom: 6px; }
.post-body li::marker { color: var(--accent-ink); }
.post-note { display: block; margin: 8px 0 20px; padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); font-size: 0.97rem; }
.table-wrap { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.post-body th { text-align: left; padding: 11px 14px; background: var(--surface-2); font-weight: 700; border-bottom: 1px solid var(--line); }
.post-body td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.post-body tr:last-child td { border-bottom: 0; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.guide .docs-pager a { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform 520ms var(--ease-spring), box-shadow var(--t-med), border-color var(--t-med); }
.guide .docs-pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.docs-pager span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.docs-pager .next { grid-column: 2; text-align: right; }
.post-cta { margin-top: 40px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--btn-bg); color: rgba(255, 255, 255, 0.78); }
.post-cta strong { display: block; margin-bottom: 4px; font: 500 1.25rem/1.25 var(--font-display); color: #fff; }
.post-cta a, .guide .post-cta a { color: #a2e6cf; font-weight: 600; }
.docs-hero .page-hero-inner { gap: 12px; }
.docs-index { display: grid; gap: 24px; }
.docs-intro p { max-width: 70ch; color: var(--muted); font-size: 1.05rem; margin: 0 auto; text-align: center; }
.docs-intro a { color: var(--accent-ink); }
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.index-item { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); transition: transform 520ms var(--ease-spring), box-shadow var(--t-med), border-color var(--t-med); }
.index-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.index-item h2 { font: 500 1.2rem/1.25 var(--font-display); }
.index-item h2 a { color: var(--ink); text-decoration: none; }
.index-item h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.index-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 1200px) { .docs-ref.has-otp { grid-template-columns: 230px minmax(0, 1fr); } .otp { display: none; } }
@media (max-width: 960px) {
  .docs-ref, .docs-ref.has-otp { grid-template-columns: 1fr; }
  .dnav-wrap { position: sticky; top: var(--header-h); z-index: 5; max-height: none; overflow: visible; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .dnav > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 0.92rem; }
  .dnav > summary::-webkit-details-marker { display: none; }
  .dnav > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 300ms var(--ease-out); }
  .dnav[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
  .dnav-list { max-height: 60vh; overflow: auto; margin-top: 8px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  .doc { margin-top: 20px; }
  .index-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .index-grid, .docs-pager { grid-template-columns: 1fr; } .docs-pager .next { grid-column: auto; } }

/* ── Blog ──────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.blog-grid .index-item { padding: 22px; }
.blog-grid .index-item:first-child { grid-column: span 2; padding: 30px; background: var(--btn-bg); border-color: transparent; }
.blog-grid .index-item:first-child h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.blog-grid .index-item:first-child h2 a { color: #fff; }
.blog-grid .index-item:first-child p { color: rgba(255, 255, 255, 0.72); font-size: 1rem; }
.blog-grid .index-item:first-child .when { color: #a2e6cf; }
.when { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-ink); }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; align-items: start; gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.post-layout.has-otp { grid-template-columns: minmax(0, 760px) 200px; }
.post-back { display: inline-flex; gap: 6px; text-decoration: none; transition: transform 420ms var(--ease-spring); }
.post-back:hover { transform: translateX(-3px); }
.guide .post-more { margin: 28px 0 0; }
.guide .post-more .btn { color: var(--btn2-fg); }
.post .post-title { margin-top: 10px; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -0.03em; }
.post .post-meta { padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.post .post-body > p:first-child { font-size: 1.15rem; color: var(--ink); }
.post .post-body strong { color: var(--ink); }
.read-progress { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 40; height: 3px; background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-grow linear both; animation-timeline: scroll(root); }
  @keyframes read-grow { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
@media (max-width: 1100px) { .post-layout.has-otp { grid-template-columns: minmax(0, 760px); } .post-layout .otp { display: none; } }
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .blog-grid .index-item:first-child { grid-column: auto; padding: 24px; } }

/* ── Legal pages (privacy, terms) ──────────────────────── */
.crumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px !important; }
.crumb a { color: var(--accent-ink); }
.legal .post-meta { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal .toc-link { font-size: 0.88rem; }
.legal-section h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 44px; }
.legal-section ul { margin: 0 0 16px; padding-left: 1.3em; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.legal-section li { margin-bottom: 6px; }
.legal-section li::marker { color: var(--accent-ink); }
.legal .support-box { margin-top: 44px; }
.legal .support-btn { width: 44px; padding: 0; justify-content: center; }

/* ── Motion: scroll-driven entrance (no JS, never hides content) ── */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .rise {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes rise { from { transform: translateY(22px); } to { transform: none; } }   /* move only: text is never faded */
}


/* Reduced motion — the user's setting or the lab toggle */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }

/* In-page links land below the sticky header, and glide there when motion is allowed. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="off"]) { scroll-behavior: smooth; } }

/* ── Page to page: a quick cross-fade with the header held still, instead of a blank flash ── */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── Touch screens: keep scrolling glassy-smooth ──
   Content never moves while the finger scrolls (no scroll-linked rise), sticky bars are solid instead of
   live-blurred, and the decorative dot drift rests. Desktop keeps every effect. */
@media (hover: none), (pointer: coarse) {
  html:not([data-motion="off"]) .rise { animation: none; }
  html:not([data-motion="off"]) .page-hero-bg::before { animation: none; }
  .header { background: rgba(255, 255, 255, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .toc, .dnav-wrap { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
