/* ==========================================================================
   Gray's Auto Detailing
   Dark bento layout, brand blue accent, notched-corner tiles.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand */
  --blue: #4a94e8;          /* wordmark blue, used for accents & primary buttons */
  --blue-hover: #6aa8ee;
  --blue-ink: #06121f;      /* text on --blue (contrast 6.8:1) */
  --panel: #24598f;         /* deep steel blue panel; white text 7.2:1 */
  --panel-2: #2d669f;
  --panel-tile: #1d4b79;

  /* Surfaces */
  --bg: #0a0b0d;
  --surface: #131518;
  --surface-2: #1a1d21;
  --surface-3: #22262b;
  --line: #262a30;
  --line-strong: #353a42;

  /* Text */
  --text: #f3f5f7;
  --text-2: #c9ced6;
  --muted: #9aa1ab;         /* 7:1 on --surface */
  --danger: #ff8a80;
  --success: #6fd49a;

  /* Type */
  --font-display: 'Raleway', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Spacing (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius: 18px;
  --radius-sm: 12px;
  --notch-w: 52px;
  --notch-h: 40px;
  --gutter: 16px;
  --maxw: 1240px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 150ms;
  --dur: 240ms;
  --dur-slow: 600ms;

  --z-header: 40;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--blue); color: var(--blue-ink); padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s4); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, .h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
.accent { color: var(--blue); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 54ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.label { color: var(--muted); display: inline-block; }
.optional { font: 500 0.75rem var(--font-body); color: var(--muted); margin-left: var(--s2); text-transform: none; letter-spacing: 0; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--h); padding: 0 var(--s5);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 44px; padding: 0 var(--s4); font-size: 0.875rem; }
.btn-primary { background: var(--blue); color: var(--blue-ink); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: #4a505a; }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: #0a0b0d; }
.btn-light:hover { background: #e7edf5; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}
.icon-btn:hover:not([disabled]) { background: var(--surface-3); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- Tiles & notch ---------- */
.tile { position: relative; background: var(--surface); border-radius: var(--radius); padding: var(--s5); }
.tile-img { padding: 0; overflow: hidden; background: var(--surface-2); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.tile-img:hover img { transform: scale(1.03); }
.tag {
  position: absolute; left: var(--s3); bottom: var(--s3);
  background: rgba(10, 11, 13, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: 8px; color: var(--text-2);
}

/* Inverted corner cut-out (top-right), echoing the reference tiles */
.notch { --notch-bg: var(--bg); }
.notch::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: var(--notch-w); height: var(--notch-h);
  background: var(--notch-bg); border-bottom-left-radius: 14px;
}
.notch-icon {
  position: absolute; top: 0; right: 0; z-index: 1;
  width: calc(var(--notch-w) - 8px); height: calc(var(--notch-h) - 8px);
  display: grid; place-items: center; color: var(--muted);
}
.notch-icon .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(10, 11, 13, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand-mark { font: 900 1.2rem/1 var(--font-display); letter-spacing: 0.02em; }
.brand-sub { font: 500 0.66rem/1 var(--font-display); letter-spacing: 0.42em; color: var(--blue); margin-top: 5px; }
.brand-lg .brand-mark { font-size: 1.6rem; }
.brand-lg .brand-sub { font-size: 0.8rem; letter-spacing: 0.5em; }

.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: var(--s2); }
.nav-phone { display: none; }
.nav-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); cursor: pointer;
}
.nav-mobile-only { }

/* mobile drawer */
.nav-links.open {
  display: flex; flex-direction: column; gap: var(--s1);
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s3) var(--gutter) var(--s5);
}
.nav-links.open a { padding: var(--s3) var(--s2); text-decoration: none; font-weight: 500; font-size: 1.05rem; border-radius: 10px; }
.nav-links.open a:hover { background: var(--surface); }

@media (min-width: 900px) {
  .nav-toggle, .nav-mobile-only { display: none; }
  .nav-links {
    display: flex; gap: 2px; padding: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  }
  .nav-links a {
    padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 0.9rem; color: var(--text-2);
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  }
  .nav-links a:hover { color: var(--text); background: var(--surface-2); }
  .nav-links a.active { background: var(--surface-3); color: var(--text); }
}
@media (min-width: 1100px) { .nav-phone { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { display: grid; gap: var(--s6); padding-top: var(--s6); padding-bottom: var(--s8); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 500 0.8rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: var(--s5);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(74,148,232,.18); }
.hero-copy h1 { margin-bottom: var(--s5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s6); color: var(--text-2); font-size: .92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s2); }
.hero-facts .icon { color: var(--blue); }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.hero-main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.hero-main img { object-position: 50% 72%; }
.hero-side { aspect-ratio: 1; }
.hero-side img { object-position: 50% 68%; }
.tile-stat { display: flex; flex-direction: column; gap: var(--s2); min-height: 180px; }
.tile-stat .label { margin-bottom: auto; }
.tile-title { font: 600 1.15rem/1.2 var(--font-display); }
.tile-text { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tile-blue { background: var(--panel); }
.tile-blue .label, .tile-blue .tile-text { color: #dbe8f7; }
.tile-price { font: 700 1.9rem/1 var(--font-display); letter-spacing: -0.02em; }

@media (min-width: 640px) {
  .hero-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .hero-main { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .hero-side { grid-column: 3; grid-row: 2 / 4; aspect-ratio: auto; }
  .tile-stat { min-height: 0; }
  .tile-blue { grid-column: 1 / 3; grid-row: 3; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: var(--s5); align-items: end; }
  .tile-blue .label { grid-column: 1 / -1; align-self: start; }
  .tile-blue .tile-text { max-width: 30ch; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--s7); padding-top: var(--s7); padding-bottom: var(--s9); }
  .hero-grid { grid-auto-rows: 220px; }
}

/* ---------- Why ---------- */
.why { padding-bottom: var(--s9); }
.why-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 720px; }
.why-grid { display: grid; gap: var(--s3); }
.why-grid .tile:not(.tile-img) { display: flex; flex-direction: column; gap: var(--s2); min-height: 220px; }
.why-grid .tile .label { margin-bottom: auto; }
.why-grid h3 { margin-top: var(--s5); }
.why-grid p { color: var(--muted); font-size: .95rem; }
.why-img { aspect-ratio: 4 / 3; }
.why-img img { object-position: 50% 65%; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr) 1.2fr; }
  .why-img { aspect-ratio: auto; }
}

/* ---------- Section head ---------- */
.section-head { display: grid; gap: var(--s4); margin-bottom: var(--s6); align-items: end; }
.section-head h2 { margin-top: var(--s3); }
.section-note { color: var(--muted); max-width: 46ch; }
.section-note strong { color: var(--text-2); font-weight: 500; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr auto; } .section-head > .btn { justify-self: end; } }

/* ---------- Services ---------- */
.services { padding: var(--s9) 0; background: linear-gradient(180deg, var(--bg), #0d0f12 30%, #0d0f12 70%, var(--bg)); }
.services .notch { --notch-bg: #0d0f12; }
.svc-grid { display: grid; gap: var(--s3); }
.svc { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6) var(--s5); }
.svc h3 { margin-top: var(--s4); }
.svc-price { font: 700 1.6rem/1 var(--font-display); letter-spacing: -0.01em; }
.svc-price span { color: var(--muted); font-weight: 500; margin: 0 2px; }
.checks { display: grid; gap: var(--s2); margin-top: var(--s2); }
.checks li { display: flex; gap: var(--s2); align-items: flex-start; color: var(--text-2); font-size: .95rem; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: rgba(74,148,232,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a94e8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.svc-meta { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); margin-top: auto; padding-top: var(--s4); }
.svc-meta .icon { width: 15px; height: 15px; }
.svc-feature { background: var(--blue); color: var(--blue-ink); }
.svc-feature .label, .svc-feature .svc-meta, .svc-feature .svc-price span { color: rgba(6,18,31,.72); }
.svc-feature p { color: var(--blue-ink); }
.svc-feature .btn { align-self: flex-start; margin-top: var(--s3); }
.badge {
  display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  background: var(--blue-ink); color: #fff; font-size: .68rem;
}
.svc-feature .badge { position: absolute; top: var(--s5); right: var(--s5); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.protect {
  margin-top: var(--s3); background: var(--panel); border-radius: var(--radius); padding: var(--s6) var(--s5);
  display: grid; gap: var(--s6);
}
.protect .label { color: #cfe0f4; }
.protect-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: var(--s3) 0; }
.protect-head p { color: #e3edf9; max-width: 48ch; }
.protect-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.services .addon {
  --notch-bg: var(--panel);
  position: relative; background: var(--panel-tile); border-radius: var(--radius-sm); padding: var(--s4);
  display: flex; flex-direction: column; gap: 6px; min-height: 150px;
}
.addon .notch-icon { color: #cfe0f4; }
.addon .label { color: #b9d1ec; margin-bottom: auto; }
.addon-title { font-weight: 600; margin-top: var(--s4); }
.addon-price { font: 700 1.05rem var(--font-display); }
.addon-meta { color: #cfe0f4; font-size: .68rem; line-height: 1.5; }
.addon-wide { grid-column: 1 / -1; }
@media (min-width: 640px) { .protect { padding: var(--s7) var(--s6); } }
@media (min-width: 1024px) {
  .protect { grid-template-columns: 0.9fr 1.4fr; align-items: start; }
  .addon-grid { grid-template-columns: repeat(3, 1fr); }
  .addon-wide { grid-column: span 2; }
}

/* ---------- Booking ---------- */
.booking { padding-top: var(--s9); padding-bottom: var(--s9); }
.demo-banner {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: rgba(74,148,232,.1); border: 1px solid rgba(74,148,232,.35); color: var(--text-2);
  border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: .9rem;
}
.demo-banner .icon { color: var(--blue); margin-top: 3px; }
.booker { display: grid; gap: var(--s3); align-items: start; }
.booker-main { padding: var(--s5) var(--s4); }
@media (min-width: 640px) { .booker-main { padding: var(--s6); } }
@media (min-width: 1024px) { .booker { grid-template-columns: 1fr 340px; } .summary { position: sticky; top: 96px; } }

.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); margin-bottom: var(--s6); counter-reset: step; }
.stepper button {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2);
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--muted);
}
.stepper button::before { content: ""; display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line-strong); transition: background-color var(--dur) ease; }
.stepper .num { display: none; }
.stepper .txt { font-size: .78rem; font-weight: 500; line-height: 1.25; }
.stepper button[disabled] { cursor: default; }
.stepper li.done button { color: var(--text-2); }
.stepper li.done button::before { background: var(--blue); opacity: .55; }
.stepper li.current button { color: var(--text); }
.stepper li.current button::before { background: var(--blue); }
@media (max-width: 479px) { .stepper .txt { font-size: .7rem; } .stepper li:not(.current) .txt { visibility: hidden; } }

.step { animation: stepIn var(--dur) var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-title { font: 600 clamp(1.35rem, 2.6vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -0.01em; outline: none; }
.step-hint { color: var(--muted); margin: var(--s2) 0 var(--s5); font-size: .95rem; }
.sub-title { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; margin: var(--s6) 0 var(--s3); }

.choice-grid { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .choice-3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body {
  height: 100%; display: flex; flex-direction: column; gap: 4px;
  padding: var(--s4); border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1.5px solid var(--line-strong);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.choice:hover .choice-body { border-color: #4a505a; }
.choice input:checked + .choice-body { border-color: var(--blue); background: rgba(74,148,232,.1); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--blue); outline-offset: 3px; }
.choice input:disabled + .choice-body { opacity: .4; cursor: not-allowed; }
.choice-icon { width: 64px; height: 32px; margin-bottom: var(--s3); fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.choice input:checked + .choice-body .choice-icon { stroke: var(--blue); }
.choice-title { font-weight: 600; font-size: 1.02rem; }
.choice-sub { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.choice-price { font: 700 1.35rem var(--font-display); margin-top: var(--s3); font-variant-numeric: tabular-nums; }
.choice-time { color: var(--muted); }
.choice .badge { background: var(--blue); color: var(--blue-ink); margin-bottom: var(--s2); }

/* Fields */
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .92rem; }
.req { color: var(--blue); }
.field input {
  width: 100%; min-height: 50px; padding: 0 var(--s4);
  background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 16px; transition: border-color var(--dur-fast) ease;
}
.field input::placeholder { color: #6f7680; }
.field input:hover { border-color: #4a505a; }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(74,148,232,.25); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.help { color: var(--muted); font-size: .85rem; }
.help strong { color: var(--text); font-variant-numeric: tabular-nums; }
.error { color: var(--danger); font-size: .85rem; }
.form-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-miles { max-width: 360px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 72px; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.input-suffix span { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.chip {
  min-height: 44px; padding: 0 var(--s4); border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-strong); font-weight: 500; font-size: .9rem;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.chip:hover { background: var(--surface-3); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: rgba(74,148,232,.12); }

/* Add-on rows */
.addon-row {
  display: grid; gap: var(--s3); padding: var(--s4); margin-bottom: var(--s3);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
@media (min-width: 760px) { .addon-row { grid-template-columns: 1fr auto; align-items: center; } }
.addon-row-head { display: grid; gap: 2px; }
.addon-row-title { font-weight: 600; }
.addon-row-title .mono { margin-left: var(--s2); font-size: .68rem; }
.addon-row-sub { color: var(--muted); font-size: .85rem; }
.addon-row.is-disabled .addon-row-sub { color: #e6b866; }

.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.segmented label { position: relative; flex: 1 1 auto; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 var(--s3);
  border-radius: 9px; font-size: .85rem; font-weight: 500; white-space: nowrap; color: var(--text-2);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.segmented em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.segmented label:hover span { background: var(--surface-2); }
.segmented input:checked + span { background: var(--blue); color: var(--blue-ink); }
.segmented input:checked + span em { color: rgba(6,18,31,.75); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.segmented input:disabled + span { opacity: .35; cursor: not-allowed; }

.addon-check { cursor: pointer; }
.check-wrap { position: relative; display: inline-flex; align-items: center; gap: var(--s3); justify-self: start; }
.check-wrap input { position: absolute; opacity: 0; width: 44px; height: 44px; left: -10px; margin: 0; cursor: pointer; }
.check-box {
  width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--bg);
  display: grid; place-items: center; color: transparent; transition: all var(--dur-fast) ease;
}
.check-box .icon { width: 16px; height: 16px; stroke-width: 3; }
.check-wrap input:checked + .check-box { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.check-wrap input:focus-visible + .check-box { outline: 2px solid var(--blue); outline-offset: 3px; }
.check-price { font-weight: 600; font-variant-numeric: tabular-nums; }

.callout {
  display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s4);
  padding: var(--s4); border-radius: var(--radius-sm); border: 1px dashed var(--line-strong); color: var(--text-2); font-size: .92rem;
}
.callout .icon { color: var(--blue); margin-top: 3px; }
.callout a { color: var(--blue); font-weight: 600; }

/* Calendar */
.schedule { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .schedule { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.cal { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.cal-month { font-weight: 600; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font: 500 .7rem var(--font-mono); color: var(--muted); padding: var(--s2) 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; position: relative;
  border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer;
  font-weight: 500; font-variant-numeric: tabular-nums; font-size: .92rem;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.cal-day.open { background: var(--surface-3); }
.cal-day.open:hover { border-color: var(--blue); }
.cal-day.open::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.cal-day[disabled] { color: #5a616b; cursor: default; }
.cal-day.full { text-decoration: line-through; }
.cal-day.today { border-color: var(--line-strong); }
.cal-day[aria-selected="true"] { background: var(--blue); color: var(--blue-ink); }
.cal-day[aria-selected="true"]::after { background: var(--blue-ink); }
.cal-status { color: var(--muted); font-size: .8rem; margin-top: var(--s3); min-height: 1.2em; }

.slots-title { font-weight: 600; margin-bottom: var(--s3); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.slot {
  min-height: 56px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.slot small { font-weight: 400; font-size: .72rem; color: var(--muted); }
.slot:hover:not([disabled]) { border-color: #4a505a; }
.slot[aria-checked="true"] { border-color: var(--blue); background: rgba(74,148,232,.12); }
.slot[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot[disabled] small { text-decoration: none; }

/* Step nav, errors */
.step-nav { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.step-nav #btn-next, .step-nav #btn-submit { margin-left: auto; }
.form-error {
  margin-top: var(--s5); padding: var(--s3) var(--s4); border-radius: var(--radius-sm);
  background: rgba(255,138,128,.1); border: 1px solid rgba(255,138,128,.4); color: #ffd3cf; font-size: .92rem;
}
.error-summary {
  margin-bottom: var(--s5); padding: var(--s4); border-radius: var(--radius-sm);
  background: rgba(255,138,128,.08); border: 1px solid rgba(255,138,128,.4); outline: none;
}
.error-summary p { font-weight: 600; color: #ffd3cf; margin-bottom: var(--s2); }
.error-summary ul { list-style: disc; padding-left: var(--s5); }
.error-summary a { color: var(--danger); }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(6,18,31,.3); border-top-color: var(--blue-ink); animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation */
.confirm { text-align: center; padding: var(--s7) var(--s2); outline: none; animation: stepIn var(--dur-slow) var(--ease-out); }
.confirm-icon { width: 64px; height: 64px; margin: 0 auto var(--s5); display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--blue-ink); }
.confirm-icon .icon { stroke-width: 3; }
.confirm h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--s3); }
.confirm p { color: var(--text-2); max-width: 46ch; margin: 0 auto var(--s2); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }

/* Summary */
.summary { display: grid; gap: var(--s4); }
.sum-facts { display: grid; gap: var(--s2); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.sum-facts div { display: flex; justify-content: space-between; gap: var(--s4); font-size: .92rem; }
.sum-facts dt { color: var(--muted); }
.sum-facts dd { text-align: right; font-weight: 500; }
.sum-lines { display: grid; gap: var(--s2); font-size: .9rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: var(--s3); color: var(--text-2); }
.sum-lines li span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s4); border-top: 1px solid var(--line); }
.sum-total strong { font: 700 1.75rem var(--font-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.sum-note { color: var(--muted); font-size: .8rem; }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: var(--s9); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.gallery-grid .tile-img { aspect-ratio: 3 / 4; }
.gallery-grid .tile-img img { object-position: 50% 70%; }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid .tile-img:nth-child(even) { margin-top: var(--s7); }
}

/* ---------- Area + FAQ ---------- */
.faq { display: grid; gap: var(--s5); padding-bottom: var(--s9); }
.area { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6) var(--s5); align-self: start; }
.area h2 { margin-top: var(--s1); }
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); }
.towns li { display: flex; align-items: center; gap: var(--s2); color: var(--text-2); }
.towns .icon { color: var(--blue); width: 16px; height: 16px; }
.area .btn { align-self: flex-start; }
.faq-list h2 { margin: var(--s3) 0 var(--s5); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 60px; padding: var(--s4) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }
summary .icon { color: var(--muted); transition: transform var(--dur) var(--ease-out); }
details[open] summary .icon { transform: rotate(45deg); color: var(--blue); }
details p { color: var(--text-2); padding-bottom: var(--s5); max-width: 68ch; }
details a { color: var(--blue); }
@media (min-width: 1024px) { .faq { grid-template-columns: 0.85fr 1.15fr; gap: var(--s7); } .area { position: sticky; top: 96px; } }

/* ---------- CTA ---------- */
.cta { padding-bottom: var(--s9); }
.cta-inner {
  background: var(--panel) radial-gradient(120% 140% at 100% 0%, var(--panel-2), transparent 60%);
  border-radius: var(--radius); padding: var(--s7) var(--s5);
  display: grid; gap: var(--s5);
}
.cta-inner p { color: #e3edf9; margin-top: var(--s3); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; padding: var(--s8) var(--s7); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: var(--s8); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.tagline { font: 500 .8rem var(--font-display); letter-spacing: .3em; color: var(--muted); margin-top: var(--s4); }
.footer-h { font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--s3); }
.footer-links { display: grid; gap: var(--s2); }
.footer-links a, .footer-links span { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text-2); text-decoration: none; min-height: 32px; font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-links .icon { width: 16px; height: 16px; color: var(--blue); }
.footer-base { margin-top: var(--s7); padding-top: var(--s5); padding-bottom: var(--s6); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s4); }
.owner-link { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.owner-link:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@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; }
  .js .reveal { opacity: 1; transform: none; }
}
