/* Hallmark: custom-archetype-7 | Palette: OKLCH Pearl Alabaster / Gulf Coastal Navy / Electric Aqua | Fonts: Space Grotesk + Plus Jakarta Sans */
/* Critique: Bright pearl-alabaster configurator-first studio reversing dark detailing clichés; live Canvas rain physics + 6-layer GSAP shield peel + warranty studio */

:root {
  /* Core OKLCH Palette — High-Gloss Pearl Alabaster / Deep Gulf Coastal Midnight Navy / Electric Aqua */
  --ground: oklch(0.985 0.005 224);
  --surface: oklch(0.998 0.002 224);
  --surface-tint: oklch(0.955 0.015 216);
  --surface-aqua: oklch(0.938 0.036 206);
  --ink: oklch(0.185 0.052 248);
  --ink-strong: oklch(0.145 0.055 250);
  --ink-muted: oklch(0.415 0.038 244);
  --ink-on-navy: oklch(0.982 0.006 220);
  --ink-on-navy-muted: oklch(0.815 0.025 226);
  --accent: oklch(0.71 0.148 202);
  --accent-deep: oklch(0.445 0.128 214);
  --accent-glow: oklch(0.78 0.135 198);
  --line: oklch(0.878 0.018 232);
  --line-strong: oklch(0.76 0.028 235);
  --danger: oklch(0.48 0.16 24);
  --shadow-soft: 0 22px 48px -24px oklch(0.22 0.05 248 / 0.16);
  --shadow-plate: 0 18px 34px -18px oklch(0.18 0.05 248 / 0.22);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Geometry */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--ground);
  color: var(--ink);
  caret-color: var(--accent-deep);
}

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

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ground);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--radius-pill);
  border: 2px solid var(--ground);
}

[hidden] {
  display: none !important;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  overflow-wrap: break-word;
  min-width: 0;
}

p {
  margin: 0;
  max-width: 68ch;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--ink-strong);
  color: var(--ink-on-navy);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 36px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: oklch(0.985 0.005 224 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  color: var(--ink-strong);
  flex-shrink: 0;
}

.brand-mark-inner {
  stroke: var(--accent-deep);
}

.brand-mark-core {
  fill: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.brand-city {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--ink-strong);
}

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

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-strong);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 160ms ease, background-color 160ms ease;
  white-space: nowrap;
}

.phone-link:hover {
  border-color: var(--accent-deep);
  background: var(--surface-tint);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--ink-strong);
  color: var(--ink-on-navy);
}

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

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink-strong);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink-strong);
  background-color: var(--surface-tint);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.header-cta {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* =========================================================
   HERO — ARCHETYPE #7 GALLERY SPLIT
   ========================================================= */
.hero {
  padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--ground) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.hero-lead {
  margin-top: 18px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--ink-muted);
  line-height: 1.58;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof-row {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof-item dt {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.proof-item dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.hero-visual {
  margin: 0;
  min-width: 0;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--surface-tint);
  box-shadow: var(--shadow-soft);
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* =========================================================
   SECTION 2 — INTERACTIVE PACKAGE STUDIO
   ========================================================= */
.studio-section {
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

.section-sub {
  margin-top: 12px;
  font-size: 1.04rem;
  color: var(--ink-muted);
}

.studio-workbench {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.control-group legend {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 10px;
  padding: 0;
}

.segmented-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segmented-bar-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seg-btn {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.seg-btn:hover {
  border-color: var(--accent-deep);
}

.seg-btn.is-active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--ink-on-navy);
}

.option-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opt-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.opt-tile:hover {
  border-color: var(--accent-deep);
}

.opt-tile.is-active {
  border-color: var(--accent-deep);
  background: var(--surface-aqua);
}

.opt-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink-strong);
}

.opt-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.control-note {
  margin-top: 9px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Right Specimen Panel */
.specimen-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.6vw, 28px);
}

.specimen-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.specimen-header h3 {
  font-size: 1.24rem;
}

.specimen-header p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.specimen-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-aqua);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.schematic-wrap {
  margin-block: 16px;
  border-radius: var(--radius-md);
  background: var(--ground);
  border: 1px solid var(--line);
  overflow: hidden;
}

#zone-schematic {
  width: 100%;
  height: auto;
  color: var(--ink-strong);
}

.schem-ground {
  stroke: var(--line-strong);
}

.zone-ceramic {
  fill: var(--surface-tint);
  stroke: var(--ink-strong);
  stroke-width: 2.2;
  transition: fill 220ms ease, stroke 220ms ease;
}

.zone-ceramic.is-coated {
  fill: oklch(0.84 0.08 205 / 0.42);
  stroke: var(--accent-deep);
}

.zone-ppf-front,
.zone-ppf-rocker,
.zone-ppf-full {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2.4;
  transition: fill 220ms ease, stroke 220ms ease;
}

.zone-ppf-front.is-on,
.zone-ppf-rocker.is-on,
.zone-ppf-full.is-on {
  fill: oklch(0.71 0.148 202 / 0.34);
  stroke: var(--accent-deep);
  stroke-dasharray: 6 4;
}

.zone-tint {
  fill: oklch(0.92 0.015 220);
  stroke: var(--ink-strong);
  stroke-width: 2;
  transition: fill 220ms ease;
}

.zone-tint.tint-s5 {
  fill: oklch(0.45 0.045 245 / 0.58);
}

.zone-tint.tint-s7 {
  fill: oklch(0.32 0.05 245 / 0.72);
}

.zone-tint.tint-phantom {
  fill: oklch(0.2 0.055 246 / 0.88);
}

.schem-pillar {
  stroke: var(--surface);
  stroke-width: 2.2;
}

.schem-hardtop {
  fill: var(--ink-strong);
}

.schem-water {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.zone-wheels circle {
  fill: var(--surface);
  stroke: var(--ink-strong);
  stroke-width: 2.2;
}

.zone-wheels.is-coated circle:nth-child(even) {
  stroke: var(--accent-deep);
  fill: var(--surface-aqua);
}

.schem-callouts line {
  stroke: var(--accent-deep);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}

.schem-callouts circle {
  fill: var(--accent-deep);
}

.schem-callouts text {
  fill: var(--ink-strong);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
}

.spec-readout {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
}

.spec-cell dt {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.spec-cell dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

.specimen-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.included-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.91rem;
  color: var(--ink-muted);
}

/* Warranty Comparison Matrix */
.comparison-block {
  margin-top: clamp(36px, 5vw, 56px);
}

.comparison-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  margin-bottom: 16px;
}

.comparison-head h3 {
  font-size: 1.35rem;
}

.comparison-head p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.spec-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.spec-table th {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--ink-muted);
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}

.spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table tbody tr.is-highlighted {
  background-color: var(--surface-aqua);
}

.spec-table tbody tr.is-highlighted td:first-child strong {
  color: var(--accent-deep);
}

/* =========================================================
   SECTION 3 — 320VH GSAP PINNED SHIELD PEEL + LIVE CANVAS PHYSICS
   ========================================================= */
.shield-track {
  position: relative;
  background: linear-gradient(180deg, var(--surface-tint) 0%, var(--ground) 100%);
  border-bottom: 1px solid var(--line);
}

.shield-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(42px, 5vw, 68px);
}

.shield-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shield-header-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 28px;
}

.shield-header-bar h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  max-width: 22ch;
}

.shield-sub {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.physics-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  gap: 4px;
}

.phys-btn {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.phys-btn.is-active {
  background: var(--ink-strong);
  color: var(--ink-on-navy);
}

.shield-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
}

.shield-viewport {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
}

.solar-rays-svg {
  width: 100%;
  height: 76px;
  margin-bottom: -14px;
  pointer-events: none;
}

.ray-in {
  stroke: oklch(0.68 0.16 55);
  stroke-width: 2.2;
  stroke-dasharray: 6 5;
  opacity: 0.85;
}

.ray-bounce {
  stroke: var(--accent-deep);
  stroke-width: 2.4;
  stroke-dasharray: 7 4;
  opacity: 0.9;
}

.layer-stack {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.shield-plate {
  position: absolute;
  width: min(100%, 540px);
  height: 82px;
  border-radius: var(--radius-md);
  will-change: transform, opacity;
  transition: box-shadow 220ms ease;
  cursor: pointer;
}

.shield-plate.is-focused .plate-surface {
  border-color: var(--accent-deep);
  box-shadow: var(--shadow-plate);
}

.plate-surface {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  transform: rotateX(24deg) skewX(-6deg);
}

.plate-base {
  background: linear-gradient(135deg, oklch(0.24 0.048 248) 0%, oklch(0.19 0.045 250) 100%);
  color: var(--ink-on-navy);
  border-color: oklch(0.35 0.045 248);
}

.plate-polish {
  background: linear-gradient(135deg, oklch(0.32 0.055 244) 0%, oklch(0.26 0.052 246) 100%);
  color: var(--ink-on-navy);
  border-color: oklch(0.45 0.055 240);
}

.plate-ppf {
  background: linear-gradient(135deg, oklch(0.96 0.014 218 / 0.9) 0%, oklch(0.91 0.032 208 / 0.84) 100%);
  color: var(--ink-strong);
}

.plate-ceramic {
  background: linear-gradient(135deg, oklch(0.92 0.048 205 / 0.92) 0%, oklch(0.84 0.088 202 / 0.88) 100%);
  color: var(--ink-strong);
}

.plate-hydro {
  background: linear-gradient(135deg, oklch(0.22 0.058 244) 0%, oklch(0.29 0.085 224) 100%);
  color: var(--ink-on-navy);
  border-color: var(--accent);
  padding: 0;
}

#hydro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.plate-overlay-meta {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.plate-tint {
  background: linear-gradient(135deg, oklch(0.28 0.052 246 / 0.84) 0%, oklch(0.42 0.095 215 / 0.72) 100%);
  color: var(--ink-on-navy);
  border-color: var(--accent-glow);
}

.plate-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

.plate-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}

.plate-metric {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
}

.hotspot-rail {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hotspot-pill {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.hotspot-pill:hover {
  border-color: var(--accent-deep);
}

.hotspot-pill.is-active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--ink-on-navy);
}

.shield-inspector {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inspector-progress {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.inspector-progress label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 10px;
}

#shield-scrubber {
  width: 100%;
  accent-color: var(--accent-deep);
  cursor: pointer;
}

.scrubber-scale {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.inspector-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
}

.inspector-step {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.inspector-card h3 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.inspector-card > p:not(.inspector-step):not(.canvas-hint) {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.inspector-facts {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inspector-facts dt {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.inspector-facts dd {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.canvas-hint {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-aqua);
  color: var(--ink-strong);
  font-size: 0.84rem;
  font-weight: 500;
}

/* =========================================================
   SECTION 4 — PAINT CORRECTION LOUPE & STUDIO CAPABILITIES
   ========================================================= */
.craft-section {
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.craft-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.craft-copy h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.craft-copy p {
  margin-top: 14px;
  color: var(--ink-muted);
}

.loupe-controls {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loupe-stage {
  min-width: 0;
}

.loupe-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
  touch-action: pan-y;
  aspect-ratio: 16 / 9;
  background: var(--ink-strong);
}

.loupe-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loupe-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.loupe-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.84) brightness(1.04) blur(0.6px);
}

.swirl-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.loupe-tag {
  position: absolute;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: oklch(0.15 0.045 248 / 0.82);
  color: var(--ink-on-navy);
  pointer-events: none;
}

.loupe-tag-left {
  left: 14px;
}

.loupe-tag-right {
  right: 14px;
}

.loupe-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--surface);
  cursor: ew-resize;
  z-index: 4;
}

.loupe-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-strong);
  border: 2px solid var(--accent-deep);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.capabilities-spread {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.capabilities-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.capabilities-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.capabilities-list h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.capability-rows {
  margin: 22px 0 0;
  display: grid;
  gap: 18px;
}

.cap-row {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cap-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cap-row dt {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.cap-row dd {
  margin: 5px 0 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* =========================================================
   SECTION 5 — VERIFIED REPUTATION LEDGER
   ========================================================= */
.reputation-section {
  padding-block: clamp(56px, 7vw, 92px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.reputation-top {
  max-width: 720px;
}

.reputation-top h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.reputation-top p {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.reputation-ledger {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger-item {
  padding: 24px 20px 24px 0;
  border-right: 1px solid var(--line);
}

.ledger-item:not(:first-child) {
  padding-left: 20px;
}

.ledger-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.ledger-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.ledger-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.themes-strip {
  margin-top: 40px;
}

.themes-strip h3 {
  font-size: 1.25rem;
}

.themes-columns {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.theme-entry {
  padding-top: 16px;
  border-top: 2px solid var(--ink-strong);
}

.theme-entry h4 {
  font-size: 1.05rem;
}

.theme-entry p {
  margin-top: 8px;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.themes-source {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* =========================================================
   SECTION 6 — SERVICE AREA & PREVIEW-MODE QUOTE FORM
   ========================================================= */
.quote-section {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--ground);
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.quote-info h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.quote-info > p {
  margin-top: 12px;
  color: var(--ink-muted);
}

.area-checker {
  margin-top: 26px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.area-label {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.area-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-chip {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.area-chip.is-active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--ink-on-navy);
}

.area-response {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent-deep);
  font-weight: 500;
}

.shop-facts {
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-facts dt {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.shop-facts dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.shop-facts a {
  color: var(--ink-strong);
  text-decoration: underline;
}

.quote-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}

.preview-mode-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-aqua);
  color: var(--ink-strong);
  font-size: 0.86rem;
  margin-bottom: 20px;
}

.preview-mode-banner span {
  font-weight: 700;
  color: var(--accent-deep);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-strong);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--ground);
  color: var(--ink-strong);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--ink-muted);
}

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.form-success {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid var(--accent-deep);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-success h3 {
  font-size: 1.25rem;
}

.success-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* =========================================================
   FOOTER & ANTI-THEFT PREVIEW PILL
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 32px 72px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px 36px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.footer-brand p + p {
  margin-top: 4px;
}

.footer-note {
  max-width: 52ch;
}

.preview-lock-pill {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  pointer-events: none;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: oklch(0.16 0.05 248 / 0.94);
  color: var(--ink-on-navy);
  border: 1px solid var(--accent);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .studio-workbench,
  .shield-main-grid,
  .craft-split,
  .capabilities-spread,
  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reputation-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-item:nth-child(2) {
    border-right: 0;
  }

  .ledger-item:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .ledger-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .themes-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 62px;
    gap: 8px;
  }

  .brand-city,
  .header-cta {
    display: none;
  }

  .phone-link {
    padding: 0 11px;
    font-size: 0.84rem;
  }

  .hero {
    padding-block: 24px 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .proof-item dd {
    font-size: 0.9rem;
  }

  .option-grid-2,
  .spec-readout,
  .form-row-2,
  .shop-facts,
  .inspector-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row-2,
  .shop-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .layer-stack {
    height: 390px;
  }

  .shield-plate {
    height: 68px;
  }

  .plate-surface {
    padding: 10px 12px;
    transform: rotateX(16deg) skewX(-3deg);
  }

  .plate-label {
    font-size: 0.82rem;
  }

  .plate-metric {
    display: none;
  }

  .reputation-ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger-item,
  .ledger-item:not(:first-child) {
    padding: 18px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .ledger-item:first-child {
    border-top: 0;
  }

  .preview-lock-pill {
    right: 10px;
    bottom: 10px;
    font-size: 0.62rem;
    padding: 6px 10px;
    max-width: calc(100vw - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-footer {
    padding-bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
