/* Rafter Sites studio pages (home, /roofing/, /privacy/).
   Slate and copper: the colors of a roof and its flashing. Copper is used for actions only.
   One typeface (Schibsted Grotesk). Boxes only where something must stand apart: the phones and the two prices. */
:root {
  --slate: #161b1f; --slate-2: #1f262b; --slate-line: #2e373e;
  --on-slate: #eeebe4; --on-slate-2: #a9b1b8;
  --paper: #f4f1ea; --white: #ffffff;
  --ink: #14181b; --ink-2: #3b4249; --muted: #5d656d; --line: #dbd6cb;
  --copper: #a44e2b; --copper-hover: #8c4123; --copper-light: #e3926a;
  --radius: 6px;
  --gap: 64px; /* every multi-column layout on desktop uses this gap, so columns line up across sections */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font: 400 17px/1.6 'Schibsted Grotesk', system-ui, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c3338; }
.btn-ghost { border-color: #4a545c; color: var(--on-slate); }
.btn-ghost:hover { border-color: var(--on-slate); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { font-weight: 600; color: var(--copper); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.arrow-link span { display: inline-block; transition: transform .15s; }
.arrow-link:hover span { transform: translateX(3px); }

/* Header */
.top { background: var(--slate); color: var(--on-slate); border-bottom: 1px solid var(--slate-line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; text-decoration: none; }
.logo .mark { width: 28px; height: 21px; color: var(--copper-light); }
.top-nav { display: none; gap: 28px; margin-left: auto; }
.top-nav a { color: var(--on-slate-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.top-nav a:hover { color: var(--on-slate); }
.top .btn-sm { margin-left: auto; }
.top .btn-sm .long { display: none; }

/* Hero: text, then three phones cut off by the bottom edge. */
.hero { background: var(--slate); color: var(--on-slate); overflow: hidden; }
.hero-in { display: grid; gap: 48px; }
.hero-text { padding-top: 56px; }
.hero h1 { max-width: 13ch; }
.kicker { margin: 0 0 18px; font-size: 1rem; font-weight: 600; color: var(--copper-light); }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.28rem); line-height: 1.55; color: var(--on-slate-2); max-width: 36rem; margin: 24px 0 32px; }
.terms { display: flex; flex-wrap: wrap; gap: 20px 0; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--slate-line); }
.terms div { display: flex; flex-direction: column-reverse; padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--slate-line); }
.terms div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.terms dt { font-size: .88rem; color: var(--on-slate-2); }
.terms dd { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }

.phone { background: #0a0d0f; padding: 3.2%; border-radius: 13% / 6%; box-shadow: inset 0 0 0 1px #2a3238, 0 1px 0 #3a444b, 0 40px 70px -30px rgba(0,0,0,.55); }
.phone img { width: 100%; border-radius: 10.5% / 4.9%; }

.fan { --w: clamp(136px, 37vw, 236px); position: relative; width: calc(var(--w) * 2.3); height: calc(var(--w) * 1.75); margin: 0 auto; }
.fan .phone { position: absolute; width: var(--w); }
.fan-l { left: 0; top: calc(var(--w) * .42); }
.fan-r { right: 0; top: calc(var(--w) * .56); }
.fan-c { left: 50%; top: 0; transform: translateX(-50%); z-index: 1; box-shadow: inset 0 0 0 1px #2a3238, 0 1px 0 #3a444b, 0 30px 80px -10px rgba(0,0,0,.7); }

/* Sections */
.sec { padding: 72px 0; }
.sec-paper { background: var(--paper); }
.sec-white { background: var(--white); }
.sec-slate { background: var(--slate); color: var(--on-slate); }
.sec-head { max-width: 44rem; margin-bottom: 44px; }
.sec-head p { font-size: 1.1rem; color: var(--muted); margin: 18px 0 0; }
.sec-slate .sec-head p { color: var(--on-slate-2); }

/* Look switcher */
.looks-tabs { display: none; }
.look[hidden] { display: none !important; }
.look { display: grid; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.look .phone { width: min(260px, 70vw); margin: 0 auto; box-shadow: inset 0 0 0 1px #2a3238, 0 30px 60px -30px rgba(20,24,27,.45); }
.look h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.look-feel { font-size: 1.15rem; color: var(--ink-2); margin: 12px 0 24px; max-width: 32rem; }
.look dl, .facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.look dl div, .facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.look dt, .facts dt { color: var(--muted); font-size: .95rem; }
.look dd, .facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.hero-in > *, .look > *, .anno > *, .about > *, .faq > *, .cta-in > *, .foot-in > * { min-width: 0; }
.js .looks-tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.js .look { border-top: 0; }
.looks-tabs button { font: inherit; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 12px 14px 0; cursor: pointer; color: var(--muted); display: flex; flex-direction: column; gap: 2px; position: relative; }
.looks-tabs button::after { content: ''; position: absolute; left: 0; right: 12px; bottom: -1px; height: 3px; background: transparent; }
.looks-tabs button[aria-selected="true"] { color: var(--ink); }
.looks-tabs button[aria-selected="true"]::after { background: var(--copper); }
.looks-tabs button:hover { color: var(--ink); }
.tab-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.tab-for { font-size: .86rem; line-height: 1.35; }

/* What we build: a ruled list, not icon cards */
.kinds { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.kinds li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.kinds h3 { font-size: 1.3rem; margin-bottom: 6px; }
.kinds p { color: var(--muted); margin: 0; max-width: 28rem; }
.kinds li:last-child h3 { color: var(--copper); }
.work-note { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 1.08rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }

/* Roofing page: four sample phones in a row */
.work-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 20px; }
.work-row .phone { margin-bottom: 20px; box-shadow: inset 0 0 0 1px #2a3238, 0 30px 60px -30px rgba(20,24,27,.45); transition: transform .2s; }
.work-row a:hover .phone { transform: translateY(-4px); }
.work-row h3 { font-size: 1.25rem; margin-bottom: 6px; }
.work-row p { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }

/* Annotated phone */
.anno { display: grid; gap: 48px; }
.anno-phone .phone { width: min(300px, 76vw); margin: 0 auto; box-shadow: inset 0 0 0 1px #2a3238, 0 30px 60px -30px rgba(20,24,27,.45); }
.anno-shot { position: relative; }
.anno-shot img { border-radius: 10.5% / 4.9%; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--copper); color: #fff; font-weight: 700; font-size: .95rem; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0,0,0,.35); font-variant-numeric: tabular-nums; }
.points { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.points li { counter-increment: p; position: relative; padding: 0 0 26px 52px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.points li::before { content: counter(p); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--copper); color: var(--copper); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.points h3 { margin-bottom: 6px; }
.points p { color: var(--muted); margin: 0; max-width: 34rem; }
.more-title { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; margin: 40px 0 8px; }
.more { list-style: none; margin: 0; padding: 0; display: grid; }
.more li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.more li:first-child { border-top: 1px solid var(--line); }
.more strong { display: block; font-weight: 600; margin-bottom: 2px; }
.more span { color: var(--muted); font-size: .96rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.steps li { border-top: 1px solid var(--slate-line); padding-top: 24px; }
.step-n { display: block; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--copper-light); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; color: #fff; }
.steps p { color: var(--on-slate-2); margin: 0; max-width: 30rem; }

/* Prices */
.plans { display: grid; gap: 20px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.3rem; }
.plan-price { margin: 16px 0 6px; color: var(--muted); }
.plan-price span { font-size: clamp(3rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.plan-sum { color: var(--ink-2); margin-bottom: 24px; }
.plan .btn { align-self: stretch; }
.plan-list { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.plan-list strong { display: block; font-weight: 600; line-height: 1.35; }
.plan-list span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.5; margin-top: 2px; }
.tick { width: 20px; height: 20px; color: var(--copper); margin-top: 2px; }
.plan-dark { background: var(--slate); border-color: var(--slate); color: var(--on-slate); }
.plan-dark .plan-price, .plan-dark .plan-list span { color: var(--on-slate-2); }
.plan-dark .plan-price span, .plan-dark h3 { color: #fff; }
.plan-dark .plan-sum { color: var(--on-slate); }
.plan-dark .plan-list { border-color: var(--slate-line); }
.plan-dark .tick { color: var(--copper-light); }
.plans-note { margin: 24px 0 0; color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; gap: 32px; }
.about-big { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; margin: 24px 0 0; max-width: 24ch; }
.about-body > p { font-size: 1.08rem; color: var(--ink-2); max-width: 36rem; }
.about-body img { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.facts { margin: 32px 0 0; }
.facts dd a { color: var(--copper); text-underline-offset: 3px; }

/* FAQ */
.faq { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--copper); }
.faq details p { color: var(--ink-2); margin: -4px 0 22px; max-width: 40rem; }

/* Closing call to action */
.cta { background: var(--slate); color: var(--on-slate); padding: 80px 0; border-bottom: 1px solid var(--slate-line); }
.cta h2 { max-width: 18ch; color: #fff; }
.cta p { color: var(--on-slate-2); font-size: 1.12rem; margin: 18px 0 32px; max-width: 34rem; }
.cta .actions { align-items: center; gap: 16px 28px; }
.cta-mail { font-weight: 600; color: var(--on-slate); text-underline-offset: 5px; text-decoration-color: var(--slate-line); text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.cta-mail:hover { text-decoration-color: var(--copper-light); }

/* Footer */
.foot { background: var(--slate); color: var(--on-slate-2); font-size: .95rem; padding: 48px 0 32px; }
.foot-in { display: grid; gap: 28px; }
.foot .logo { color: var(--on-slate); margin-bottom: 12px; }
.foot p { margin: 0 0 4px; max-width: 30rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--on-slate); text-decoration: underline; text-underline-offset: 3px; }
.foot-copy { margin-top: 40px; }
.foot-copy p { max-width: none; padding-top: 20px; border-top: 1px solid var(--slate-line); font-size: .88rem; }

/* Privacy */
.legal-in { max-width: 46rem; margin: 0; padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px)); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.legal-date { color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 36px 0 8px; }
.legal a { color: var(--copper); }

@media (min-width: 640px) {
  .top .btn-sm .long { display: inline; }
  .top .btn-sm .short { display: none; }
  .terms div { padding-right: 24px; margin-right: 24px; }
  .terms dd { font-size: 1.6rem; }
  .wrap { padding: 0 32px; }
  .js .looks-tabs { grid-template-columns: repeat(4, 1fr); }
  .look dl div, .facts div { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); row-gap: 0; column-gap: 24px; }
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
  .plan { padding: 40px 36px; }
  .foot-in { grid-template-columns: 1fr auto; }
  .kinds, .more { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .work-row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
  .more li:nth-child(2) { border-top: 1px solid var(--line); }
  .legal-in { padding-left: max(32px, calc((100vw - 1200px) / 2 + 32px)); }
}

@media (min-width: 900px) {
  .top-nav { display: flex; }
  .top .btn-sm { margin-left: 8px; }
  .sec { padding: 112px 0; }
  .sec-head { display: grid; align-items: start; max-width: none; margin-bottom: 64px; }
  .sec-head p { margin: 0; padding-top: .45rem; max-width: 34rem; }
  /* One column line for the whole page: every two-column section splits 1fr / 1fr with var(--gap). */
  .hero-in, .sec-head, .look, .anno, .plans, .about, .faq, .cta-in, .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
  .hero-in { align-items: center; min-height: 640px; }
  .hero-text { padding: 88px 0 96px; }
  .fan { --w: min(244px, calc((100vw - 128px) / 4.6)); width: calc(var(--w) * 2.15); align-self: end; justify-self: end; height: calc(var(--w) * 2.5); margin: 0 0 -70px; }
  .hero h1 { font-size: clamp(3rem, 4.9vw, 4.25rem); }
  .terms dd { font-size: 1.8rem; }

  .js .looks { display: grid; grid-template-columns: 1fr; }
  .look { align-items: center; padding: 56px 0 0; }
  .look .phone { width: 300px; margin: 0 auto; }

  .anno { align-items: start; }
  .anno-phone { position: sticky; top: 32px; }
  .anno-phone .phone { width: 340px; }
  .kinds, .more-3, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
  .kinds li { padding: 28px 0 32px; }
  .work-row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
  .more-3 li:nth-child(3) { border-top: 1px solid var(--line); }



  .faq { align-items: start; }
  .cta { padding: 120px 0; }
  .cta-in { display: grid; align-items: end; }
  .cta-in h2 { grid-row: span 2; }
  .cta-in p { margin-top: 0; }
  .cta h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Before/after page (preview.raftersites.com/<slug>/before-after/) and the preview index */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-top .btn-sm { margin-left: auto !important; }
.rp-hero .wrap { padding-top: 56px; padding-bottom: 64px; }
.rp-hero h1 { max-width: 14ch; }
.rp-hero .lede { max-width: 40rem; }

.rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rp-side { margin: 0; min-width: 0; }
.rp-side figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; min-height: 5.6em; }
.rp-side figcaption strong { font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.rp-side figcaption > span:last-child { color: var(--muted); font-size: .9rem; }
.rp-side .arrow-link { align-self: flex-start; font-size: .95rem; }
.rp-tag { align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--muted); border: 1.5px solid currentColor; border-radius: 4px; padding: 1px 8px; margin-bottom: 8px; }
.rp-tag-new { color: var(--copper); }
.rp-side .phone { display: block; width: 100%; max-width: 300px; box-shadow: inset 0 0 0 1px #2a3238, 0 30px 60px -30px rgba(20,24,27,.45); }
.rp-nosite { border-top: 3px solid var(--ink); padding-top: 18px; max-width: 300px; }
.rp-nosite-big { font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.rp-nosite p:last-child { color: var(--ink-2); font-size: .98rem; }

.rp-fixes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rp-fixes li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rp-n { font-weight: 800; font-size: 1.05rem; color: var(--copper); font-variant-numeric: tabular-nums; line-height: 1; }
.rp-was, .rp-now { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.rp-was p, .rp-now p { margin: 0; }
.rp-was p { color: var(--muted); }
.rp-now p { color: var(--ink); font-weight: 500; }
.rp-icon svg { width: 20px; height: 20px; margin-top: 3px; }
.rp-was .rp-icon { color: #9a5a4a; }
.rp-now .rp-icon { color: #2f6b4a; }
.rp-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }

.rp-speed { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rp-speed th, .rp-speed td { text-align: left; padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-speed thead th { font-size: .9rem; color: var(--muted); font-weight: 600; }
.rp-speed tbody th { font-weight: 500; color: var(--ink-2); width: 50%; }
.rp-speed td { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.rp-speed td:last-child { color: var(--copper); }

.rp-next { margin: 0 0 40px; padding: 0 0 0 1.3em; display: grid; gap: 14px; max-width: 46rem; font-size: 1.06rem; color: var(--ink-2); }
.rp-next strong { color: var(--ink); }
.rp-prices { margin: 0 0 36px; border-top: 1px solid var(--line); max-width: 46rem; }
.rp-prices div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rp-prices dt { font-weight: 700; }
.rp-prices dd { margin: 0; color: var(--ink-2); }
.rp-prices dd span { font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; margin-right: 4px; }
.rp-actions { align-items: center; gap: 12px 24px; }

.rp-foot .wrap { display: grid; gap: 6px; }
.rp-foot .logo { margin-bottom: 8px; }
.rp-foot a { color: var(--on-slate); }
.rp-index { min-height: 60vh; }
.rp-index h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.rp-index .lede { color: var(--ink-2); }

@media (min-width: 640px) {
  .rp-pair { gap: 32px; }
  .rp-fixes li { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .rp-n { padding-top: 3px; }
  .rp-prices div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
  .rp-hero .wrap { padding-top: 88px; padding-bottom: 96px; }
  .rp-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
  .rp-side { justify-self: center; width: 100%; max-width: 340px; }
  .rp-side .phone, .rp-nosite { max-width: 340px; }
  .rp-fixes li { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); padding: 28px 0; }
  .rp-gains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-speed { max-width: 860px; }
}

/* Screen by screen: a row of phones per page, swipeable on phones */
.rp-scroll .sec-head { margin-bottom: 40px; }
.rp-strip + .rp-strip { margin-top: 56px; }
.rp-strip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 20px; }
.rp-strip-head .rp-tag { margin: 0; }
.rp-strip-head strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.rp-strip-head > span:last-child { color: var(--muted); font-size: .95rem; }
.rp-strip-row { list-style: none; margin: 0 -20px; padding: 4px 20px 24px; display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 200px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.rp-strip-row li { scroll-snap-align: start; display: grid; gap: 10px; justify-items: center; }
.rp-strip-row li > span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.rp-strip-row .phone { display: block; width: 100%; box-shadow: inset 0 0 0 1px #2a3238, 0 24px 40px -24px rgba(20,24,27,.5); transition: transform .2s; }
.rp-strip-row a.phone:hover { transform: translateY(-4px); }
@media (min-width: 1000px) { .rp-strip-row { margin: 0; padding: 4px 0 8px; grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 6), minmax(0, 200px)); row-gap: 32px; overflow: visible; } }
/* On a laptop: two browser windows */
.rp-laptop-pair { display: grid; gap: 40px; }
.rp-laptop-pair figure { margin: 0; min-width: 0; }
.rp-laptop-pair figcaption { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rp-laptop-pair figcaption .rp-tag { margin: 0; }
.rp-browser { display: block; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #c9c3b6; box-shadow: 0 30px 60px -30px rgba(20,24,27,.45); text-decoration: none; transition: transform .2s; }
.rp-browser:hover { transform: translateY(-3px); }
.rp-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9e5dc; border-bottom: 1px solid #d6d0c3; }
.rp-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c8c1b2; flex: none; }
.rp-browser-bar b { margin-left: 10px; flex: 1; min-width: 0; font-size: .82rem; font-weight: 500; color: var(--ink-2); background: #fff; border-radius: 5px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-browser img { width: 100%; }
@media (min-width: 1000px) { .rp-laptop-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); } }
