/* ============================================================
   Gud Treats — Restaurant Pitch Site
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
}

/* ============================================================
   DESIGN TOKENS — switched per aesthetic
   ============================================================ */

/* 1. Warm & Earthy */
[data-aesthetic="earthy"] {
  --bg: #f4ece0;
  --bg-alt: #eadfcc;
  --ink: #2a1d12;
  --ink-soft: #5a4630;
  --ink-mute: #8a7256;
  --accent: #c9632c;
  --accent-ink: #fff;
  --line: #d4c4a8;
  --card: #fbf6ec;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --radius: 4px;
}

/* 2. Modern Minimal (Aesop-style) */
[data-aesthetic="minimal"] {
  --bg: #f2efe9;
  --bg-alt: #ebe8e1;
  --ink: #1a1a18;
  --ink-soft: #4a4a46;
  --ink-mute: #8a8a82;
  --accent: #b8621c;
  --accent-ink: #fff;
  --line: #d8d5cd;
  --card: #f7f5ef;
  --font-display: 'Söhne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Söhne', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --radius: 2px;
}

/* 3. Bold & Graphic (Omsom-style) */
[data-aesthetic="bold"] {
  --bg: #fff5e1;
  --bg-alt: #ffe8b8;
  --ink: #1a0d00;
  --ink-soft: #3a2410;
  --ink-mute: #7a5a3a;
  --accent: #e8401c;
  --accent-ink: #fff5e1;
  --line: #1a0d00;
  --card: #fffaf0;
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --display-weight: 800;
  --display-tracking: -0.04em;
  --radius: 0px;
}

/* 4. Traditional Indian-Modern */
[data-aesthetic="traditional"] {
  --bg: #f5ead6;
  --bg-alt: #e8d4a8;
  --ink: #1e1811;
  --ink-soft: #4a3d2a;
  --ink-mute: #8a7652;
  --accent: #7a3620;
  --accent-ink: #f5ead6;
  --line: #b89a6a;
  --card: #faf2de;
  --font-display: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --radius: 0px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.wrap-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 120px 0;
  position: relative;
}
section.tight { padding: 80px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 7vw, 108px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.25; }

p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
p.lg { font-size: 22px; line-height: 1.45; color: var(--ink-soft); }
p.sm { font-size: 14px; line-height: 1.5; color: var(--ink-mute); }

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

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: 1440px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--ink);
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
[data-aesthetic="bold"] .logo-mark { border-radius: 0; }
[data-aesthetic="traditional"] .logo-mark { border-radius: 0; transform: rotate(45deg); }
[data-aesthetic="traditional"] .logo-mark > span { transform: rotate(-45deg); display: inline-block; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s, top 0.25s, opacity 0.2s;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 25px; }
.nav-toggle.open::before { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open::after { top: 19px; transform: translateX(-50%) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-links.open { max-height: 420px; padding: 8px 24px 20px; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, opacity 0.2s;
  letter-spacing: 0;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-arrow { font-family: var(--font-mono); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
[data-hero="typeled"] .hero-grid { grid-template-columns: 1fr; gap: 40px; }
[data-hero="typeled"] .hero-media { display: none; }

.hero h1 {
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
[data-aesthetic="minimal"] .hero h1 em,
[data-aesthetic="bold"] .hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}
.hero-meta > div .eyebrow { display: block; margin-bottom: 6px; }
.hero-meta > div .val { font-family: var(--font-display); font-size: 28px; font-weight: var(--display-weight); color: var(--ink); letter-spacing: var(--display-tracking); }

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ============================================================
   PRODUCT PLACEHOLDER — for imagery="stripes" and default
   ============================================================ */

.img-ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    color-mix(in srgb, var(--ink) 6%, transparent) 14px,
    color-mix(in srgb, var(--ink) 6%, transparent) 15px
  );
  pointer-events: none;
}
.img-ph-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   MARQUEE OF RESTAURANTS
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-soft);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-item::after {
  content: '✦';
  color: var(--accent);
  font-size: 14px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   STORY / TWO-COLUMN
   ============================================================ */

.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.twocol .col-label { padding-top: 8px; }
.twocol h2 { margin-bottom: 32px; }
.twocol p + p { margin-top: 20px; }

/* ============================================================
   FLAVORS
   ============================================================ */

.flavors-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 24px;
}
.flavors-head .eyebrow { margin-bottom: 12px; display: block; }

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
}

.flavor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.flavor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--ink) 20%, transparent);
}
.flavor-card.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.flavor-visual {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}

/* imagery treatment: tinted */
[data-imagery="tinted"] .flavor-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
[data-imagery="tinted"] .flavor-visual .tint-num {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(64px, 10vw, 120px);
  color: color-mix(in srgb, var(--ink) 75%, transparent);
  line-height: 0.8;
}
/* imagery: stripe */
[data-imagery="stripe"] .flavor-visual .img-ph { display: flex; align-items: flex-end; }
/* imagery: mono-label */
[data-imagery="mono"] .flavor-visual {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
[data-imagery="mono"] .mono-block {
  border: 1px dashed var(--ink-mute);
  border-radius: 4px;
  padding: 24px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  aspect-ratio: 1;
  justify-content: center;
}
[data-imagery="mono"] .mono-block .mono-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  line-height: 1.4;
}
[data-imagery="mono"] .mono-block .mono-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.flavor-body {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.flavor-body .f-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.flavor-body h4 { font-size: 22px; }
.flavor-body .f-notes {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.flavor-body .f-add {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.flavor-card.selected .f-add { color: var(--accent); }
.flavor-card.selected .f-add .check-box {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.check-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink-mute);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ============================================================
   PILOT — HOW IT WORKS
   ============================================================ */

.pilot {
  background: var(--bg-alt);
}
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
@media (max-width: 1000px) {
  .pilot-grid { grid-template-columns: repeat(2, 1fr); }
}
.pilot-step {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}
.pilot-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.pilot-step h4 { font-size: 24px; }
.pilot-step p { font-size: 15px; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing-card {
  max-width: 720px;
  margin: 64px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) {
  .pricing-card { grid-template-columns: 1fr; }
}
.pricing-card .p-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.pricing-card .p-price {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 72px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.pricing-card .p-price sup {
  font-size: 28px;
  vertical-align: super;
  color: var(--ink-mute);
  margin-right: 4px;
}
.pricing-card .p-price small {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0;
  margin-left: 8px;
}
.pricing-card ul {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-card li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.pricing-card li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
}
.pricing-card .p-note {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-top: 16px;
}

/* ============================================================
   QUOTE
   ============================================================ */

.quote {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.quote blockquote {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 32px;
}
.quote blockquote::before { content: '"'; color: var(--accent); }
.quote blockquote::after { content: '"'; color: var(--accent); }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SAMPLE CTA
   ============================================================ */

.cta-big {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 40px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.cta-big h2 { color: var(--bg); margin-bottom: 24px; }
.cta-big p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 560px; margin: 0 auto 40px; }
.cta-big .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.cta-big .btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--bg) 40%, transparent);
  color: var(--bg);
}
.cta-big .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 22px;
  letter-spacing: var(--display-tracking);
  color: var(--ink);
}
.faq-q .plus {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 300px; margin-top: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col li a { font-size: 14px; color: var(--ink-soft); }
.foot-col li a:hover { color: var(--ink); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 40px 80px -20px color-mix(in srgb, #000 30%, transparent);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-head {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 { font-size: 24px; }
.modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--ink); color: var(--bg); }
.modal-body { padding: 32px; }
.modal-foot {
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.progress-dots {
  display: flex;
  gap: 8px;
}
.progress-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.progress-dots .dot.active { background: var(--accent); }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border 0.2s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 80px; }
.field .err {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c9342c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .row2 { grid-template-columns: 1fr; } }

/* flavor selector in modal */
.flav-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 540px) { .flav-picker { grid-template-columns: repeat(3, 1fr); } }
.flav-pill {
  padding: 16px 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transition: all 0.15s;
}
.flav-pill:hover { border-color: var(--ink-mute); }
.flav-pill.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}
.flav-pill .p-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.flav-pill .p-name {
  font-size: 13px;
  color: var(--ink);
}
.flav-pill .p-idx {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* confirmation */
.confirm {
  text-align: center;
  padding: 20px 0;
}
.confirm .check-circ {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}
.confirm h3 { font-size: 32px; margin-bottom: 16px; }
.confirm p { max-width: 400px; margin: 0 auto 24px; }
.confirm .next {
  text-align: left;
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  max-width: 420px;
  margin: 24px auto 0;
}
.confirm .next h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 12px;
  font-weight: 500;
}
.confirm .next ol {
  list-style: none;
  counter-reset: n;
}
.confirm .next li {
  counter-increment: n;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
}
.confirm .next li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */

.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #eee;
  border-radius: 10px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  z-index: 200;
  width: 260px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  display: none;
}
.tweaks.visible { display: block; }
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}
.tweaks-head .t-title { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.tweaks-head button {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  width: 20px; height: 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.t-group { margin-bottom: 14px; }
.t-group label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 6px;
}
.t-opts {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
}
.t-opts button {
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  padding: 8px 6px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  text-align: left;
  transition: all 0.15s;
}
.t-opts button:hover { background: #2a2a2a; }
.t-opts button.active {
  background: #e8551c;
  border-color: #e8551c;
  color: #fff;
}
.t-opts.stack { grid-template-columns: 1fr; }

/* ============================================================
   UTILITIES
   ============================================================ */

.divider { height: 1px; background: var(--line); width: 100%; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }

/* Hide img-ph behavior per imagery mode */
[data-imagery="tinted"] .flavor-visual .img-ph,
[data-imagery="tinted"] .flavor-visual .mono-block { display: none; }
[data-imagery="stripe"] .flavor-visual .tint-num,
[data-imagery="stripe"] .flavor-visual .mono-block { display: none; }
[data-imagery="mono"] .flavor-visual .img-ph,
[data-imagery="mono"] .flavor-visual .tint-num { display: none; }

/* Copy tone swap */
[data-tone="premium"] .tone-warm { display: none; }
[data-tone="warm"] .tone-premium { display: none; }

/* Bold aesthetic tweaks */
[data-aesthetic="bold"] .btn { border-width: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
[data-aesthetic="bold"] .flavor-card { border-width: 2px; }
[data-aesthetic="bold"] .nav { border-bottom-width: 2px; }
[data-aesthetic="bold"] .eyebrow { font-weight: 700; color: var(--ink); }

/* Traditional aesthetic tweaks */
[data-aesthetic="traditional"] h1,
[data-aesthetic="traditional"] h2 { font-style: italic; }

/* Minimal adjustments */
[data-aesthetic="minimal"] h1 em { font-style: italic; }

/* ============================================================
   MOBILE NAV TOGGLE
   ============================================================ */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   PREVENT HORIZONTAL OVERFLOW
   ============================================================ */

html, body { overflow-x: hidden; max-width: 100vw; }

/* ============================================================
   TABLET  ≤ 960px
   ============================================================ */

@media (max-width: 960px) {
  .wrap, .wrap-wide { padding: 0 28px; }
  section { padding: 80px 0; }
  section.tight { padding: 56px 0; }
  h1 { font-size: clamp(40px, 8vw, 72px); }
  h2 { font-size: clamp(32px, 6vw, 54px); }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { aspect-ratio: 4/3; max-height: 480px; }

  .twocol { grid-template-columns: 1fr; gap: 48px; }
  .flavors-head { flex-direction: column; align-items: flex-start; }

  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .pilot-grid { grid-template-columns: repeat(2, 1fr); }

  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .cta-big { padding: 72px 32px; }
}

/* ============================================================
   MOBILE  ≤ 720px
   ============================================================ */

@media (max-width: 720px) {
  .wrap, .wrap-wide { padding: 0 20px; }
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }

  h1 { font-size: clamp(36px, 10vw, 56px); line-height: 1.05; }
  h2 { font-size: clamp(28px, 7vw, 44px); }
  h3 { font-size: clamp(22px, 4.5vw, 30px); }

  p.lg { font-size: 18px; }
  p { font-size: 16px; }

  /* Nav → hamburger */
  .nav-inner { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-links .btn { margin-top: 12px; justify-content: center; }

  /* Hero */
  .hero { padding: 40px 0 64px; }
  .hero-media { aspect-ratio: 1/1; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 20px; padding-top: 24px; }
  .hero-meta > div { flex: 1 1 40%; }
  .hero-meta .val { font-size: 24px; }

  /* Marquee */
  .marquee { padding: 16px 0; }
  .marquee-item { font-size: 18px; gap: 40px; }
  .marquee-item::after { margin-left: 0; }
  .marquee-track { gap: 40px; }

  /* Flavors — 2 cols, compact */
  .flavor-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .flavor-body { padding: 14px; }
  .flavor-body h4 { font-size: 18px; }
  .flavor-body .f-notes { font-size: 12px; }
  .flavor-body .f-add { font-size: 10px; padding-top: 8px; }
  .flavors-head { margin-bottom: 32px; gap: 16px; }

  /* Pilot */
  .pilot-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .pilot-step { padding: 24px 20px; min-height: auto; }

  /* Pricing */
  .pricing-card { grid-template-columns: 1fr; padding: 28px 24px; margin-top: 40px; gap: 24px; }
  .pricing-card .p-price { font-size: 56px; }

  /* Quote */
  .quote blockquote { font-size: clamp(22px, 5vw, 30px); }

  /* CTA big */
  .cta-big { padding: 56px 24px; }
  .cta-big h2 { font-size: clamp(28px, 7vw, 40px); }
  .cta-big > div[style] { flex-direction: column; }
  .cta-big .btn { width: 100%; justify-content: center; }

  /* FAQ */
  .faq-q { font-size: 18px; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; font-size: 10px; }

  /* Modal full-screen on mobile */
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }
  .modal-head { padding: 20px 20px; }
  .modal-head h3 { font-size: 20px; }
  .modal-body { padding: 20px; }
  .modal-foot { padding: 16px 20px; flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .modal-foot .progress-dots { justify-content: center; }
  .modal-foot > div:last-child { display: flex; gap: 10px; }
  .modal-foot .btn { flex: 1; justify-content: center; }
  .flav-picker { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; gap: 0; }

  /* Tweaks panel — compact sheet at bottom */
  .tweaks {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Hero art corner tags smaller */
  .hero-media [style*="top: 20px"],
  .hero-media [style*="bottom: 20px"] {
    font-size: 9px !important;
    padding: 4px 8px !important;
  }
}

/* ============================================================
   SMALL MOBILE  ≤ 420px
   ============================================================ */

@media (max-width: 420px) {
  .flavor-grid { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 16px; }
  .hero-meta > div { flex: none; }
}
