/* =============================================================
   Story Builder — product site
   Tone: Raycast × craft. Warm paper, confident serif, striking
   documentary imagery, playful micro-interactions.
   Depends on ../colors_and_type.css
   ============================================================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ──────────────── Site tokens ──────────────── */
:root:root {
  --site-max: 1240px;
  --site-gutter: clamp(20px, 4vw, 48px); /* @kind spacing */
  --section-gap: clamp(96px, 12vw, 180px);

  /* ================================================================
     WEBSITE PALETTE OVERRIDE
     The in-app design system lives on warm paper. The marketing site
     takes a richer, more saturated posture: bronze & walnut surfaces,
     blackened steel, with bold spice accents (saffron, vermillion).
     ================================================================ */

  /* Canvas: deep terracotta brick. The site leads with color. */
  --canvas:       #B84A2A;         /* canvas — fired terracotta */
  --canvas-tint:  #9E3E22;         /* raised warm surface, deeper brick */
  --canvas-deep:  #7A2F1A;         /* the most saturated warm tone */
  --bg-raised:    #E8D6B4;         /* cards, raised fills — warm linen */

  /* Ink: near-black walnut, for text on the brick canvas. */
  --ink:          #1A0E08;
  --ink-2:        #3D241A;
  --ink-3:        #6F4A3A;
  --ink-4:        #A07868;

  /* On-canvas text (when text sits directly on the brick bg) */
  --ink-on-canvas:   #FBF1DC;
  --ink-on-canvas-2: #E8D0A8;
  --ink-on-canvas-3: #C9A374;

  /* Hairlines & fills — tuned for dark brick canvas */
  --hairline:         rgba(26, 14, 8, 0.18);
  --hairline-strong:  rgba(26, 14, 8, 0.32);
  --fill-hover:       rgba(26, 14, 8, 0.08);
  --fill-press:       rgba(26, 14, 8, 0.16);

  /* Accent: deep brass. Reads on both brick and linen. */
  --accent:         #9A5213;       /* brass primary */
  --accent-hover:   #7F4410;
  --accent-press:   #68380C;
  --accent-8:       rgba(154, 82, 19, 0.12);
  --accent-15:      rgba(154, 82, 19, 0.22);
  --accent-25:      rgba(154, 82, 19, 0.32);
  --accent-ink:     #FBF1DC;

  /* Bold spice palette — sparingly, for emphasis */
  --spice-saffron:   #F2B637;   /* italic em on dark & on brick, highlights */
  --spice-vermillion:#E04A28;   /* hot callouts, arrows, CTA hover */
  --spice-oxblood:   #6B1A12;
  --spice-moss:      #4A6340;
  --spice-indigo:    #253259;
  --spice-ochre:     #D98A26;

  /* Dark surfaces: walnut & blackened steel. */
  --ink-deep:     #0F0B08;       /* deepest surface, "black walnut" */
  --paper-deep:   #1A120C;       /* primary dark section */
  --paper-deep-2: #241812;       /* alt dark, walnut-stained */
  --paper-deep-3: #2F2018;       /* raised dark card */
  --ink-on-deep:    #F1E4CC;
  --ink-on-deep-2:  #C9A87E;
  --ink-on-deep-3:  #7A6048;

  /* Metal — for the product shot chrome, brackets, hairlines on dark */
  --metal-brass:   #B98838;
  --metal-copper:  #B06A2D;
  --metal-steel:   #3A3A3E;
  --metal-gunmetal:#1D1D20;

  /* Soft semantic tones, re-tuned for the richer palette */
  --success-soft: #E5E2C8;   /* moss wash */
  --info-soft:    #DDD5E3;   /* indigo wash */
  --danger-soft:  #F2D6CC;   /* vermillion wash */

  /* noise overlay */
  --noise-o: 0.06; /* @kind other */
}

/* ──────────────── Container ──────────────── */
.container {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}
.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}
.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* ──────────────── Top nav ──────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px var(--site-gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 34, 48, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(26, 14, 8, 0.24);
}
.nav.scrolled .nav-links { color: var(--ink-on-canvas-2); }
.nav.scrolled .nav-links a:hover { color: var(--ink-on-canvas); }
.nav.scrolled .nav-brand { color: var(--ink-on-canvas); }
.nav.scrolled .nav-cta { background: var(--ink-on-canvas); color: var(--canvas-deep); }
.nav.scrolled .nav-cta:hover { background: var(--spice-saffron); color: var(--ink); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font: 700 15px/1 var(--font-serif-classical);
  letter-spacing: 0.02em;
}
.nav-brand-mark {
  width: 22px; height: 22px;
  display: inline-block;
}
.nav-links {
  display: flex; gap: 28px;
  font: 500 13px/1 var(--font-sans);
  color: var(--ink-on-canvas-2);
}
.nav-brand { color: var(--ink-on-canvas); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink-on-canvas); }
.nav-cta {
  background: var(--ink-on-canvas);
  color: var(--canvas-deep);
  font: 500 13px/1 var(--font-sans);
  padding: 9px 14px;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--spice-vermillion); }
@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ──────────────── Type utilities ──────────────── */
.eyebrow {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: currentColor; opacity: .4;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.display {
  font: 500 clamp(48px, 7.5vw, 104px)/0.98 var(--font-serif-classical);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-family: var(--font-serif-literary);
  color: var(--accent);
}

.headline {
  font: 500 clamp(32px, 4.2vw, 56px)/1.04 var(--font-serif-classical);
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.headline em {
  font-style: italic;
  font-family: var(--font-serif-literary);
  color: var(--accent);
}

.subhead {
  font: 400 clamp(18px, 1.6vw, 22px)/1.5 var(--font-sans);
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.kicker {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ──────────────── Buttons ──────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 var(--font-sans);
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 20px -6px rgba(20,16,10,0.3);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--spice-vermillion); }
.btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.btn-ghost:hover { background: var(--fill-hover); }
.btn-link {
  font: 500 14px/1 var(--font-sans);
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  transition: border-color .15s ease, color .15s ease;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-arrow svg {
  width: 14px; height: 14px;
  transition: transform .2s ease;
}
.btn-arrow:hover svg { transform: translateX(3px); }

/* ──────────────── Sections ──────────────── */
section { position: relative; }
.sec { padding: var(--section-gap) 0; background: var(--bg-raised); color: var(--ink); }
.sec-tight { padding: clamp(64px, 8vw, 120px) 0; }
/* Deep-water hero. Cool, near-black ocean blue with sunset-orange
   accents. The terracotta brick still appears elsewhere on the page;
   this section just leads cooler so warm hits feel earned. */
.sec-brick {
  --hero-water:        #0F2230;   /* deep ocean */
  --hero-water-2:      #16324A;   /* mid water, for cards/strokes */
  --hero-water-3:      #1F4866;   /* horizon line */
  --hero-foam:         #EAF1F5;   /* primary ink on water */
  --hero-foam-2:       #B6C7D2;   /* secondary ink */
  --hero-foam-3:       #6E8696;   /* tertiary / kickers */
  --hero-sunset:       #E66A2C;   /* sunset orange — primary accent */
  --hero-sunset-glow:  #F2B637;   /* saffron, italic emphasis */

  background:
    radial-gradient(140% 70% at 50% 0%, #1A3A55 0%, var(--hero-water) 60%, #0A1822 100%);
  color: var(--hero-foam);
}
.sec-brick .eyebrow { color: var(--hero-foam-3); }
.sec-brick .headline, .sec-brick .display { color: var(--hero-foam); }
.sec-brick .subhead, .sec-brick p { color: var(--hero-foam-2); }
.sec-brick .kicker { color: var(--hero-foam-3); }
.sec-brick .headline em, .sec-brick .display em { color: var(--hero-sunset); }
.sec-brick .tag {
  background: rgba(234, 241, 245, 0.06);
  color: var(--hero-foam-2);
  border: 1px solid rgba(234, 241, 245, 0.12);
}
.sec-brick .eyebrow-dot { background: var(--hero-sunset); }
.sec-brick .btn-primary {
  background: var(--hero-sunset);
  color: #1A0E08;
}
.sec-brick .btn-primary:hover { background: var(--hero-sunset-glow); }
.sec-brick .btn-ghost {
  color: var(--hero-foam);
  border-color: rgba(234, 241, 245, 0.22);
}
.sec-brick .btn-ghost:hover {
  background: rgba(234, 241, 245, 0.06);
  border-color: rgba(234, 241, 245, 0.4);
}
.sec-brick .shot-frame {
  background: var(--paper);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(234, 241, 245, 0.08);
}

/* Powder blue "premise" section — counterweight to the terracotta hero.
   Warm clay → cool sky → warm linen is a classic Southwest/Moroccan pairing.
   Blue is dusty, chalky, low-saturation so brass + saffron still lead. */
.sec-sky {
  background: #C8D6DE;
  color: var(--ink);
}
.sec-sky .eyebrow { color: #3C5462; }
.sec-sky .kicker { color: #3C5462; }
.sec-sky .headline em,
.sec-sky .display em { color: var(--spice-vermillion); }
.sec-sky .eyebrow-dot { background: var(--spice-vermillion); }
.sec-sky .tag {
  background: rgba(26, 14, 8, 0.06);
  color: #2A3A44;
}
.sec-sky .rule-tone {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(200, 214, 222, 0) 0%,
    rgba(200, 214, 222, 1) 100%
  );
}

/* Subtle gradient bands at section joins so the color transitions feel
   intentional instead of stamped. 40px gradient soak on each side. */
.sec-sky {
  background-image:
    linear-gradient(to bottom, rgba(184,74,42,0.12) 0, transparent 40px),
    linear-gradient(to top,    rgba(232,214,180,0.6) 0, transparent 40px);
  background-color: #C8D6DE;
  background-repeat: no-repeat;
}

/* Warm pull-quote bands — punctuation between the cooler sections.
   Swap the Quote `variant` prop to switch. */
.sec-terracotta {
  background: var(--canvas);
  color: var(--ink-on-canvas);
  background-image:
    linear-gradient(to bottom, rgba(15,34,48,0.18) 0, transparent 48px),
    linear-gradient(to top,    rgba(200,214,222,0.18) 0, transparent 48px);
  background-repeat: no-repeat;
}
.sec-terracotta .quote-body { color: var(--ink-on-canvas); }
.sec-terracotta .quote-body em { color: var(--spice-saffron); }
.sec-terracotta .kicker { color: var(--ink-on-canvas-3); }

/* Section separator rule */
.rule {
  width: 100%; height: 1px;
  background: var(--hairline);
  max-width: var(--site-max);
  margin: 0 auto;
}

/* ──────────────── Photo & image placeholders ──────────────── */
/* These are placeholders — they look intentionally art-directed so the
   site reads as finished even without real photography. Replace
   .photo-ph inner fill with <img> later. */
.photo-ph {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  color: var(--ink-on-deep);
}
.photo-ph::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.04) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.photo-ph-grain::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: var(--noise-o);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}
.photo-label {
  position: absolute; left: 14px; bottom: 14px;
  font: 500 10px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  z-index: 3;
  display: flex; align-items: center; gap: 6px;
}
.photo-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.photo-label-caption {
  font-family: var(--font-serif-literary);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

/* Stylized "photo" — gradient landscapes generated in CSS, so the
   page ships looking complete. Each class is a different location.
   Saturation pushed up in the richer palette. */
.loc-ocean     { background: linear-gradient(170deg, #1E3B66 0%, #3A5E85 35%, #6B8AA8 65%, #A9BED0 100%); }
.loc-arctic    { background: linear-gradient(170deg, #141D28 0%, #3A4854 30%, #6E8594 65%, #BAC4C4 100%); }
.loc-forest    { background: linear-gradient(170deg, #0A1810 0%, #162E1C 35%, #305528 70%, #6E8138 100%); }
.loc-desert    { background: linear-gradient(170deg, #6E2E0C 0%, #B4561A 28%, #D78828 58%, #ECBA4E 100%); }
.loc-camper    { background: linear-gradient(170deg, #1B0D08 0%, #4A2512 28%, #A15222 58%, #D89547 100%); }
.loc-night     { background: linear-gradient(170deg, #06071A 0%, #11153A 40%, #30345E 75%, #58588C 100%); }
.loc-alpine    { background: linear-gradient(170deg, #13202E 0%, #344861 28%, #89A4BC 58%, #DFE5EA 100%); }
.loc-shinkansen{ background: linear-gradient(170deg, #1D1020 0%, #752B3F 28%, #D13A44 58%, #F29260 100%); }
.loc-studio    { background: linear-gradient(170deg, #1F180E 0%, #453419 50%, #7A5E28 100%); }

/* Decorative overlays that make solid gradients feel photographic */
.loc-overlay-sky::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.loc-stars::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 20% 15%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 45% 8%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 72% 22%, rgba(255,255,255,0.95), transparent),
    radial-gradient(1px 1px at 18% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 12%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.3px 1.3px at 60% 5%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 32% 45%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 82% 38%, rgba(255,255,255,0.55), transparent);
}
.loc-horizon::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* ──────────────── Badge / tag ──────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--fill-hover);
  padding: 5px 9px;
  border-radius: 999px;
}
.tag.tag-accent {
  background: var(--accent-8);
  color: var(--accent);
}
.tag-dot {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}

/* ──────────────── Product shot frame ──────────────── */
.shot-frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--sb-window-bg, #E8E8EA);
  box-shadow:
    0 0 0 1px rgba(15,15,17,0.08),
    0 2px 6px rgba(15,15,17,0.04),
    0 30px 60px -20px rgba(15,15,17,0.25),
    0 80px 140px -40px rgba(15,15,17,0.3);
}
.shot-frame-compact {
  border-radius: 12px;
  overflow: hidden;
  background: var(--sb-window-bg, #E8E8EA);
  box-shadow:
    0 0 0 1px rgba(15,15,17,0.08),
    0 1px 2px rgba(15,15,17,0.04),
    0 20px 40px -14px rgba(15,15,17,0.22);
}

/* ──────────────── Reveal animation ──────────────── */
/* Progressive enhancement: only hide if JS is enabled AND the observer is armed.
   Content is always visible by default; .reveal-ready on <html> opts in. */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform .8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ──────────────── Scroll progress ──────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width .08s linear;
}

/* ──────────────── Photo essay ──────────────── */
.pe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px 16px;
  row-gap: 72px; /* room for figcaptions that sit beneath each tile */
}
.pe-card {
  margin: 0;
  position: relative;
  display: flex; flex-direction: column;
}
.pe-card .photo-ph { flex: 1; min-height: 0; }
.pe-tall { grid-row: span 2; }
.pe-wide { grid-column: span 2; }
@media (max-width: 1000px) {
  .pe-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(220px, auto); row-gap: 72px; }
  .pe-tall { grid-row: span 2; }
  .pe-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .pe-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(200px, auto); row-gap: 64px; }
  .pe-tall, .pe-wide { grid-row: auto; grid-column: auto; }
}
.pe-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 999px;
  z-index: 3;
}
.pe-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--spice-saffron); }
.pe-gps {
  position: absolute; top: 14px; right: 14px;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  z-index: 3;
}
.pe-cap {
  padding: 12px 4px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.pe-place {
  font: 500 14px/1.2 var(--font-serif-classical);
  color: var(--ink-on-deep);
}
.pe-caption {
  font: 400 12px/1.4 var(--font-serif-literary);
  font-style: italic;
  color: var(--ink-on-deep-2);
}

/* ──────────────── Features section ──────────────── */
.feat-panel {
  border-radius: 20px;
  background: var(--bg-raised);
  box-shadow:
    0 0 0 1px var(--hairline),
    0 2px 4px rgba(20,16,10,0.02),
    0 20px 50px -20px rgba(20,16,10,0.12);
  padding: clamp(32px, 4vw, 56px);
  overflow: hidden;
  position: relative;
}
.feat-panel.dark {
  background: var(--paper-deep-2);
  color: var(--ink-on-deep);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 30px 80px -30px rgba(0,0,0,0.5);
}
.feat-panel.dark .headline,
.feat-panel.dark .kicker { color: var(--ink-on-deep); }
.feat-panel.dark .subhead,
.feat-panel.dark p { color: var(--ink-on-deep-2); }
.feat-panel.dark .eyebrow { color: var(--ink-on-deep-3); }

.feat-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.feat-grid.reverse { grid-template-columns: 7fr 5fr; }
.feat-grid.reverse .feat-copy { order: 2; }
.feat-grid.reverse .feat-media { order: 1; }
@media (max-width: 900px) {
  .feat-grid, .feat-grid.reverse {
    grid-template-columns: 1fr;
  }
  .feat-grid.reverse .feat-copy { order: 1; }
  .feat-grid.reverse .feat-media { order: 2; }
}

.feat-copy .num {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.feat-copy h3 {
  font: 500 clamp(28px, 3.2vw, 42px)/1.08 var(--font-serif-classical);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.feat-copy h3 em {
  font-style: italic;
  font-family: var(--font-serif-literary);
  color: var(--accent);
}
.feat-panel.dark .feat-copy h3 em { color: var(--spice-saffron); }
.feat-copy p {
  font: 400 16px/1.55 var(--font-sans);
  color: var(--ink-2);
  max-width: 48ch;
}
.feat-copy .bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.feat-copy .bullets li {
  position: relative;
  padding-left: 22px;
  font: 400 14px/1.45 var(--font-sans);
  color: var(--ink-2);
}
.feat-copy .bullets li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 10px; height: 1px;
  background: var(--accent);
}
.feat-panel.dark .feat-copy .bullets li::before { background: var(--spice-saffron); }
.feat-panel.dark .feat-copy .bullets li { color: var(--ink-on-deep-2); }

/* ──────────────── Local AI section ──────────────── */
.local-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .local-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .local-grid { grid-template-columns: 1fr; } }
.tier {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}
.tier.on {
  background: rgba(232, 161, 43, 0.08);
  border-color: rgba(232, 161, 43, 0.3);
}
.tier-h {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-on-deep-3);
  margin-bottom: 10px;
}
.tier.on .tier-h { color: var(--spice-saffron); }
.tier-title {
  font: 500 18px/1.2 var(--font-serif-classical);
  color: var(--ink-on-deep);
  margin-bottom: 12px;
}
.tier-desc {
  font: 400 13px/1.5 var(--font-sans);
  color: var(--ink-on-deep-2);
  margin: 0 0 16px;
}
.tier-feats {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font: 400 12px/1.4 var(--font-sans);
  color: var(--ink-on-deep-2);
}
.tier-feats li { padding-left: 16px; position: relative; }
.tier-feats li::before {
  content: '●'; color: var(--spice-saffron); position: absolute; left: 0; top: 0;
  font-size: 8px;
}
.tier-feats li.off { color: var(--ink-on-deep-3); opacity: 0.5; }
.tier-feats li.off::before { color: var(--ink-on-deep-3); }

/* ──────────────── Pricing section ──────────────── */
.pricing-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.pricing-grouplabel {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}
/* gap between one group's cards and the next group's label */
.pricing-grid + .pricing-grouplabel { margin-top: 56px; }
.price-card.is-featured { transform: translateY(-8px); }

@media (max-width: 900px) {
  .pricing-head { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.is-featured { transform: none; }
}

/* ──────────────── Waitlist ──────────────── */
.waitlist-form {
  display: flex; gap: 10px;
  max-width: 440px;
  margin-top: 28px;
}
.waitlist-form input {
  flex: 1;
  font: 400 15px/1 var(--font-sans);
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.waitlist-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-25);
}
.waitlist-form button {
  white-space: nowrap;
}

/* ──────────────── Footer ──────────────── */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand {
  font: 500 18px/1 var(--font-serif-classical);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.footer-tag {
  font: 400 14px/1.5 var(--font-sans);
  color: var(--ink-2);
  max-width: 32ch;
  font-family: var(--font-serif-literary);
  font-style: italic;
}
.footer-col-title {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font: 400 14px/1 var(--font-sans);
  color: var(--ink-2);
  padding: 6px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font: 400 12px/1 var(--font-mono);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
