/* Design Theory shared site styles — Liquid Glass (derived from /website-packages/) */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #050505;
  --page-alt: #090909;
  --surface: #0d0d0d;
  --surface-alt: #111111;
  --surface-soft: #151515;
  --ink: #f6f6f6;
  --muted: #9a9a9a;
  --line: #262626;
  --line-strong: #2e2e2e;
  --accent: #ff5a4f;
  --accent-strong: #ff7a70;
  --accent-dim: rgba(255, 90, 79, 0.14);
  --accent-ring: rgba(255, 90, 79, 0.5);
  --accent-ink: #111111;
  --success: #35c46a;
  --success-dim: rgba(53, 196, 106, 0.12);
  --danger: #ff6b61;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --field: #0a0a0a;
  --wallpaper: url("img/wallpaper-dark.jpg");

  --lg-tint: rgba(20, 20, 20, 0.28);
  --lg-tint-clear: rgba(255, 255, 255, 0.04);
  --lg-ink: #f6f6f6;
  --lg-rim: rgba(255, 255, 255, 0.42);
  --lg-rim-soft: rgba(255, 255, 255, 0.04);
  --lg-inset: inset 0 1px 0.5px rgba(255, 255, 255, 0.26), inset 0 -1px 0.5px rgba(255, 255, 255, 0.08);
  --lg-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
  --lg-fallback-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  --lg-solid: rgba(17, 17, 17, 0.96);

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f8fafc;
  --page-alt: #eef2ff;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-soft: #e2e8f0;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-dim: rgba(37, 99, 235, 0.09);
  --accent-ring: rgba(37, 99, 235, 0.45);
  --accent-ink: #ffffff;
  --success: #16a34a;
  --success-dim: rgba(22, 163, 74, 0.08);
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --field: #ffffff;
  --wallpaper: url("img/wallpaper-light.jpg");

  --lg-tint: rgba(255, 255, 255, 0.2);
  --lg-tint-clear: rgba(255, 255, 255, 0.1);
  --lg-ink: #0f172a;
  --lg-rim: rgba(255, 255, 255, 0.95);
  --lg-rim-soft: rgba(255, 255, 255, 0.3);
  --lg-inset: inset 0 1px 0.5px rgba(255, 255, 255, 0.8), inset 0 -1px 0.5px rgba(255, 255, 255, 0.25);
  --lg-shadow: 0 8px 28px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 42, 0.06);
  --lg-fallback-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.24));
  --lg-solid: rgba(255, 255, 255, 0.95);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  letter-spacing: -0.012em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--page) 0%, var(--page) 40%, var(--page-alt) 100%);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Liquid Glass material ---------- */

.lg {
  position: relative;
  isolation: isolate;
  color: var(--lg-ink);
  background: var(--lg-tint);
  box-shadow: var(--lg-inset), var(--lg-shadow);
  --lx: 30%;
  --ly: 0%;
}
.lg--clear { background: var(--lg-tint-clear); }
.lg::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(155deg, var(--lg-rim), var(--lg-rim-soft) 26%, transparent 50%, var(--lg-rim-soft) 74%, var(--lg-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; z-index: 0; opacity: 0.85;
}
.lg::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 90% at var(--lx) var(--ly), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: plus-lighter;
  pointer-events: none; z-index: 0;
}
:root[data-theme="light"] .lg::after { background: radial-gradient(120% 90% at var(--lx) var(--ly), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 46%); }
.lg > * { position: relative; z-index: 1; }

html.lg-fallback .lg {
  background: var(--lg-fallback-fill);
  -webkit-backdrop-filter: blur(5px) saturate(160%) brightness(1.04);
  backdrop-filter: blur(5px) saturate(160%) brightness(1.04);
  box-shadow: var(--lg-inset), inset 0 10px 18px -12px rgba(255, 255, 255, 0.4), inset 0 -12px 20px -14px rgba(0, 0, 0, 0.18), var(--lg-shadow);
}
html.lg-solid .lg { background: var(--lg-solid); }

.lg > .lg-bg {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background-repeat: no-repeat; pointer-events: none;
}
html.lg-fallback .lg.lg-cloned {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--lg-clone-tint, var(--lg-tint-clear));
  box-shadow: var(--lg-inset), var(--lg-shadow);
}

/* ---------- Floating nav ---------- */

.topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  z-index: 60;
  width: min(1100px, 100% - 24px);
  height: 60px;
  padding: 0 8px 0 10px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800; font-size: 13px; letter-spacing: -0.03em;
}
.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy strong { font-size: 15px; font-weight: 600; }
.brand-copy span { margin-top: 1px; color: color-mix(in srgb, var(--lg-ink) 62%, transparent); font-size: 12px; }

.topbar-links { display: flex; gap: 4px; align-items: center; flex: none; }
.topbar-links a, .theme-toggle, .menu-toggle {
  text-decoration: none;
  height: 44px;
  padding: 0 16px;
  display: inline-flex; align-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.4s var(--ease-spring);
}
.topbar-links a:hover, .theme-toggle:hover, .menu-toggle:hover { background: color-mix(in srgb, var(--lg-ink) 8%, transparent); }
.topbar-links a[aria-current="page"] { background: color-mix(in srgb, var(--lg-ink) 10%, transparent); }
.topbar-links a:active, .theme-toggle:active, .menu-toggle:active { transform: scale(1.08); }
.topbar-links .topbar-cta { background: var(--accent); color: var(--accent-ink); }
.topbar-links .topbar-cta:hover { background: var(--accent-strong); }
.theme-toggle, .menu-toggle { width: 44px; padding: 0; justify-content: center; }
.theme-toggle svg, .menu-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
.menu-toggle { display: none; }

.nav-sheet {
  position: fixed;
  top: 80px;
  left: 50%;
  translate: -50% 0;
  z-index: 59;
  width: min(420px, 100% - 24px);
  padding: 8px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a {
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
}
.nav-sheet a + a { border-top: 0.5px solid var(--line-strong); border-radius: 0; }
.nav-sheet a:hover { color: var(--accent); }

/* ---------- Hero over wallpaper ---------- */

.hero5 {
  position: relative;
  overflow: hidden;
  padding: 150px 18px 110px;
}
.hero5-wallpaper {
  position: absolute; inset: 0;
  background: var(--wallpaper) 60% 75% / cover no-repeat;
}
.hero5-wallpaper::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 180px;
  background: linear-gradient(transparent, var(--page));
}
.hero-banner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: center;
}
.eyebrow {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow.lg { border: 0; color: var(--lg-ink); }
.hero-banner h1 {
  margin: 0;
  font: 600 clamp(2.4rem, 6vw, 4.4rem)/1.05 var(--font-display);
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.hero-banner p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.hero-chip svg { width: 15px; height: 15px; flex: none; fill: var(--success); }

/* ---------- Layout ---------- */

.page-shell { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.stack { display: grid; gap: 20px; }
.footer-shell { padding-bottom: 48px; }

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 32px;
  min-width: 0;
}
:root[data-theme="light"] .card { border-color: transparent; }

.section-head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 720px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: -0.005em; }
.section-head h2, .card h2 { margin: 0; font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.card p { line-height: 1.6; }
.card a:not(.primary-button):not(.ghost-button) { color: var(--accent); text-decoration: none; font-weight: 600; }
.card a:not(.primary-button):not(.ghost-button):hover { text-decoration: underline; }

/* iOS inset grouped list */
.group {
  margin: 0; padding: 0; list-style: none;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  overflow: hidden;
}
.group > * { padding: 16px 18px; }
.group > * + * { border-top: 0.5px solid var(--line-strong); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}
.stats > div { padding: 26px 22px; text-align: center; }
.stats > div + div { border-left: 0.5px solid var(--line-strong); }
.stat-value { font: 600 clamp(1.8rem, 3.4vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 8px; color: var(--muted); font-size: 14px; }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}
.tile h3 { margin: 12px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile-num {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 28px; padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0; padding: 0; list-style: none;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  overflow: hidden;
}
.check-grid li {
  position: relative;
  padding: 14px 16px 14px 44px;
  font-size: 15px; font-weight: 600;
  border-top: 0.5px solid var(--line-strong);
  margin-top: -0.5px;
}
.check-grid li::before, .tick-list li::before {
  content: "";
  position: absolute; left: 16px; top: 16px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.3 2.3 2.2 4.7-5' fill='none' stroke='%2335c46a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.tick-list { margin: 0; padding: 0; list-style: none; }
.tick-list li { position: relative; padding: 10px 0 10px 30px; font-size: 15px; }
.tick-list li::before { left: 0; top: 13px; }
.tick-list li + li { border-top: 0.5px solid var(--line-strong); }

/* ---------- Pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.price-card {
  display: grid; gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.2s, background-color 0.2s;
}
.price-card.is-featured, .price-card.is-selected { box-shadow: inset 0 0 0 1.5px var(--accent-ring); }
.price-card.is-selected { background: var(--accent-dim); }
.price-card h3 { margin: 0; font: 600 1.3rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.pill {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
}
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-main { font: 600 2.2rem/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-main.is-monthly { font-size: 1.5rem; color: var(--success); }
.price-sub { color: var(--muted); font-size: 14px; }
.price-note { margin: 0; color: var(--muted); font-size: 14px; }
.price-card .primary-button, .price-card .ghost-button { margin-top: 8px; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; align-items: start; }
.hint { padding: 16px 18px; }
.hint strong { display: block; font-size: 15px; }
.hint p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Prose (city pages) ---------- */

.prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.prose h2 { margin: 34px 0 10px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); font-size: 16px; }
.prose ul { margin: 6px 0 16px; padding: 0; list-style: none; border-radius: var(--radius-lg); background: var(--surface-alt); overflow: hidden; }
.prose ul li { padding: 12px 16px; font-size: 15px; font-weight: 600; }
.prose ul li + li { border-top: 0.5px solid var(--line-strong); }
.aside-card { position: sticky; top: 96px; padding: 26px; }
.aside-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.aside-card h3:not(:first-child) { margin-top: 22px; }
.aside-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.aside-card .group a { display: block; }

/* ---------- FAQ ---------- */

.faq { margin: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface-alt); overflow: hidden; }
.faq-item + .faq-item { border-top: 0.5px solid var(--line-strong); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 8px; flex: none;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease-spring);
}
.faq-item[open] summary::after { transform: rotate(180deg); background: var(--accent); }
.faq-item summary:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quote { margin: 0; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-alt); display: grid; gap: 14px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.6; }
.quote figcaption { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- CTA ---------- */

.cta-card { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 44px 28px; background: linear-gradient(180deg, var(--accent-dim), transparent), var(--surface); }
.cta-card p { margin: 0; max-width: 560px; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Buttons ---------- */

.primary-button, .ghost-button, .glass-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 26px;
  font: inherit; font-size: 16px; font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  transition: transform 0.4s var(--ease-spring), background-color 0.2s, filter 0.2s;
}
.primary-button { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); }
.primary-button:hover { background: var(--accent-strong); }
.primary-button:active, .glass-button:active, .ghost-button:active { transform: scale(1.04); }
.primary-button:disabled { opacity: 0.6; cursor: progress; }
.glass-button { color: var(--lg-ink); }
.ghost-button { background: var(--surface-soft); color: var(--ink); }
.ghost-button:hover { background: color-mix(in srgb, var(--ink) 10%, var(--surface-soft)); }
.btn-block { width: 100%; }

/* ---------- Contact + form ---------- */

.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.contact-copy p { color: var(--muted); }
.nap { margin: 18px 0 0; }
.nap li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.nap svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.map-frame { margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-alt); }
.map-frame iframe { display: block; width: 100%; height: 220px; border: 0; }

.lead-form { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-alt); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 8px; min-width: 0; }
label, .label { font-size: 14px; font-weight: 600; }
.required { color: var(--danger); }
.optional { color: var(--muted); font-weight: 400; }

input, select, textarea {
  width: 100%;
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { border-color: var(--line-strong); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  text-overflow: ellipsis;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input:focus, select:focus, textarea:focus { background: var(--field); border-color: var(--accent-ring); box-shadow: 0 0 0 4px var(--accent-dim); }

.choice-group { display: grid; gap: 0; border-radius: var(--radius-md); background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.choice-group label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; font-weight: 400; }
.choice-group label + label { border-top: 0.5px solid var(--line-strong); }
.choice-group label:has(input:checked) { background: var(--accent-dim); }
.choice-group input { width: 20px; height: 20px; padding: 0; margin: 1px 0 0; flex: none; appearance: auto; accent-color: var(--accent); }
.choice-group strong { display: block; font-size: 15px; }
.choice-group small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.form-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }

/* ---------- Link list (areas) ---------- */

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-radius: var(--radius-lg); background: var(--surface-alt); overflow: hidden; }
.link-grid li { border-top: 0.5px solid var(--line-strong); margin-top: -0.5px; }
.link-grid a { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; font-weight: 600; text-decoration: none; }
.link-grid a::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; }
.card .link-grid a { color: var(--ink); }
.card .link-grid a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1100px; margin: 56px auto 0; padding-top: 24px;
  border-top: 0.5px solid var(--line-strong);
  color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Floating mobile control ---------- */

.mobile-dock {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: 55;
  width: min(calc(100% - 28px), 440px);
  height: 64px;
  padding: 0 8px 0 18px;
  border-radius: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mobile-dock a { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.mobile-dock .primary-button { min-height: 48px; padding: 0 20px; font-size: 15px; box-shadow: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .tile-grid, .tile-grid.is-4, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose-layout, .split, .contact-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 820px) {
  .topbar-links .nav-link, .brand-copy span { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar { height: 56px; }
  .topbar-links a.topbar-cta { padding: 0 14px; }
  .nav-sheet { top: 76px; }
  .hero5 { padding: 116px 14px 80px; }
  .page-shell { padding-inline: 14px; }
  .footer-shell { padding-bottom: 110px; }
  .card { padding: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 0.5px solid var(--line-strong); }
  .grid { grid-template-columns: 1fr; }
  .mobile-dock { display: flex; }
}

@media (max-width: 560px) {
  .tile-grid, .tile-grid.is-4, .quotes, .check-grid { grid-template-columns: 1fr; }
  .brand-copy { display: none; }
  .lead-form { padding: 16px; }
  .hero-actions > * { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
