/* Landing page system for Elkanah Remodeling Co, Lavish Security Corp and Total Service
   Provider. Company tokens (colours, fonts) are injected per page in a <style> block;
   everything here reads those tokens. Two themes: .theme-light and .theme-dark. */

:root {
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(10, 15, 30, .10), 0 2px 6px rgba(10, 15, 30, .06);
  --shadow-lg: 0 30px 60px rgba(10, 15, 30, .18), 0 8px 20px rgba(10, 15, 30, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head), var(--font-body), serif;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  color: var(--head, var(--text));
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.55rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
/* overflow-x: clip (not hidden) so the pre-reveal translateX(32px) of .from-right never widens
   the document - iOS would otherwise let the page pan sideways - without creating a scroll
   container, which would break the sticky header. */
.section, .strip, .footer { overflow-x: clip; }
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.center .eyebrow::before { display: none; }
.lead { font-size: 1.125rem; color: var(--muted); }

/* ------------------------------------------------------------------ skip / progress */
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ------------------------------------------------------------------ top bar */
.topbar {
  font-size: .85rem; padding: 8px 0;
  background: var(--primary-dark); color: rgba(255, 255, 255, .88);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.topbar li { display: inline-flex; align-items: center; gap: 7px; }
.topbar li svg { width: 15px; height: 15px; color: var(--accent); }
.topbar a { font-weight: 600; color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.topbar a svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 720px) { .topbar ul { display: none; } .topbar .container { justify-content: center; } }

/* ------------------------------------------------------------------ header */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); border-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.theme-dark .header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.header .container { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand img { height: 48px; width: auto; transition: height .3s var(--ease); }
.brand-round img { height: 52px; }
.brand-tall img { height: 54px; }
.brand-wide img { height: 44px; }
.is-scrolled .brand img { height: 40px; }
.brand span { display: none; }
@media (min-width: 1100px) { .brand-round span, .brand-tall span { display: inline; } }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.header-phone:hover { border-color: var(--accent); }
.header-phone svg { width: 16px; height: 16px; color: var(--accent-ink); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 980px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 24px; display: none; flex-direction: column; gap: 6px; }
.mobile-nav.is-open { display: flex; }
.mobile-nav .close { align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav a.link { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-dark { background: var(--primary); color: #fff; }
.theme-dark .btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: color-mix(in srgb, var(--text) 25%, transparent); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent-ink); color: var(--accent-ink); transform: translateY(-2px); }
.btn-ghost { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 12%, transparent); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .pattern { position: absolute; inset: -10% 0 0; opacity: .55; background-repeat: repeat; will-change: transform; }
.theme-light .hero-bg .pattern {
  background-image: linear-gradient(color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 7%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
}
.theme-dark .hero-bg .pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2l24 14v28L28 58 4 44V16z' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 64px;
  mask-image: radial-gradient(ellipse at 25% 30%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 25% 30%, #000 15%, transparent 70%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.theme-light .orb-1 { width: 520px; height: 520px; left: -160px; top: -140px; background: color-mix(in srgb, var(--accent) 38%, transparent); }
.theme-light .orb-2 { width: 620px; height: 620px; right: -200px; top: 10%; background: color-mix(in srgb, var(--primary) 16%, transparent); }
.theme-light .orb-3 { width: 380px; height: 380px; left: 35%; bottom: -200px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.theme-dark .orb-1 { width: 560px; height: 560px; left: -180px; top: -200px; background: color-mix(in srgb, var(--accent) 30%, transparent); opacity: .5; }
.theme-dark .orb-2 { width: 680px; height: 680px; right: -240px; top: -10%; background: color-mix(in srgb, var(--accent) 16%, transparent); opacity: .45; }
.theme-dark .orb-3 { width: 420px; height: 420px; left: 30%; bottom: -240px; background: color-mix(in srgb, #ffffff 10%, transparent); opacity: .35; }
.theme-dark .hero { background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .hero { padding-top: 28px; }
  .hero .lead { font-size: 1rem; margin-bottom: 16px; }
  .chips { margin-bottom: 18px; }
  .chips li:nth-child(n+3) { display: none; }
  .cta-row .btn { padding: 12px 16px; font-size: .95rem; }
  .scroll-cue { margin-top: 22px; }
}
.hero h1 { margin-bottom: 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent-display); }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 60ch; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.theme-dark .chips li { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.chips svg { width: 15px; height: 15px; color: var(--accent-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.scroll-cue svg { width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero-anim > * { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .05s; }
.hero-anim > *:nth-child(2) { animation-delay: .15s; }
.hero-anim > *:nth-child(3) { animation-delay: .25s; }
.hero-anim > *:nth-child(4) { animation-delay: .35s; }
.hero-anim > *:nth-child(5) { animation-delay: .45s; }
.hero-anim > *:nth-child(6) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ form card */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); position: relative;
  opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) .3s forwards;
}
.theme-dark .form-card { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.form-card::before { content: ""; position: absolute; inset: 0 auto auto 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent 80%); border-radius: var(--radius) var(--radius) 0 0; }
.form-card h2, .form-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field label b { color: var(--accent-ink); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: .97rem;
  transition: border-color .2s, box-shadow .2s;
}
.theme-dark .field input, .theme-dark .field select, .theme-dark .field textarea { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input:user-invalid, .field select:user-invalid { border-color: #d64545; }
.more-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; font-weight: 600; font-size: .9rem; color: var(--accent-ink); cursor: pointer; }
.more-toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-column: 1 / -1; }
.more[hidden] { display: none; }
@media (max-width: 480px) { .more { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.consent { font-size: .78rem; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.hp { position: absolute; left: -5000px; top: 0; height: 0; overflow: hidden; }
.form-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.form-msg.is-error { display: block; background: rgba(214, 69, 69, .1); color: #d64545; border: 1px solid rgba(214, 69, 69, .3); }
.form-msg.is-ok { display: block; background: rgba(46, 160, 90, .12); color: #2ea05a; border: 1px solid rgba(46, 160, 90, .3); }
.form-msg a { font-weight: 700; text-decoration: underline; }

/* ------------------------------------------------------------------ strip */
.strip { background: var(--primary); color: #fff; padding: 14px 0; position: relative; overflow: hidden; }
.theme-dark .strip { background: var(--surface); border-block: 1px solid var(--line); }
.strip .marquee { margin: 0; }
.strip .marquee-track { gap: 34px; animation-duration: 40s; }
.strip .marquee-track span { background: transparent; border: 0; color: #fff; font-size: .95rem; padding: 2px 0; gap: 14px; }
.strip .marquee-track span::before { width: 7px; height: 7px; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  transform-style: preserve-3d;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card:hover::after { transform: scaleX(1); }
.icon-badge { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }
.icon-badge svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--accent-ink); font-size: .95rem; }
.card .link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card .link:hover svg { transform: translateX(4px); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-row li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.pill-row svg { width: 15px; height: 15px; color: var(--accent-ink); }
.subsection { margin-top: 44px; }
.subsection h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }

/* ------------------------------------------------------------------ local */
.local-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .local-grid { grid-template-columns: 1fr; } }
.highlight { margin: 22px 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
.theme-dark .map iframe { filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.9); }
.marquee { overflow: hidden; margin-top: 26px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease) .2s; }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; padding-top: 0; text-align: center; }
.step .num { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; background: var(--surface); border: 2px solid var(--line); color: var(--accent-ink); margin: 0 auto 18px; position: relative; z-index: 1; transition: border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.steps.is-in .step .num { border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 26px; padding-left: 8px; }
  .steps::before, .steps::after { left: 41px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: 50% 0; }
  .steps.is-in::after { transform: scaleY(1); }
  .steps::after { transform: scaleY(0); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: start; text-align: left; }
  .step .num { margin: 0; }
}

/* ------------------------------------------------------------------ pledge */
.pledge { background: var(--primary); color: #fff; --head: #fff; --muted: rgba(255, 255, 255, .72); --line: rgba(255, 255, 255, .14); --surface: rgba(255, 255, 255, .06); }
.theme-dark .pledge { background: linear-gradient(180deg, var(--surface), var(--bg)); border-block: 1px solid var(--line); }
.pledge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 16px; }
@media (max-width: 900px) { .pledge-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pledge-list { grid-template-columns: 1fr; } }
.pledge-list li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.pledge-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ------------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-weight: 600; font-size: .9rem; }

/* ------------------------------------------------------------------ reviews */
.review { display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: var(--accent-ink); letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.review blockquote::before { content: "\201C"; font-family: var(--font-head); font-size: 3rem; line-height: 0; color: var(--accent-ink); display: block; margin: 20px 0 0; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.review .who b { display: block; }
.review .who small { color: var(--muted); }
.reviews-cta { margin-top: 34px; text-align: center; }

/* ------------------------------------------------------------------ faq */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .3s; }
.faq-item.is-open { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; background: none; border: 0; font-weight: 700; font-size: 1.02rem; cursor: pointer; font-family: var(--font-body); }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--accent-ink); transition: transform .35s var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ CTA band */
.cta-band { position: relative; overflow: hidden; color: #fff; --head: #fff; --muted: rgba(255, 255, 255, .78); background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, color-mix(in srgb, var(--accent) 35%, var(--primary))); }
.theme-dark .cta-band { background: linear-gradient(120deg, var(--bg), var(--surface) 55%, color-mix(in srgb, var(--accent) 22%, var(--surface))); }
.cta-band .glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -260px; top: -300px; background: color-mix(in srgb, var(--accent) 35%, transparent); filter: blur(80px); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .cta-band-grid { grid-template-columns: 1fr; } }
.pledge, .cta-band { --accent-ink: var(--accent); --accent-display: var(--accent); }
.cta-band .form-card { animation: none; opacity: 1; transform: none; color: var(--text); --head: var(--text); --muted: var(--muted-base); --accent-ink: var(--accent-ink-base); }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .82); }

/* ------------------------------------------------------------------ footer */
.footer { padding: 64px 0 110px; border-top: 1px solid var(--line); background: var(--surface); font-size: .95rem; }
.theme-dark .footer { background: var(--primary-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; font-family: var(--font-body); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--accent-ink); }
.footer .brand img { height: 52px; }
.footer .brand { margin-bottom: 14px; }
.footer address { font-style: normal; display: grid; gap: 8px; }
.footer address a, .footer address span { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer address svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; }
@media (min-width: 901px) { .footer { padding-bottom: 64px; } }

/* ------------------------------------------------------------------ sticky bar + back to top */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(0); transition: transform .3s var(--ease); }
.stickybar.is-hidden { transform: translateY(110%); }
.stickybar .btn { padding: 12px 10px; font-size: .92rem; }
@media (max-width: 900px) { .stickybar { display: grid; } }
.backtop { position: fixed; right: 18px; bottom: 90px; z-index: 54; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.backtop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.backtop svg { width: 20px; height: 20px; }
@media (min-width: 901px) { .backtop { bottom: 28px; } }
.float-cta { position: fixed; right: 22px; bottom: 90px; z-index: 54; display: none; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
@media (min-width: 901px) { .float-cta { display: inline-flex; bottom: 28px; right: 84px; } }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.from-left { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.zoom { transform: scale(.94); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .13s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .21s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .29s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .37s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .45s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: .53s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: .61s; }
.reveal-stagger.is-in > *:nth-child(n+9) { transition-delay: .69s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero-anim > *, .form-card { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .scroll-cue svg { animation: none; }
  .steps::after { transition: none; }
  .orb, .pattern { transform: none !important; }
}

/* ------------------------------------------------------------------ thank-you page */
.ty { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 64px 0; position: relative; overflow: hidden; }
.ty-card { max-width: 680px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-lg); position: relative; }
.ty .tick { width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 22px; animation: pop .6s var(--ease) both; }
.ty .tick svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ty ol { text-align: left; margin: 26px auto; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 520px; }
.ty ol li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.ty ol li span { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.ty .cta-row { justify-content: center; margin-top: 8px; }

/* ------------------------------------------------------------------ small text helpers */
.hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.hint a, .nearby a, .related a { font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hint a:hover, .nearby a:hover, .related a:hover { text-decoration-thickness: 2px; }
.related { margin: 18px 0 0; font-size: .95rem; }
.related svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; color: var(--accent-ink); }
.nearby { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.ty .hint { font-size: .95rem; margin: -6px 0 18px; }
