/* ==========================================================================
   MyVeyo — site styles
   GENERATED from src/styles.css.tmpl + config/site.json by scripts/render.py.
   Edit the template or the config, not this file.
   Palette: Indigo brand, amber accent, cool neutrals. Dark values keep AA contrast for body text and the brand colour on bg. field_border keeps 3:1 against both card and the field fill in each theme.
   ========================================================================== */

/* Every colour derives from these tokens (tints via color-mix).
   Values come from config/site.json → brand.colors. */
:root {
  --bg: #f7f7fb;
  --bg-2: #eef0f8;
  --card: #ffffff;
  --ink: #12132a;
  --ink-2: #33354f;
  --muted: #5d5f7a;
  --line: rgba(18, 19, 42, 0.10);
  --brand: #4338ca;
  --brand-2: #3730a3;
  --on-brand: #ffffff;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --on-accent: #1f1400;
  --highlight: #9333ea;
  --green: #047857;
  --danger: #b91c1c;
  --field-border: #898ba8;
  --focus-ring: var(--brand);
  --shadow: 0 10px 30px rgba(18, 19, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(18, 19, 42, 0.16);
  --footer-bg: #0b0c1a;
  --footer-ink: #eef0ff;
  /* The logo mark matches the favicon and OG image in every theme and on every surface. */
  --mark-bg: #4338ca;
  --mark-ink: #ffffff;
  --mark-dot: #f59e0b;
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  color-scheme: light;
}

/* The footer-toned strips stay dark in both themes, so they take the whole dark
   palette rather than borrowing the light theme's accents, lines and focus ring. */
[data-theme="dark"], .notice, .marquee, .site-footer {
  --bg: #0b0c1a;
  --bg-2: #121429;
  --card: #292b44;
  --ink: #eef0ff;
  --ink-2: #c9ccea;
  --muted: #9da0c4;
  --line: rgba(238, 240, 255, 0.12);
  --brand: #8b93fa;
  --brand-2: #a5b4fc;
  --on-brand: #0b0c1a;
  --accent: #fbbf24;
  --accent-2: #fcd34d;
  --on-accent: #1f1400;
  --highlight: #c084fc;
  --green: #34d399;
  --danger: #ff7877;
  --field-border: #747692;
  --focus-ring: var(--brand); /* re-declared so each scope resolves its own --brand */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 2rem * 2); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2rem * 2); }
@media (max-width: 600px) { .container, .container.narrow { width: calc(100% - 2.25rem); } }
section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.tinted { background: var(--bg-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: .35em 0 .4em; }
.section-title em, .hero h1 .accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand), var(--highlight));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.subhead { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8em; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: .6rem 1rem; font-size: .86rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

/* ---------- Notice strip ---------- */
/* Footer tokens stay dark in both themes, so the strip never flips to light. */
.notice { background: var(--footer-bg); color: var(--footer-ink); font-size: .9rem; }
.notice-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.notice p { margin: 0; }
.notice a { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.notice-close { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: inherit; }
.notice-close:hover { background: color-mix(in srgb, var(--footer-ink) 15%, transparent); }
.notice-close svg { width: 16px; height: 16px; }
.notice[hidden] { display: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-mark {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mark-bg), color-mix(in srgb, var(--mark-bg) 70%, #000));
  color: var(--mark-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--mark-bg) 35%, transparent);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark i { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--mark-dot); border: 2px solid var(--bg); }
.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { padding: .55rem .85rem; border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.nav-links-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 3px 0; transition: transform .25s, opacity .25s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-content: center; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: .15rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  }
  .notice + .site-header .nav-links { position: absolute; inset: var(--nav-h) 0 auto 0; }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { display: block; padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-links-cta { display: block; margin-top: .5rem; }
  .nav-links-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden;
  background:
    radial-gradient(900px 560px at 88% -8%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%),
    radial-gradient(700px 480px at -8% 108%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -0.035em; }
.hero-lede { font-size: 1.18rem; color: var(--muted); max-width: 54ch; margin: 1.3rem 0 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 80%, transparent);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
}
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* A cascade of up to three frames, each showing the bottom of the one above it
   (where a drawn card puts the business name). Tops are % of a box whose height
   follows its width, so the cascade keeps its shape at every desktop width. */
.hero-visual { position: relative; }
.stack { position: relative; aspect-ratio: 1 / 1.05; }
.stack-item { position: absolute; width: 76%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.stack-1 { left: 0; top: 0; z-index: 3; transform: rotate(-2deg); }
.stack-2 { right: 0; top: 27%; z-index: 2; transform: rotate(2.5deg); }
.stack-3 { left: 8%; top: 54%; z-index: 1; transform: rotate(-1deg); }
.hero-visual:hover .stack-item { transform: rotate(0); }
.hero-badge {
  position: absolute; right: 0; bottom: 2%; z-index: 5; padding: .75rem 1rem; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; line-height: 1.25; color: var(--muted); max-width: 190px; transform: rotate(-2deg);
}
.hero-badge b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stack { aspect-ratio: auto; }
  .stack-item { position: relative; width: 100%; left: auto; right: auto; top: auto; transform: none; }
  .stack-2, .stack-3 { display: none; }
  .hero-visual:hover .stack-item { transform: none; }
  .hero-badge { position: relative; right: auto; bottom: auto; display: inline-block; max-width: none; margin-top: 1rem; transform: none; }
}

/* ---------- Browser frame (hero + work) ---------- */
.browser { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.browser-bar i:nth-child(1) { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser-url {
  margin-left: .5rem; flex: 1; min-width: 0; padding: .2rem .7rem; border-radius: 999px; background: var(--card);
  font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-2); }
.browser-body img { width: 100%; height: 100%; object-fit: cover; }
.browser-art {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: 1.1rem 1.25rem;
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 55%),
    linear-gradient(145deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000));
}
.browser-art::after {
  content: ""; position: absolute; inset: 14% 8% auto auto; width: 38%; aspect-ratio: 1; border-radius: 22px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transform: rotate(8deg);
}
.art-initials { position: absolute; top: 1rem; left: 1.25rem; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; opacity: .9; }
.art-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.1; position: relative; z-index: 1; }
.art-kind { font-size: .78rem; opacity: .85; position: relative; z-index: 1; }

/* ---------- Marquee ---------- */
.marquee { padding: 0; background: var(--footer-bg); color: var(--footer-ink); overflow: hidden; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track ul { display: flex; gap: 2.4rem; list-style: none; margin: 0; padding: .95rem 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; white-space: nowrap; }
.marquee-track li::before { content: "✦"; color: var(--accent); margin-right: 1.3rem; font-size: .8em; }
/* In dark mode footer_bg is the page colour, so the band is lifted onto the card surface (the marquee
   and the cards match by design) and its ink softened. */
[data-theme="dark"] .marquee { background: var(--card); color: #c9ccea; }
/* Dark mode: ghost buttons and hero chips go solid so they match the cards; light keeps them translucent. */
[data-theme="dark"] :is(.btn-ghost, .chips li) { background: var(--card); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.25rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 1.6rem 1.6rem 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card-icon, .feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), color-mix(in srgb, var(--accent) 22%, transparent));
}
.card h3, .feature h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.card p, .feature p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 1000px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature { padding: 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature-icon { width: 42px; height: 42px; font-size: 1.2rem; border-radius: 12px; margin-bottom: .85rem; }
.feature h3 { font-size: 1.08rem; }
.feature p { font-size: .92rem; }
.extras-note { margin: 2rem 0 0; color: var(--ink-2); font-weight: 600; display: flex; gap: .6rem; align-items: baseline; }
.extras-note span { color: var(--accent); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- AI ---------- */
.ai { background: var(--ink); color: var(--bg); overflow: hidden; }
.ai::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 85% 20%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 65%);
}
.ai .eyebrow { color: var(--accent-2); }
.ai .lede { color: color-mix(in srgb, var(--bg) 74%, transparent); }
.ai .section-title em { background: linear-gradient(100deg, var(--accent-2), color-mix(in srgb, var(--accent) 50%, #fff)); -webkit-background-clip: text; background-clip: text; }
.ai-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px;
  font-size: .8rem; font-weight: 800; background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green);
}
.ai .check-list li::before { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent-2); }
.stat-stack { display: grid; gap: 1rem; }
.stat { padding: 1.3rem 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.ai .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1.05; color: var(--brand); }
.ai .stat b { color: var(--accent-2); }
.stat span { font-size: .92rem; color: var(--muted); font-weight: 600; }
.ai .stat span { color: color-mix(in srgb, var(--bg) 75%, transparent); }
[data-theme="dark"] .ai { background: var(--bg-2); color: var(--ink); }
[data-theme="dark"] .ai .lede, [data-theme="dark"] .ai .stat span { color: var(--muted); }
/* Opaque in dark: over the brand glow a 6% white card drops the muted label to ~3:1. */
[data-theme="dark"] .ai .stat { background: var(--card); }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 1rem;
  background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card { display: flex; flex-direction: column; gap: 1rem; transition: transform .3s ease; }
.work-card .browser { transition: box-shadow .3s ease; }
.work-card:hover { transform: translateY(-6px); }
.work-card:hover .browser-body img { transform: scale(1.04); }
.work-card .browser-body img { transition: transform .6s ease; }
.work-meta { display: flex; flex-direction: column; gap: .35rem; padding: 0 .25rem; }
.work-meta h3 { font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.work-meta p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.work-badge {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink-2);
}
.work-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--brand); white-space: nowrap; margin-top: .25rem; }
.work-link svg { width: 14px; height: 14px; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-aside { color: var(--muted); max-width: 32ch; }
.faq-aside a { color: var(--brand); font-weight: 700; white-space: nowrap; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.3rem 1.1rem; color: var(--muted); }
.faq-answer p { margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(3rem, 6vw, 5rem) 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 4vw, 3rem); border-radius: calc(var(--radius) + 8px);
  color: #ffffff; --focus-ring: #ffffff;
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    linear-gradient(135deg, #4338ca, #3730a3);
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .4rem; }
.cta-inner p { margin: 0; opacity: .88; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.cta-phone { font-weight: 600; font-size: .92rem; opacity: .9; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .cta-actions { align-items: stretch; width: 100%; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: radial-gradient(800px 420px at 90% -20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%), var(--bg);
}
.page-hero .section-title { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero.compact { padding-bottom: 1rem; }

/* ---------- About ---------- */
.about-story { padding-top: clamp(2rem, 4vw, 3rem); }
.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.story-grid p { color: var(--ink-2); font-size: 1.05rem; }
.story-side { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.objective {
  padding: 1.6rem; border-radius: var(--radius); color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--card)), color-mix(in srgb, var(--accent) 12%, var(--card)));
  border: 1px solid var(--line);
}
.objective p { margin: .8rem 0 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stat-row .stat { padding: 1rem; }
.stat-row .stat b { font-size: 1.6rem; }
.stat-row .stat span { font-size: .8rem; display: block; line-height: 1.35; }
.talk-card {
  margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.6rem 1.8rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.talk-card h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.talk-card p { margin: 0; color: var(--muted); }
.talk-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } .story-side { position: static; } }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Quote form ---------- */
.quote-section { padding-top: 1.5rem; }
.quote-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.quote-form {
  padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: calc(var(--radius) + 4px);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.required-note { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.form-group { border: 0; margin: 0 0 1.8rem; padding: 0; min-width: 0; }
.form-group > legend { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; padding: 0; }
.field-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem 1rem; }
.field { min-width: 0; }
.w-full { grid-column: span 6; } .w-half { grid-column: span 3; } .w-third { grid-column: span 2; } .w-sixth { grid-column: span 1; }
@media (max-width: 640px) { .w-half, .w-third { grid-column: span 6; } .w-sixth { grid-column: span 3; } }
.label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink-2); padding: 0; }
.req { color: var(--danger); }
.quote-form input:not([type="checkbox"]), .quote-form select, .quote-form textarea {
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--field-border);
  background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.quote-form textarea { resize: vertical; min-height: 140px; }
.quote-form select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: var(--muted); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); background-color: var(--card);
}
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1.5px solid var(--line); cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background .2s;
}
.choice input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--ink); }
.consent { margin: .25rem 0 1.4rem; }
.consent-choice { border-radius: var(--radius-sm); align-items: flex-start; padding: .9rem 1rem; font-weight: 500; font-size: .9rem; line-height: 1.45; }
.consent-choice input { margin-top: 2px; }
.field-error { margin: .35rem 0 0; font-size: .85rem; font-weight: 600; color: var(--danger); }
.field.has-error input:not([type="checkbox"]), .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .choice, .field.has-error.consent .consent-choice { border-color: var(--danger); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
  background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.form-status[hidden] { display: none; }
.form-actions { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.form-privacy { font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.quote-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.aside-card { padding: 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: .85rem; }
.mini-steps { margin: 0; padding: 0; list-style: none; counter-reset: mini; display: grid; gap: .75rem; }
.mini-steps li { counter-increment: mini; display: flex; gap: .7rem; font-size: .93rem; color: var(--ink-2); }
.mini-steps li::before {
  content: counter(mini); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 800; font-size: .85rem;
}
/* On the dark card the brand tint leaves --brand at ~4:1; the lighter brand step keeps AA. */
[data-theme="dark"] .mini-steps li::before { color: var(--brand-2); }
.aside-phone .btn { width: 100%; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .quote-aside { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .quote-aside { grid-template-columns: 1fr; } }

/* ---------- Sent ---------- */
.sent-hero { text-align: center; padding-bottom: clamp(4rem, 8vw, 6rem); }
.sent-hero .section-title, .sent-hero .lede { margin-inline: auto; }
.sent-icon { width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.sent-icon svg { width: 34px; height: 34px; }
.sent-card { text-align: left; margin: 2rem auto; max-width: 520px; }
.sent-card .check-list { margin: 0; }

/* ---------- Prose (privacy) ---------- */
.prose-section { padding-top: 1rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose-contact { margin-top: 2rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 1.5rem; background: var(--footer-bg); color: color-mix(in srgb, var(--footer-ink) 72%, transparent); font-size: .92rem; }
.site-footer .brand { color: var(--footer-ink); margin-bottom: .8rem; }
.site-footer .brand-mark i { border-color: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand p { max-width: 36ch; margin: 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--footer-ink); }
.footer-phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--footer-ink); font-weight: 700; }
.footer-phone svg { width: 18px; height: 18px; color: #fbbf24; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--footer-ink) 12%, transparent); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); border: 0; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
