/* =========================================================
   ScaleUp Devs v2
   Loaded after styles.css on every page. Part 1 is the shared
   system (tokens, type, nav, footer, buttons). Part 2 is the
   homepage. Part 3 re-skins the older page components.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f5f1ea;
  --bg-alt: #ebe4d8;
  --surface: #fffdf9;
  --ink: #1d1b18;
  --ink-2: #4a453e;
  --ink-3: #746c61;
  --line: #d9d0c2;
  --line-strong: #1d1b18;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-ink: #ffffff;
  --accent-soft: #f6dccb;
  --band: #1d1b18;
  --band-ink: #f3eee6;
  --band-ink-2: #b9b0a3;
  --band-line: #3a3530;
  --bubble-in: #e7e0d4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;

  /* legacy variables used by styles.css */
  --navy: var(--bg);
  --navy-deep: var(--bg);
  --ink-legacy: var(--ink);
  --muted: var(--ink-2);
  --paper: var(--bg);
  --white: var(--surface);
  --orange: var(--accent);
  --orange-hover: var(--accent-hover);
  --orange-subtle: var(--accent-soft);
  --peach: var(--accent);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-soft: none;
  --slate-300: var(--ink-2);
  --slate-400: var(--ink-2);
  --slate-500: var(--ink-3);
}

:root[data-theme="dark"] {
  --bg: #161412;
  --bg-alt: #1f1c19;
  --surface: #24211d;
  --ink: #f1ece3;
  --ink-2: #c3baad;
  --ink-3: #958b7e;
  --line: #3a3530;
  --line-strong: #f1ece3;
  --accent: #ff7a3d;
  --accent-hover: #ff9663;
  --accent-ink: #1a0e06;
  --accent-soft: #3b2417;
  --band: #27231f;
  --band-ink: #f1ece3;
  --band-ink-2: #a99f92;
  --band-line: #2e2a26;
  --bubble-in: #2f2b27;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412;
    --bg-alt: #1f1c19;
    --surface: #24211d;
    --ink: #f1ece3;
    --ink-2: #c3baad;
    --ink-3: #958b7e;
    --line: #3a3530;
    --line-strong: #f1ece3;
    --accent: #ff7a3d;
    --accent-hover: #ff9663;
    --accent-ink: #1a0e06;
    --accent-soft: #3b2417;
    --band: #27231f;
    --band-ink: #f1ece3;
    --band-ink-2: #a99f92;
    --band-line: #2e2a26;
    --bubble-in: #2f2b27;
    color-scheme: dark;
  }
}

/* ---------- 2. Base ---------- */
html { scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}

p, li { color: inherit; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { background: var(--ink); color: var(--bg); }

/* Content is visible without waiting for scroll animations */
.reveal, .js-ready .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- 3. Navbar ---------- */
.navbar {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: 12px var(--gutter); gap: 28px; }
.logo img { border-color: var(--line); }
.logo-text { color: var(--ink); font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.nav-links { gap: 26px; margin: 0 0 0 auto; }
.nav-links a { color: var(--ink-2); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-divider { display: none; }
.nav-actions { gap: 12px; }
.nav-phone-link { color: var(--ink); font-weight: 600; }
.nav-phone-link:hover { color: var(--ink); background: var(--bg-alt); }
.nav-phone-link .svg-icon { color: var(--accent); }
.btn.nav-cta-btn {
  background: var(--accent);
  border: 0;
  color: var(--accent-ink);
  border-radius: 4px;
  font-weight: 600;
  padding: 9px 16px;
}
.btn.nav-cta-btn:hover { background: var(--accent-hover); transform: none; }
.nav-toggle { color: var(--ink); }

.theme-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}

@media (max-width: 980px) {
  .nav-links {
    top: 61px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }
  .nav-links a { color: var(--ink); border-bottom-color: var(--line); }
  .nav-phone-link { background: transparent; border: 1px solid var(--line); }
}

/* ---------- 4. Shared pieces ---------- */
.hp-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 22px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.hp-btn::after { content: "\2192"; font-weight: 400; transition: transform 0.15s ease; }
.hp-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.hp-btn:hover::after { transform: translateX(3px); }
.hp-btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.hp-btn-quiet:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.hp-textlink {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hp-textlink:hover { color: var(--accent); }

.hp-placeholder {
  border: 1.5px dashed var(--ink-3);
  border-radius: 6px;
  padding: 22px;
  display: grid;
  gap: 4px;
  align-content: center;
  color: var(--ink-2);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--ink) 4%, transparent) 10px 11px);
}
.hp-placeholder strong { color: var(--ink); font-size: 0.95rem; }
.hp-placeholder span { font-size: 0.88rem; }

/* ---------- 5. Footer ---------- */
footer.v2-footer {
  background: var(--bg);
  color: var(--ink-2);
  border-top: 1.5px solid var(--line-strong);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.v2-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.v2-footer-name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.v2-footer-h { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
footer.v2-footer p { margin-bottom: 12px; max-width: 34ch; }
footer.v2-footer ul { list-style: none; padding: 0; margin: 0; }
footer.v2-footer li { margin-bottom: 6px; }
footer.v2-footer a { color: var(--ink); text-decoration: none; }
footer.v2-footer a:hover { color: var(--accent); text-decoration: underline; }
.v2-footer-bottom { margin-top: 40px !important; padding-top: 20px !important; border-top: 1px solid var(--line); font-size: 0.85rem; max-width: var(--wrap) !important; }

@media (max-width: 860px) {
  .v2-footer-grid { grid-template-columns: 1fr 1fr; }
  .v2-footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* mobile dock */
.mobile-contact-dock { background: var(--bg); border-top: 1px solid var(--line); box-shadow: none; }
.mobile-contact-dock .dock-btn { border-radius: 4px; font-family: var(--sans); }
.mobile-contact-dock .dock-call { background: var(--accent); color: var(--accent-ink); }
.mobile-contact-dock .dock-whatsapp { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* =========================================================
   HOMEPAGE
   ========================================================= */
.hp-section { padding: clamp(64px, 9vw, 120px) 0; }
.hp-section h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; }
.hp-anchor { position: relative; top: -90px; display: block; }

/* Hero */
.hp-hero { padding: clamp(110px, 14vw, 150px) 0 0; }
.hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.hp-kicker { font-weight: 600; color: var(--ink-2); margin-bottom: 22px; font-size: 0.95rem; }
.hp-kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.hp-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 13ch;
}
.hp-hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hp-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 46ch; margin: 28px 0 34px; }
.hp-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hp-phone-demo { margin: 0; justify-self: end; width: 100%; max-width: 360px; }
.hp-phone-demo figcaption { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.hp-phone {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 26px;
  padding: 18px 16px 22px;
}
.hp-phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.hp-phone-head strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.hp-phone-head small { color: var(--ink-3); font-size: 0.78rem; }
.hp-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.hp-event { text-align: center; font-size: 0.75rem; color: var(--ink-3); margin: 4px 0 10px; }
.hp-bubble { font-size: 0.9rem; line-height: 1.45; padding: 9px 13px; border-radius: 16px; margin: 0 0 8px; max-width: 86%; }
.hp-out { background: var(--accent); color: var(--accent-ink); margin-left: auto; border-bottom-right-radius: 4px; }
.hp-in { background: var(--bubble-in); color: var(--ink); border-bottom-left-radius: 4px; }
.hp-phone-note { font-size: 0.85rem; color: var(--ink-3); margin-top: 12px; }

.hp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 96px) !important;
  border-top: 1.5px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.hp-facts > div { padding: 20px 20px 20px 0; }
.hp-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hp-facts dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.hp-facts dd { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* Split layout: sticky heading on the left */
.hp-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hp-split-head { position: sticky; top: 110px; }
.hp-split-head p { color: var(--ink-2); margin-top: 18px; max-width: 36ch; font-size: 1.05rem; }
.hp-split-head a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Leaks list */
.hp-leak-list { list-style: none; padding: 0; margin: 0; }
.hp-leak-list li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--line); }
.hp-leak-list li:first-child { border-top: 1.5px solid var(--line-strong); }
.hp-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 500; }
.hp-leak-list h3 { font-size: 1.45rem; line-height: 1.2; margin-bottom: 8px; }
.hp-leak-list p { color: var(--ink-2); margin-bottom: 10px; max-width: 54ch; }
.hp-leak-list a { font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hp-leak-list a::after { content: " \2192"; }

/* Work */
.hp-work { background: var(--bg-alt); }
.hp-work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.hp-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hp-feature-shots { position: relative; padding-bottom: 40px; }
.hp-shot-desktop { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 6px; display: block; background: var(--surface); }
.hp-shot-mobile { position: absolute; right: -14px; bottom: 0; width: 24%; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.hp-tag { font-size: 0.85rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.hp-feature h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 6px 0 14px; }
.hp-feature-text > p { color: var(--ink-2); }
.hp-feature blockquote { margin: 22px 0 24px; padding-left: 18px; border-left: 3px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); }
.hp-feature cite { display: block; margin-top: 8px; font-family: var(--sans); font-style: normal; font-size: 0.88rem; color: var(--ink-3); }

.hp-work-list { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--line-strong); }
.hp-work-list li { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 26px 24px 8px 0; align-items: start; }
.hp-work-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hp-work-list img { width: 74px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.hp-work-list h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hp-work-list p { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 6px; }
.hp-work-list a { font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Reviews */
.hp-reviews { padding: clamp(56px, 7vw, 96px) 0; }
.hp-reviews-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.hp-bigquote { margin: 0; }
.hp-bigquote blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.45rem); line-height: 1.22; font-weight: 500; letter-spacing: -0.015em; text-indent: -0.4em; }
.hp-bigquote figcaption, .hp-smallquotes figcaption { margin-top: 18px; color: var(--ink-2); font-size: 0.95rem; }
.hp-bigquote strong, .hp-smallquotes strong { color: var(--ink); }
.hp-smallquotes figure { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-smallquotes blockquote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.hp-rating { margin-top: 20px; color: var(--ink-2); font-size: 0.95rem; }
.hp-rating span { font-family: var(--serif); font-size: 2rem; color: var(--ink); margin-right: 8px; vertical-align: -4px; }
.hp-rating a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Prices */
.hp-prices { border-top: 1.5px solid var(--line-strong); }
.hp-prices-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 48px; }
.hp-prices-head p { color: var(--ink-2); max-width: 44ch; font-size: 1.05rem; }
.hp-plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-plan { padding: 34px 30px 36px; display: flex; flex-direction: column; }
.hp-plan + .hp-plan { border-left: 1px solid var(--line); }
.hp-plan h3 { font-size: 1.5rem; }
.hp-plan-for { color: var(--ink-2); font-size: 0.95rem; margin: 4px 0 22px; }
.hp-price { font-size: 1rem; color: var(--ink-2); line-height: 1; }
.hp-price strong { font-family: var(--serif); font-size: 3.2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; font-variant-numeric: lining-nums; }
.hp-price-sub { font-size: 0.92rem; color: var(--ink-2); margin-top: 8px; }
.hp-price-alt { font-size: 0.9rem; color: var(--ink); margin-top: 12px; padding: 10px 12px; background: var(--bg-alt); border-radius: 4px; }
.hp-plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.hp-plan li { padding: 7px 0 7px 22px; position: relative; font-size: 0.95rem; border-top: 1px dotted var(--line); }
.hp-plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.hp-plan .hp-btn { align-self: flex-start; }
.hp-plan-main { background: var(--band); color: var(--band-ink); margin: -14px 0; padding-top: 48px; padding-bottom: 50px; border-radius: 4px; border-left: 0 !important; }
.hp-plan-main + .hp-plan { border-left: 0; }
.hp-plan-main h3, .hp-plan-main .hp-price strong { color: var(--band-ink); }
.hp-plan-main .hp-plan-for, .hp-plan-main .hp-price, .hp-plan-main .hp-price-sub { color: var(--band-ink-2); }
.hp-plan-main li { border-top-color: var(--band-line); }
.hp-plan-flag { position: absolute; transform: translateY(-30px); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.hp-plan-main { position: relative; }
.hp-saving { font-size: 0.88rem; color: var(--band-ink-2); margin: -10px 0 22px; }
.hp-extras { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hp-extras li { font-size: 0.9rem; color: var(--ink-2); }
.hp-extras strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* Process: a single timeline rule */
.hp-process { background: var(--band); color: var(--band-ink); }
.hp-process h2 { color: var(--band-ink); max-width: 18ch; }
.hp-timeline { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.hp-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--band-line); }
.hp-timeline li { position: relative; padding: 34px 28px 0 0; }
.hp-timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--band); border: 2px solid var(--accent); }
.hp-timeline li:last-child::before { background: var(--accent); }
.hp-timeline span { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.hp-timeline h3 { color: var(--band-ink); font-size: 1.3rem; margin: 6px 0 8px; }
.hp-timeline p { color: var(--band-ink-2); font-size: 0.95rem; }

/* FAQ */
.hp-faq-list details { border-top: 1px solid var(--line); }
.hp-faq-list details:first-child { border-top: 1.5px solid var(--line-strong); }
.hp-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.hp-faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.hp-faq-list summary::-webkit-details-marker { display: none; }
.hp-faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; color: var(--accent); transition: transform 0.2s ease; }
.hp-faq-list details[open] summary::after { transform: rotate(45deg); }
.hp-faq-list details p { color: var(--ink-2); padding: 0 40px 22px 0; max-width: 62ch; }

/* Contact */
.hp-contact { background: var(--bg-alt); border-top: 1.5px solid var(--line-strong); }
.hp-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.hp-contact-copy > p { color: var(--ink-2); margin: 18px 0 26px; max-width: 42ch; font-size: 1.05rem; }
.hp-direct { list-style: none; padding: 0; margin: 0 0 30px; }
.hp-direct li { border-top: 1px solid var(--line); }
.hp-direct li:last-child { border-bottom: 1px solid var(--line); }
.hp-direct a { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.hp-direct a:hover { color: var(--accent); }
.hp-direct .svg-icon { width: 18px; height: 18px; color: var(--accent); }
.hp-me-photo { min-height: 180px; max-width: 420px; }
.hp-form { display: grid; gap: 18px; align-content: start; }
.hp-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.hp-form input, .hp-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
  width: 100%;
}
.hp-form input:focus, .hp-form textarea:focus { outline: none; border-color: var(--ink); }
.hp-form input::placeholder, .hp-form textarea::placeholder { color: var(--ink-3); }
.hp-form .hp-btn { justify-self: start; margin-top: 6px; }

/* Homepage responsive */
@media (max-width: 900px) {
  .hp-hero-grid, .hp-split, .hp-feature, .hp-reviews-grid, .hp-contact-grid, .hp-prices-head { grid-template-columns: 1fr; }
  .hp-phone-demo { justify-self: start; }
  .hp-split-head { position: static; }
  .hp-facts { grid-template-columns: 1fr 1fr; }
  .hp-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hp-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hp-work-list { grid-template-columns: 1fr; }
  .hp-work-list li, .hp-work-list li + li { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .hp-work-list li:first-child { border-top: 0; }
  .hp-plans { grid-template-columns: 1fr; border: 0; gap: 0; }
  .hp-plan { padding: 30px 0; border-top: 1px solid var(--line); }
  .hp-plan + .hp-plan { border-left: 0; }
  .hp-plan-main { margin: 20px calc(-1 * var(--gutter)); padding: 52px var(--gutter) 36px; border-radius: 0; }
  .hp-plan-flag { transform: translateY(-34px); }
  .hp-extras { grid-template-columns: 1fr 1fr; }
  .hp-timeline { grid-template-columns: 1fr; }
  .hp-timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .hp-timeline li { padding: 0 0 30px 40px; }
  .hp-shot-mobile { right: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hp-hero h1 { font-size: 2.55rem; }
  .hp-hero-actions .hp-btn { width: 100%; }
  .hp-facts dt { font-size: 1.1rem; }
  .hp-facts > div { padding: 16px 12px 16px 0; }
  .hp-facts > div + div { padding-left: 12px; }
  .hp-facts > div:nth-child(3) { padding-left: 0; }
  .hp-extras { grid-template-columns: 1fr; }
  .hp-leak-list li { grid-template-columns: 44px 1fr; }
  .hp-num { font-size: 2rem; }
  .hp-price strong { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-btn::after, .hp-faq-list summary::after { transition: none; }
}

/* rules that span the text column, not the padded box */
.hp-facts, .v2-footer-bottom { padding-left: 0 !important; padding-right: 0 !important; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)) !important; }

/* =========================================================
   3. Older pages: re-skin shared components
   ========================================================= */
body:not(.v2-home) h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -0.025em; }
body:not(.v2-home) h2 { line-height: 1.1; }

/* Heroes: no blurred stock photo or dark overlay, left aligned */
.hero { background: var(--bg) !important; min-height: 0 !important; text-align: left !important; border-bottom: 1.5px solid var(--line-strong); }
.hero::before, .hero::after { display: none !important; }
.hero .container, .hero-content { text-align: left !important; align-items: flex-start !important; margin-left: auto; margin-right: auto; }
.hero h1, .hero p, .hero .hero-lead { color: var(--ink) !important; margin-left: 0 !important; text-align: left !important; }
.hero .hero-lead, .hero p { color: var(--ink-2) !important; max-width: 56ch; }
.hero-buttons, .btn-row { justify-content: flex-start !important; }
.scroll-down { display: none !important; }

/* Pills and eyebrow badges become a plain kicker with a rule */
.hero-badge, .quote-kicker, .auto-badge, .label, .section-label {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--ink-2) !important;
  font-family: var(--sans);
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.hero-badge .svg-icon, .quote-kicker .svg-icon { display: none; }
.hero-badge::before, .quote-kicker::before, .label::before, .section-label::before {
  content: ""; display: inline-block; width: 24px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px;
}

/* Sections: no alternating navy bands */
.section, section { background-color: transparent; }
.section.dark, .reviews-section, .cta-strip, .town-cta-strip { background: var(--bg-alt) !important; color: var(--ink); }
.section.dark h2, .section.dark h3, .section.dark p, .reviews-section h2, .reviews-section p { color: var(--ink); }
.section-header, .section-intro { text-align: left !important; margin-left: 0 !important; }
.section-header p, .section-intro p { color: var(--ink-2) !important; margin-left: 0 !important; }
.section-header h2, .section-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

/* Cards: flat, ruled, no shadow, less rounding */
.card, .service-card, .pain-card, .addon-card, .review-card, .price-card, .auto-price-card, .price-side-box,
.portfolio-card, .contact-method-card, .quote-panel, .pricing-plan-card, .feature-option, .blog-card,
.step-item, .faq-item, .deposit-panel, .quote-result, .local-placeholder-box, .sms-mockup-card, .design-builder-details {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: var(--ink);
}
.card:hover, .service-card:hover, .portfolio-card:hover, .blog-card:hover { transform: none !important; border-color: var(--ink) !important; }
.service-icon-wrap, .method-icon, .pain-emoji { background: none !important; border: 0 !important; color: var(--accent) !important; width: auto !important; height: auto !important; justify-content: flex-start !important; }
.review-card p { font-family: var(--serif); font-style: italic; color: var(--ink) !important; text-align: left !important; }
.review-card, .review-author { text-align: left !important; align-items: flex-start !important; }
.review-badge { background: none !important; border: 0 !important; padding: 0 !important; color: var(--ink-3) !important; }

/* Buttons */
.btn { border-radius: 4px !important; font-family: var(--sans); box-shadow: none !important; }
.btn.primary, .btn.deposit-btn, .deposit-zero-btn, button.btn {
  background: var(--accent) !important; color: var(--accent-ink) !important; border: 1.5px solid var(--accent) !important;
}
.btn.primary:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; transform: none !important; }
.btn.secondary, .btn.outline { background: transparent !important; color: var(--ink) !important; border: 1.5px solid var(--ink) !important; }
.btn.secondary:hover, .btn.outline:hover { background: var(--ink) !important; color: var(--bg) !important; }
.btn.primary .svg-icon, .btn.secondary .svg-icon { color: inherit; }

/* Forms */
.contact-form input, .contact-form textarea, .contact-form select, .quote-panel input, .quote-panel textarea, .quote-panel select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  background: var(--surface) !important; color: var(--ink) !important; border: 1.5px solid var(--line) !important; border-radius: 4px !important; font-family: var(--sans);
}
.contact-form label, .form-group label { color: var(--ink) !important; }

/* Tags */
.portfolio-meta-tag, .auto-feature-tag, .plan-tag, .tag-popular, .popular-pill, .addon-price, .deposit-badge, .success-badge {
  background: var(--accent-soft) !important; color: var(--ink) !important; border: 0 !important; border-radius: 3px !important;
}
.portfolio-result-line { background: var(--bg-alt) !important; border: 0 !important; border-left: 3px solid var(--accent) !important; border-radius: 0 !important; color: var(--ink-2) !important; }

/* Text links in content */
main a:not(.btn):not(.hp-btn):not(.card-link):not(.contact-method-card) { text-decoration-color: var(--accent); }
.card-link { color: var(--ink) !important; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Phone mockups on the automations page */
.phone { background: var(--surface) !important; border: 1.5px solid var(--line-strong) !important; }
.bubble.out, .addon-sms .bubble, .addon-sms p { background: var(--accent) !important; color: var(--accent-ink) !important; }
.bubble.in { background: var(--bubble-in) !important; color: var(--ink) !important; }

/* Placeholder slots */

/* Blog articles */
article p, article li, .blog-content p, .blog-content li { color: var(--ink-2); }
article h2, article h3, .blog-content h2, .blog-content h3 { color: var(--ink); }

.reviews-section .section-header, .reviews-section h2, .reviews-section .container > p { text-align: left !important; margin-left: 0 !important; }
.reviews-buttons { text-align: left !important; }
.review-stars { color: var(--accent) !important; }
@media (max-width: 768px) {
  .hero .container, .homepage .hero .container { padding-top: 104px !important; padding-bottom: 48px !important; }
}

/* In-text links inside blog posts */
.blog-content-wrapper p a:not(.btn),
.blog-content-wrapper li a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-content-wrapper p a:not(.btn):hover,
.blog-content-wrapper li a:not(.btn):hover {
  color: var(--accent-hover);
}

/* Service pages (microsoft-365, google-business-profile) */
.service-page .svc-hero-card { margin: 0; align-self: center; }
.service-page .svc-card-h { font-size: 1.5rem; color: var(--band-ink); margin: 0 0 10px; }
.service-page .svc-hero-card .hp-price-alt { color: var(--band-ink-2); }
.service-page .svc-hero-card .hp-price-alt strong { color: var(--band-ink); }
.svc-related h2 { margin: 0 0 18px; }
.svc-related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.svc-related-list a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.svc-related-list a:hover { color: var(--accent); }
.svc-placeholder { min-height: 200px; }
.hp-faq-list details p a, .hp-smallquotes p a { color: var(--accent); }

/* Services dropdown in the navbar */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-drop-btn::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.15s;
}
.nav-drop-btn:hover, .nav-drop-btn.is-current { color: var(--ink); }
.nav-drop-btn.is-current { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-drop-menu {
  position: absolute; top: 100%; left: -16px; margin-top: 14px; min-width: 250px;
  display: none; flex-direction: column; padding: 8px 0;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; z-index: 1000;
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop-menu a { padding: 9px 16px; white-space: nowrap; }
.nav-drop-menu a:hover { background: var(--bg-alt); }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: flex; }
.nav-drop:hover .nav-drop-btn::after, .nav-drop.open .nav-drop-btn::after { transform: rotate(-135deg); margin-top: 3px; }

@media (max-width: 980px) {
  .nav-links { gap: 0; }
  .nav-drop { display: flex; flex-direction: column; align-items: stretch; }
  .nav-drop-btn {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-3, var(--ink-2)); padding: 14px 0 6px; pointer-events: none; text-decoration: none !important;
  }
  .nav-drop-btn::after { display: none; }
  .nav-drop-menu { position: static; display: flex; margin: 0; padding: 0; border: 0; background: none; min-width: 0; }
  .nav-drop-menu::before { display: none; }
  .nav-drop-menu a { padding: 14px 0 14px 14px; }
  .nav-drop-menu a:hover { background: none; }
}

/* Privacy page: background band runs the full width, text stays in a readable column */
.privacy-policy { background: var(--bg-alt); padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.privacy-policy .container > .section { background: transparent !important; padding-left: 0; padding-right: 0; }
.privacy-policy .container > .section p,
.privacy-policy .container > .section ul { max-width: 72ch; }

/* Second price line inside a dark price card: keep it readable */
.hp-plan-main .hp-price-alt {
  background: transparent;
  border: 1px solid var(--band-line);
  color: var(--band-ink-2);
}
.hp-plan-main .hp-price-alt strong { color: var(--band-ink); }

/* =========================================================
   Mobile polish (phones)
   ========================================================= */
@media (max-width: 980px) {
  /* Header icons big enough to tap (44px) */
  .theme-toggle, .nav-phone-link, .nav-toggle {
    width: 44px; height: 44px; min-width: 44px;
    display: inline-grid; place-items: center; padding: 0;
  }
  .nav-actions { gap: 8px; }
}
@media (max-width: 580px) {
  /* Stand-alone text links get a taller tap area without changing how they look */
  .hp-hero-actions .hp-textlink,
  .hp-work-head .hp-textlink,
  .hp-feature-text .hp-textlink,
  .service-card a, .local-service-card a, .card a.learn-more,
  .quote-alt-contact, .contact-info a, .contact-details a,
  .hero-stats a, .hp-facts a {
    display: inline-block; padding-top: 10px; padding-bottom: 10px;
  }
  /* Small labels: never below 12.5px on a phone */
  .plan-tag, .deposit-badge, .blog-sector-tag, .portfolio-card .portfolio-meta-tag, .bubble-time { font-size: 0.8rem !important; }
  /* Stop iOS zooming in on inputs */
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 380px) {
  /* Smallest phones (iPhone SE, older Androids): keep the header on one line */
  .nav-inner { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .logo { gap: 8px; }
  .logo-text { font-size: 0.98rem; }
  .logo img { width: 30px; height: 30px; }
  .nav-actions { gap: 4px; }
  .theme-toggle, .nav-phone-link, .nav-toggle { width: 42px; height: 42px; min-width: 42px; }
}
@media (max-width: 580px) {
  .logo { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-proof span a { display: inline-block; padding: 10px 0; }
  .addon-sms > span { font-size: 0.8rem !important; }
}

/* ===== Christmas offer (auto-ends 1 Feb 2027 via the head snippet; to end early, delete this block) ===== */
.xmas-only { display: none !important; }
html.xmas .xmas-only { display: revert !important; }
html.xmas .xmas-hide { display: none !important; }
html.xmas .logo { position: relative; }
html.xmas .logo::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  width: 30px; height: 24px; left: 15px; top: -13px;
  background: url("../2_images/xmas-hat.svg") no-repeat center / contain;
  transform: rotate(18deg);
}
html.xmas .xmas-pill { display: inline-block !important; margin: 0 0 18px; }
.xmas-pill a { display: inline-block; background: #b91c1c; color: #fff !important; border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; line-height: 1.35; text-decoration: none; }
.xmas-pill a:hover { background: #991b1b; text-decoration: underline; }
.hp-price s, .plan-main-price s, .hero-proof s { opacity: 0.7; font-weight: 400; font-size: 1.1rem; margin-right: 4px; }
.hero-proof s { font-size: 1em; }
.hp-xmas-note { margin: 6px 0 0; font-size: 0.88rem; font-weight: 600; color: #b91c1c; }
[data-theme="dark"] .hp-xmas-note { color: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-xmas-note { color: #f87171; } }
.hp-plan-main .hp-xmas-note { color: #fca5a5; }
html.xmas .hero-content > .xmas-pill { display: block !important; width: 100%; flex: 0 0 100%; }
.xmas-pill a { border-radius: 14px; }
