/* ============================================================
   ALLEYOOPS WORKSHOP — Dark & Luxe Car Detailing
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root,
[data-theme='light'] {
  /* Surfaces — warm off-white */
  --color-bg: #f4f1ea;
  --color-surface: #fbfaf6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece8df;
  --color-surface-dynamic: #e2ddd2;
  --color-divider: #ddd8cc;
  --color-border: #c9c3b4;

  /* Text */
  --color-text: #1c1813;
  --color-text-muted: #6b655a;
  --color-text-faint: #a39c8d;
  --color-text-inverse: #1c1813;

  /* Accent — Amber Gold */
  --color-primary: #b0670b;
  --color-primary-hover: #8a4f06;
  --color-primary-active: #6a3c04;
  --color-primary-highlight: #efe2c8;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 70 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 70 / 0.10);
  --shadow-lg: 0 24px 60px oklch(0.2 0.02 70 / 0.16);
}

[data-theme='dark'] {
  /* Surfaces — deep warm charcoal */
  --color-bg: #0c0b09;
  --color-surface: #15130f;
  --color-surface-2: #1c1a15;
  --color-surface-offset: #221f19;
  --color-surface-dynamic: #2b2820;
  --color-divider: #2a2620;
  --color-border: #3a352c;

  /* Text */
  --color-text: #ece7dc;
  --color-text-muted: #968f80;
  --color-text-faint: #5e584d;
  --color-text-inverse: #ece7dc;

  /* Accent — Amber Gold */
  --color-primary: #e6a233;
  --color-primary-hover: #f0b450;
  --color-primary-active: #c8841c;
  --color-primary-highlight: #3a2f18;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 28px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 30px 70px oklch(0 0 0 / 0.6);
}

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1280px;

  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
  max-width: 70ch;
}

::selection {
  background: color-mix(in oklab, var(--color-primary) 30%, transparent);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.7;
}

.section-head {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
  max-width: 60ch;
}

.section-title {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
}

.section-sub {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  font-size: var(--text-lg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition);
  will-change: transform;
}

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

.btn--primary {
  background: var(--color-primary);
  color: #1a1407;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #1a1407;
}

.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  margin-left: var(--space-2);
}

.footer-workshop {
  font-weight: 400;
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  margin-left: var(--space-2);
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

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

.nav-links a:hover {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav.nav--open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-8);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
  }
  .nav.nav--open .nav-links a {
    font-size: var(--text-lg);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video sits above the still and fades in only once it is actually playing,
   so a slow connection or a blocked autoplay never shows an empty black box. */
.hero-bg-video {
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.hero-bg-video.is-playing {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-bg) 1%, transparent 12%),
    linear-gradient(to top, oklch(0 0 0 / 0.78), oklch(0 0 0 / 0.42) 55%, oklch(0 0 0 / 0.34)),
    linear-gradient(to right, oklch(0 0 0 / 0.45), oklch(0 0 0 / 0.1) 70%);
}

.hero-inner {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-20), 8vw, var(--space-24));
}

.hero-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero-title,
.hero-sub {
  color: #f4efe4;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  max-width: 14ch;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: normal;
  font-family: var(--font-display);
  color: var(--color-primary);
  text-decoration: none;
}

.hero-sub {
  margin-top: var(--space-6);
  max-width: 46ch;
  font-size: var(--text-lg);
  color: color-mix(in oklab, #f4efe4 82%, transparent);
}

.hero-cta {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero .btn--ghost {
  background: oklch(0 0 0 / 0.35);
  border-color: oklch(1 0 0 / 0.4);
  color: #f4efe4;
  backdrop-filter: blur(6px);
}

.hero .btn--ghost:hover {
  background: oklch(0 0 0 / 0.5);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
  overflow: hidden;
  padding-block: var(--space-5);
}

.marquee-track {
  display: flex;
  gap: var(--space-12);
  white-space: nowrap;
  width: max-content;
  animation: scroll 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.marquee-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.service-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.service-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-body {
  padding: var(--space-8);
}

.service-index {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.service-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.service-list {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 1px;
  background: var(--color-primary);
  transform: rotate(45deg);
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

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

.split-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.split-title {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
}

.split-text {
  color: var(--color-text-muted);
  margin-top: var(--space-5);
  font-size: var(--text-lg);
}

.feature-list {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-6);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.feature-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Process ---------- */
.process {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

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

.step {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.step-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.step-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.step-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: clamp(var(--space-8), 5vw, var(--space-16));
}

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

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

@media (max-width: 860px) {
  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 6vw, var(--space-24)) clamp(var(--space-8), 6vw, var(--space-16));
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 120% at 50% 0%,
    color-mix(in oklab, var(--color-primary) 18%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-title {
  font-size: var(--text-2xl);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-sub {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.cta-phone:hover {
  color: var(--color-primary-hover);
}

.cta-actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ---------- Map ---------- */
.map-wrap {
  margin-top: var(--space-8);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

[data-theme='dark'] .map-wrap iframe {
  filter: grayscale(0.3) brightness(0.82) contrast(1.05);
}

.map-caption {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.map-caption a {
  color: var(--color-primary);
  font-weight: 600;
}

.map-caption a:hover {
  color: var(--color-primary-hover);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  color: var(--color-text-muted);
  max-width: 36ch;
  font-size: var(--text-sm);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Pricing ---------- */
.price-lead {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  font-size: var(--text-base);
  max-width: 58ch;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-4), 2vw, var(--space-6));
  align-items: start;
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 2.4vw, var(--space-10));
  display: flex;
  flex-direction: column;
}

.price-card--wide {
  grid-column: 1 / -1;
}

.price-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  table-layout: fixed;
}

.price-table th,
.price-table td {
  text-align: right;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: baseline;
}

.price-table th[scope='row'] {
  text-align: left;
  font-weight: 400;
  color: var(--color-text);
  padding-right: var(--space-3);
  width: 58%;
  hyphens: none;
}

.price-table thead th {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text-faint);
  padding-bottom: var(--space-2);
}

.price-table thead th:first-child {
  text-align: left;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table td {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.price-table--single th[scope='row'] {
  width: 66%;
}

.price-ask,
.price-free {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: var(--text-xs);
  white-space: normal !important;
}

.price-ask {
  color: var(--color-text-muted) !important;
}

.price-free {
  color: var(--color-primary) !important;
}

.price-note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.addon-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3) clamp(var(--space-6), 4vw, var(--space-12));
}

.addon-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}

.addon-list li em {
  display: block;
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* no dangling rule under the last item of each add-on column */
.addon-list li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.addon-price {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.price-foot {
  margin-top: clamp(var(--space-6), 3vw, var(--space-10));
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.price-foot a {
  color: var(--color-primary);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.price-foot a:hover {
  color: var(--color-primary-hover);
}

/* One card per row before the price columns get cramped */
@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
  .addon-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .addon-list li:nth-last-child(3) {
    border-bottom: 1px solid var(--color-divider);
  }
}

/* Phones: stack each row — name on its own line, labelled prices beneath */
@media (max-width: 560px) {
  .price-table {
    table-layout: auto;
  }
  .price-table thead {
    display: none;
  }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th[scope='row'] {
    display: block;
    width: auto;
  }
  .price-table tr {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-divider);
  }
  .price-table tbody tr:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .price-table tbody tr:first-child {
    padding-top: 0;
  }
  .price-table th[scope='row'] {
    text-align: left;
    font-weight: 500;
    padding: 0 0 var(--space-2);
    border-bottom: 0;
  }
  .price-table td {
    display: inline-block;
    text-align: left;
    border-bottom: 0;
    padding: 0;
    margin-right: var(--space-6);
  }
  .price-table td:last-child {
    margin-right: 0;
  }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: inline;
    margin-right: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }
  .price-ask,
  .price-free {
    display: block !important;
    margin-right: 0 !important;
  }
  .addon-list {
    grid-template-columns: 1fr;
  }
  .addon-list li:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--color-divider);
  }
  .addon-list li:last-child {
    border-bottom: 0;
  }
}

/* ---------- Real logo badge ---------- */
.brand-badge {
  height: 42px;
  width: auto;
  flex: none;
  display: block;
}

.footer-badge {
  height: 124px;
  width: auto;
  display: block;
}

/* the footer lockup carries its own wordmark, so no text beside it */
.footer-brand {
  margin-bottom: var(--space-5);
}

@media (max-width: 480px) {
  .brand-badge {
    height: 38px;
  }
  .footer-badge {
    height: 104px;
  }
  /* keep the wordmark on one line beside the badge */
  .brand-text {
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .brand {
    gap: var(--space-2);
  }
}
