/* ==========================================================================
   Best SEO Freelancer in India — Design System
   Author: Larz Technology
   Notes: Zero dependencies. Dark-first with light-mode toggle.
          Optimised for Core Web Vitals (no layout shift, GPU-only animations).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --brand: #00e5a0;
  --brand-ink: #04231a;
  --brand-2: #7b8cff;
  --brand-3: #ff7a59;
  --accent: #ffc247;

  /* Dark surface scale */
  --bg: #070b14;
  --bg-soft: #0b1220;
  --surface: #0f1727;
  --surface-2: #141e33;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #e9eefb;
  --text-soft: #b3bed3;
  --muted: #8492ab;

  /* Effects */
  --glow: 0 0 0 1px rgba(0, 229, 160, 0.18), 0 18px 50px -18px rgba(0, 229, 160, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.9);

  /* Geometry */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(0.97rem, 0.94rem + 0.18vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.26rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.72rem, 1.45rem + 1.35vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.7rem + 3.8vw, 4.6rem);

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --line: rgba(11, 22, 42, 0.1);
  --line-strong: rgba(11, 22, 42, 0.18);
  --text: #0b162a;
  --text-soft: #3a4761;
  --muted: #5d6b85;
  --brand: #00a877;
  --brand-2: #4a5cf0;
  --shadow: 0 18px 40px -26px rgba(15, 30, 60, 0.45);
  --shadow-lg: 0 40px 80px -45px rgba(15, 30, 60, 0.4);
  --glow: 0 0 0 1px rgba(0, 168, 119, 0.2), 0 18px 45px -20px rgba(0, 168, 119, 0.35);
  color-scheme: light;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }

::selection { background: var(--brand); color: var(--brand-ink); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--brand); color: var(--brand-ink); padding: 0.7rem 1.4rem;
  border-radius: 0 0 12px 12px; font-weight: 700; z-index: 999; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
  padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong);
  border-radius: 999px; background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}

.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-block: 0.9rem 0.9rem; }
.lead { font-size: var(--step-1); color: var(--text-soft); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: var(--step-0); letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.2s, filter 0.2s;
  box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border-color: var(--line-strong); box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn--wa { --btn-bg: #25d366; --btn-fg: #04240f; box-shadow: 0 12px 30px -14px rgba(37, 211, 102, 0.8); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- 5. Cards ---------- */
.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 13%, transparent), transparent 62%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--text-soft); font-size: var(--step-0); }

.card-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 1.1rem; font-size: 1.5rem;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 26%, transparent), color-mix(in srgb, var(--brand-2) 24%, transparent));
  border: 1px solid var(--line-strong);
}

.tick { display: grid; gap: 0.6rem; margin-top: 1rem; }
.tick li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--step--1); color: var(--text-soft); }
.tick li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 800;
  background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand);
}

/* ---------- 6. Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav { display: flex; align-items: center; gap: 1rem; height: 72px; }

.logo { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.03em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04231a; font-weight: 900; font-size: 1.05rem; flex: none;
}
.logo small { display: block; font-family: var(--font-body); font-size: 0.63rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 0.25rem; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 0.55rem 0.85rem; border-radius: 10px; font-size: 0.94rem; font-weight: 600;
  color: var(--text-soft); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.5rem; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0.2rem; padding: 1rem var(--gutter) 1.6rem; margin: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-lg); max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 1rem; font-size: 1.02rem; }
  .nav-toggle { display: grid; }
  .nav-actions .btn { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: -20% -10% auto; height: 130%; pointer-events: none; z-index: 0; }
.hero-bg span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.hero-bg span:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: 2vw; background: color-mix(in srgb, var(--brand) 55%, transparent); }
.hero-bg span:nth-child(2) { width: 38vw; height: 38vw; right: -6vw; top: -4vw; background: color-mix(in srgb, var(--brand-2) 55%, transparent); animation-delay: -6s; }
.hero-bg span:nth-child(3) { width: 30vw; height: 30vw; left: 45%; top: 34vw; background: color-mix(in srgb, var(--brand-3) 40%, transparent); animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(3vw, -3vw, 0) scale(1.08); }
  66% { transform: translate3d(-2vw, 2vw, 0) scale(0.95); }
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1.15fr 0.85fr; align-items: center; }
@media (max-width: 1000px) { .hero-layout { grid-template-columns: 1fr; } }

.hero h1 { margin-block: 1.1rem 1.2rem; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: var(--step-1); color: var(--text-soft); max-width: 60ch; }
.hero-cta { margin-top: 1.9rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.6rem; font-size: var(--step--1); color: var(--muted); }
.hero-note span { display: flex; align-items: center; gap: 0.4rem; }

/* Dashboard mock */
.dash {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: 1.4rem; box-shadow: var(--shadow-lg); position: relative;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.dash-top strong { font-family: var(--font-display); font-size: 1rem; }
.pill {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.dash-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
.metric { background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 0.85rem 0.95rem; }
.metric b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--brand); }
.metric span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.spark { width: 100%; height: 78px; }
.spark path { stroke-linecap: round; }
.dash-foot { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 0.85rem; }

.float-badge {
  position: absolute; padding: 0.6rem 0.9rem; border-radius: 14px; font-size: 0.78rem; font-weight: 700;
  background: var(--bg-soft); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.5rem; animation: bob 5s ease-in-out infinite;
}
.float-badge--a { top: -18px; right: 14px; color: var(--brand); }
.float-badge--b { bottom: -18px; left: -14px; color: var(--brand-2); animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 480px) { .float-badge--b { left: 0; } }

/* ---------- 8. Marquee / trust ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.1rem; background: var(--bg-soft); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--muted); white-space: nowrap; }

/* ---------- 9. Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(1.1rem, 2.5vw, 1.8rem); text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: var(--step--1); color: var(--muted); display: block; margin-top: 0.4rem; }

/* ---------- 10. Answer / TL;DR block (AEO) ---------- */
.answer-box {
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface));
  border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--glow);
}
.answer-box > h2, .answer-box > h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.answer-box p { font-size: var(--step-1); color: var(--text); }
.answer-box .tick { margin-top: 1.2rem; }
.answer-box .tick li { font-size: var(--step-0); }

.kv { display: grid; gap: 0.55rem; margin-top: 1.2rem; }
.kv div { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 0.75rem; padding-block: 0.5rem; border-top: 1px dashed var(--line); font-size: var(--step--1); }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .kv div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------- 11. TOC ---------- */
.toc { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1.2rem 1.4rem; }
.toc h2 { font-size: var(--step-1); margin-bottom: 0.75rem; }
.toc ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.4rem 1.5rem; counter-reset: toc; }
.toc a { display: block; padding: 0.35rem 0; font-size: var(--step--1); color: var(--text-soft); border-bottom: 1px solid transparent; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero) ". "; color: var(--brand); font-weight: 700; }
.toc a:hover { color: var(--brand); }

/* ---------- 12. Process timeline ---------- */
.timeline { display: grid; gap: 1.2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2), transparent); opacity: 0.45; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; position: relative; }
.tl-num {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--brand); z-index: 1;
}
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem 1.35rem; }
.tl-body h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.tl-body p { color: var(--text-soft); font-size: var(--step--1); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.chip { font-size: 0.72rem; font-weight: 700; padding: 0.28rem 0.65rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); background: var(--surface-2); }

/* ---------- 13. Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: var(--glow); transform: translateY(-6px); }
@media (max-width: 900px) { .price-card.featured { transform: none; } }
.price-tag { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; line-height: 1; margin-block: 0.65rem 0.25rem; }
.price-tag sup { font-size: 0.95rem; font-weight: 600; vertical-align: super; color: var(--muted); }
.price-tag small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card .tick { margin-bottom: 1.4rem; }
.badge-top {
  position: absolute; top: 14px; right: 14px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
}

/* ---------- 14. Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 1rem; }
.stars { color: var(--accent); letter-spacing: 0.1em; font-size: 0.95rem; }
.quote blockquote { font-size: var(--step-0); color: var(--text); line-height: 1.65; }
.who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.who strong { display: block; font-size: 0.95rem; }
.who span { font-size: 0.8rem; color: var(--muted); }

/* ---------- 15. FAQ ---------- */
.faq { display: grid; gap: 0.7rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  overflow: hidden; transition: border-color 0.25s, background 0.25s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.3rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  position: relative; display: block;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--brand);
  font-size: 1.1rem; font-weight: 700; transition: transform 0.25s, background 0.25s;
}
.faq details[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); background: var(--brand); color: var(--brand-ink); }
.faq .ans { padding: 0 1.3rem 1.25rem; color: var(--text-soft); font-size: var(--step-0); }
.faq .ans p + p { margin-top: 0.7rem; }

/* ---------- 16. Table (SEO comparison) ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: var(--step--1); }
th, td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand) 5%, transparent); }
caption { caption-side: bottom; padding: 0.85rem 1.1rem; font-size: 0.8rem; color: var(--muted); text-align: left; }

/* ---------- 17. Author / E-E-A-T ---------- */
.author-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
@media (max-width: 700px) { .author-card { grid-template-columns: 1fr; } }
.author-photo {
  width: 132px; height: 132px; border-radius: 26px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: var(--brand-ink);
  border: 1px solid var(--line-strong);
}
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.7rem; margin-top: 1.3rem; }
.cred { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.75rem 0.9rem; background: var(--surface-2); }
.cred b { display: block; font-size: 0.86rem; }
.cred span { font-size: 0.75rem; color: var(--muted); }

/* ---------- 18. Location / GEO chips ---------- */
.loc-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.loc-grid a {
  padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: var(--step--1); font-weight: 600; color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.loc-grid a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- 19. CTA band ---------- */
.cta-band {
  border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden;
  background: linear-gradient(125deg, color-mix(in srgb, var(--brand) 20%, var(--surface)), color-mix(in srgb, var(--brand-2) 20%, var(--surface)));
  border: 1px solid var(--line-strong); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background: radial-gradient(600px circle at 20% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 60%),
              radial-gradient(500px circle at 85% 100%, color-mix(in srgb, var(--brand-2) 45%, transparent), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 0.9rem; }
.cta-band .btn-row { justify-content: center; margin-top: 1.7rem; }

/* ---------- 20. Form ---------- */
.form-card { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 700; color: var(--text-soft); }
.field input, .field select, .field textarea {
  padding: 0.85rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--muted); }
.form-status { font-size: var(--step--1); font-weight: 700; min-height: 1.2em; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: var(--brand-3); }

/* ---------- 21. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; margin-top: clamp(2rem, 5vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h3 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 800; }
.footer li { margin-bottom: 0.55rem; }
.footer a { font-size: var(--step--1); color: var(--text-soft); transition: color 0.2s; }
.footer a:hover { color: var(--brand); }
.footer p { font-size: var(--step--1); color: var(--muted); }
.social { display: flex; gap: 0.55rem; margin-top: 1.1rem; }
.social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.social a:hover { border-color: var(--brand); color: var(--brand); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- 22. Floating action ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end;
}
.fab a {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); font-size: 1.4rem;
  transition: transform 0.2s;
}
.fab a:hover { transform: scale(1.08); }
.fab .wa { background: #25d366; color: #05270f; }
.fab .call { background: var(--brand); color: var(--brand-ink); }
.to-top { opacity: 0; pointer-events: none; transition: opacity 0.3s; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 23. Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; font-size: 0.8rem; color: var(--muted); padding-block: 1.1rem 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- 24. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 25. Print ---------- */
@media print {
  .header, .fab, .marquee, .hero-bg, .cta-band, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .answer-box { border: 1px solid #ccc; box-shadow: none; }
}
