/* ============================================================
   Mystic Leak Repair — Water Heater Leak Repair, Medford MA
   Design system: Charcoal #111827 primary + Red #EF4444 accent
   Fonts: Manrope (headings) + Source Sans 3 (body)
   Mobile-first. Breakpoints: 640 / 768 / 1024 / 1280.
   ============================================================ */

:root {
  /* Primary charcoal scale */
  --char-950: #0b1120;
  --char-900: #111827;
  --char-800: #1a2436;
  --char-700: #263349;
  --char-600: #35425c;
  --char-500: #4b5a77;
  --char-400: #6878a0;
  --char-300: #9aa6c2;
  --char-200: #c3cadb;
  --char-100: #dde2ee;
  --char-50:  #f2f4f9;

  /* Red accent scale */
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --red-50:  #fef2f2;

  --white: #ffffff;
  --offwhite: #f7f8fb;
  --border: #e4e8f1;
  --border-dark: rgba(255, 255, 255, 0.12);
  --ink: #111827;
  --ink-soft: #3b4357;
  --ink-mute: #5b6478;
  --ink-on-dark: #e8ebf3;
  --ink-mute-dark: #a8b1c7;

  /* Type */
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --body-min: 1.0625rem;

  /* Shape & motion */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 2px 6px rgba(17, 24, 39, 0.08), 0 12px 32px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 4px 12px rgba(17, 24, 39, 0.1), 0 24px 64px rgba(17, 24, 39, 0.18);
  --shadow-glow: 0 0 0 4px rgba(239, 68, 68, 0.18), 0 8px 32px rgba(239, 68, 68, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-min);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: 0;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--red-500); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  font-weight: 700; z-index: 200; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: clamp(1.125rem, 2.2vw, 1.35rem); color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--red-600); margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red-500), transparent);
}

.section-intro { max-width: 62ch; color: var(--ink-soft); }

a { color: var(--red-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }

/* ---------- Layout ---------- */
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
section { padding: 4rem 0; }               /* 64px mobile */
@media (min-width: 1024px) { section { padding: 7rem 0; } }  /* 112px desktop */

.sec-white { background: var(--white); }
.sec-off { background: var(--offwhite); }
.sec-tint { background: var(--char-50); }
.sec-dark { background: var(--char-950); color: var(--ink-on-dark); }
.sec-dark h2, .sec-dark h3, .sec-dark h1 { color: #fff; }
.sec-dark .section-intro { color: var(--ink-mute-dark); }

/* Angled divider */
.divider-wave { display: block; width: 100%; height: 48px; margin-bottom: -1px; }
@media (min-width: 1024px) { .divider-wave { height: 72px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em;
  color: #fff; font-size: 1.2rem; line-height: 1.1;
}
.brand-name small {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--char-300);
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm); background: transparent; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: #fff; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 2rem 2rem; gap: 0.25rem;
  transform: translateY(-100%); transition: transform 0.35s var(--ease);
}
.site-nav.open { transform: translateY(0); }
.site-nav a {
  color: #fff; text-decoration: none; font-family: var(--font-head);
  font-weight: 700; font-size: 1.35rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-dark);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red-500); }
.header-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; transform: none; background: none; backdrop-filter: none;
    flex-direction: row; align-items: center; gap: 1.4rem; padding: 0;
  }
  .site-nav a { font-size: 0.95rem; border: 0; padding: 0.5rem 0; color: var(--ink-on-dark); }
  .header-cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.9rem 1.9rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: var(--red-500); color: #fff;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.4);
}
.btn-primary:hover { background: var(--red-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--char-300); }
.btn-outline-dark:hover { border-color: var(--char-800); color: var(--ink); transform: translateY(-2px); }
@media (max-width: 639px) { .btn { width: 100%; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;
  background:
    radial-gradient(52rem 30rem at 85% -10%, rgba(239, 68, 68, 0.22), transparent 60%),
    radial-gradient(44rem 28rem at -10% 110%, rgba(239, 68, 68, 0.12), transparent 60%),
    linear-gradient(160deg, var(--char-950) 0%, var(--char-900) 55%, var(--char-800) 100%);
  color: var(--ink-on-dark);
  padding: 4.5rem 0 5.5rem;
}
.hero::after { /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--red-500), #f97316);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: var(--ink-mute-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.75rem 0 1.25rem; }
.hero-fineprint {
  font-size: 0.85rem; color: var(--char-300); max-width: 56ch; line-height: 1.6;
}
.hero-fineprint a { color: var(--char-200); }

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 700; color: var(--ink-on-dark);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-dark);
  padding: 0.5rem 0.95rem; border-radius: 999px;
}
.trust-chips svg { width: 16px; height: 16px; stroke: var(--red-500); }

.hero-scene { position: relative; }
.hero-scene .scene-svg { width: 100%; border-radius: var(--radius); }
.float-card {
  position: absolute; z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark); border-radius: 16px;
  padding: 0.9rem 1.1rem; color: #fff;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .icon-tile { width: 42px; height: 42px; flex: none; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 0.95rem; line-height: 1.25; }
.float-card span { font-size: 0.8rem; color: var(--char-300); }
.float-card.f1 { top: 6%; left: -4%; animation-delay: 0s; }
.float-card.f2 { bottom: 18%; right: -3%; animation-delay: 2s; }
.float-card.f3 { bottom: -6%; left: 12%; animation-delay: 4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1023px) {
  .float-card.f3 { display: none; }
  .float-card { padding: 0.65rem 0.85rem; }
  .float-card.f1 { left: 2%; } .float-card.f2 { right: 2%; }
}
@media (max-width: 639px) {
  .float-card { font-size: 0.85rem; }
  .float-card span { display: none; }
}

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--char-50); border: 1px solid var(--border);
}
.icon-tile svg { width: 26px; height: 26px; stroke: var(--red-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile.red { background: var(--red-50); }
.sec-dark .icon-tile { background: rgba(255,255,255,0.07); border-color: var(--border-dark); }

/* ---------- Bento services ---------- */
.bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .bento-big { grid-column: span 2; } }

.bento-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--red-500), #f97316);
  opacity: 0; transition: opacity 0.22s;
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { margin: 0; font-size: 1.25rem; }
.bento-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.bento-card .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 800; color: var(--red-700); font-size: 0.95rem;
}
.bento-card .go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Symptom checker ---------- */
.symptom-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 640px) { .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .symptom-grid { grid-template-columns: repeat(3, 1fr); } }
.symptom {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow-sm);
  display: flex; gap: 1rem; align-items: flex-start;
}
.symptom strong { display: block; font-family: var(--font-head); margin-bottom: 0.2rem; }
.symptom p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.severity { flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 999px; }
.sev-now { background: var(--red-500); color: #fff; }
.sev-soon { background: #f59e0b; color: #fff; }
.sev-watch { background: var(--char-100); color: var(--char-700); }

/* ---------- Split sections ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split-art { background: var(--char-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.sec-dark .split-art { background: rgba(255,255,255,0.04); border-color: var(--border-dark); }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.75rem; position: relative; }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li { position: relative; padding-left: 4.5rem; }
@media (min-width: 1024px) {
  .process { gap: 1.5rem; }
  .process::before { content: ""; position: absolute; top: 2.2rem; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent); }
  .process li { padding-left: 0; padding-top: 4.75rem; }
}
.process .num {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--red-500);
}
@media (min-width: 1024px) { .process .num { left: 0; } }
.process h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.process p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Callouts ---------- */
.callout {
  border-left: 5px solid var(--red-500); background: var(--red-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem; margin: 1.75rem 0; display: flex; gap: 1rem;
}
.callout svg { width: 26px; height: 26px; flex: none; stroke: var(--red-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { font-family: var(--font-head); display: block; margin-bottom: 0.25rem; }
.callout p { margin: 0; font-size: 0.98rem; }
.callout.info { border-color: var(--char-500); background: var(--char-50); }
.callout.info svg { stroke: var(--char-600); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 1.75rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; background: #fff; min-width: 560px; }
caption { text-align: left; font-family: var(--font-head); font-weight: 800; padding: 1rem 1.25rem; background: var(--char-900); color: #fff; }
th, td { text-align: left; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-head); font-weight: 800; background: var(--char-50); }
tr:last-child td { border-bottom: 0; }

/* ---------- Areas / neighborhood cards ---------- */
.area-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 768px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.area-card h3 { margin-top: 0; font-size: 1.2rem; }
.area-card h3 a { color: var(--ink); text-decoration: none; }
.area-card h3 a:hover { color: var(--red-700); }
.area-card p { margin: 0 0 1rem; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: clip; text-align: center;
  background: linear-gradient(160deg, var(--char-950), var(--char-800));
  border-radius: var(--radius); padding: 3.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(30rem 14rem at 50% -20%, rgba(239, 68, 68, 0.35), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-mute-dark); margin-inline: auto; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 5vw, 3rem);
  color: #fff; text-decoration: none; margin: 1rem 0;
  text-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
}
.cta-phone:hover { color: var(--red-500); }
.cta-phone svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; display: grid; gap: 0.9rem; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--red-600); border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.faq summary .plus::before { left: 0; top: 10px; width: 22px; height: 3px; }
.faq summary .plus::after { left: 9.5px; top: 0; width: 3px; height: 22px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::before { transform: rotate(180deg); }
.faq .faq-body { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- How-it-works / trust ---------- */
.hiw { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 768px) { .hiw { grid-template-columns: repeat(3, 1fr); } }
.hiw-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.hiw-card h3 { font-size: 1.15rem; margin-top: 0.9rem; }
.hiw-card p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Inner page layout (services) ---------- */
.page-hero {
  position: relative; overflow: clip; color: var(--ink-on-dark);
  background: linear-gradient(160deg, var(--char-950), var(--char-800));
  padding: 3.5rem 0 3rem;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.page-hero .lede { color: var(--ink-mute-dark); }
.breadcrumbs { font-size: 0.88rem; margin-bottom: 1.25rem; color: var(--char-300); }
.breadcrumbs a { color: var(--char-200); }
.breadcrumbs [aria-current] { color: #fff; font-weight: 700; }

.inner-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .inner-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.toc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 2rem;
}
.toc strong { font-family: var(--font-head); display: block; margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; display: grid; gap: 0.35rem; }
.call-card {
  background: var(--char-900); color: var(--ink-on-dark);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-md);
  position: sticky; top: 6rem;
}
.call-card h3 { color: #fff; margin-top: 0; font-size: 1.2rem; }
.call-card p { font-size: 0.94rem; color: var(--ink-mute-dark); }
.call-card .btn { width: 100%; margin-top: 0.75rem; }
.sidebar { display: grid; gap: 1.5rem; align-content: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-950); color: var(--ink-mute-dark); padding: 4rem 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--ink-mute-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-disclaimer {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-dark);
  font-size: 0.85rem; line-height: 1.65; color: var(--char-300);
}
.footer-bottom {
  margin-top: 2rem; padding: 1.5rem 0 7rem; border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.85rem;
}
@media (min-width: 768px) { .footer-bottom { padding-bottom: 1.5rem; } }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(11, 17, 32, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-dark);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  display: flex; gap: 0.75rem;
}
.call-bar .btn { flex: 1; min-height: 52px; }
@media (min-width: 768px) { .call-bar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 92px; } .footer-bottom { padding-bottom: 7rem; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
}

/* ---------- Utility ---------- */
.checklist { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 0.2rem; stroke: var(--red-600); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.two-col { columns: 1; }
@media (min-width: 768px) { .two-col { columns: 2; column-gap: 2.5rem; } }
.two-col p { break-inside: avoid; }
.mt-2 { margin-top: 2rem; }
.small-note { font-size: 0.88rem; color: var(--ink-mute); }

/* ---- Design self-check refinements (2026-09-30) ---- */
/* 1. Split section header: left-aligned editorial rhythm */
.split-head{display:flex;flex-wrap:wrap;gap:1rem 3rem;align-items:end;justify-content:space-between;margin-bottom:2.5rem;text-align:left}
.split-head h2{margin:0;max-width:16ch}
.split-head .section-intro{margin:0;max-width:38ch;text-align:left}
/* 2. Dark band for the long guide section */
.sec-dark{background:#0B1220;color:#E5E7EB;padding:clamp(3.5rem,7vw,5.5rem) 0;position:relative;overflow:hidden}
.sec-dark::before{content:"";position:absolute;inset:0;background:radial-gradient(600px 300px at 85% 10%,rgba(239,68,68,.14),transparent 70%),radial-gradient(500px 260px at 8% 90%,rgba(239,68,68,.08),transparent 70%)}
.sec-dark .wrap{position:relative}
.sec-dark h2,.sec-dark h3{color:#fff}
.sec-dark p{color:#CBD5E1}
.sec-dark a{color:#FCA5A5}
.sec-dark .guide-card{background:#141C2E;border:1px solid #2A3550;color:#E5E7EB}
.sec-dark .guide-card h3{color:#fff}
.sec-dark .guide-card p{color:#CBD5E1}
.sec-dark .step-num{background:rgba(239,68,68,.18);color:#FCA5A5;border-color:rgba(239,68,68,.4)}
/* 3. Texture on page hero */
.page-hero{background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);background-size:22px 22px}
/* 4. Service cards: ghost numerals + red top border reveal */
.bento-card{position:relative;overflow:hidden}
.bento-card::after{content:attr(data-num);position:absolute;top:.4rem;right:1rem;font:700 3.2rem Manrope;color:rgba(17,24,39,.06);line-height:1}
.bento-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--red),#F87171);transform:scaleX(0);transform-origin:left;transition:transform .35s ease}
.bento-card:hover::before{transform:scaleX(1)}
/* 5. Premium buttons */
.btn-primary{background:linear-gradient(135deg,#F05252,#DC2626);box-shadow:0 8px 22px rgba(239,68,68,.35)}
.btn-primary:hover{background:linear-gradient(135deg,#DC2626,#B91C1C);box-shadow:0 12px 28px rgba(239,68,68,.45)}
.btn-outline{background:transparent;border:2px solid rgba(255,255,255,.5)}
.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.08)}
