/* Katy Roofer — site stylesheet */
:root {
  --ink: #0b1626;
  --ink-2: #13233a;
  --ink-3: #1c3150;
  --text: #1d2939;
  --muted: #5b6b80;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --brand: #ff5a1f;
  --brand-2: #ff8a3d;
  --brand-ink: #c23d0b;
  --gold: #ffc247;
  --ok: #17a673;
  --warn: #e8a317;
  --bad: #e5484d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 22, 38, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 22, 38, .35);
  --wrap: 1200px;
  --head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* overflow-x: clip (not hidden) stops sideways scroll without making body a scroll box, which would break the sticky header */
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 1000; border-radius: 8px; }
.skip:focus { left: 8px; }
svg.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), var(--gold)); }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #c9d4e3; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; padding: 6px 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .pill { background: rgba(255, 90, 31, .16); color: var(--gold); border: 1px solid rgba(255, 194, 71, .3);
  padding: 2px 10px; border-radius: 99px; font-weight: 600; font-size: .78rem; letter-spacing: .02em; }
.topbar .tb-left { display: flex; gap: 10px; align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(11, 22, 38, .45); border-color: var(--line); background: rgba(255, 255, 255, .95); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 76px; transition: height .3s var(--ease); }
.site-header.scrolled .wrap { height: 64px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 18px -8px var(--brand); }
.logo-mark svg { width: 24px; height: 24px; }
.logo em { font-style: normal; color: var(--brand); }
.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a { white-space: nowrap; display: block; padding: 9px 11px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--brand-ink); }
.nav .has-sub { position: relative; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .2s var(--ease); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-weight: 500; font-size: .93rem; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; line-height: 0; border-radius: 10px; }
.menu-btn:active { background: var(--bg-soft); }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--head); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--b); background: var(--b); color: #fff;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; box-shadow: 0 12px 24px -12px var(--b); line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 30px -12px var(--b); }
.btn-ghost { background: transparent; color: var(--ink); --b: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn-light:hover { color: var(--brand-ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn .i { width: 1.1em; height: 1.1em; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 20%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7, 15, 28, .94) 0%, rgba(7, 15, 28, .78) 45%, rgba(7, 15, 28, .25) 100%); }
.hero-home { min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-home .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 80px 0 110px; }
.hero h1 { color: #fff; }
.hero h1 .hl { background: linear-gradient(90deg, var(--brand-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.18rem; color: #d6deea; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero .eyebrow { color: var(--gold); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 99px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(23, 166, 115, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(23, 166, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 166, 115, 0); } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 30px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: #c9d4e3; font-size: .95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .i { color: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* hero form card */
.form-card { background: #fff; color: var(--text); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg); position: relative; }
.form-card::before { content: "100% FREE"; position: absolute; top: -14px; right: 24px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; font-family: var(--head); font-weight: 800; font-size: .75rem; letter-spacing: .1em; padding: 6px 12px; border-radius: 99px; }
.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; }

/* page hero (inner) */
.hero-page { padding: 70px 0 80px; }
.hero-page .wrap { max-width: var(--wrap); }
.hero-page .lead { margin-bottom: 0; }
.crumbs { font-size: .86rem; color: #aab8cb; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.post-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #c9d4e3; font-size: .93rem; margin-top: 18px; }
.post-meta span { display: inline-flex; gap: 7px; align-items: center; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #e7f7f0; color: #0d6b49; }
.form-status.err { display: block; background: #fdecec; color: #a3262a; }
form .btn { width: 100%; margin-top: 6px; }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #c9d4e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #aab8cb; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* marquee */
.marquee { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; overflow: hidden; padding: 16px 0; font-family: var(--head); font-weight: 700; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 1.02rem; }
.marquee span::after { content: "✦"; margin-left: 36px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -60px; position: relative; z-index: 3; }
.stat { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-size: 2.3rem; color: var(--ink); line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; }
.stat b em { font-style: normal; color: var(--brand); }
.stat span { color: var(--muted); font-size: .94rem; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 90, 31, .12), rgba(255, 194, 71, .18)); color: var(--brand-ink); }
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-family: var(--head); }
.card .more .i { transition: transform .25s; }
.card:hover .more .i { transform: translateX(4px); }
.card-link::after { content: ""; position: absolute; inset: 0; }
.img-card { padding: 0; }
.img-card .img { aspect-ratio: 16/10; overflow: hidden; }
.img-card .img img { width: 100%; height: 100%; object-fit: cover; }
.img-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink);
  background: rgba(255, 90, 31, .1); padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.meta-row { display: flex; gap: 14px; color: var(--muted); font-size: .86rem; margin-bottom: 8px; flex-wrap: wrap; }

/* feature image w/ clip reveal */
.media { aspect-ratio: 4 / 3; position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; left: 20px; bottom: 20px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-radius: 16px;
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); color: var(--ink); font-weight: 600; max-width: calc(100% - 40px); }
.media-badge .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li .i { color: var(--ok); margin-top: 4px; }

/* steps w/ scroll-driven line */
.steps { position: relative; display: grid; gap: 28px; padding-left: 36px; }
.steps::before, .steps .line { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.steps .line { background: linear-gradient(var(--brand), var(--gold)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.section:not(.section-dark) .steps::before { background: var(--line); }
.step { position: relative; }
.step::before { content: attr(data-n); position: absolute; left: -36px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-3); color: #fff;
  font-family: var(--head); font-weight: 800; font-size: .85rem; display: grid; place-items: center; border: 3px solid var(--ink); transition: background .4s; }
.section:not(.section-dark) .step::before { border-color: #fff; }
.step.lit::before { background: var(--brand); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }

/* sticky media in split */
.sticky { position: sticky; top: 110px; }

/* weather widget */
.wx-mini { background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); color: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.wx-now { display: flex; align-items: center; gap: 18px; }
.wx-now .t { font-family: var(--head); font-size: 3.4rem; font-weight: 800; line-height: 1; }
.wx-now .ic { font-size: 3rem; line-height: 1; }
.wx-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.wx-days div { background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 12px; text-align: center; font-size: .9rem; }
.wx-days b { display: block; font-family: var(--head); }
.wx-forecast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.wx-day { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.wx-day:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wx-day .d { font-family: var(--head); font-weight: 800; color: var(--ink); }
.wx-day .dt { color: var(--muted); font-size: .8rem; }
.wx-day .ic { font-size: 2.4rem; margin: 10px 0 4px; line-height: 1.1; }
.wx-day .desc { font-size: .82rem; color: var(--muted); min-height: 2.4em; line-height: 1.3; }
.wx-day .hi { font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.wx-day .lo { color: var(--muted); }
.wx-day .row { font-size: .8rem; color: var(--muted); margin-top: 6px; display: flex; justify-content: center; gap: 4px; align-items: center; }
.risk { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.risk.low { background: #e7f7f0; color: #0d6b49; } .risk.mod { background: #fff4dc; color: #8a5a00; } .risk.high { background: #fdecec; color: #a3262a; }
.wx-current { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.wx-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wx-metrics div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px; }
.wx-metrics small { display: block; color: #aab8cb; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.wx-metrics b { font-family: var(--head); font-size: 1.3rem; color: #fff; }
.alert-box { border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); background: #fff; }
.alert-box.active { border-color: #f3b4b6; background: #fff5f5; }
.alert-box h3 { font-size: 1.05rem; margin: 0 0 6px; }
.skeleton { background: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.08), rgba(0,0,0,.04)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 180px; }
@keyframes sk { to { background-position: -200% 0; } }

/* prose */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-family: var(--head); color: var(--ink); }
.prose blockquote { margin: 0 0 1.4em; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 14px 14px 0; font-style: italic; }
.prose .lead-img { border-radius: 20px; overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/8; }
.prose .lead-img img { width: 100%; height: 100%; object-fit: cover; }
.callout { background: #fff8ec; border: 1px solid #ffe1b0; border-radius: 14px; padding: 16px 20px; margin: 0 0 1.4em; }
.cta-band { background: linear-gradient(120deg, var(--ink), var(--ink-3)); color: #d6deea; border-radius: 22px; padding: 30px; margin: 2em 0;
  display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(var(--brand), transparent 70%); opacity: .35; }
.cta-band h3 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.cta-band p { margin: 0; }
.cta-band .btn { position: relative; z-index: 1; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside .box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.aside .box h3 { font-size: 1.1rem; }
.aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside ul a { text-decoration: none; color: var(--text); display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: .95rem; }
.aside ul a:hover { background: #fff; color: var(--brand-ink); }
.aside .phone-box { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }
.aside .phone-box h3 { color: #fff; }
.aside .phone-box a.big { color: #fff; font-family: var(--head); font-size: 1.5rem; font-weight: 800; text-decoration: none; display: block; margin: 6px 0 14px; }
.toc a { font-size: .9rem !important; }
.toc a.active { background: #fff; color: var(--brand-ink) !important; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--head); font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA section */
.cta-final { position: relative; overflow: hidden; color: #fff; text-align: center; background: var(--ink); isolation: isolate; }
.cta-final .hero-bg { opacity: .35; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(255, 90, 31, .35), transparent 65%); }
.cta-final h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-final p { color: #d6deea; font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; }
.cta-final .hero-actions { justify-content: center; margin-bottom: 0; }

/* tools */
.tool { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.range-row { margin-bottom: 18px; }
.range-row label { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .95rem; }
.range-row output { color: var(--brand-ink); font-family: var(--head); font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; transition: .2s; background: var(--bg-soft); }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid rgba(255, 90, 31, .4); }
.result { background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #d6deea; border-radius: 20px; padding: 28px; position: sticky; top: 100px; }
.result .big { font-family: var(--head); font-weight: 800; color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 20px 0; font-size: .95rem; }
.result dt { color: #aab8cb; } .result dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.result small { color: #8fa0b8; display: block; margin-top: 14px; font-size: .8rem; }
.pitch-vis { background: var(--bg-soft); border-radius: 16px; padding: 10px; margin-bottom: 18px; }
.pitch-vis svg { width: 100%; height: auto; display: block; }
.check-list { display: grid; gap: 10px; }
.check-list label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s; background: #fff; }
.check-list label:hover { border-color: var(--brand-2); }
.check-list input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 3px; flex: none; }
.check-list label:has(input:checked) { border-color: var(--brand); background: #fff8f4; }
.check-list small { display: block; color: var(--muted); }
.meter { height: 12px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; margin: 16px 0; }
.meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--warn), var(--bad)); background-size: 300% 100%; transition: width .6s var(--ease); }

.blog-feature { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 28px; }
@media (max-width: 760px) { .blog-feature { grid-template-columns: minmax(0, 1fr); } .blog-feature .img { min-height: 220px !important; } .blog-feature .body { padding: 24px !important; } }

/* area chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chips span { padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; transition: .2s; }
.chips a:hover { background: var(--ink); color: #fff; }
.section-dark .chips span, .section-dark .chips a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .card h3 { display: flex; gap: 10px; align-items: center; }

/* footer */
.site-footer { background: #070f1c; color: #9fb0c6; padding: 80px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #c9d4e3; text-decoration: none; }
.site-footer a:hover { color: var(--brand-2); }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-phone { font-family: var(--head); font-size: 1.4rem; font-weight: 800; color: #fff !important; display: inline-flex; gap: 10px; align-items: center; margin: 8px 0 14px; }


/* ---------- mobile menu (outside the header so it can cover the whole screen) ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 1000; display: none; }
.mobile-menu.open, .mobile-menu:target { display: block; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(7, 15, 28, .55); opacity: 0; transition: opacity .28s ease; }
.mm-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(7, 15, 28, .5); transform: translateX(100%); transition: transform .3s var(--ease); }
.mobile-menu.visible .mm-backdrop, .mobile-menu:target .mm-backdrop { opacity: 1; }
.mobile-menu.visible .mm-panel, .mobile-menu:target .mm-panel { transform: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.mm-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 12px; color: var(--ink); }
.mm-close:active { background: var(--bg-soft); }
.mm-close svg { width: 26px; height: 26px; }
.mm-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 16px 16px; }
.mm-body > a, .mm-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 4px;
  font-family: var(--head); font-weight: 700; font-size: 1.08rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; }
.mm-body > a[aria-current="page"] { color: var(--brand-ink); }
.mm-group summary { list-style: none; }
.mm-group summary::-webkit-details-marker { display: none; }
.mm-group summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform .25s; }
.mm-group[open] summary svg { transform: rotate(180deg); color: var(--brand); }
.mm-sub { display: grid; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.mm-sub a { display: block; padding: 11px 12px; border-radius: 10px; font-size: 1rem; color: var(--text); text-decoration: none; }
.mm-sub a:first-child { font-weight: 600; color: var(--brand-ink); }
.mm-sub a[aria-current="page"] { background: var(--bg-soft); color: var(--brand-ink); font-weight: 600; }
.mm-foot { display: grid; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; }
.mm-foot .btn { width: 100%; }
body.menu-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* mobile sticky call bar */
.mobile-bar { display: none; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero [data-reveal] { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1340px) { .header-cta .btn-ghost { display: none; } }
@media (max-width: 1080px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .header-cta { margin-left: 0; }
  .hero-home .wrap { grid-template-columns: minmax(0, 1fr); padding: 60px 0 100px; }
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .wx-forecast { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .topbar .tb-hide { display: none; }
  .site-header .wrap { height: 66px; }
  .header-cta .btn { display: none; }
  .g2, .g3, .split, .compare, .tool-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { margin-top: -40px; gap: 12px; }
  .stat { padding: 18px; } .stat b { font-size: 1.8rem; }
  .wx-forecast { grid-template-columns: repeat(2, 1fr); }
  .wx-current { grid-template-columns: minmax(0, 1fr); }
  .wx-metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky, .result { position: static; }
  .hero-page { padding: 50px 0 56px; }
  .form-card { padding: 22px; }
  .prose table { display: block; overflow-x: auto; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 10px 12px;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: 12px 10px; font-size: .92rem; }
  .scroll-cue { display: none; }
}

/* phones: single-column cards (must stay last so it beats the 1080px two-column rule) */
@media (max-width: 560px) { .g4 { grid-template-columns: minmax(0, 1fr); } }

/* Photos are always visible: no reveal, clip or zoom effects on images. */
img, .media, .lead-img, .img-card, .img-card .img { opacity: 1 !important; clip-path: none !important; }
.media img, .lead-img img, .img-card img { transform: none !important; }
/* grid children may shrink below their content width (stops sideways scrolling on phones) */
.layout > *, .split > *, .grid > *, .tool-grid > *, .compare > * { min-width: 0; }
/* no sideways slide-ins on tablets/phones: they push content past the screen edge */
@media (max-width: 1080px) { .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(34px); } .js [data-reveal].in { transform: none; } }
