/* ============================================================
   Tiger Head Solar Mindanao — Design System (site.css)
   ------------------------------------------------------------
   Mobile-first, zero external dependencies, system font stack.
   Every page links ONLY this stylesheet. Shared header/footer
   markup lives in assets/nav.html (copy into each page).
   ------------------------------------------------------------
   Theming model (two-way):
     1. :root                       -> light tokens (default)
     2. @media (prefers-color-scheme: dark) -> dark tokens
     3. [data-theme="light"] / [data-theme="dark"] on <html>
        -> explicit override, always wins over the media query.
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand scale. The two pinned brand values are --orange-500 (#e35619,
     vivid orange) and --graphite-700 (#393b40, deep gray); the rest of the
     scale is derived from them. Grays stay neutral-cool, never warm.
     --orange-500 is a fill/display color: as small text on white it only
     reaches 3.74:1, so text-sized orange uses --orange-600 or --orange-700. */
  --orange-050: #fdf4ef;
  --orange-100: #fbe6da;
  --orange-500: #e35619;   /* BRAND — vivid orange */
  --orange-600: #c04710;   /* orange dark enough to clear AA as small text */
  --orange-700: #a63c0f;   /* deeper orange — hover / pressed */
  --graphite-050: #f5f6f7;
  --graphite-100: #e8eaec;
  --graphite-200: #d3d6da;
  --graphite-300: #b4b8bf;
  --graphite-500: #6b7078;
  --graphite-600: #4a4d54;
  --graphite-700: #393b40; /* BRAND — deep gray */
  --graphite-800: #2b2d32;

  /* Semantic tokens — LIGHT (default) */
  --bg:            #ffffff;
  --bg-alt:        var(--graphite-050);   /* alternating section background */
  --bg-card:       #ffffff;
  --text:          var(--graphite-700);
  --text-muted:    var(--graphite-500);
  --text-invert:   #ffffff;
  --heading:       var(--graphite-800);
  --brand:         var(--orange-500);
  --accent:        var(--orange-600);     /* text-safe orange (small text) */
  --accent-strong: var(--orange-700);
  --cta-bg:        var(--brand);
  --cta-text:      #16171a;      /* near-black on orange — 4.79:1 */
  --cta-bg-hover:  #ef7c3f;
  --border:        var(--graphite-200);
  --shadow:        0 2px 10px rgba(57, 59, 64, 0.10);
  --header-bg:     #ffffff;
  --footer-bg:     var(--graphite-800);
  --footer-text:   #b9bdc4;
  --focus-ring:    var(--brand);
  --tofill-bg:     var(--orange-100);
  --tofill-border: var(--orange-600);
  --tofill-text:   var(--orange-700);

  /* Type scale (mobile base; bumped up at 48em) */
  --fs-xs:   0.8125rem;  /* 13px */
  --fs-sm:   0.9375rem;  /* 15px */
  --fs-base: 1rem;       /* 16px */
  --fs-md:   1.125rem;   /* 18px */
  --fs-lg:   1.375rem;   /* 22px */
  --fs-xl:   1.75rem;    /* 28px */
  --fs-2xl:  2.125rem;   /* 34px */
  --lh-tight: 1.2;
  --lh-body:  1.6;

  /* Spacing / layout */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --radius:    10px;
  --radius-sm: 6px;
  --container: 68rem;
  --touch: 44px;         /* minimum touch target */

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

/* Dark tokens as a reusable custom-property block.
   Applied twice: via media query and via data-theme override. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #1b1d20;
    --bg-alt:        #232529;
    --bg-card:       #282a2f;
    --text:          #e9ebee;
    --text-muted:    #a6abb4;
    --text-invert:   #1b1d20;
    --heading:       #f4f5f7;
    --brand:         var(--orange-500);
    --accent:        #ff8a4c;
    --accent-strong: #ffa877;
    --cta-bg:        var(--brand);
    --cta-text:      #16171a;
    --cta-bg-hover:  #ef7c3f;
    --border:        #383b41;
    --shadow:        0 2px 12px rgba(0, 0, 0, 0.5);
    --header-bg:     #202225;
    --footer-bg:     #141517;
    --footer-text:   #a6abb4;
    --focus-ring:    #ff8a4c;
    --tofill-bg:     #3a2a20;
    --tofill-border: #ff8a4c;
    --tofill-text:   #ffb98d;
    color-scheme: dark;
  }
}

/* Explicit theme toggle beats the media query in BOTH directions */
:root[data-theme="dark"] {
  --bg:            #1b1d20;
  --bg-alt:        #232529;
  --bg-card:       #282a2f;
  --text:          #e9ebee;
  --text-muted:    #a6abb4;
  --text-invert:   #1b1d20;
  --heading:       #f4f5f7;
  --brand:         var(--orange-500);
  --accent:        #ff8a4c;
  --accent-strong: #ffa877;
  --cta-bg:        var(--brand);
  --cta-text:      #16171a;
  --cta-bg-hover:  #ef7c3f;
  --border:        #383b41;
  --shadow:        0 2px 12px rgba(0, 0, 0, 0.5);
  --header-bg:     #202225;
  --footer-bg:     #141517;
  --footer-text:   #a6abb4;
  --focus-ring:    #ff8a4c;
  --tofill-bg:     #3a2a20;
  --tofill-border: #ff8a4c;
  --tofill-text:   #ffb98d;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:            #ffffff;
  --bg-alt:        var(--graphite-050);
  --bg-card:       #ffffff;
  --text:          var(--graphite-700);
  --text-muted:    var(--graphite-500);
  --text-invert:   #ffffff;
  --heading:       var(--graphite-800);
  --brand:         var(--orange-500);
  --accent:        var(--orange-600);
  --accent-strong: var(--orange-700);
  --cta-bg:        var(--brand);
  --cta-text:      #16171a;
  --cta-bg-hover:  #ef7c3f;
  --border:        var(--graphite-200);
  --shadow:        0 2px 10px rgba(57, 59, 64, 0.10);
  --header-bg:     #ffffff;
  --footer-bg:     var(--graphite-800);
  --footer-text:   #b9bdc4;
  --focus-ring:    var(--brand);
  --tofill-bg:     var(--orange-100);
  --tofill-border: var(--orange-600);
  --tofill-text:   var(--orange-700);
  color-scheme: light;
}

/* ------------------------------------------------------------
   2. RESET + BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; display: block; }

/* [hidden] must win over component display rules (.btn / .messenger-fab set
   display, which otherwise overrides the UA [hidden]{display:none} rule and
   leaves "not yet configured" CTAs visible). */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  color: var(--heading);
  line-height: var(--lh-tight);
  font-weight: 700;
}
h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p  { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

small, .text-small { font-size: var(--fs-sm); }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: var(--fs-xs); }

/* Fine print for assumptions / disclaimers (honesty rule:
   savings & payback figures must carry an asterisk note) */
.footnote {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--accent);
  padding-top: var(--sp-3);
  margin: var(--sp-4) 0;
}

/* Focus ring — visible, high contrast, on everything focusable */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: var(--sp-2) var(--sp-4);
  z-index: 200;
}
.skip-link:focus { left: var(--sp-2); }

/* ------------------------------------------------------------
   3. LAYOUT: CONTAINER + SECTIONS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.section { padding: var(--sp-7) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--graphite-800);
  color: #e9ebee;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #ffffff; }
.section--dark .text-muted { color: #a6abb4; }

.section-head {
  max-width: 44rem;
  margin-bottom: var(--sp-6);
}
.section-head .kicker {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

/* Simple responsive grid for cards */
.grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 48em) {
  :root {
    --fs-xl:  2rem;      /* 32px */
    --fs-2xl: 2.75rem;   /* 44px */
  }
  .section { padding: var(--sp-8) 0; }
}

/* ------------------------------------------------------------
   4. BUTTONS  (all >= 44px touch height)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--touch);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

/* Primary CTA — brand orange fill, near-black label */
.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}
.btn--primary:hover { background: var(--cta-bg-hover); color: var(--cta-text); }

/* Secondary — solid graphite, keeps orange unique to the primary CTA */
.btn--secondary {
  background: var(--graphite-600);
  color: #ffffff;
}
.btn--secondary:hover { background: var(--graphite-800); color: #ffffff; }

/* Ghost — outline, adapts to theme */
.btn--ghost {
  background: transparent;
  color: var(--accent-strong);
  border-color: currentColor;
}
.btn--ghost:hover { background: var(--bg-alt); }
.section--dark .btn--ghost { color: #ffffff; }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--block { display: flex; width: 100%; }
.btn--lg { font-size: var(--fs-md); padding: 0.8rem 1.8rem; }

/* ------------------------------------------------------------
   5. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-5);
}
.card h3 { margin-bottom: var(--sp-2); }
.card--flat { box-shadow: none; }
.card--accent { border-top: 4px solid var(--brand); }

/* Small stat/figure block inside cards */
.stat {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
}
.stat + .stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Badge / pill (e.g. "SINCE 1928", warranty chips) */
.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--orange-100);
  color: var(--orange-700);
  border: 1px solid var(--orange-600);
}
:root[data-theme="dark"] .badge { background: #3a2a20; color: #ffb98d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge { background: #3a2a20; color: #ffb98d; }
}

/* ------------------------------------------------------------
   6. HEADER + NAV  (markup: assets/nav.html)
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--header-bg) 76%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 10px 30px rgba(57, 59, 64, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 68px;
}
.site-header .brand { filter: drop-shadow(0 4px 9px rgba(57, 59, 64, 0.10)); }

/* Logo (image) */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.1;
  padding: var(--sp-2) 0;
}
.brand__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(360px, 72vw);
  object-fit: contain;
}
/* 暗色模式下切换成浅色版 logo, 否则深灰文字看不见 */
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
.brand__name {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  background: color-mix(in srgb, var(--bg-card) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 12px;
  cursor: pointer;
  color: var(--heading);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55), 0 5px 14px rgba(57, 59, 64, 0.08);
}
.nav-toggle:hover { background: var(--bg-card); transform: translateY(-1px); }
.nav-toggle:active { transform: translateY(0) scale(0.97); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Nav — collapsed panel on mobile, inline row on desktop */
.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: var(--sp-4);
  right: var(--sp-4);
  padding: 0.45rem;
  background: color-mix(in srgb, var(--header-bg) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 18px 48px rgba(57, 59, 64, 0.16);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav a:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--accent-strong); transform: translateX(2px); }
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--bg-alt);
  box-shadow: inset 3px 0 0 var(--brand);
}
.site-nav .nav-cta { margin-top: var(--sp-3); }

@media (min-width: 48em) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-1);
  }
  .site-nav .nav-cta { margin: 0 0 0 var(--sp-3); }
}

/* ------------------------------------------------------------
   7. FOOTER  (markup: assets/nav.html)
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(30rem 16rem at 85% 0%, rgba(227, 86, 25, 0.10), transparent 70%),
    var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(3.5rem, 8vw, 6rem) 0 var(--sp-6);
  font-size: var(--fs-sm);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px);
  background-size: 8px 8px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer a { color: #ffffff; }
.site-footer h4 { color: #ffffff; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  /* data-cols 由 NAV-SCRIPT 按实际有内容的列数写入, 避免留出空列 */
  .footer-grid[data-cols="3"] { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid[data-cols="2"] { grid-template-columns: 1.5fr 1fr; }
  .footer-grid[data-cols="1"] { grid-template-columns: 1fr; }
}
.footer-legal {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--fs-xs);
  color: var(--footer-text);
}

/* ------------------------------------------------------------
   8. MESSENGER FLOATING BUTTON  (markup: assets/nav.html)
   ------------------------------------------------------------ */
.messenger-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(227, 86, 25, 0.92));
  color: var(--cta-text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 16px 32px rgba(57, 59, 64, 0.24);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.messenger-fab:hover { background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), var(--cta-bg-hover)); color: var(--cta-text); transform: translateY(-4px) scale(1.04); box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 20px 38px rgba(57, 59, 64, 0.28); }
.messenger-fab:active { transform: translateY(0) scale(0.97); }
.messenger-fab svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------
   9. .tofill — "[to be updated]" PLACEHOLDER
   Rendered by renderToFill() in assets/site-config.js when a
   SITE_CONFIG field is still empty. Never fake real data.
   ------------------------------------------------------------ */
.tofill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1.5px dashed var(--tofill-border);
  border-radius: var(--radius-sm);
  background: var(--tofill-bg);
  color: var(--tofill-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   10. MOTION PREFERENCES
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------
   11. PRINT BASICS
   ------------------------------------------------------------ */
@media print {
  .site-header,
  .site-nav,
  .nav-toggle,
  .messenger-fab,
  .skip-link { display: none !important; }
  body { background: #ffffff; color: #000000; }
  .section { padding: 1rem 0; }
  .card { box-shadow: none; border: 1px solid #999999; }
  a { color: #000000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* ============================================================
   ===== MacOSUI system layer ==================================
   Web approximation of calm macOS surfaces for this static site.
   ============================================================ */
:root {
  --macos-radius-panel: 20px;
  --macos-radius-control: 12px;
  --macos-shadow-panel: 0 24px 70px rgba(57, 59, 64, 0.14), 0 2px 8px rgba(57, 59, 64, 0.06);
  --macos-shadow-hover: 0 28px 80px rgba(57, 59, 64, 0.20), 0 4px 12px rgba(57, 59, 64, 0.08);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-nav, .messenger-fab {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.site-header,
.card,
.pkg-details,
.fin-card,
.case-card,
.v2-panel,
.v2-ladder__row,
.v2-acc {
  position: relative;
  isolation: isolate;
}
.card,
.pkg-details,
.fin-card,
.case-card {
  border-color: color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: var(--macos-radius-panel);
  box-shadow: var(--macos-shadow-panel);
}
.card::before,
.pkg-details::before,
.fin-card::before,
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 42%);
  opacity: 0.7;
}
.card:hover,
.pkg-details:hover,
.fin-card:hover,
.case-card:hover {
  box-shadow: var(--macos-shadow-hover);
}
.btn {
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(57, 59, 64, 0.12), inset 0 1px rgba(255, 255, 255, 0.32);
}
.btn--ghost {
  background: color-mix(in srgb, var(--bg-card) 46%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.table-wrap {
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: var(--macos-radius-panel);
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  box-shadow: var(--macos-shadow-panel);
}
.site-footer a { transition: color 0.22s ease, opacity 0.22s ease; }
.site-footer a:hover { opacity: 0.78; }
@media (prefers-reduced-motion: reduce) {
  .card::before,
  .pkg-details::before,
  .fin-card::before,
  .case-card::before { transition: none; }
}

@media (max-width: 47.99em) {
  .funnel-shell { grid-template-columns: 1fr; gap: var(--sp-4); }
  .funnel-aside { position: static; padding: 0; }
  .funnel-aside h2 { max-width: 15ch; font-size: 1.8rem; }
  .funnel-aside p { max-width: 34rem; }
  .aside-rule { margin: var(--sp-4) 0 var(--sp-3); }
}

/* ============================================================
   ===== V2 =====
   Homepage redesign layer — appended 2026-07. Additive only:
   nothing above this line changed; other pages are unaffected
   unless they opt into these classes.
   Naming: .v2-* plus spec-named .rv / .visible / .stat-num.
   Theming: near-black "ink" sections are intentionally the same
   in light and dark themes; light sections use existing tokens.
   ============================================================ */

/* --- V2 tokens ---------------------------------------------- */
:root {
  --ink-bg:    #17181b;  /* graphite ink — V2 dark canvas       */
  --ink-card:  #212327;  /* card layer on the ink canvas        */
  --ink-line:  rgba(244, 245, 247, 0.14);
  --ink-text:  #d7dae0;
  --ink-muted: #9ba1aa;
  --v2-accent:    #ff8a4c;  /* orange on ink (numerals, highlights) */
  --v2-accent-sm: #c04710;  /* orange for small text on light bg    */
  --v2-accent-lg: #e35619;  /* brand orange for large numerals      */
  --v2-tint-bg: #fdf4ef;
  --v2-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
             "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --v2-tint-bg: var(--bg-alt);
    --v2-accent-sm: #ff8a4c;
    --v2-accent-lg: #ffb27a;
  }
}
:root[data-theme="dark"] {
  --v2-tint-bg: var(--bg-alt);
  --v2-accent-sm: #ff8a4c;
  --v2-accent-lg: #ffb27a;
}
:root[data-theme="light"] {
  --v2-tint-bg: #fdf4ef;
  --v2-accent-sm: #c04710;
  --v2-accent-lg: #e35619;
}

/* --- V2 sections -------------------------------------------- */
.v2-proofbar {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: var(--brand);
  color: var(--cta-text);
}
.v2-proofbar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.v2-proofbar__grid > div {
  display: grid;
  gap: 2px;
  padding: var(--sp-4) var(--sp-3);
  border-bottom: 1px solid rgba(22, 23, 26, 0.18);
}
.v2-proofbar__grid > div:last-child { border-bottom: 0; }
.v2-proofbar strong { font-size: var(--fs-md); line-height: 1.2; }
.v2-proofbar span { font-size: var(--fs-xs); font-weight: 600; }
@media (min-width: 48em) {
  .v2-proofbar__grid { grid-template-columns: repeat(3, 1fr); }
  .v2-proofbar__grid > div { padding: var(--sp-4) var(--sp-5); border-bottom: 0; border-right: 1px solid rgba(22, 23, 26, 0.18); }
  .v2-proofbar__grid > div:last-child { border-right: 0; }
}
.v2-sec { position: relative; overflow: hidden; padding: var(--sp-8) 0; }
@media (min-width: 48em) { .v2-sec { padding: 6rem 0; } }
.v2-sec > .container { position: relative; z-index: 1; }
.v2-sec--ink { background: var(--ink-bg); color: var(--ink-text); }
.v2-sec--ink h2, .v2-sec--ink h3, .v2-sec--ink h4 { color: #f2f4f6; }
.v2-sec--ink a { color: var(--v2-accent); }
.v2-sec--ink a:hover { color: #ffb27a; }
.v2-sec--light { background: var(--v2-tint-bg); }
.v2-sec--glow {
  background:
    radial-gradient(120% 75% at 50% 118%,
      rgba(227, 86, 25, 0.16), rgba(227, 86, 25, 0) 62%),
    var(--ink-bg);
}
/* feTurbulence grain, inline data-URI — zero external requests */
.v2-noise { position: relative; }
.v2-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- V2 display type ----------------------------------------- */
.v2-eyebrow {
  display: block;
  margin: 0 0 var(--sp-3);
  font-family: var(--v2-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v2-accent-sm);
}
.v2-sec--ink .v2-eyebrow,
.v2-hero .v2-eyebrow,
.v2-final .v2-eyebrow { color: var(--v2-accent); }
.v2-h1 {
  text-wrap: balance;
  margin: 0 0 var(--sp-4);
  font-size: clamp(2.6rem, 7vw, 7.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff;
}
.v2-h1 span { display: inline-block; }
.v2-h2 {
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.6rem, 3.4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.v2-lead { font-size: var(--fs-md); line-height: 1.6; max-width: 38rem; }

/* --- V2 stat numerals (amber, thin, tabular) ------------------ */
.stat-num {
  display: block;
  font-weight: 200;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--v2-accent-lg);
  font-variant-numeric: tabular-nums;
}
.v2-sec--ink .stat-num { color: var(--v2-accent); }
.v2-stat-label {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--v2-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- V2 ghost section numerals -------------------------------- */
.v2-ghost {
  position: absolute;
  top: 1.1rem;
  right: 0.9rem;
  z-index: 0;
  font-family: var(--v2-mono);
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(192, 71, 16, 0.10);
  pointer-events: none;
  user-select: none;
}
.v2-sec--ink .v2-ghost { color: rgba(227, 86, 25, 0.10); }
@supports (-webkit-text-stroke: 2px red) {
  .v2-ghost { color: transparent; -webkit-text-stroke: 2px rgba(192, 71, 16, 0.14); }
  .v2-sec--ink .v2-ghost { -webkit-text-stroke: 2px rgba(227, 86, 25, 0.10); }
}

/* --- V2 reveal-on-scroll: the single entrance (fade-up) -------- */
/* .v2js is set on <html> by a 1-line head script only when
   IntersectionObserver exists — without JS nothing is hidden.   */
.v2js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.v2js .rv.visible { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .v2js .rv { opacity: 1; transform: none; transition: none; }
}

/* --- V2 hero --------------------------------------------------- */
.v2-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 88vh;
  min-height: calc(100svh - 60px);
  padding: var(--sp-8) 0 5.5rem;
  background: var(--ink-bg);
  color: var(--ink-text);
}
.v2-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.v2-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(23, 24, 27, 0.55) 0%,
    rgba(23, 24, 27, 0.25) 35%,
    rgba(23, 24, 27, 0.80) 74%,
    var(--ink-bg) 100%
  );
}
.v2-hero > .container { position: relative; z-index: 1; }
.v2-hero__sub { max-width: 36rem; font-size: var(--fs-md); line-height: 1.6; color: #e9ebee; }
.v2-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-3); }
.v2-hero__micro { margin: 0 0 var(--sp-5); font-size: var(--fs-xs); color: var(--ink-muted); }
.v2-hero__trust {
  margin: 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.v2-hero__trust strong { color: #f2f4f6; }
/* outline button legible on photo / ink / gradient */
.v2-hero .btn--ghost, .v2-sec--ink .btn--ghost, .v2-final .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(23, 24, 27, 0.35);
}
.v2-hero .btn--ghost:hover, .v2-sec--ink .btn--ghost:hover, .v2-final .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
/* scroll cue: vertical micro-label + draining hairline */
.v2-scrollcue {
  position: absolute;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--v2-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v2-scrollcue span { writing-mode: vertical-rl; }
.v2-scrollcue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--v2-accent), transparent);
  transform-origin: top;
  animation: v2-cue 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes v2-cue {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .v2-scrollcue::after { animation: none; } }

/* --- V2 layout helpers ----------------------------------------- */
.v2-grid2 { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 48em) { .v2-grid2 { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }
.v2-center { text-align: center; }
.v2-img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px rgba(57, 59, 64, 0.28); }
.v2-img img { display: block; width: 100%; height: auto; }

/* --- V2 panel (card on ink) + S2 mini estimator ----------------- */
.v2-panel {
  position: relative;
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.v2-panel--glow {
  border-color: rgba(227, 86, 25, 0.42);
  box-shadow: 0 0 0 1px rgba(227, 86, 25, 0.22), 0 12px 64px rgba(227, 86, 25, 0.16);
}
.v2-bill-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.v2-bill-row label { font-weight: 700; color: #f2f4f6; }
.v2-bill-row output {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--v2-accent);
  font-variant-numeric: tabular-nums;
}
.v2-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--touch);
  margin: var(--sp-1) 0 var(--sp-4);
  background: transparent;
  cursor: pointer;
}
.v2-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(227, 86, 25, 0.28); }
.v2-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--v2-accent);
  border: 3px solid var(--ink-bg);
  box-shadow: 0 0 0 2px rgba(227, 86, 25, 0.55);
}
.v2-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(227, 86, 25, 0.28); }
.v2-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--v2-accent);
  border: 3px solid var(--ink-bg);
  box-shadow: 0 0 0 2px rgba(227, 86, 25, 0.55);
}
.v2-nums { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-5); }
.v2-nums > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  border-bottom: 1px dashed var(--ink-line);
  padding-bottom: var(--sp-2);
}
.v2-nums dt {
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v2-nums dd { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: #f2f4f6; font-variant-numeric: tabular-nums; }
.v2-nums > div:first-child dd { font-size: var(--fs-xl); color: var(--v2-accent); }
.v2-note { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; }

/* --- V2 stats (S3): 2x2 on mobile, 3-up on desktop -------------- */
.v2-stats { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; margin-top: var(--sp-6); }
.v2-stats > :last-child { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .v2-stats { grid-template-columns: repeat(3, 1fr); }
  .v2-stats > :last-child { grid-column: auto; }
}
.v2-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-5);
}
.v2-stat p { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }

/* --- V2 steps (S4) + risk-reversal bar --------------------------- */
.v2-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); counter-reset: v2step; }
.v2-steps li { position: relative; padding-left: 3.4rem; }
.v2-steps li::before {
  counter-increment: v2step;
  content: "0" counter(v2step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--v2-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--v2-accent-sm);
}
.v2-steps h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-md); }
.v2-steps p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.v2-riskbar {
  margin: var(--sp-6) 0 0;
  padding: var(--sp-4) var(--sp-5);
  border: 1px dashed var(--v2-accent-lg);
  border-radius: var(--radius);
  background: rgba(227, 86, 25, 0.08);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--heading);
  text-align: center;
}

/* --- V2 featured package (S5) ------------------------------------ */
.v2-bgimg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.v2-bgshade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, var(--ink-bg) 0%, rgba(23, 24, 27, 0.62) 45%, var(--ink-bg) 100%);
}
.v2-anchor {
  margin: 0 0 var(--sp-5);
  font-family: var(--v2-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v2-anchor strong { font-size: var(--fs-lg); font-weight: 800; letter-spacing: 0; color: var(--v2-accent); }
.v2-pkg { max-width: 34rem; margin: 0 auto; text-align: center; }
.v2-pkg__meta { margin: var(--sp-1) 0 var(--sp-4); font-size: var(--fs-sm); color: var(--ink-muted); }
.v2-pkg hr { border: 0; border-top: 1px dashed var(--ink-line); margin: var(--sp-4) 0; }

/* --- V2 package ladder (S5) -------------------------------------- */
.v2-ladder { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.v2-ladder__row {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
}
.v2-ladder__row--pick {
  border-color: rgba(227, 86, 25, 0.55);
  box-shadow: 0 0 0 1px rgba(227, 86, 25, 0.32), 0 14px 48px rgba(227, 86, 25, 0.14);
}
.v2-ladder__flag {
  position: absolute;
  top: -0.7rem;
  left: var(--sp-5);
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  background: var(--v2-accent);
  color: #16171a;
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.v2-ladder__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.v2-ladder__fit { font-size: var(--fs-lg); font-weight: 800; color: #f2f4f6; }
.v2-ladder__for { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-muted); }
.v2-ladder__spec { margin: 0; font-size: var(--fs-sm); color: #c9ced6; }
.v2-ladder__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-2); }
.v2-ladder__price {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--v2-accent);
  font-variant-numeric: tabular-nums;
}
.v2-ladder__foot .btn { white-space: nowrap; }
.v2-ladder__more { margin: var(--sp-5) 0 0; font-size: var(--fs-sm); color: var(--ink-muted); }
@media (min-width: 48em) {
  .v2-ladder__row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto;
    grid-template-areas: "head spec foot";
    align-items: center;
    column-gap: var(--sp-5);
  }
  .v2-ladder__head { grid-area: head; display: block; }
  .v2-ladder__head .v2-ladder__for { display: block; margin-top: 3px; }
  .v2-ladder__spec { grid-area: spec; }
  .v2-ladder__foot { grid-area: foot; margin-top: 0; justify-content: flex-end; gap: var(--sp-4); }
}

/* --- V2 3D poster card (S6) --------------------------------------- */
.v2-3dcard {
  position: relative;
  display: block;
  max-width: 26rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.v2-3dcard img { display: block; width: 100%; height: auto; }
.v2-3dcard__btn {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: var(--fs-sm);
  font-weight: 800;
  white-space: nowrap;
}

/* --- V2 trust block (S7): quote, badges, checklist, accordion ----- */
.v2-quote {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-5);
  background: var(--bg-card);
  border-top: 2px solid var(--v2-accent-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.v2-quote blockquote { margin: 0; }
.v2-quote p { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--heading); }
.v2-badges { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.v2-truth { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-3); }
.v2-truth li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); }
.v2-truth svg { flex: none; margin-top: 3px; }
.v2-warranty { margin: 0 0 var(--sp-6); font-weight: 700; color: var(--heading); }
.v2-acc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.v2-acc + .v2-acc { margin-top: var(--sp-3); }
.v2-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--touch);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  list-style: none;
}
.v2-acc summary::-webkit-details-marker { display: none; }
.v2-acc summary::after {
  content: "+";
  flex: none;
  font-family: var(--v2-mono);
  font-size: var(--fs-lg);
  line-height: 1;
  color: var(--v2-accent-sm);
}
.v2-acc[open] summary::after { content: "\2212"; }
.v2-acc__body { padding: 0 var(--sp-4) var(--sp-4); font-size: var(--fs-sm); color: var(--text-muted); }
.v2-acc__body p { margin: 0 0 var(--sp-2); }
.v2-acc__body p:last-child { margin-bottom: 0; }

/* --- V2 final CTA (S8): amber -> deep green gradient --------------- */
.v2-final {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0;
  text-align: center;
  color: #ffe9dc;
  background: linear-gradient(170deg, #e35619 0%, #a63c0f 24%, #393b40 62%, var(--ink-bg) 100%);
}
@media (min-width: 48em) { .v2-final { padding: 6rem 0; } }
.v2-final > .container { position: relative; z-index: 1; }
.v2-final h2 { color: #ffffff; }
.v2-final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.v2-final__fine { margin: var(--sp-5) 0 0; font-size: var(--fs-sm); color: rgba(255, 244, 238, 0.88); }

/* --- V2 mobile sticky CTA bar (homepage only) ---------------------- */
.v2-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 64px;
  padding: 10px var(--sp-3) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(23, 24, 27, 0.96);
  border-top: 1px solid rgba(227, 86, 25, 0.32);
  transform: translateY(105%);
  transition: transform 0.3s ease;
}
body.v2-stuck .v2-sticky { transform: none; }
.v2-sticky .btn--primary { flex: 1; }
.v2-sticky__msgr {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--cta-text);
}
.v2-sticky__msgr:hover { background: var(--cta-bg-hover); color: var(--cta-text); }
.v2-sticky__msgr svg { width: 24px; height: 24px; }
@media (min-width: 48em) { .v2-sticky { display: none; } }
@media (max-width: 47.99em) {
  body.v2-stuck .messenger-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media print {
  .v2-sticky, .v2-scrollcue, .v2-ghost, .v2-noise::after { display: none !important; }
}

/* Conversion pass: make inner pages feel like one confident brand. */
.section--dark {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(227, 86, 25, 0.12), transparent 48%),
    linear-gradient(135deg, #17181b 0%, #393b40 100%);
}
.section--dark:first-of-type { padding-top: clamp(4.5rem, 10vw, 7rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.section--dark .section-head { max-width: 48rem; }
.section--dark .section-head p { color: #c9ced6; }
.section-head h1, .section-head h2 { text-wrap: balance; }
.section-head p { max-width: 42rem; }
.card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(227, 86, 25, 0.55); box-shadow: 0 12px 28px rgba(57, 59, 64, 0.16); }
.section--alt .section-head { margin-bottom: var(--sp-7); }
@media (max-width: 47.99em) {
  .section--dark:first-of-type { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .section-head h1 { font-size: clamp(2rem, 10vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* MacOSUI pass: add a quiet command-surface feel without changing the static stack. */
.site-header {
  background: var(--header-bg);
  background: color-mix(in srgb, var(--header-bg) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-nav a,
.nav-toggle,
.btn,
.card,
.pkg-details,
.v2-panel,
.v2-ladder__row,
.v2-acc {
  transition: background-color 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, box-shadow 0.22s ease,
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav a { position: relative; }
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  box-shadow: none;
}
.btn {
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(57, 59, 64, 0.12);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.card:hover,
.pkg-details:hover,
.v2-panel:hover,
.v2-ladder__row:hover,
.v2-acc:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(57, 59, 64, 0.16);
}
.v2-acc summary::after,
.pkg-details summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--v2-mono);
  font-size: var(--fs-lg);
  line-height: 1;
  color: var(--accent);
}
.v2-acc[open] summary::after,
.pkg-details[open] summary::after { content: "−"; }
.v2-acc summary,
.pkg-details summary { list-style: none; }
.v2-acc summary::-webkit-details-marker,
.pkg-details summary::-webkit-details-marker { display: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav a,
  .site-nav a::after,
  .nav-toggle,
  .btn,
  .card,
  .pkg-details,
  .v2-panel,
  .v2-ladder__row,
  .v2-acc { transition: none; }
  .btn:hover,
  .card:hover,
  .pkg-details:hover,
  .v2-panel:hover,
  .v2-ladder__row:hover,
  .v2-acc:hover { transform: none; }
}

/* Surface refinements for the homepage's darker command panels. */
.v2-panel,
.v2-ladder__row,
.v2-quote,
.v2-acc,
.v2-3dcard {
  border: 1px solid color-mix(in srgb, var(--ink-line, var(--border)) 74%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 22px 55px rgba(0, 0, 0, 0.16);
}
.v2-panel,
.v2-quote,
.v2-acc {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}
.v2-sec--light .v2-quote,
.v2-sec--light .v2-acc {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(232, 235, 238, 0.64));
  border-color: color-mix(in srgb, var(--border) 78%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78), 0 20px 48px rgba(57, 59, 64, 0.12);
}
.v2-ladder__row { background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025)); }
.v2-ladder__row--pick { border-color: rgba(227, 86, 25, 0.58); }
.v2-3dcard { overflow: hidden; border-radius: var(--macos-radius-panel); }
.v2-3dcard__btn { box-shadow: inset 0 1px rgba(255, 255, 255, 0.34), 0 10px 24px rgba(57, 59, 64, 0.2); }
@media (prefers-reduced-transparency: reduce) {
  .v2-panel,
  .v2-quote,
  .v2-acc { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-card); }
}

/* MacOSUI direction: floating glass island, calm depth, and one orange action color. */
:root {
  --macos-island-bg: color-mix(in srgb, var(--header-bg) 78%, transparent);
  --macos-island-border: color-mix(in srgb, var(--border) 72%, transparent);
  --macos-island-shadow: 0 18px 54px rgba(57, 59, 64, 0.13), inset 0 1px rgba(255, 255, 255, 0.58);
  --macos-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background:
    radial-gradient(42rem 24rem at 8% -12%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 72%),
    radial-gradient(38rem 24rem at 96% 18%, color-mix(in srgb, var(--graphite-300) 16%, transparent), transparent 72%),
    var(--bg);
}

.site-header {
  border-bottom: 0;
  padding: 0.7rem 0 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__inner {
  position: relative;
  min-height: 66px;
  max-width: calc(var(--container) + 1.5rem);
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  border: 1px solid var(--macos-island-border);
  border-radius: 22px;
  background: var(--macos-island-bg);
  box-shadow: var(--macos-island-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.site-header .brand { filter: none; }
.site-header .brand__logo { height: 46px; max-width: min(260px, 62vw); }

.site-nav a:not(.btn) {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.28s var(--macos-spring), color 0.28s var(--macos-spring), border-color 0.28s var(--macos-spring), transform 0.28s var(--macos-spring);
}
.site-nav a:not(.btn)::after { display: none; }
.site-nav a:not(.btn):hover {
  background: color-mix(in srgb, var(--bg-card) 64%, transparent);
  border-color: color-mix(in srgb, var(--border) 62%, transparent);
  transform: translateY(-1px);
}
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 14%, var(--bg-card));
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  color: var(--accent-strong);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 5px 14px color-mix(in srgb, var(--brand) 12%, transparent);
}
.site-nav .nav-cta { margin-left: 0.2rem; }
.site-nav .nav-cta .btn { min-height: 40px; padding-inline: 1rem; }

.nav-toggle {
  border: 1px solid var(--macos-island-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 64%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.46), 0 8px 18px rgba(57, 59, 64, 0.10);
  transition: background-color 0.28s var(--macos-spring), transform 0.28s var(--macos-spring), box-shadow 0.28s var(--macos-spring);
}
.nav-toggle:hover { background: var(--bg-card); box-shadow: var(--macos-shadow-hover); }
.nav-toggle[aria-expanded="true"] { background: color-mix(in srgb, var(--brand) 12%, var(--bg-card)); }

.card,
.pkg-details,
.fin-card,
.case-card,
.v2-panel,
.v2-ladder__row,
.v2-acc {
  border-color: color-mix(in srgb, var(--border) 62%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.52), var(--macos-shadow-panel);
  transition: transform 0.32s var(--macos-spring), border-color 0.32s var(--macos-spring), box-shadow 0.32s var(--macos-spring), background-color 0.32s var(--macos-spring);
}
.card:hover,
.pkg-details:hover,
.fin-card:hover,
.case-card:hover,
.v2-panel:hover,
.v2-ladder__row:hover,
.v2-acc:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.64), var(--macos-shadow-hover);
}
.btn {
  transition: transform 0.28s var(--macos-spring), background-color 0.28s var(--macos-spring), color 0.28s var(--macos-spring), box-shadow 0.28s var(--macos-spring);
}
.btn:hover { box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 18%, transparent), inset 0 1px rgba(255, 255, 255, 0.34); }
.messenger-fab {
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.56), 0 18px 36px rgba(57, 59, 64, 0.22);
}

@media (max-width: 47.99em) {
  .site-header { padding: 0.45rem 0 0; }
  .site-header__inner { margin-inline: 0.2rem; padding-left: 0.7rem; border-radius: 18px; }
  .site-header .brand__logo { height: 40px; max-width: min(190px, 56vw); }
  .site-nav {
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 0.55rem;
    border-radius: 20px;
    background: color-mix(in srgb, var(--header-bg) 84%, transparent);
    box-shadow: 0 24px 60px rgba(57, 59, 64, 0.18), inset 0 1px rgba(255, 255, 255, 0.5);
  }
  .site-nav a:not(.btn) { justify-content: space-between; min-height: 44px; }
  .site-nav .nav-cta { margin: 0.35rem 0 0; }
  .site-nav .nav-cta .btn { width: 100%; }
}

@media (prefers-reduced-transparency: reduce) {
  body { background: var(--bg); }
  .site-header__inner,
  .site-nav,
  .nav-toggle,
  .btn--ghost { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a:not(.btn),
  .nav-toggle,
  .card,
  .pkg-details,
  .fin-card,
  .case-card,
  .v2-panel,
  .v2-ladder__row,
  .v2-acc,
  .btn { transition: none; }
}
