/* ============ Autonopal — Brand Tokens ============ */
:root {
  --nopal-900: oklch(0.28 0.07 145);
  --nopal-800: oklch(0.34 0.08 145);
  --nopal-700: oklch(0.42 0.09 150);
  --nopal-500: oklch(0.55 0.11 152);
  --nopal-300: oklch(0.78 0.08 150);
  --nopal-100: oklch(0.94 0.04 145);

  --tuna-700: oklch(0.50 0.18 6);
  --tuna-500: oklch(0.62 0.20 4);
  --tuna-300: oklch(0.80 0.10 8);

  --arena-50:  oklch(0.985 0.008 80);
  --arena-100: oklch(0.96 0.015 78);
  --arena-200: oklch(0.92 0.022 75);
  --arena-300: oklch(0.86 0.028 72);

  --espina-900: oklch(0.18 0.01 90);
  --espina-700: oklch(0.30 0.012 90);
  --espina-500: oklch(0.48 0.012 90);
  --espina-300: oklch(0.72 0.008 90);

  --sol: oklch(0.84 0.13 80);

  --bg: var(--arena-50);
  --surface: #fff;
  --ink: var(--espina-900);
  --ink-muted: var(--espina-500);
  --line: oklch(0.88 0.012 85);
  --primary: var(--nopal-700);
  --accent: var(--tuna-500);

  --font-display: "Kanit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Kanit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,30,22,0.06), 0 1px 1px rgba(20,30,22,0.04);
  --shadow-md: 0 6px 20px -6px rgba(20,30,22,0.12), 0 2px 6px rgba(20,30,22,0.06);
  --shadow-lg: 0 24px 60px -20px rgba(20,30,22,0.20), 0 6px 16px rgba(20,30,22,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--arena-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ============ Layout primitives ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted);
}
section.block { padding: 80px 0; border-top: 1px solid var(--line); }
section.dark { background: var(--nopal-900); color: #fff; border-top: none; }
section.dark .kicker { color: var(--nopal-300); }
h2.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05;
  margin: 12px 0 0; max-width: 800px; text-wrap: balance;
}
h2.title.light { color: #fff; }
.lead-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.row-sub { font-size: 16px; color: var(--ink-muted); line-height: 1.55; }
.dark .row-sub { color: rgba(255,255,255,0.72); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--nopal-900); color: var(--sol); }
.btn-primary:hover { background: var(--nopal-800); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--nopal-900); border: 1px solid var(--nopal-900); }
.btn-ghost:hover { background: var(--nopal-900); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ============ Badge logo ============ */
.badge-logo {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nopal-900); color: var(--sol);
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1;
  border-radius: 10px; padding: 0 18px; height: 36px; font-size: 18px;
}
.badge-logo.lg { height: 44px; padding: 0 22px; font-size: 22px; border-radius: 12px; }

.mark-badge {
  display: flex; align-items: center; justify-content: center;
  background: var(--nopal-900); color: var(--sol);
  border-radius: 13%; aspect-ratio: 1 / 0.72;
  width: min(760px, 100% - 64px);
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(56px, 14vw, 240px);
}
.mark-badge .stack { text-align: left; }
.mark-badge .stack > div { display: block; }
.mark-badge.is-sol-bg { background: var(--sol); color: var(--nopal-900); }
.mark-badge.is-mono { background: #fff; color: var(--nopal-900); border: 1px solid var(--line); }
.mark-badge.is-inverted { background: var(--nopal-900); color: var(--sol); }

.mark-badge.sm {
  width: 100%; max-width: 220px;
  font-size: clamp(36px, 9vw, 64px);
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: color-mix(in oklab, var(--arena-50) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-links { display: flex; gap: 28px; }
.nav-cta { display: flex; gap: 10px; }
.nav a { text-decoration: none; }
.nav-links a { color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--nopal-700); }
a.badge-logo { color: var(--sol); }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  padding: 0;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--nopal-900); border-radius: 2px; transition: transform 0.2s; }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: var(--arena-50);
  padding: 24px 32px; flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.mobile-menu > a {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ============ Hero ============ */
.hero {
  padding: 80px 32px 100px;
  background:
    radial-gradient(circle at 85% 15%, oklch(0.92 0.16 130 / 0.45), transparent 50%),
    radial-gradient(circle at 0% 100%, var(--nopal-100), transparent 60%),
    var(--arena-50);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 32px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 4.8vw, 72px);
  letter-spacing: -0.045em; line-height: 0.95;
  margin: 24px 0 0; color: var(--nopal-900);
  text-wrap: balance; max-width: 100%; overflow-wrap: break-word;
}
.hero h1 em {
  font-style: normal; color: var(--nopal-900); background: var(--sol);
  padding: 0.02em 0.14em; border-radius: 0.08em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  display: inline-block;
}
.hero p.lead {
  max-width: 520px; font-size: 17px; line-height: 1.55;
  color: var(--ink-muted); margin: 24px 0 0;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-metrics {
  display: flex; gap: 28px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-metrics .m-n {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--nopal-900); letter-spacing: -0.02em;
}
.hero-metrics .m-l {
  font-size: 11px; color: var(--ink-muted);
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 4px;
}

/* ============ Carousel ============ */
.carousel { position: relative; }
.carousel-stack { position: relative; aspect-ratio: 4/3; }
.car-card {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  background: var(--arena-200);
  box-shadow: 0 30px 60px -20px rgba(20,30,22,0.25), 0 8px 20px rgba(20,30,22,0.08);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), opacity 0.6s;
  will-change: transform, opacity;
  opacity: 0; transform: translate(40px, 30px) scale(0.9); z-index: 0; pointer-events: none;
}
.car-card.is-active { opacity: 1; transform: none; z-index: 3; pointer-events: auto; }
.car-card.is-next { opacity: 0.55; transform: translate(28px, 18px) scale(0.95); z-index: 2; }
.car-card.is-prev { opacity: 0.35; transform: translate(-20px, 12px) scale(0.92); z-index: 1; }
.car-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,12,10,0.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; color: #fff;
}
.car-card .badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95); color: var(--nopal-900);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.car-card .price-pill {
  position: absolute; top: 16px; right: 16px;
  background: var(--nopal-900); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
}
.car-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; margin: 0; line-height: 1.05;
}
.car-card .meta {
  font-size: 12px; opacity: 0.8; margin-top: 6px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.car-card .specs {
  display: flex; gap: 16px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.car-card .spec-l {
  opacity: 0.6; font-family: var(--font-mono); letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 9px;
}
.car-card .spec-v { font-weight: 600; margin-top: 2px; font-size: 11px; }

.carousel-controls {
  display: flex; align-items: center; justify-content: space-between; margin-top: 20px;
}
.carousel-dots { display: flex; gap: 6px; }
.dot-btn {
  width: 28px; height: 4px; border-radius: 2px; background: var(--arena-300);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.2s;
}
.dot-btn.active { background: var(--nopal-900); width: 44px; }
.arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 18px; color: var(--nopal-900);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.arrow-btn:hover { background: var(--nopal-900); color: #fff; border-color: var(--nopal-900); }

/* ============ Marquee ============ */
.marquee {
  background: var(--nopal-900); color: #fff; padding: 28px 0;
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--nopal-700); border-bottom: 1px solid var(--nopal-700);
}
.marquee-track {
  display: inline-block; animation: scroll 30s linear infinite;
  font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: -0.02em;
}
.marquee-track span.item { margin: 0 24px; }
.marquee-track .dot { color: var(--tuna-500); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Badge showcase ============ */
.hero-badge-wrap { margin-top: 48px; display: flex; justify-content: center; }
.badge-variants {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px;
}
.badge-variant {
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line);
}
.badge-variant.on-sol { background: var(--sol); border-color: transparent; }
.badge-variant.on-dark { background: var(--nopal-900); border-color: transparent; }
.badge-variant .v-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-variant.on-sol .v-label { color: var(--nopal-900); }
.badge-variant.on-dark .v-label { color: var(--sol); }

.badge-context { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.badge-context-card {
  border-radius: 14px; padding: 28px; min-height: 120px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.badge-context-card.light { background: var(--arena-100); }
.badge-context-card.dark { background: var(--nopal-900); }
.badge-context-card .label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.badge-context-card.dark .label { color: var(--sol); }

/* ============ Trust (4 promises) ============ */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px;
}
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { border-color: var(--nopal-700); transform: translateY(-2px); }
.feature .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted); letter-spacing: 0.08em;
}
.feature h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em; margin: 14px 0 8px;
}
.feature p { font-size: 13px; line-height: 1.55; color: var(--ink-muted); margin: 0; }

/* ============ Palette ============ */
.swatch-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 36px;
}
.swatch {
  aspect-ratio: 1.1 / 1; border-radius: 8px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; transition: transform 0.2s; border: 1px solid var(--line);
}
.swatch:hover { transform: translateY(-3px); }
.swatch .name {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.swatch .tok { font-family: var(--font-mono); font-size: 10px; opacity: 0.78; }

/* ============ Product (dark, mobile mockup) ============ */
.tabbar {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; padding: 4px;
  width: fit-content; margin-top: 36px;
}
.tab {
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; background: transparent;
  color: rgba(255,255,255,0.75); font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.tab.active { background: #fff; color: var(--nopal-900); }

.product-stage {
  display: flex; gap: 28px; align-items: center; justify-content: center;
  margin-top: 48px; flex-wrap: wrap;
}
.product-caption { max-width: 320px; }
.product-caption .ckr {
  font-family: var(--font-mono); font-size: 11px; color: var(--nopal-300);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.product-caption .ctx {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  letter-spacing: -0.025em; margin-top: 8px; line-height: 1.1;
}

/* Phone frame */
.phone-frame {
  width: 320px; height: 760px;
  background: #0b0c0a; border-radius: 44px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.10);
  position: relative; flex-shrink: 0;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px; background: var(--arena-50);
  overflow: hidden; position: relative; color: var(--ink);
}
.phone-status-l, .phone-status-r {
  position: absolute; top: 0; height: 42px; z-index: 5;
  display: flex; align-items: center;
  font-size: 12px; font-weight: 600;
}
.phone-status-l { left: 0; width: calc(50% - 56px); justify-content: flex-end; padding-right: 8px; }
.phone-status-r { right: 0; width: calc(50% - 56px); justify-content: flex-start; padding-left: 8px; gap: 4px; }
.phone-status-r .dots-icon { font-size: 10px; }
.phone-status-r .battery {
  display: inline-block; width: 20px; height: 10px;
  border: 1.2px solid currentColor; border-radius: 3px; position: relative;
}
.phone-status-r .battery::after {
  content: ''; position: absolute; inset: 1.5px;
  background: currentColor; width: 78%; border-radius: 1px;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0b0c0a; border-radius: 14px; z-index: 6;
}
.phone-content { padding-top: 42px; height: 100%; box-sizing: border-box; }
.phone-content > .screen { height: calc(100% - 42px); }

/* App: Listings */
.app-listings { height: 100%; display: flex; flex-direction: column; background: var(--arena-50); }
.app-list-head { padding: 6px 18px 12px; }
.app-list-head .row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.app-list-head .avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--nopal-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--nopal-900); font-size: 12px;
}
.app-list-head .greet {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
}
.app-list-head .greet .muted { color: var(--ink-muted); }

.app-search { padding: 0 18px 10px; }
.app-search-pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-muted);
}
.app-chips { padding: 2px 18px 12px; display: flex; gap: 6px; overflow: hidden; flex-wrap: nowrap; }
.app-chip {
  font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); white-space: nowrap;
}
.app-chip.active { background: var(--nopal-900); color: #fff; border-color: var(--nopal-900); }

.app-list-body { flex: 1; overflow: hidden; padding: 0 18px 8px; min-height: 0; }
.app-list-count {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 8px;
}
.app-cards { display: grid; gap: 10px; }
.app-card {
  background: #fff; border-radius: 18px; padding: 10px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.app-thumb {
  height: 84px; border-radius: 14px; overflow: hidden;
  position: relative; background: #1a1a1a;
}
.app-thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-thumb .cert-tag {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,0.94); color: var(--nopal-900);
  font-size: 9.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.app-card-body { padding: 8px 4px 2px; }
.app-card-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.app-card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: -0.01em; white-space: nowrap;
}
.app-card-price {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--nopal-900); white-space: nowrap;
}
.app-card-meta {
  font-size: 10.5px; color: var(--ink-muted); margin-top: 2px;
  display: flex; gap: 6px;
}

.app-tabbar {
  padding: 10px 22px 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; background: #fff;
}
.app-tab {
  font-size: 10px; font-weight: 600; color: var(--ink-muted);
  text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.app-tab.active { color: var(--nopal-900); }
.app-tab .ico {
  width: 18px; height: 18px; border-radius: 6px; background: var(--arena-200);
}
.app-tab.active .ico { background: var(--nopal-900); }

/* App: Detail */
.app-detail { height: 100%; display: flex; flex-direction: column; background: var(--arena-50); }
.app-detail-head { padding: 6px 14px 10px; display: flex; justify-content: space-between; }
.app-icon-btn {
  width: 32px; height: 32px; border-radius: 999px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); font-size: 14px;
}
.app-detail-img { padding: 0 14px; position: relative; }
.app-detail-img .thumb { height: 170px; border-radius: 14px; overflow: hidden; background: #1a1a1a; position: relative; }
.app-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.app-detail-img .pager {
  position: absolute; bottom: 8px; right: 22px;
  background: rgba(11,12,10,0.78); color: #fff;
  font-size: 10px; padding: 4px 8px; border-radius: 999px;
}
.app-detail-body { padding: 14px 18px 0; flex: 1; overflow: hidden; }
.app-detail-h {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.app-detail-meta { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.app-detail-price {
  margin-top: 10px; font-family: var(--font-display); font-weight: 700;
  font-size: 26px; color: var(--nopal-900); letter-spacing: -0.02em;
}
.app-detail-price .mo { font-size: 12px; color: var(--ink-muted); font-weight: 500; margin-left: 8px; }
.app-trust-strip {
  margin-top: 14px; padding: 12px;
  background: var(--nopal-100);
  border: 1px solid color-mix(in oklab, var(--nopal-700) 18%, transparent);
  border-radius: 14px;
}
.app-trust-strip .h {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--nopal-900);
}
.app-trust-grid {
  margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11px;
}
.app-spec-h {
  margin-top: 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px;
}
.app-spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px;
}
.app-spec-grid .l { color: var(--ink-muted); }
.app-detail-cta { padding: 10px 14px 16px; display: flex; gap: 8px; }
.app-detail-cta .b1 {
  flex: 1; padding: 12px; border-radius: 999px; border: 1px solid var(--nopal-900);
  background: #fff; color: var(--nopal-900); font-weight: 700; font-size: 12px; cursor: pointer;
}
.app-detail-cta .b2 {
  flex: 1.2; padding: 12px; border-radius: 999px; border: none;
  background: var(--nopal-900); color: #fff; font-weight: 700; font-size: 12px; cursor: pointer;
}

/* App: Sell */
.app-sell { height: 100%; display: flex; flex-direction: column; background: var(--nopal-900); color: #fff; }
.app-sell-head { padding: 10px 18px 0; display: flex; justify-content: space-between; }
.app-sell-back {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.app-sell-step { font-size: 11px; opacity: 0.7; align-self: center; }
.app-sell-body { padding: 20px 22px 0; }
.app-sell-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.65;
}
.app-sell-h {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.025em; line-height: 1.1; margin-top: 8px;
}
.app-sell-amount {
  font-family: var(--font-display); font-weight: 700; font-size: 52px;
  letter-spacing: -0.04em; line-height: 1; margin-top: 18px; color: var(--nopal-100);
}
.app-sell-foot { font-size: 12px; opacity: 0.7; margin-top: 6px; }
.app-sell-card {
  margin: 20px 22px; padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
}
.app-sell-card .h {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.7;
}
.app-sell-card .b { margin-top: 8px; font-size: 12px; line-height: 1.55; }
.app-sell-cta { margin-top: auto; padding: 0 14px 18px; }
.app-sell-cta button {
  width: 100%; padding: 14px; border-radius: 999px; border: none;
  background: var(--tuna-500); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
}

/* ============ Stats ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-top: 48px;
}
.stat { padding: 28px 0; border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.stat .n {
  font-family: var(--font-display); font-weight: 700; font-size: 56px;
  letter-spacing: -0.04em; line-height: 1; color: var(--nopal-100);
}
.stat .l { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ============ Sucursales ============ */
.storefront-wrap { max-width: 100%; overflow: hidden; border-radius: 16px; margin-top: 48px; }
.storefront-wrap img { width: 100%; height: auto; display: block; border-radius: 16px; }

.branch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 24px; align-items: stretch;
}
.branch-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.branch-map {
  position: relative; height: 160px; background: var(--arena-100);
  background-image:
    linear-gradient(rgba(20,30,22,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,30,22,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
.branch-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.branch-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.branch-pin .badge-pin {
  width: 56px; height: 40px; border-radius: 10px;
  background: var(--nopal-900); color: var(--sol);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(20,30,22,0.35);
  border: 3px solid #fff;
  font-family: var(--font-display); font-weight: 800;
  font-size: 11px; line-height: 0.92; letter-spacing: -0.04em;
}
.branch-pin .badge-pin span { display: block; }
.branch-pin .triangle {
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--nopal-900);
  margin-top: -2px;
  filter: drop-shadow(0 4px 4px rgba(20,30,22,0.25));
}
.branch-pin .shadow {
  width: 28px; height: 6px; border-radius: 50%;
  background: rgba(20,30,22,0.18); margin-top: 4px; filter: blur(2px);
}
.branch-coords {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(255,255,255,0.95);
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
  padding: 4px 8px; border-radius: 999px; letter-spacing: 0.04em;
}
.branch-tag {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.branch-tag.sucursal { background: var(--nopal-900); color: var(--sol); }
.branch-tag.flagship { background: var(--sol); color: var(--nopal-900); }
.branch-body { padding: 18px; }
.branch-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.branch-city {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--nopal-900);
}
.branch-state {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px;
}
.branch-hours { font-size: 11px; color: var(--ink-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.branch-addr { font-size: 13px; color: var(--ink); margin-top: 12px; line-height: 1.4; }
.branch-cta { display: flex; gap: 8px; margin-top: 14px; }
.branch-cta .primary {
  flex: 1; padding: 8px 12px; background: var(--nopal-900); color: var(--sol);
  border: none; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; cursor: pointer;
}
.branch-cta .ghost {
  padding: 8px 12px; background: #fff; color: var(--nopal-900);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; cursor: pointer;
}

/* ============ Merch (Aplicaciones) ============ */
.merch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; align-items: center; justify-items: center;
}
.merch-cell { width: 100%; max-width: 360px; display: flex; align-items: center; justify-content: center; }

.bizcard {
  width: 100%; max-width: 360px; aspect-ratio: 360/210;
  border-radius: 12px; padding: 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.bizcard.front { background: var(--arena-50); border: 1px solid var(--line); }
.bizcard.front .glyph {
  width: 100px; height: 72px; background: var(--nopal-900); color: var(--sol);
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 32px;
  line-height: 0.92; letter-spacing: -0.045em;
}
.bizcard.front .glyph .stack { text-align: left; }
.bizcard.front .glyph .stack > div { display: block; }
.bizcard.front .info { position: absolute; bottom: 22px; left: 22px; }
.bizcard.front .name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.bizcard.front .role { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.bizcard.front .contact { font-size: 10px; color: var(--ink-muted); margin-top: 10px; font-family: var(--font-mono); line-height: 1.6; }
.bizcard.front .blob {
  position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 999px;
  background: var(--sol); opacity: 0.35;
}
.bizcard.back {
  background: var(--nopal-900);
  display: flex; align-items: center; justify-content: center;
}
.bizcard.back .stack-big {
  font-family: var(--font-display); font-weight: 800;
  font-size: 64px; line-height: 0.92; letter-spacing: -0.045em;
  color: var(--sol); text-align: left;
}
.bizcard.back .stack-big > div { display: block; }
.bizcard.back .micro {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-size: 9px; font-family: var(--font-mono); color: var(--sol); opacity: 0.7;
  letter-spacing: 0.18em; text-transform: uppercase;
}

.tote {
  width: 280px; height: 320px; position: relative;
  background: var(--arena-100); border-radius: 12px; padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.tote-body {
  width: 200px; height: 240px; background: var(--arena-200);
  border-radius: 4px 4px 8px 8px; position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.06);
}
.tote-body .handle {
  position: absolute; top: -34px; width: 32px; height: 64px;
  border-top: 6px solid var(--arena-300);
  border-left: 6px solid var(--arena-300);
  border-right: 6px solid var(--arena-300);
  border-radius: 24px 24px 0 0;
}
.tote-body .handle.l { left: 28px; }
.tote-body .handle.r { right: 28px; }
.tote-body .glyph {
  width: 130px; height: 93.6px; background: var(--nopal-900); color: var(--sol);
  border-radius: 17px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 41.6px;
  line-height: 0.92; letter-spacing: -0.045em;
}
.tote-body .glyph .stack { text-align: left; }
.tote-body .glyph .stack > div { display: block; }

.cap {
  width: 280px; height: 200px;
  background: var(--arena-100); border-radius: 12px; position: relative;
  display: flex; align-items: center; justify-content: center;
}

.plate {
  width: 100%; max-width: 360px; aspect-ratio: 360/180;
  background: #1a1a1a; border-radius: 10px; padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.plate-inner {
  width: 100%; height: 100%; background: #f5f3eb;
  border-radius: 6px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.plate-inner .num {
  font-family: var(--font-mono); font-weight: 700; font-size: 44px;
  letter-spacing: 0.08em; color: #1a1a1a;
}
.plate-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background: var(--nopal-900);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--sol); font-size: 12px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  border-radius: 6px 6px 0 0;
}
.plate-foot {
  position: absolute; bottom: 4px; right: 10px;
  font-size: 9px; font-family: var(--font-mono); color: var(--ink-muted);
}

.sticker {
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.air {
  width: 220px; height: 320px; position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.air .string { width: 1px; height: 40px; background: #aaa; }
.air .ring {
  width: 14px; height: 14px; border-radius: 999px;
  background: transparent; border: 1.5px solid #aaa; margin-top: -8px;
}
.air .body {
  position: relative; margin-top: 4px;
  width: 170px; height: 230px;
  background: var(--nopal-900); border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(20,30,22,0.18));
}
.air .body .hole {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 999px; background: var(--arena-50);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.air .body .stack {
  font-family: var(--font-display); font-weight: 800;
  font-size: 46px; line-height: 0.92; letter-spacing: -0.045em;
  color: var(--sol); text-align: left;
}
.air .body .stack > div { display: block; }
.air .body .tag {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 7px; color: var(--sol); opacity: 0.5;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.air .caption,
.tote-cap-caption,
.merch-caption {
  position: absolute; bottom: -2px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}

.microfiber {
  width: 280px; height: 220px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.microfiber-body {
  width: 220px; height: 150px; position: relative;
  background: var(--nopal-900); border-radius: 4px;
  box-shadow: 0 14px 28px -8px rgba(20,30,22,0.35), 0 4px 8px rgba(20,30,22,0.12);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 6px);
  display: flex; align-items: center; justify-content: center;
}
.microfiber-body::before {
  content: ''; position: absolute; inset: 6px;
  border: 1px dashed rgba(255,200,80,0.22); border-radius: 2px;
}
.microfiber-body::after {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(0,0,0,0.18);
}
.microfiber-body .care-tag {
  position: absolute; top: 0; right: 28px; width: 22px; height: 36px;
  background: var(--sol); border-radius: 0 0 2px 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 9px;
  color: var(--nopal-900); font-weight: 800; letter-spacing: -0.03em;
}
.microfiber-body .stack {
  font-family: var(--font-display); font-weight: 800;
  font-size: 36px; line-height: 0.92; letter-spacing: -0.045em;
  color: var(--sol); text-align: left;
}
.microfiber-body .stack > div { display: block; }

.keychain {
  width: 220px; height: 200px; position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Captions under merch */
.merch-cell { position: relative; padding-bottom: 26px; }
.merch-cell .label {
  position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ============ Footer ============ */
.footer {
  background: var(--espina-900); color: var(--arena-200);
  padding: 80px 0 40px; font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--nopal-300); margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; line-height: 2.2; }
.footer a { color: var(--arena-200); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p {
  margin: 18px 0 0; max-width: 320px; line-height: 1.55; color: var(--arena-200);
}
.footer .badge-logo { background: var(--sol); color: var(--nopal-900); }
.footer-bottom {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--nopal-300);
}

/* ============ Responsive (must be last) ============ */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .nav-links a:nth-child(n+4) { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  .hero { padding: 56px 0 80px; }
  .lead-row { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-row { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .badge-variants { grid-template-columns: repeat(2, 1fr); }
  .badge-context { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .branch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-inner { padding: 12px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .container { padding: 0 20px; }
  .hero { padding: 40px 0 64px; }
  .hero-grid { padding: 0 20px; gap: 32px; }
  section.block { padding: 56px 0; }
  h2.title { font-size: clamp(28px, 7vw, 40px); }
  .marquee-track { font-size: 24px; }
  .swatch-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 56px 0 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .stat .n { font-size: 40px; }
  .stat { padding: 22px 0; }
  .product-stage { flex-direction: column; gap: 32px; }
  .tabbar { width: 100%; overflow-x: auto; }
  .tab { white-space: nowrap; }
  .hero .btn { padding: 12px 18px; font-size: 14px; }
  .hero-metrics { gap: 18px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat:last-child { border-bottom: none; }
  .swatch-row { grid-template-columns: 1fr 1fr; }
  .merch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .phone-frame { transform: scale(0.85); transform-origin: top center; }
}
