/* ==========================================================================
   Pacific Coast Roofs — global styles (modern)
   ========================================================================== */

:root {
  --brand: #0e8a94;
  --brand-dark: #0a6670;
  --brand-soft: #e1f4f5;
  --amber: #f3a64a;
  --gold: #ffc56b;
  --ink: #06182a;
  --navy: #0a2238;
  --navy-2: #11314d;
  --slate: #475467;
  --muted: #667085;
  --line: #e7e3dc;
  --paper: #faf8f5;
  --paper-2: #f3efe8;
  --white: #ffffff;
  --green: #12805c;

  --grad: linear-gradient(135deg, #2cc5cf 0%, #0e8a94 45%, #0b5a78 100%);
  --grad-text: linear-gradient(100deg, #ffd08a 0%, #ff9a5a 50%, #ff7a45 100%);

  --radius: 22px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 12px 32px -8px rgba(16, 24, 40, .14);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 40, .35);
  --max: 1240px;
  --header-h: 76px;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
::selection { background: var(--brand); color: var(--white); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 18px; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 10px 30px -8px rgba(14, 138, 148, .65), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { color: var(--white); box-shadow: 0 16px 40px -8px rgba(14, 138, 148, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-outline, .btn-glass {
  color: var(--white); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-outline:hover, .btn-glass:hover { background: rgba(255,255,255,.18); color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-dark { border-color: var(--line); color: var(--ink); background: var(--white); box-shadow: var(--shadow-sm); }
.btn-outline-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--white); color: var(--brand-dark); }
.btn-light:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, height .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.site-header.scrolled {
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(16,24,40,.08); box-shadow: 0 8px 30px -12px rgba(16,24,40,.18);
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--white); }
.logo:hover { color: inherit; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; line-height: 1; letter-spacing: -0.02em; color: var(--white); transition: color .3s; }
.logo-text small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .2em; color: var(--amber); margin-top: 5px; }
.scrolled .logo-text { color: var(--ink); }
.scrolled .logo-text small { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: rgba(255,255,255,.86); font-weight: 600; font-size: .93rem; padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.12); }
.scrolled .nav a { color: var(--slate); }
.scrolled .nav a:hover, .scrolled .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-phone { display: inline-flex !important; align-items: center; gap: 8px; margin-left: 8px; }
.nav-phone svg { width: 16px; height: 16px; }
.nav .btn { margin-left: 8px; padding: 11px 20px; color: var(--white) !important; background: var(--grad) !important; }

.nav-toggle { display: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 8px; cursor: pointer; color: var(--white); }
.scrolled .nav-toggle { color: var(--ink); background: var(--paper-2); border-color: var(--line); }
.nav-toggle svg { width: 24px; height: 24px; }

.nav a { white-space: nowrap; }
@media (max-width: 1240px) { .nav-phone { display: none !important; } }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: calc(var(--header-h) + 8px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 12px; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a, .scrolled .nav a { color: var(--ink); padding: 13px 16px; border-radius: 12px; }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero (3D) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 75% 40%, #f3b77e 0%, #b3714f 28%, #1d3a52 62%, #0a2238 100%);
  isolation: isolate;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s ease; display: block; }
.hero.is-3d-ready #hero-canvas { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 20, 36, .86) 0%, rgba(4, 20, 36, .62) 32%, rgba(4, 20, 36, .12) 62%, rgba(4, 20, 36, 0) 100%),
    linear-gradient(0deg, rgba(4, 20, 36, .75) 0%, rgba(4, 20, 36, 0) 32%),
    linear-gradient(180deg, rgba(4, 20, 36, .55) 0%, rgba(4, 20, 36, 0) 22%);
}
.hero-inner { padding-top: calc(var(--header-h) + 60px); padding-bottom: 170px; position: relative; }
.hero-copy { max-width: 640px; }
.hero h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-lead { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px 7px 8px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero-chip b { background: var(--grad); padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 0 rgba(57,217,138,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(57,217,138,.6); } 70% { box-shadow: 0 0 0 10px rgba(57,217,138,0); } 100% { box-shadow: 0 0 0 0 rgba(57,217,138,0); } }

.hero-bottom { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; }
.hero-bottom .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.glass {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 18px;
}
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; padding: 16px 8px; }
.hero-stats div { padding: 2px 24px; border-left: 1px solid rgba(255,255,255,.15); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.65rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.hero-stats span { font-size: .8rem; color: rgba(255,255,255,.7); }
.phase-card { padding: 14px 18px; width: 300px; }
.phase-card .label { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.phase-card p { margin: 0 0 10px; font-weight: 600; font-size: .93rem; min-height: 1.5em; }
.phase-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.phase-track span { display: block; height: 100%; background: var(--grad-text); transform-origin: 0 50%; transform: scaleX(0); }
.scroll-cue { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; z-index: 2; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.hero.no-webgl #hero-canvas { display: none; }

@media (max-width: 1000px) {
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 12px; }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4,20,36,.85) 0%, rgba(4,20,36,.7) 45%, rgba(4,20,36,0) 62%, rgba(4,20,36,0) 80%, rgba(4,20,36,.7) 100%); }
  .hero-inner { padding-top: calc(var(--header-h) + 28px); padding-bottom: 380px; }
  .hero-bottom { bottom: 18px; }
  .hero-bottom .container { flex-direction: column; align-items: stretch; }
  .phase-card { display: none; }
  .hero-chip { font-size: .78rem; }
  .hero-chip b { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 12px 4px; }
  .hero-stats div { padding: 2px 14px; }
  .hero-stats strong { font-size: 1.35rem; }
}

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white); isolation: isolate;
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: var(--navy);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(14, 138, 148, .55), transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(243, 166, 74, .25), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 75%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 640px; font-size: 1.15rem; margin: 0; }
.breadcrumb { display: inline-flex; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: rgba(255,255,255,.85); overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; white-space: nowrap; letter-spacing: -0.01em; }
.marquee-track span::after { content: "✦"; color: var(--brand); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Trust strip (legacy) ---------- */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.trust-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--white); color: var(--brand); box-shadow: var(--shadow-sm); }
.trust-icon svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 70px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.75); overflow: hidden; isolation: isolate; }
.section-dark::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(14,138,148,.35), transparent 65%); z-index: -1; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-head p { color: rgba(255,255,255,.65); }
@media (max-width: 760px) { .section { padding: 80px 0; } .section-head { margin-bottom: 44px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow { color: var(--amber); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; color: inherit;
}
a.card { display: block; color: inherit; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 22px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.card-icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-family: var(--font-head); font-size: .95rem; color: var(--brand); }
.card-link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card-link::after { transform: translateX(5px); }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.bento .card { display: flex; flex-direction: column; overflow: hidden; }
.bento .span-2 { grid-column: span 2; }
.bento .row-2 { grid-row: span 2; }
.bento .feature { background: var(--ink); color: var(--white); border-color: var(--ink); padding: 0; }
.bento .feature h3 { color: var(--white); font-size: 1.7rem; }
.bento .feature p { color: rgba(255,255,255,.7); }
.bento .feature .card-body { padding: 32px; position: relative; z-index: 1; margin-top: auto; }
.bento .feature .card-art { flex: 1; min-height: 220px; position: relative; }
.bento .feature .card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bento .feature .card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--ink) 100%); }
.bento .card .card-link { margin-top: auto; padding-top: 18px; }
.bento .accent { background: var(--grad); border-color: transparent; color: var(--white); }
.bento .accent h3, .bento .accent p, .bento .accent .card-link { color: var(--white); }
.bento .accent p { opacity: .85; }
.bento .accent .card-icon { background: rgba(255,255,255,.18); color: var(--white); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .row-2 { grid-row: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .span-2 { grid-column: span 1; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.75em; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 14px; color: var(--slate); }
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8a94' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section-dark .check-list li { color: rgba(255,255,255,.75); }
.section-dark .check-list li strong { color: var(--white); }
.section-dark .check-list li::before { background-color: rgba(255,255,255,.1); }

.media-frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; background: var(--paper-2); }
.media-frame > svg { width: 100%; height: auto; transition: transform .8s ease; }
.media-frame:hover > svg { transform: scale(1.04); }
.media-badge {
  position: absolute; left: 20px; bottom: 20px; display: flex; gap: 14px; align-items: center; padding: 14px 18px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 16px; box-shadow: var(--shadow);
}
.media-badge strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1; }
.media-badge span { font-size: .84rem; color: var(--slate); line-height: 1.35; }

/* ---------- Dark feature cards ---------- */
.ca-features .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.ca-features .card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.ca-features .card p { color: rgba(255,255,255,.62); }
.ca-features .card-icon { background: linear-gradient(135deg, rgba(44,197,207,.25), rgba(14,138,148,.12)); color: var(--gold); border: 1px solid rgba(44,197,207,.25); }

/* ---------- Steps ---------- */
.steps { position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.04em;
}
.step-num::before { content: "0"; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Projects ---------- */
.project-card { border-radius: var(--radius); overflow: hidden; background: var(--ink); position: relative; display: block; isolation: isolate; box-shadow: var(--shadow-sm); }
.project-card .thumb { aspect-ratio: 4 / 3.4; position: relative; overflow: hidden; }
.project-card .thumb svg { width: 100%; height: 100%; transition: transform .8s ease; }
.project-card:hover .thumb svg { transform: scale(1.07); }
.project-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0) 40%, rgba(11,18,32,.9) 100%); }
.project-card .tag {
  position: absolute; top: 16px; left: 16px; z-index: 2; color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; font-family: var(--font-head);
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.project-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.project-card h3 { color: var(--white); margin-bottom: 4px; font-size: 1.2rem; }
.project-card .meta { font-size: .86rem; color: rgba(255,255,255,.72); margin: 0; }
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn { border: 1px solid var(--line); background: var(--white); color: var(--slate); padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: var(--font-body); font-size: .92rem; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.project-card.hidden { display: none; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; position: relative; transition: transform .3s, box-shadow .3s; }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial::before { content: "\201C"; position: absolute; right: 26px; top: 6px; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--brand-soft); }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 16px; }
.testimonial blockquote { margin: 0 0 24px; font-size: 1.04rem; color: var(--ink); flex: 1; position: relative; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--white); font-family: var(--font-head); font-weight: 700; flex: none; }
.who strong { display: block; color: var(--ink); }
.who span { font-size: .85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: 64px;
  background: var(--ink); color: var(--white);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 100% 0%, rgba(14,138,148,.75), transparent 60%), radial-gradient(50% 90% at 0% 100%, rgba(243,166,74,.25), transparent 60%); }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; font-size: 1.1rem; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn-light { background: var(--white); color: var(--ink); }
.cta-band .btn-light:hover { background: var(--brand); color: var(--white); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 44px 26px; border-radius: 24px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 64px 22px 26px; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper-2); font-size: 1.2rem; color: var(--brand); font-weight: 500; transition: transform .25s, background .25s, color .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--brand); color: var(--white); }
.faq details > div { padding: 0 26px 22px; color: var(--muted); }

/* ---------- Services page ---------- */
.service-block { padding: 90px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.service-block:last-child { border-bottom: 0; }
.service-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.service-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.service-nav .container::-webkit-scrollbar { display: none; }
.service-nav a { white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--slate); background: var(--paper-2); transition: all .2s; }
.service-nav a:hover { background: var(--ink); color: var(--white); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pill { background: var(--paper-2); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* ---------- Areas ---------- */
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px 9px 14px; font-weight: 600; font-size: .94rem; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; transition: all .2s; }
.area-list li:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.area-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.region-card h3 { display: flex; align-items: center; gap: 10px; }
.region-card h3 svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.region-card ul { padding-left: 18px; margin: 12px 0 0; color: var(--muted); columns: 2; column-gap: 20px; }
.region-card li { margin-bottom: 4px; break-inside: avoid; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: 28px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 28px 20px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14,138,148,.14); }
.field.invalid input, .field.invalid select { border-color: #d92d20; background: #fff6f5; }
.field .error { display: none; color: #d92d20; font-size: .82rem; margin-top: 5px; }
.field.invalid .error { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; background: #e7f6ef; color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check svg { width: 36px; height: 36px; }
form.sent { display: none; }
form.sent + .form-success { display: block; }
.contact-info { list-style: none; padding: 0; margin: 0 0 8px; }
.contact-info li { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .trust-icon { background: var(--brand-soft); box-shadow: none; }
.contact-info strong { display: block; color: var(--ink); font-family: var(--font-head); }
.contact-info span, .contact-info a { color: var(--muted); }
.contact-info a:hover { color: var(--brand); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

/* ---------- Financing ---------- */
.price-card { text-align: center; }
.price-card.featured { border: 2px solid transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: var(--white); font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; font-family: var(--font-head); letter-spacing: .08em; }
.price-card .big { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 10px 0 6px; letter-spacing: -0.03em; }
.price-card .big small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.price-card .check-list { text-align: left; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 90px 0 0; font-size: .94rem; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(14,138,148,.18), transparent 65%); z-index: -1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: rgba(255,255,255,.6); transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 64px; padding: 26px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-wordmark { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 13vw, 11rem); letter-spacing: -0.05em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); white-space: nowrap; text-align: center; margin-top: 40px; user-select: none; }
.license-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 8px 14px; border-radius: 10px; color: var(--white); font-size: .84rem; font-weight: 600; }
.license-badge svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.mobile-cta {
  display: none; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 90; padding: 8px; gap: 8px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg);
}
.mobile-cta .btn { flex: 1; padding: 12px; font-size: .95rem; }
@media (max-width: 700px) { .mobile-cta { display: flex; } body { padding-bottom: 80px; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2.5rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.14rem; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2), .bento > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .bento > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4), .bento > .reveal:nth-child(4) { transition-delay: .24s; }
.bento > .reveal:nth-child(5) { transition-delay: .32s; }
.bento > .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track, .live-dot, .scroll-cue::after { animation: none; }
  .btn, .card, .media-frame > svg, .project-card .thumb svg { transition: none; }
}

/* ---------- Hero address search ---------- */
.hero-inner { z-index: 3; }
.address-search { position: relative; margin-top: 30px; max-width: 600px; z-index: 5; }
.as-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.as-field {
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border-radius: 999px;
  background: rgba(255,255,255,.96); box-shadow: 0 20px 50px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.4);
  transition: box-shadow .2s ease;
}
.as-field:focus-within { box-shadow: 0 20px 50px -12px rgba(0,0,0,.55), 0 0 0 4px rgba(44,197,207,.45); }
.as-field > svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.as-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem;
  color: var(--ink); padding: 10px 0;
}
.as-field input::placeholder { color: #8a93a3; }
.as-field .btn { padding: 13px 22px; }
.as-list {
  position: absolute; left: 0; right: 0; top: calc(100% - 26px); margin: 0; padding: 8px; list-style: none;
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 10;
}
.as-list li { padding: 11px 14px; border-radius: 12px; cursor: pointer; color: var(--ink); line-height: 1.35; }
.as-list li strong { display: block; font-weight: 600; }
.as-list li span { font-size: .85rem; color: var(--muted); }
.as-list li:hover, .as-list li[aria-selected="true"] { background: var(--paper-2); }
.as-list li.as-brand { cursor: default; text-align: right; font-size: .72rem; color: var(--muted); padding: 6px 12px 2px; }
.as-list li.as-brand:hover { background: none; }
.as-note { margin: 14px 0 0 18px; font-size: .88rem; color: rgba(255,255,255,.72); }
.as-note a { color: var(--white); font-weight: 600; }
@media (max-width: 560px) {
  .as-field { flex-wrap: wrap; border-radius: 22px; padding: 10px 10px 10px 16px; }
  .as-field input { flex-basis: calc(100% - 40px); }
  .as-field .btn { width: 100%; }
  .as-list { top: calc(100% - 26px); }
  .as-note { margin-left: 4px; }
}

/* ---------- Roof estimator modal ---------- */
html.modal-open { overflow: hidden; }
.roof-modal {
  width: min(1240px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 28px; overflow: hidden; background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.6);
}
.roof-modal::backdrop { background: rgba(4,20,36,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.roof-modal[open] { animation: rm-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes rm-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.rm-shell { display: grid; grid-template-columns: 1fr 420px; height: 100%; }
.rm-map-wrap { position: relative; background: #1c2333; min-height: 300px; }
.rm-map { position: absolute; inset: 0; }
.rm-map-empty { position: absolute; inset: 0; display: none; place-items: center; text-align: center; color: rgba(255,255,255,.75); padding: 30px; }
.rm-map-empty svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.rm-map-empty p { position: relative; max-width: 300px; font-weight: 600; background: rgba(4,20,36,.6); padding: 12px 18px; border-radius: 14px; }
.roof-modal.is-offline .rm-map-empty { display: grid; }
.rm-close {
  position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow); z-index: 2;
}
.rm-close:hover { background: var(--ink); color: var(--white); }
.rm-panel { padding: 32px 30px 26px; overflow-y: auto; border-left: 1px solid var(--line); }
.rm-panel h2 { font-size: 1.7rem; margin-bottom: 4px; }
.rm-address { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.rm-auto { font-size: .9rem; color: var(--slate); border-radius: 14px; padding: 12px 14px; background: var(--paper); margin-bottom: 18px; line-height: 1.5; }
.rm-auto:empty, .rm-auto[data-status="idle"] { display: none; }
.rm-auto[data-status="done"] { background: #edf8f2; color: #0d5c42; }
.rm-auto[data-status="unavailable"] { background: #fff6ec; color: #8a4b12; }
.rm-auto em { font-style: normal; color: #8a4b12; }
.rm-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; vertical-align: -2px; margin-right: 6px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rm-result { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.rm-result > div { background: var(--ink); color: var(--white); border-radius: 18px; padding: 16px 18px; }
.rm-result > div:last-child { background: var(--grad); }
.rm-result > div > span { font-size: .78rem; color: rgba(255,255,255,.7); display: block; }
.rm-result > div:last-child > span { color: rgba(255,255,255,.85); }
.rm-result strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.rm-result strong small { font-size: .9rem; font-weight: 600; opacity: .7; letter-spacing: 0; }
.rm-source { font-size: .8rem; color: var(--muted); margin: 8px 0 18px; min-height: 1.2em; }
.rm-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rm-controls .field { margin-bottom: 12px; }
.rm-controls select { padding: 11px 12px; font-size: .92rem; }
.rm-trace { border: 1px dashed #d8d2c8; border-radius: 18px; padding: 16px; margin: 6px 0 18px; }
.rm-trace-head { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.rm-trace-head span { color: var(--muted); }
.rm-trace-head b { color: var(--ink); }
.rm-hint { font-size: .84rem; color: var(--muted); margin: 6px 0 12px; }
.rm-trace-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-trace-btns .btn { padding: 10px 16px; font-size: .9rem; flex: 1; }
.rm-trace-btns .btn.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rm-icon-btn { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--slate); }
.rm-icon-btn:disabled { opacity: .45; cursor: default; }
.rm-nokey { font-size: .8rem; background: var(--paper-2); padding: 10px 12px; border-radius: 12px; color: var(--slate); }
.rm-disclaimer { font-size: .76rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.roof-modal.is-offline .rm-trace { display: none; }
@media (max-width: 900px) {
  .roof-modal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .rm-shell { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .rm-panel { border-left: 0; padding: 22px 18px 30px; }
  .rm-result strong { font-size: 1.6rem; }
}

/* Contact form roof summary */
.rm-summary { background: #edf8f2; color: #0d5c42; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; }

/* Roof layout (plane diagram) */
.rm-layout { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 0 0 18px; }
.rm-layout-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.rm-switch { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.rm-switch input { accent-color: var(--brand); }
.rm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; color: var(--slate); margin-bottom: 10px; }
.rm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rm-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.rm-layout-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.rm-layout-list li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 10px; font-size: .87rem; cursor: default; outline: none; }
.rm-layout-list li:hover, .rm-layout-list li:focus { background: var(--paper-2); }
.rm-chip { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--c); color: #111; font-weight: 700; font-size: .75rem; }
.rm-pl-dir { color: var(--ink); font-weight: 600; }
.rm-pl-pitch { color: var(--muted); font-variant-numeric: tabular-nums; }
.rm-pl-area { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 82px; }
.rm-layout-more { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
.rm-layout-more:empty { display: none; }
.rm-layout-note { font-size: .74rem; color: var(--muted); margin: 8px 0 0; }
.rm-plane-label {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #111; font: 700 11px/1 var(--font-body); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45);
  pointer-events: none; white-space: nowrap;
}

/* Estimator: info tips, measurement picker, footprint line */
.rm-info {
  position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 3px; padding: 0;
  border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit;
  font: 700 10px/1 var(--font-body); cursor: help; vertical-align: 1px;
}
.rm-info:hover, .rm-info:focus-visible { background: rgba(127,127,127,.18); outline: none; }
.rm-info::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: -8px; z-index: 20; width: 240px;
  padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg);
  font: 500 12.5px/1.45 var(--font-body); text-align: left; white-space: normal; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none;
}
.rm-info--right::after { left: auto; right: -8px; }
.rm-info:hover::after, .rm-info:focus::after { opacity: 1; visibility: visible; transform: none; }
.rm-result .rm-info::after { background: var(--white); color: var(--ink); }
.rm-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-top: 10px; background: var(--paper-2); border-radius: 16px; }
.rm-sources button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border: 0; border-radius: 12px;
  background: transparent; font: inherit; cursor: pointer; text-align: left; color: var(--slate);
}
.rm-sources button small { font-size: .74rem; }
.rm-sources button b { font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.rm-sources button[aria-checked="true"] { background: var(--white); box-shadow: var(--shadow-sm); color: var(--brand); }
.rm-sources button[aria-checked="true"] small::before { content: "✓ "; }
.rm-footprint { display: flex; align-items: center; gap: 4px; font-size: .84rem; color: var(--slate); margin: -10px 0 18px; }
.rm-footprint b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
