﻿/* =========================================================
   Le Réseau Réno — Design tokens
   Source: app/static/styles.css + logo_couleur.png
   Brand: navy + neutral grey, dual-theme (dark default, light)
   ========================================================= */

/* -----------------------------------------------------------
   Web fonts — Inter, self-hosted woff2 in /fonts/.
   Source: https://rsms.me/inter/ (SIL OFL 1.1).
   Weights bundled: 400 / 500 / 600 / 700 / 800.
   ----------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/Inter-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/Inter-ExtraBold.woff2") format("woff2");
}

:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* --- Surfaces & lines (dark, default) ---------------- */
  --bg:           #0f172a;   /* page background          */
  --surface:      #0b1220;   /* sidebars, header strips  */
  --panel:        #111827;   /* cards, inputs            */
  --panel-soft:   #1f2937;   /* hovered/inset blocks     */
  --line:         #374151;   /* hairline borders         */
  --surface-hover:#1f2937;

  /* --- Foreground -------------------------------------- */
  --text:         #e5e7eb;
  --muted:        #9ca6b1;

  /* --- Accent (the brand call-to-action color) --------- *
   * In dark mode the accent is the neutral grey — primary
   * buttons read as "neutral chip" rather than navy. The
   * navy is reserved for the logo + light-mode CTA.       */
  --accent:        #9ca6b1;
  --accent-muted:  #7a8490;
  --accent-fg:     #0b1220;

  /* --- Overlays / shadow ------------------------------- */
  --overlay:      rgba(3, 8, 20, 0.55);
  --shadow:       rgba(2, 6, 23, 0.45);

  /* --- Avatars ----------------------------------------- */
  --avatar-user:    #334155;
  --avatar-user-fg: var(--text);

  /* --- Semantic ---------------------------------------- */
  --danger:                #c24141;
  --star-empty:            #5f6368;
  --star-fill:             #fbbc04;
  --badge-pending-fg:      #fcd34d;
  --badge-pending-border:  #b45309;
  --badge-rejected-fg:     #fca5a5;
  --badge-rejected-border: #b91c1c;
}

[data-theme="light"] {
  color-scheme: light;

  --bg:           #eef2f6;
  --surface:      #ffffff;
  --panel:        #f8fafc;
  --panel-soft:   #e8edf2;
  --line:         rgba(33, 61, 88, 0.32);
  --surface-hover:#e2e8f0;

  --text:         #0f172a;
  --muted:        #213d58;

  /* In light mode, accent = brand navy. This is the same
     navy used in the logo (#213d58). Primary buttons fill
     navy and use white text. */
  --accent:        #213d58;
  --accent-muted:  #9ca6b1;
  --accent-fg:     #ffffff;

  --overlay:      rgba(33, 61, 88, 0.25);
  --shadow:       rgba(33, 61, 88, 0.12);

  --avatar-user:    #9ca6b1;
  --avatar-user-fg: #0f172a;

  --danger:                #b91c1c;
  --star-empty:            rgba(33, 61, 88, 0.35);
  --star-fill:             #d97706;
  --badge-pending-fg:      #b45309;
  --badge-pending-border:  #b45309;
  --badge-rejected-fg:     #b91c1c;
  --badge-rejected-border: #dc2626;
}

/* -----------------------------------------------------------
   Brand palette (canonical hex values, independent of theme)
   Use these when you need a stable swatch (illustrations,
   marketing pages, charts).
   ----------------------------------------------------------- */
:root {
  --brand-navy:        #213d58;  /* logo + light CTA       */
  --brand-navy-deep:   #14253a;  /* hover state of navy    */
  --brand-navy-ink:    #0f172a;  /* near-black for body    */
  --brand-grey:        #9ca6b1;  /* dark-mode accent       */
  --brand-grey-soft:   #c9d1d9;  /* dividers on hero       */
  --brand-paper:       #eef2f6;  /* warm-cool page wash    */
  --brand-paper-soft:  #f8fafc;
  --brand-white:       #ffffff;

  /* Quebec construction accent — used very sparingly for
     CTAs on the marketing page (think safety-vest amber). */
  --brand-amber:       #f5a524;
  --brand-amber-deep:  #d97706;

  /* Status / data colors (lifted from chat star + badges) */
  --status-star:       #fbbc04;
  --status-success:    #16a34a;
  --status-warning:    #d97706;
  --status-danger:     #c24141;
}

/* -----------------------------------------------------------
   Spacing scale (4-px base — read from existing padding/gap
   values in styles.css: 4, 6, 8, 10, 12, 14, 16, 20, 24, 28)
   ----------------------------------------------------------- */
:root {
  --space-1:  4px;
  --space-2:  6px;
  --space-3:  8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 14px;
  --space-7: 16px;
  --space-8: 20px;
  --space-9: 24px;
  --space-10:28px;
  --space-12:40px;
  --space-16:64px;
}

/* -----------------------------------------------------------
   Radii — observed values: 6 (avatar chip), 8 (small tab),
   10 (button/input), 12 (card), 999 (pill).
   ----------------------------------------------------------- */
:root {
  --radius-xs:   6px;
  --radius-sm:   8px;
  --radius-md:  10px;
  --radius-lg:  12px;
  --radius-pill: 999px;
}

/* -----------------------------------------------------------
   Elevation — single soft shadow + a focus ring.
   ----------------------------------------------------------- */
:root {
  --shadow-card:    0 12px 28px var(--shadow);
  --shadow-popover: 0 8px 20px var(--shadow);
  --ring-focus:     0 0 0 2px var(--accent);
}

/* -----------------------------------------------------------
   Typography
   Live app uses one stack everywhere, varies weight + size.
   ----------------------------------------------------------- */
:root {
  --font-sans: Inter, "Segoe UI", Arial, sans-serif;
  --font-numeric-features: "tnum" 1, "cv11" 1; /* tabular nums on for prices */

  /* Type scale — observed in app:
     11 (kpi label) · 12 (meta/muted) · 13 (form label) ·
     14 (md-card title) · 15 (reco card heading) · 16 (admin h3) ·
     18 (kpi number) · then marketing headings (28/40/56) */
  --text-2xs: 11px;
  --text-xs:  12px;
  --text-sm:  13px;
  --text-md:  14px;
  --text-lg:  15px;
  --text-xl:  16px;
  --text-2xl: 20px;
  --text-3xl: 28px;
  --text-4xl: 40px;
  --text-5xl: 56px;

  --leading-tight: 1.2;
  --leading-snug:  1.35;
  --leading-body:  1.5;
}

/* -----------------------------------------------------------
   Semantic type roles (use these in components, not the
   raw size tokens, to keep the system consistent).
   ----------------------------------------------------------- */
.h-hero,
h1.h-hero {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(36px, 5vw, var(--text-5xl));
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.h-display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  color: var(--text);
}

.h-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--text);
}

.h-section {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  color: var(--text);
}

.h-card {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--text);
}

.t-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--text);
}

.t-meta,
.muted {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--muted);
}

.t-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text);
}

.t-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-2xs);
  line-height: var(--leading-snug);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}


/* Le Réseau Réno — front page marketing
   Imports brand tokens from colors_and_type.css.
   Adds page-specific layout + animations for the live network map. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

button {
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
}

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

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1320px;
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
}

section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type { border-top: 0; }

@media (max-width: 880px) {
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}

@media (max-width: 880px) {
  .section-head { margin-bottom: 36px; gap: 12px; }
}

.section-head .eyebrow {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-head .eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--muted);
  display: inline-block;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-head .lead {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 56ch;
}

@media (max-width: 560px) {
  .section-head .lead { font-size: var(--text-md); }
  .section-head h2 { font-size: clamp(26px, 6.5vw, 36px); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--text-md);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn--primary:hover { background: var(--accent-muted); }

.btn--amber {
  background: var(--brand-amber);
  color: var(--brand-navy-ink);
}
.btn--amber:hover { background: var(--brand-amber-deep); color: #fff; }

.btn--secondary {
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--line);
}
.btn--secondary:hover { border-color: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); }

.btn--sm { height: 36px; padding: 0 14px; font-size: var(--text-sm); }
.btn--lg { height: 52px; padding: 0 26px; font-size: var(--text-lg); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(2px); }

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: var(--text-lg);
  line-height: 0;
  flex-shrink: 0;
}

.nav-brand img {
  height: 64px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  margin: 0 0 0 -10px;
  padding: 0;
}

@media (max-width: 880px) {
  .nav-brand { line-height: 0; }
  .nav-brand img { height: 64px; max-width: 200px; }
  .nav-inner { height: 64px; gap: 12px; }
}
@media (max-width: 380px) {
  .nav-brand img { max-width: 160px; }
}

/* Theme-based logo swap — pure CSS so there's never a moment where both show. */
[data-theme="dark"]  .nav-brand img[data-logo-light],
[data-theme="dark"]  .footer-brand img[data-logo-light] { display: none; }
[data-theme="light"] .nav-brand img[data-logo-dark],
[data-theme="light"] .footer-brand img[data-logo-dark]  { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme switch — exact pattern from product */
.theme-switch {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-switch[aria-checked="true"] .theme-switch-thumb {
  transform: translateX(20px);
  background: var(--accent-fg);
}

/* Mobile hamburger button — hidden on desktop */
.nav-menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .nav-brand { flex-shrink: 0; }
  .nav-actions {
    flex-shrink: 0;
    margin-left: auto;
    justify-content: flex-end;
    gap: 8px;
  }
  .nav-actions .btn--ghost { display: none; }
  .nav-actions .theme-switch { display: none; }
  .nav-menu-btn { display: inline-flex; }
}
.nav-actions .btn--primary.nav-cta-hidden {
  display: none;
}

.nav-menu-btn:hover { border-color: var(--accent); }
.nav-menu-btn .hamburger-line {
  display: block;
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.nav-mobile-panel {
  position: fixed;
  top: 60px;
  left: 12px; right: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  padding: 12px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s ease;
}
.nav-mobile-panel a:hover { background: var(--panel-soft); }
.nav-mobile-panel .nav-mobile-foot {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.nav-mobile-panel .nav-mobile-foot .btn { width: 100%; }
.nav-mobile-panel .nav-mobile-foot .btn--primary {
  color: var(--accent-fg);
}
.nav-mobile-panel .nav-mobile-foot .btn--primary:hover {
  color: var(--accent-fg);
}
.nav-mobile-panel .nav-mobile-foot .theme-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Overlay behind mobile menu */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 55;
  display: none;
}
.nav-mobile-overlay.open { display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 64px;
  border-top: 0;
  overflow: hidden;
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 40px; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 32px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Subtle grid backdrop */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand-amber);
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(32px, 8vw, 44px);
    margin: 16px 0 14px;
    line-height: 1.05;
  }
}

.hero h1 .accent-word {
  color: var(--brand-amber);
  position: relative;
  white-space: nowrap;
}

.hero .lede {
  margin: 0 0 32px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: var(--text-xs);
  color: var(--muted);
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .hero-trust { gap: 10px; row-gap: 6px; }
}

.hero-trust .pip {
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--muted);
  opacity: 0.6;
}

/* ----- Hero figure: stylized chat + estimate preview ----- */
.hero-figure {
  position: relative;
  height: 420px;
}

.hero-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.hero-card--chat {
  top: 12px; left: 0; right: 80px;
  display: flex; flex-direction: column; gap: 14px;
}

.hero-card--estimate {
  bottom: 0; left: 60px; right: 0;
  background: var(--surface);
}

.hero-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-msg .avatar {
  width: 44px; height: 24px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.hero-msg .avatar.user {
  background: var(--avatar-user);
  color: var(--avatar-user-fg);
}

.hero-msg .avatar.assistant {
  background: var(--accent);
  color: var(--accent-fg);
}

.hero-msg .bubble {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text);
}

.hero-msg .bubble.user { color: var(--muted); }

.hero-estimate-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}

.hero-estimate-head .label {
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.hero-estimate-head .src {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.hero-estimate-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 4px;
}

.hero-estimate-range {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}

.hero-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
  margin-bottom: 6px;
}

.hero-bar-fill {
  position: absolute; left: 18%; right: 28%;
  top: 0; bottom: 0;
  background: var(--brand-amber);
  border-radius: 999px;
}

.hero-bar-tick {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  background: var(--text);
  border-radius: 2px;
}

.hero-bar-axis {
  display: flex; justify-content: space-between;
  font-size: var(--text-2xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .hero-figure { height: 380px; max-width: 520px; }
}

@media (max-width: 680px) {
  .hero-figure {
    height: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-card {
    position: static;
    width: 100%;
    padding: 16px;
  }
  .hero-card--chat,
  .hero-card--estimate {
    top: auto; left: auto; right: auto; bottom: auto;
  }
  .hero-estimate-price { font-size: 28px; }
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 12px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat-num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 0;
}

.stat-num .unit {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--muted);
  margin-left: 4px;
}

.stat-label {
  margin: 6px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 4px 0; }
  .stat { border-left: 0; padding: 14px 16px; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 16px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; padding-top: 8px; }
  .stat-num { font-size: clamp(24px, 7vw, 32px); }
}
@media (max-width: 420px) {
  .stat { padding: 12px 10px; }
  .stat:nth-child(even) { padding-left: 12px; }
  .stat:nth-child(odd) { padding-left: 4px; }
}

/* ============================================================
   How it works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.step-num::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.step h3 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   Project types
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }

.project-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  cursor: default;
}

.project-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.project-card .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--text);
}

.project-card h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card .range {
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; gap: 2px;
}

.project-card .range .price {
  color: var(--text);
  font-weight: 700;
  font-size: var(--text-md);
}

/* ============================================================
   Network section (Quebec map + activity feed)
   ============================================================ */
.network {
  padding: 96px 0 112px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

@media (max-width: 880px) {
  .network { padding: 64px 0 72px; }
}
@media (max-width: 560px) {
  .network { padding: 52px 0 60px; }
}

.network::before {
  /* faint grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  -webkit-mask-image: radial-gradient(ellipse at 35% 50%, #000 25%, transparent 70%);
          mask-image: radial-gradient(ellipse at 35% 50%, #000 25%, transparent 70%);
  pointer-events: none;
}

.network .section-head { position: relative; z-index: 1; }

.network-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--brand-amber);
  color: var(--brand-amber);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(245, 165, 36, 0.08);
}

.network-live-tag .live-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand-amber);
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6);
  animation: pulse-dot 2.2s ease-out infinite;
}

.network-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .network-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .network-grid { gap: 18px; }
}

/* --- Map panel ---------------------------------------- */
.map-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 880px) {
  .map-panel { min-height: 480px; border-radius: 14px; }
}
@media (max-width: 560px) {
  .map-panel { min-height: 400px; }
}

.map-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .map-head { padding: 12px 14px; }
  .map-head-stats { gap: 14px; }
}

.map-head-left {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.map-head-stats {
  display: flex; align-items: center; gap: 18px;
}

.map-head-stat {
  display: flex; flex-direction: column; gap: 2px;
  text-align: right;
}

.map-head-stat-num {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}

.map-head-stat-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.map-svg-wrap {
  position: relative;
  flex: 1;
  padding: 12px;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 540px;
}

@media (max-width: 880px) {
  .map-svg { min-height: 400px; }
  .map-svg-wrap { padding: 8px; }
}
@media (max-width: 560px) {
  .map-svg { min-height: 320px; }
}

.map-region {
  fill: url(#qcFill);
  stroke: var(--accent-muted);
  stroke-width: 1.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-halo {
  fill: var(--brand-amber);
  opacity: 0.06;
  filter: url(#qcHalo);
  pointer-events: none;
}

.map-river {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

[data-theme="light"] .map-river {
  opacity: 0.22;
}

:root {
  --map-fill-hi: #1b2a3d;
  --map-fill-lo: #0d1626;
}
[data-theme="light"] {
  --map-fill-hi: rgba(33, 61, 88, 0.08);
  --map-fill-lo: rgba(33, 61, 88, 0.02);
}

[data-theme="light"] .map-region {
  stroke: rgba(33, 61, 88, 0.45);
}

[data-theme="light"] .map-halo {
  opacity: 0.10;
}

.map-graticule {
  stroke: var(--line);
  stroke-width: 0.5;
  fill: none;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}

.map-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.map-city-label {
  fill: var(--text);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.contractor-dot {
  fill: var(--brand-amber);
  filter: drop-shadow(0 0 6px rgba(245, 165, 36, 0.6));
  cursor: pointer;
  transition: r 0.15s ease;
}

.contractor-dot:hover { fill: #ffd07a; }

.contractor-ring {
  fill: none;
  stroke: var(--brand-amber);
  stroke-width: 1.2;
  transform-origin: center;
  transform-box: fill-box;
  animation: ring-pulse 3.6s ease-out infinite;
  opacity: 0;
}

@keyframes ring-pulse {
  0%   { transform: scale(0.4); opacity: 0.75; stroke-width: 2; }
  100% { transform: scale(4); opacity: 0; stroke-width: 0.4; }
}

/* Connection line that pings between two random contractors */
.ping-line {
  stroke: var(--brand-amber);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(245, 165, 36, 0.45));
  animation: ping-stroke 2.2s ease-out forwards;
}

@keyframes ping-stroke {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.map-compass {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.map-legend {
  position: absolute;
  bottom: 14px; left: 18px;
  display: flex; gap: 18px;
  font-size: var(--text-2xs);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

@media (max-width: 560px) {
  .map-legend {
    bottom: 10px; left: 10px; right: 10px;
    gap: 12px;
    padding: 6px 10px;
    font-size: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.map-legend .swatch {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: 1px;
}

.map-legend .swatch--amber { background: var(--brand-amber); }
.map-legend .swatch--ring {
  background: transparent;
  border: 1.5px solid var(--brand-amber);
}

/* --- Activity feed ----------------------------------- */
.feed {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feed-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
}

.feed-head h3 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow: hidden;
  min-height: 540px;
  position: relative;
}

@media (max-width: 880px) {
  .feed-list { min-height: auto; max-height: 380px; overflow-y: auto; }
}

.feed-item {
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  animation: feed-in 0.4s ease;
}

.feed-item:last-child { border-bottom: 0; }

@keyframes feed-in {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.feed-item .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand-amber);
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.12);
}

.feed-item .dot.new {
  animation: feed-dot-pop 1.4s ease-out;
}
@keyframes feed-dot-pop {
  0% { transform: scale(1.6); box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 165, 36, 0); }
}

.feed-item .body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}

.feed-item .who {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.feed-item .what {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-item .amount {
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

.feed-item .meta {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 880px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

.faq-side h2 { margin-top: 0; }
.faq-side p { color: var(--muted); }

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.12s ease;
}

@media (max-width: 560px) {
  .faq-item summary { padding: 18px 0; font-size: var(--text-md); gap: 12px; }
  .faq-item .answer { padding: 0 0 18px; font-size: var(--text-sm); }
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--brand-amber);
}

.faq-item[open] summary { color: var(--text); }

.faq-item .answer {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.6;
  max-width: 64ch;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 560px) {
  .contact-form { padding: 20px; gap: 14px; }
  .contact-form .submit-row .btn { width: 100%; }
  .contact-form .submit-row { gap: 12px; }
}

.contact-form h3 {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field {
  display: flex; flex-direction: column; gap: 6px;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 0 12px;
  font-size: var(--text-md);
  color: var(--text);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.field textarea {
  height: auto;
  padding: 12px;
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel);
}

.field .hint {
  font-size: var(--text-xs);
  color: var(--muted);
}

.contact-form .submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-form .privacy {
  font-size: var(--text-xs);
  color: var(--muted);
  max-width: 36ch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--panel);
  display: flex; flex-direction: column; gap: 6px;
}

.info-block .label {
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.info-block .value {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.info-block .sub {
  font-size: var(--text-sm);
  color: var(--muted);
}

.info-block.brand {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.info-block.brand .label,
.info-block.brand .sub { color: var(--accent-fg); opacity: 0.82; }

.info-block.brand h3 {
  margin: 0 0 6px;
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.info-block.brand p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.info-block.brand .btn--amber {
  margin-top: 12px;
  align-self: flex-start;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; } }

.footer-brand img { height: 72px; width: auto; max-width: 360px; display: block; }

@media (max-width: 880px) {
  .footer-brand img { height: 56px; max-width: 240px; }
  .footer { padding: 40px 0 24px; }
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 36ch;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text);
  transition: color 0.12s ease;
}
.footer-col a:hover { color: var(--brand-amber); }

.footer-bar {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--muted);
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: none;
  font-size: var(--text-sm);
}

@media (max-width: 480px) {
  .tweaks { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

.tweaks.open { display: block; }

.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}

.tweaks-head h4 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tweaks-close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--muted);
}
.tweaks-close:hover { background: var(--panel-soft); color: var(--text); }

.tweak-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.tweak-row:first-of-type { border-top: 0; padding-top: 0; }

.tweak-row .label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tweak-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tweak-opt {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.tweak-opt:hover { border-color: var(--accent); }
.tweak-opt.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.tweak-swatch {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
