/* FixMyCagedLadder — landing page styles
   Palette from the mockup concept: white, charcoal, safety yellow. */
:root {
  --charcoal: #1f2326;
  --charcoal-2: #2a2f33;
  --ink: #1f2326;
  --muted: #4d5358;        /* 7.9:1 on white */
  --line: #dfe2e5;
  --tint: #f3f4f5;
  --yellow: #f8d33a;       /* charcoal on yellow ≈ 11:1 */
  --yellow-dark: #e7bf17;
  --focus: #0b5fff;
  --radius: 4px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; color: var(--charcoal); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus: visible on every interactive element */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Preview banner + placeholder marks (remove before launch) */
.preview-banner {
  background: #fff4c2; border-bottom: 1px solid #e9d27a; color: #3b3200;
  font-size: .875rem; text-align: center; padding: 6px 16px;
}
mark.ph {
  background: #fff4c2; color: #3b3200; outline: 1px dashed #b38f00;
  padding: 0 .25em; border-radius: 2px; font-weight: 600; font-size: .95em;
}
mark.ph-dark { background: #4a4000; color: #fff4c2; outline-color: #f8d33a; }
.draft-note {
  font-size: .875rem; color: var(--muted); border-left: 3px solid var(--yellow);
  padding-left: 10px; margin-top: -.25em;
}
.temp-image { position: relative; }
.temp-image::after {
  content: "TEMPORARY IMAGE — replace with approved photo";
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(31,35,38,.88); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; padding: 6px 10px; border-radius: var(--radius);
}

/* Eyebrow label with yellow rule */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--charcoal); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--yellow-dark); flex: none; }
.section-dark .eyebrow { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 2px; border: 2px solid transparent;
  transition: background-color .15s;
}
.btn-primary { background: var(--yellow); color: var(--charcoal); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Icons */
.icon { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--charcoal); }
.site-nav { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: flex-end; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0 auto; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: .95rem; padding: 6px 2px; white-space: nowrap; }
.site-nav .btn { white-space: nowrap; }
.site-nav ul a:hover { text-decoration: underline; text-decoration-color: var(--yellow-dark); text-underline-offset: 6px; text-decoration-thickness: 2px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--charcoal);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Hero */
.hero { display: grid; grid-template-columns: 48% 52%; min-height: 480px; }
.hero-copy { padding: 72px 48px 72px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); align-self: center; }
.hero-copy h1 { max-width: 12ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 30ch; margin-bottom: 1.75rem; }
.parent-line { margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
.parent-line a { color: var(--charcoal); font-weight: 600; }

/* Audience strip */
.audience { background: var(--tint); }
.audience-inner { display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.audience-inner .icon { color: var(--muted); }
.audience-inner p { margin: 0; padding-left: 24px; border-left: 1px solid #c8ccd0; font-size: 1.05rem; }

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: var(--charcoal); color: #e9ebed; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tint { background: var(--tint); }
.section-border { border-top: 1px solid var(--line); }

/* Service cards */
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); padding: 28px 22px; background: #fff; }
.card .icon { width: 36px; height: 36px; margin-bottom: 18px; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.scope-note { margin-top: 24px; font-size: .95rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: none; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -30px; top: 18px; width: 14px; height: 14px;
  border-top: 2px solid #8b9196; border-right: 2px solid #8b9196; transform: rotate(45deg);
}
.step-num { display: block; font-size: 2.75rem; font-weight: 800; color: var(--yellow); line-height: 1; margin-bottom: 14px; }
.steps p { color: #d4d8db; margin: 0; }

/* Split section */
.split { display: grid; grid-template-columns: 48% 52%; }
.split-media { margin: 0; min-height: 420px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: 64px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)) 64px 56px; align-self: center; }
.split-copy > p { color: var(--muted); max-width: 46ch; }
.feature-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 18px; align-items: flex-start; }
.feature-list .icon { width: 28px; height: 28px; margin-top: 2px; }
.feature-list h3 { font-size: 1rem; margin-bottom: 2px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* About */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-inner h2 { margin: 0; max-width: 16ch; }
.about-body { border-left: 1px solid #c8ccd0; padding-left: 32px; }
.about-body p:first-child { font-size: 1.1rem; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 4px; font-weight: 600; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 4px 16px; margin: 0; color: var(--muted); }

/* Hero actions and brand panel */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy h1 { max-width: 16ch; }
.hero-scope { margin: 1rem 0 0; font-size: .95rem; color: var(--muted); max-width: 46ch; }
.hero-panel {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-color: var(--charcoal);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 2px, transparent 2px 56px);
  min-height: 480px;
}
.hero-panel-inner { text-align: center; padding: 48px 24px 88px; }
.hero-panel-inner img { width: 200px; height: 200px; margin: 0 auto 20px; }
.hero-panel-name { color: #fff; font-weight: 800; font-size: 1.9rem; letter-spacing: -.01em; margin: 0 0 4px; }
.hero-panel-tag { color: var(--yellow); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.hero-stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 22px, var(--charcoal) 22px 44px);
}
.prose { max-width: 760px; }
.scope-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.scope-pair > div { background: var(--tint); padding: 22px; }
.scope-pair p { margin: 0; color: var(--muted); }
.rules-notes { margin: 0 0 16px; padding-left: 1.2em; max-width: 70ch; display: grid; gap: 8px; }
.split-media { position: relative; }
.split-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: rgba(31,35,38,.85); color: #fff; font-size: .8rem;
}
.split-media figcaption a { color: #fff; }

/* Scope cards */
.scope-cards { grid-template-columns: repeat(3, 1fr); }
.scope-cards .card h3 { margin-bottom: .4em; }
.card-exclusions { background: var(--tint); }

/* Rules */
.rules-inner > p { max-width: 70ch; }
.rules-list { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rules-list li { background: #fff; border: 1px solid var(--line); padding: 20px 22px; }
.rules-list h3 { font-size: 1.05rem; }
.rules-list p { margin: 0 0 .5em; color: var(--muted); }
.rules-caution { border-left: 3px solid var(--yellow-dark); padding-left: 10px; color: var(--ink) !important; font-weight: 600; }
.cite { display: inline-block; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.callout { background: #fff; border: 2px solid var(--charcoal); padding: 20px 22px; margin: 0 0 20px; max-width: 70ch; }
.callout p { margin: 0; }
.rules-meta { font-size: .875rem; color: var(--muted); }
.about-independent { font-size: .9rem; color: var(--muted); }

/* Contact */
.contact-details { margin: 20px 0 0; display: grid; gap: 10px; }
.contact-details div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: baseline; }
.contact-details dt { font-weight: 700; font-size: .9rem; }
.contact-details dd { margin: 0; overflow-wrap: anywhere; }
.copy-btn { margin-left: 8px; font: inherit; font-size: .8rem; font-weight: 600; padding: 4px 10px; min-height: 32px; border: 1px solid var(--charcoal); background: #fff; color: var(--charcoal); border-radius: 2px; cursor: pointer; }
.copy-btn:hover { background: var(--tint); }
.copy-status { margin-left: 8px; font-size: .85rem; color: var(--muted); }
.contact-inner { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: start; }
.contact-inner h2 { max-width: 14ch; }
.contact-inner > div > p { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn-outline { background: #fff; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--tint); }
.contact-note { font-size: .875rem; }
.ready-list { background: var(--tint); border-left: 3px solid var(--yellow-dark); padding: 24px 26px; }
.ready-list h3 { margin-bottom: .25rem; }
.ready-list > p { color: var(--muted); font-size: .95rem; }
.ready-list ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Footer */
.site-footer { background: var(--charcoal); color: #d4d8db; padding: 28px 0; font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .site-nav ul { gap: 18px; }
  .site-nav { gap: 18px; }
  .hero-copy { padding: 56px 32px 56px 24px; }
  .split-copy { padding: 48px 24px 48px 40px; }
  .about-inner, .faq-inner, .contact-inner { gap: 40px; }
}

/* ---------- Mobile nav breakpoint ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; margin: 0 0 12px; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .section { padding: 56px 0; }
  .hero, .split { grid-template-columns: 1fr; }
  .rules-list { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 24px; }
  .hero-panel { min-height: 240px; }
  .hero-panel-inner { padding: 32px 24px 60px; }
  .hero-panel-inner img { width: 110px; height: 110px; margin-bottom: 12px; }
  .hero-panel-name { font-size: 1.4rem; }
  .scope-pair { grid-template-columns: 1fr; }
  .split-media { min-height: 0; aspect-ratio: 4 / 3; }
  .split-copy { padding: 44px 24px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li:not(:last-child)::after { display: none; }
  .about-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-body { border-left: 0; padding-left: 0; border-top: 1px solid #c8ccd0; padding-top: 20px; }
  .audience-inner { flex-direction: column; gap: 10px; text-align: center; }
  .audience-inner p { border-left: 0; padding-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .contact-details div { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .brand span { font-size: 1.1rem; }
}
