/* RE:ROOF — site styles */
:root {
  --black: #101112;
  --ink: #17191B;
  --red: #E04742;
  --red-hover: #C93C37;
  --red-text: #B8322E;
  --red-light: #F07A75;
  --paper: #F5F4F1;
  --white: #FFFFFF;
  --line: #D8D6D0;
  --line-dark: #3A3F45;
  --muted: #4A5056;
  --body: #3A3F45;
  --on-dark: #C9CDD1;
  --on-dark-muted: #A9AEB2;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.sec { padding: 112px 0; }
.sec--white { background: var(--white); }
.sec--ink { background: var(--ink); color: var(--white); }
.sec--black { background: var(--black); color: var(--white); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 12px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.colon { color: var(--red); }

/* Type */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red-text); }
.sec--ink .eyebrow, .sec--black .eyebrow, .hero .eyebrow { color: var(--red-light); }
.h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 900; line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -0.025em; text-transform: uppercase; }
.h1--hero { font-size: clamp(44px, 5.4vw, 72px); }
.lead { font-size: 19px; line-height: 1.55; }
.body { font-size: 18px; line-height: 1.6; color: var(--body); }
.sec--ink .body, .sec--black .body { color: var(--on-dark); }
.note { font-size: 13px; line-height: 1.5; color: #5C6166; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  text-decoration: none;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); color: var(--white); }
.btn--ghost { color: var(--white); border: 1px solid #4A4F55; background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--line { background: transparent; color: var(--ink); border: 1px solid #B5B2AB; font-weight: 700; text-transform: none; letter-spacing: 0; }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.link-cta { font-weight: 800; font-size: 15px; letter-spacing: 0.6px; text-transform: uppercase; text-underline-offset: 6px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid #24272B; }
.header__in { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { color: var(--white); text-decoration: none; font-weight: 900; font-size: 28px; letter-spacing: -1.5px; line-height: 1; }
.logo:hover { color: var(--white); }
.nav { display: flex; gap: 32px; }
.nav a { color: #D9DBDD; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

/* Hero */
.hero { background: var(--black); color: var(--white); }
.hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .eyebrow { color: var(--on-dark-muted); }
.hero__copy .lead { color: var(--on-dark); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 16px; border-top: 1px solid #2A2E33; font-size: 14px; color: var(--on-dark-muted); }
.hero__media { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.caption-dark { font-size: 12px; font-weight: 600; letter-spacing: 0.3px; color: var(--on-dark-muted); }

/* Before/after slider */
.ba { position: relative; height: 580px; overflow: hidden; user-select: none; background: #222; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 50% 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--white); color: var(--white);
  display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.ba__tag { position: absolute; top: 16px; padding: 8px 12px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); pointer-events: none; }
.ba__tag--l { left: 16px; background: rgba(16,17,18,.86); }
.ba__tag--r { right: 16px; background: var(--red); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* System steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 2px solid var(--ink); }
.steps li { flex: 1 1 200px; padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.steps__num { font-size: 56px; font-weight: 900; line-height: 1; color: var(--red); letter-spacing: -2px; }
.steps h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.3px; }
.steps p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-head .lead { color: var(--muted); max-width: 400px; }

/* Photo figures */
.figs { display: flex; flex-wrap: wrap; gap: 16px; }
.fig { flex: 1 1 300px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fig__img { position: relative; }
.fig__img img { width: 100%; height: 280px; object-fit: cover; }
.chip { position: absolute; left: 12px; top: 12px; padding: 6px 10px; background: rgba(16,17,18,.86); color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.chip--bottom { top: auto; bottom: 16px; left: 16px; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: none; padding: 8px 12px; }
.fig figcaption { font-size: 15px; line-height: 1.5; color: var(--muted); }
.fig figcaption b { color: var(--ink); }

/* Qualification */
.panel { border: 1px solid var(--line-dark); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.panel__label { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--red-light); }
.panel__label--muted { color: var(--on-dark-muted); }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-list li { display: flex; gap: 12px; align-items: baseline; }
.dash-list li::before { content: "—"; color: var(--red); font-weight: 900; }
.sec--ink .dash-list, .pricing__side .dash-list { color: #E3E5E7; }

/* Pricing */
.pricing { background: var(--white); border-top: 6px solid var(--red); display: flex; flex-wrap: wrap; }
.pricing__main { flex: 1 1 520px; padding: 56px; display: flex; flex-direction: column; gap: 24px; }
.pricing__side { flex: 1 1 360px; background: var(--ink); color: var(--white); padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.price-from { font-size: 14px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.price { font-size: clamp(56px, 7vw, 96px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.price-sub { font-size: 16px; font-weight: 700; color: var(--muted); }
.big-stat { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -2px; color: var(--red-light); }

/* Red band */
.band { background: var(--red); color: var(--white); }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
.band h2 { font-size: 36px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; line-height: 1.05; }
.band a.text-link { color: var(--white); font-weight: 700; text-underline-offset: 5px; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; min-height: 44px; font-size: 19px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 28px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.input {
  height: 52px; padding: 0 16px; width: 100%; font: inherit; font-size: 16px;
  background: var(--white); border: 1px solid #B5B2AB; color: var(--ink);
}
select.input { appearance: auto; }
.form--dark .field { color: #D9DBDD; }
.form--dark .input { background: #1C1F22; border-color: var(--line-dark); color: var(--white); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); }
.form--dark .check { color: var(--on-dark); }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--red); }
.check a { color: inherit; }
.upload { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border: 1px dashed #A9A6A0; background: var(--paper); font-weight: 500; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hidden-field { display: none; }

.card-form { background: var(--white); border-top: 6px solid var(--red); padding: 48px; }
.card-form--paper { background: var(--paper); }
.progress { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.progress span { height: 6px; background: #E3E1DC; }
.progress span.on { background: var(--red); }
.step-label { font-size: 14px; font-weight: 700; color: var(--muted); }

.num-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.num-list li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.num-list .n { font-weight: 900; font-size: 22px; color: var(--red); width: 24px; flex: none; }

/* Page hero (inner pages) */
.page-hero { background: var(--black); color: var(--white); }
.page-hero__in { display: flex; flex-direction: column; gap: 28px; padding-top: 104px; padding-bottom: 104px; }
.page-hero .lead { color: var(--on-dark); max-width: 640px; }
.page-hero__img { position: relative; margin-top: 24px; }
.page-hero__img img { width: 100%; height: 560px; object-fit: cover; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--body); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }

/* Footer */
.footer { background: var(--black); color: var(--on-dark-muted); border-top: 1px solid #24272B; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; font-size: 14px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__tag { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { color: #D9DBDD; }
.footer nav a:hover { color: var(--white); }

/* Mobile sticky CTA */
.mcta { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 72px 0; }
  .header .btn { display: none; }
  .ba { height: 360px; }
  .pricing__main, .pricing__side, .card-form { padding: 32px 24px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .page-hero__img img { height: 300px; }
  .mcta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  }
  .footer { padding-bottom: 80px; }
}
