/* RepsRoof public site. One accent (amber), navy ink, white background; light + dark; mobile first. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eceff3;
  --line: #dfe3e8;
  --ink: #0f1a24;
  --ink-2: #364350;
  --ink-3: #56636f;
  --brand: #22405a;
  --link: #1f4f7a;
  --accent: #f0a42e;
  --accent-hover: #e0921a;
  --accent-ink: #1b1200;
  --accent-soft: #fdf1dc;
  --good: #2f6b45;
  --warn-soft: #fff6e5;
  --focus: #1f6fd1;
  --shadow: 0 1px 2px rgba(15, 26, 36, .06), 0 8px 24px rgba(15, 26, 36, .08);
  --map-live: #e8edf3;
  --map-ctx: #f5f6f8;
  --map-stroke: #b9c3ce;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1218; --surface: #141c24; --surface-2: #1b2530; --line: #2a3643;
    --ink: #eef2f6; --ink-2: #b9c4cf; --ink-3: #93a1ae; --brand: #eef2f6; --link: #8fc0ec;
    --accent: #f3ad3d; --accent-hover: #f7bd5c; --accent-ink: #1b1200; --accent-soft: #33260f;
    --good: #5fc489; --warn-soft: #2c2210; --focus: #7db6ff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --map-live: #223040; --map-ctx: #151d26; --map-stroke: #3b4a5a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1218; --surface: #141c24; --surface-2: #1b2530; --line: #2a3643;
  --ink: #eef2f6; --ink-2: #b9c4cf; --ink-3: #93a1ae; --brand: #eef2f6; --link: #8fc0ec;
  --accent: #f3ad3d; --accent-hover: #f7bd5c; --accent-ink: #1b1200; --accent-soft: #33260f;
  --good: #5fc489; --warn-soft: #2c2210; --focus: #7db6ff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --map-live: #223040; --map-ctx: #151d26; --map-stroke: #3b4a5a;
  color-scheme: dark;
}

/* language: both strings ship in the HTML; the root data-lang hides the other one */
html[data-lang="en"] .es, html[data-lang="es"] .en { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 8.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 5.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--brand); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav { display: none; gap: 4px; margin-left: 18px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 10px; min-height: 40px; min-width: 44px; padding: 0 10px; cursor: pointer; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }
.signin { display: none; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 10px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.top .mnav { display: none; border-top: 1px solid var(--line); padding: 8px 0 14px; }
.top .mnav.open { display: block; min-height: 0; }
.mnav a { display: block; padding: 12px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
@media (min-width: 900px) {
  .nav, .signin { display: inline-flex; }
  .menu-btn, .top .mnav, .top .mnav.open { display: none; }
}


/* sections */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--ink-2); max-width: 40em; }
.alt { background: var(--surface); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* hero */
.hero { padding-top: 40px; padding-bottom: 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding-top: 72px; } .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-cta .btn { flex: 1 1 180px; }
@media (min-width: 600px) { .hero-cta .btn { flex: 0 0 auto; } }
.fine { color: var(--ink-3); font-size: 15px; font-weight: 600; }
.fine b { color: var(--good); }

/* phone frame + screenshots */
.phone { position: relative; width: min(100%, 320px); margin: 0 auto; border-radius: 44px; padding: 12px; background: #0b0f14; box-shadow: var(--shadow), 0 0 0 1px #2a3440 inset; }
.phone img { border-radius: 33px; width: 100%; height: auto; background: #fff; }
.phone.sm { width: min(100%, 270px); border-radius: 38px; padding: 10px; }
.phone.sm img { border-radius: 29px; }
.shot { position: relative; }
.sample { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(15, 26, 36, .82); color: #fff; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.desk { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.desk .bar { height: 26px; background: var(--surface-2); display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.desk .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.desk .sample { top: -13px; }

/* coverage */
.cov { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cov .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cov .wrap { grid-template-columns: 1.2fr .8fr; } }
.cov p { font-size: clamp(1.1rem, 3.8vw, 1.45rem); font-weight: 650; color: var(--ink); margin: 0; letter-spacing: -0.01em; line-height: 1.4; }
.cov p .muted { color: var(--ink-3); font-weight: 600; }
.cov-map { width: 100%; max-width: 420px; margin: 0 auto; }
.cov-map .st-live { fill: var(--map-live); stroke: var(--map-stroke); stroke-width: 1.4; }
.cov-map .st-ctx { fill: var(--map-ctx); stroke: var(--map-stroke); stroke-width: .8; opacity: .7; }
.cov-map .halo { fill: var(--accent); opacity: .25; }
.cov-map .dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.cov-map text { font: 700 21px ui-sans-serif, system-ui, sans-serif; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }

/* steps */
.steps { display: grid; gap: 22px; margin-top: 36px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.step .n { counter-increment: s; display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.step .n::before { content: counter(s); }
.step p { color: var(--ink-2); margin: 0; }
.step .phone { margin-top: auto; }

/* services: grid on desktop, swipe row on phone */
.groups { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; margin: 32px -16px 0;
  overscroll-behavior-x: contain; scrollbar-width: thin; }
.groups > * { scroll-snap-align: start; }
@media (min-width: 720px) { .groups { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 36px 0 0; padding: 0; gap: 20px; } }
@media (min-width: 1100px) { .groups { grid-template-columns: repeat(4, 1fr); } }
.group { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; }
.group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.group h3 .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.group h3 .ic svg { width: 20px; height: 20px; stroke: var(--ink); }
.group ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.group li { padding-left: 0; }
.group li b { display: block; font-size: 16px; }
.group li span.d { display: block; color: var(--ink-3); font-size: 15px; line-height: 1.45; }
.swipe-hint { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
@media (min-width: 720px) { .swipe-hint { display: none; } }

/* roles tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 28px 0 24px; background: var(--surface); border-radius: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-2); background: transparent; border: 0; border-radius: 10px; min-height: 44px; padding: 0 16px; cursor: pointer; white-space: nowrap; flex: 1 0 auto; }
.tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.panel { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .panel { grid-template-columns: 1fr 1fr; gap: 56px; } .panel.wide { grid-template-columns: 1.4fr .9fr; } }
.panel[hidden] { display: none; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 17px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checks li b { color: var(--ink); }

/* door card close-up */
.anno { display: grid; gap: 28px; align-items: center; margin-top: 32px; }
@media (min-width: 900px) { .anno { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.anno ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: a; }
.anno li { counter-increment: a; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.anno li::before { content: counter(a); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.anno li b { display: block; }
.anno li span { color: var(--ink-3); font-size: 15px; }
.pin { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 14px/28px ui-sans-serif, system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 8px rgba(0,0,0,.3); z-index: 3; }

/* integrations */
.logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; justify-content: center; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--bg); min-width: 150px; }
.chip b { font-size: 17px; }
.chip span { color: var(--ink-3); font-size: 14px; }

/* pricing */
.price { max-width: 560px; margin: 32px auto 0; border: 2px solid var(--ink); border-radius: 24px; padding: 32px 24px; text-align: center; background: var(--bg); }
.price .big { font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.price p { color: var(--ink-2); }
.price .btn { margin-top: 10px; }

/* trust */
.trust { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust > div { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--bg); }
.trust p { color: var(--ink-3); margin: 0; font-size: 16px; }

/* faq */
.faq { max-width: 760px; margin: 28px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* closing band + footer */
.band { background: var(--brand); color: #fff; text-align: center; }
:root[data-theme="dark"] .band { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: var(--surface-2); } }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.82); }
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .copy { width: 100%; margin-top: 8px; }

/* forms + legal pages */
.page { padding: 36px 0 64px; }
.page .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-2); }
.updated { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label, .legend { font-weight: 700; font-size: 15px; }
.field .hint { color: var(--ink-3); font-size: 14px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); width: 100%; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
.row2 { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; text-align: center; font-size: 15px; padding: 4px; }
.seg input:checked + label { border-color: var(--ink); background: var(--accent-soft); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.consent { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.note { background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink-2); }
.err { color: #b42318; font-weight: 600; font-size: 15px; }
:root[data-theme="dark"] .err { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #ff8a80; } }
.done { text-align: center; padding: 40px 0; }
.done .ok { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.done .ok svg { width: 32px; height: 32px; stroke: var(--ink); }
.ts { min-height: 66px; }
[hidden] { display: none !important; }

/* door card callouts (positions measured on rep-door.webp) */
.pins { position: relative; }
.pins .pin { transform: translate(-50%, -50%); }
.pins .p1 { top: 19.3%; left: 59%; }
.pins .p2 { top: 63.5%; left: 5%; }
.pins .p3 { top: 49.6%; left: 5%; }
.pins .p4 { top: 14.3%; left: 50%; }
.linkish { font: inherit; color: var(--link); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* phone top bar: logo + language + Request access + menu must fit 360 px */
@media (max-width: 520px) {
  .top .wrap { gap: 6px; }
  .logo { font-size: 18px; gap: 7px; }
  .logo svg { width: 26px; height: 26px; }
  .top-right { gap: 6px; }
  .lang { min-width: 40px; padding: 0 8px; }
  .top .btn-sm { padding: 0 10px; font-size: 14px; }
  .menu-btn { width: 40px; }
}
@media (max-width: 380px) { .logo svg { display: none; } }
