/* Dtour website: the app's Ink + Marigold identity (theme.md, src/theme/theme.ts). */

:root {
  --ink: #0A0D16;
  --ink-surface: #131826;
  --ink-raised: #1B2133;
  --ink-pressed: #242B3F;
  --border: #232A3C;
  --border-strong: #323A50;
  --text: #F5F0E6;
  --text-2: #9B9DA8;
  --text-3: #777A88;
  --marigold: #E5A52F;
  --marigold-light: #F3C85F;
  --marigold-tint: #2A2112;
  --marigold-muted: #6F5420;
  --green: #668267;
  --clay: #B96850;
  --indigo: #596A9C;
  --petal: linear-gradient(135deg, #EDAE3C 0%, #E5A52F 35%, #D88C1F 70%, #C47414 100%);
  --wash: radial-gradient(closest-side, rgba(240, 160, 40, 0.16) 0%, rgba(240, 160, 40, 0.05) 50%, rgba(240, 160, 40, 0) 100%);
  --font-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 24px;
  --gutter: 16px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A whisper of paper grain so the ink doesn't feel flat. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--marigold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--marigold-light); }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--marigold); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--text); }
.display { font-size: clamp(44px, 8vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
.h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 38em; }
.muted { color: var(--text-2); }
.hand { font-family: var(--font-hand); font-weight: 600; color: var(--marigold); font-size: 1.35em; line-height: 1; }
.marigold { color: var(--marigold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.eyebrow svg { width: 14px; height: 14px; }

/* Words with a hand-drawn underline that draws itself in. */
.drawn { position: relative; display: inline-block; white-space: nowrap; }
.drawn svg { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.3em; overflow: visible; }
.drawn path { fill: none; stroke: var(--marigold-light); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s var(--ease) 0.3s; }
.is-visible .drawn path, .drawn.is-visible path { stroke-dashoffset: 0; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .nav-open .site-header { background: var(--ink); border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.wordmark { display: inline-flex; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--text); font: 700 26px/1 var(--font-display); letter-spacing: -0.03em; }
.wordmark svg { width: 12px; height: 12px; margin-top: -2px; }
.wordmark:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav .btn { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: var(--radius-md); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: 68px; left: 0; right: 0; height: calc(100dvh - 68px); flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s; }
  .nav a { padding: 18px 0; font: 600 26px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav a[aria-current='page'] { color: var(--marigold); }
  .nav .btn { margin-top: 24px; border-bottom: 0; font: 600 18px/1 var(--font-body); padding: 18px; color: var(--ink); }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Buttons & badges ---------- */

.btn {
  white-space: nowrap;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--petal); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.35); }
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--marigold-muted); background: var(--ink-surface); }
.btn svg { width: 18px; height: 18px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 18px 11px 14px;
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.store:hover { color: var(--ink); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: 0.7; }
.store strong { display: block; font: 600 18px/1.1 var(--font-display); letter-spacing: -0.01em; }
.store[aria-disabled='true'] { cursor: default; }
.store .soon { position: absolute; top: -9px; right: -8px; background: var(--marigold); color: var(--ink); font: 700 10px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; transform: rotate(4deg); }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin: 16px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }

/* ---------- Hero ---------- */

.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto 30%; height: 900px; background: var(--wash); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy .lead { margin: 26px 0 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--text-2); font-size: 14px; }
.hero-note .avatars { display: flex; }
.hero-note .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -8px; display: grid; place-items: center; font: 700 12px/1 var(--font-display); color: var(--ink); }
.hero-note .avatars span:first-child { margin-left: 0; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { transform: rotate(-4deg); }
.float-card { position: absolute; background: var(--ink-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 12px 14px; font-size: 13px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); animation: bob 6s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--font-display); font-size: 15px; }
.float-card.one { left: -10%; top: 52%; }
.float-card.two { right: -6%; top: 14%; animation-delay: -3s; }
.float-card .hand { font-size: 22px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; }
  .float-card.one { left: 0; }
  .float-card.two { right: 0; }
}

/* ---------- Phone mockup & app screens ---------- */

.phone {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2a3045, #12151f 40%, #1d2233);
  box-shadow: 0 0 0 1px #3a4158, 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  flex: none;
}
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #05070c; border-radius: 20px; z-index: 5; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--ink); }
.screens .screen-view { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.screens .screen-view.is-active { opacity: 1; transform: none; }

.app { position: absolute; inset: 0; padding: 50px 14px 0; font-size: 12px; line-height: 1.4; overflow: hidden; }
.app-status { position: absolute; top: 16px; left: 26px; right: 26px; display: flex; justify-content: space-between; font: 600 12px/1 var(--font-body); color: var(--text); }
.app-city { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; }
.app-city svg { width: 12px; height: 12px; }
.app-title { font: 700 26px/1.02 var(--font-display); letter-spacing: -0.03em; margin: 10px 0 2px; }
.app-title span { color: var(--text-2); font-weight: 500; }
.app-search { margin: 12px 0; background: var(--ink-surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.app-search svg { width: 14px; height: 14px; }
.app-chips { display: flex; gap: 6px; margin-bottom: 12px; white-space: nowrap; }
.app-chip { border: 1px solid var(--border-strong); border-radius: 8px; padding: 5px 9px; font-size: 11px; color: var(--text); }
.app-chip.on { background: var(--marigold-tint); border-color: var(--marigold-muted); color: var(--marigold); }

.app-card { position: relative; border-radius: 16px; overflow: hidden; background: var(--ink-surface); border: 1px solid var(--border); margin-bottom: 10px; }
.app-card .photo { height: 150px; background-size: cover; background-position: center; }
.app-card .photo::after { content: ''; position: absolute; inset: 0; height: 150px; background: linear-gradient(180deg, rgba(10, 13, 22, 0) 45%, rgba(10, 13, 22, 0.85)); }
.app-card .over { position: absolute; left: 12px; right: 12px; top: 104px; z-index: 2; }
.app-card .name { font: 600 16px/1.15 var(--font-display); }
.app-card .body { padding: 10px 12px 12px; }
.app-label { display: inline-flex; align-items: center; gap: 5px; font: 700 9px/1 var(--font-body); letter-spacing: 0.12em; color: var(--marigold); text-transform: uppercase; }
.app-label svg { width: 10px; height: 10px; }
.app-quote { font: 500 13px/1.35 var(--font-display); color: var(--text); margin: 6px 0; }
.app-meta { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 11px; }
.app-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.app-avatar { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 9px/1 var(--font-display); color: var(--ink); background: var(--marigold); flex: none; }

.app-hero { height: 230px; margin: -50px -14px 0; background-size: cover; background-position: center; position: relative; }
.app-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 22, 0) 35%, rgba(10, 13, 22, 0.6) 70%, var(--ink)); }
.app-place { position: relative; margin-top: -54px; z-index: 2; }
.app-place h4 { font: 700 24px/1.05 var(--font-display); letter-spacing: -0.02em; margin: 6px 0 4px; }
.app-take { background: var(--ink-surface); border: 1px solid var(--marigold-muted); border-radius: 16px; padding: 12px; margin-top: 12px; }
.app-annot { font: 600 17px/1.1 var(--font-hand); color: var(--marigold); margin-top: 6px; display: flex; gap: 4px; align-items: center; }
.app-annot svg { width: 14px; height: 14px; }
.app-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 14px 18px; background: var(--ink); border-top: 1px solid var(--border); }
.app-btn { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 12px; }
.app-btn.primary { background: var(--petal); color: var(--ink); }
.app-btn.secondary { border: 1px solid var(--border-strong); }

.app-podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 18px 0 14px; }
.app-podium div { text-align: center; font-size: 11px; }
.app-podium .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; font: 700 16px/1 var(--font-display); color: var(--ink); position: relative; }
.app-podium .first .av { width: 60px; height: 60px; font-size: 20px; }
.app-podium .first .av::after { content: ''; position: absolute; inset: -7px; border: 2px solid var(--marigold); border-radius: 50%; transform: rotate(-8deg); border-top-color: transparent; }
.app-podium .bar { border-radius: 10px 10px 0 0; background: var(--ink-surface); border: 1px solid var(--border); border-bottom: 0; margin-top: 6px; padding-top: 6px; font: 700 13px/1 var(--font-display); color: var(--marigold); width: 72px; }
.app-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.app-row .rank { width: 16px; color: var(--text-3); font-weight: 700; }
.app-row .who { flex: 1; }
.app-row .pts { color: var(--marigold); font-weight: 700; }

.app-field { background: var(--ink-surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.app-field small { display: block; color: var(--text-3); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.app-field.focus { border-color: var(--marigold); }
.typing::after { content: '|'; color: var(--marigold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.app-share { position: absolute; left: 10px; right: 10px; bottom: 14px; background: var(--ink-raised); border-radius: 20px; padding: 14px; border: 1px solid var(--border-strong); }
.app-share .preview { display: flex; gap: 10px; background: var(--ink); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.app-share .preview .thumb { width: 74px; background-size: cover; background-position: center; }
.app-share .preview div { padding: 8px 8px 8px 0; }
.app-share .targets { display: flex; justify-content: space-between; margin-top: 12px; }
.app-share .targets span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-surface); font-size: 10px; color: var(--text-2); }

.app-tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 54px; border-radius: 18px; background: var(--ink-surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; }
.app-tabbar i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--text-3); display: block; }
.app-tabbar i.on { border-color: var(--marigold); background: var(--marigold-tint); }
.app-tabbar b { width: 44px; height: 44px; border-radius: 14px; background: var(--petal); display: grid; place-items: center; color: var(--ink); font-size: 22px; font-weight: 700; margin-top: -18px; }

/* ---------- Marquee of takes ---------- */

.marquee { border-block: 1px solid var(--border); padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll-x 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--text-2); font-size: 16px; }
.marquee-item svg { width: 14px; height: 14px; }
.marquee-item em { font-style: normal; color: var(--text); font-family: var(--font-display); font-weight: 500; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Scrollytelling: how it works ---------- */

.story { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-steps { counter-reset: step; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: 0.32; transition: opacity 0.5s; }
.story-step.is-active { opacity: 1; }
.story-step .num { font: 600 15px/1 var(--font-hand); font-size: 26px; color: var(--marigold); }
.story-step h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; margin: 10px 0 14px; }
.story-step p { color: var(--text-2); max-width: 30em; margin: 0; font-size: 18px; }
.story-step ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.story-step li { display: flex; gap: 10px; color: var(--text); }
.story-step li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.story-phone { position: sticky; top: calc(50vh - 310px); display: flex; justify-content: center; }
.story-progress { position: absolute; left: -36px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.story-progress span { width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong); transition: height 0.3s, background 0.3s; }
.story-progress span.is-active { height: 22px; background: var(--marigold); }
.story-step .phone-inline { display: none; }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 36px 0; border-bottom: 1px solid var(--border); }
  .story-step .phone-inline { display: flex; justify-content: center; margin-top: 28px; }
  .story-step .phone-inline .phone { transform: scale(0.86); margin: -40px 0; }
}

/* ---------- Picks rail ---------- */

.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; }
.rail-controls { display: flex; gap: 8px; }
.rail-controls button { width: 46px; height: 46px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--ink-surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.rail-controls button:hover { border-color: var(--marigold-muted); }
.rail-controls svg { width: 18px; height: 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 10px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.pick { scroll-snap-align: start; background: var(--ink-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.3s; user-select: none; }
.pick:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: var(--marigold-muted); }
.pick .photo { height: 210px; background-size: cover; background-position: center; position: relative; }
.pick .photo .tag { position: absolute; left: 12px; top: 12px; background: rgba(10, 13, 22, 0.72); color: var(--text); padding: 6px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.pick .body { padding: 18px; }
.pick h3 { font-size: 21px; }
.pick .where { color: var(--text-2); font-size: 14px; margin: 2px 0 12px; }
.pick blockquote { margin: 0; font: 500 17px/1.4 var(--font-display); color: var(--text); }
.pick .by { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.pick .count { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pick .count svg { width: 14px; height: 14px; }

/* ---------- Feature grid ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.feature { background: var(--ink-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; position: relative; overflow: hidden; }
.feature .icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--marigold-tint); display: grid; place-items: center; margin-bottom: 22px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 22px; margin-bottom: 10px; }
.feature p { color: var(--text-2); margin: 0; }
.feature::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; background: var(--wash); opacity: 0; transition: opacity 0.4s; }
.feature:hover::after { opacity: 1; }

/* ---------- Big statement band ---------- */

.statement { background: var(--petal); color: var(--ink); border-radius: var(--radius-xxl); padding: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.statement h2 { color: var(--ink); font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; max-width: 15em; }
.statement p { max-width: 34em; font-size: 19px; margin: 20px 0 0; color: rgba(10, 13, 22, 0.78); }
.statement .sketch { position: absolute; right: clamp(24px, 4vw, 64px); top: clamp(24px, 4vw, 56px); width: clamp(120px, 16vw, 220px); opacity: 0.85; }
.statement h2, .statement > p { padding-right: clamp(0px, 18vw, 240px); }
@media (max-width: 700px) { .statement .sketch { display: none; } .statement h2, .statement > p { padding-right: 0; } }
.statement .sketch path { stroke: var(--ink); }
.statement .btn-ink { background: var(--ink); color: var(--text); margin-top: 28px; }
.statement .btn-ink:hover { color: var(--text); transform: translateY(-2px); }

/* ---------- Cities ---------- */

.cities { display: flex; flex-wrap: wrap; gap: 12px; }
.city { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--ink-surface); border: 1px solid var(--border); font: 600 18px/1 var(--font-display); }
.city .swatch { width: 10px; height: 10px; border-radius: 50%; }
.city small { font: 500 12px/1 var(--font-body); color: var(--text-2); }
.city.live { border-color: var(--marigold-muted); background: var(--marigold-tint); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font: 600 clamp(18px, 2vw, 21px)/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--marigold); font-size: 28px; line-height: 0.9; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: -6px 0 22px; max-width: 42em; }

/* ---------- Contact card ---------- */

.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; background: var(--ink-surface); border: 1px solid var(--border); border-radius: var(--radius-xxl); padding: clamp(28px, 4vw, 48px); align-items: center; }
@media (max-width: 800px) { .contact-card { grid-template-columns: 1fr; } }
.email-pill { display: flex; align-items: center; gap: 10px; background: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 10px 10px 10px 18px; }
.email-pill a { flex: 1; font: 600 clamp(17px, 2vw, 21px)/1.2 var(--font-display); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.copy-btn { border: 0; background: var(--marigold); color: var(--ink); border-radius: var(--radius-md); padding: 10px 14px; font: 600 14px/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.copy-btn.is-done { background: var(--green); color: var(--text); }

/* ---------- Founders ---------- */

.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } }
.founder { background: var(--ink-surface); border: 1px solid var(--border); border-radius: var(--radius-xxl); padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; transition: border-color 0.3s, transform 0.4s var(--ease); }
.founder:hover { border-color: var(--marigold-muted); transform: translateY(-4px); }
@media (max-width: 420px) { .founder { grid-template-columns: 1fr; } }
.founder .portrait { position: relative; width: 120px; height: 120px; }
.founder .portrait img, .founder .portrait .mono { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.founder .portrait .mono { display: grid; place-items: center; background: var(--petal); color: var(--ink); font: 700 40px/1 var(--font-display); }
.founder .portrait svg { position: absolute; inset: -10px; width: 140px; height: 140px; transform: rotate(-12deg); }
.founder .portrait svg path { fill: none; stroke: var(--marigold); stroke-width: 1.4; stroke-linecap: round; }
.founder h3 { font-size: 24px; }
.founder .role { color: var(--marigold); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; margin: 4px 0 10px; }
.founder p { color: var(--text-2); margin: 0 0 14px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; }
.social-link:hover { color: var(--text); border-color: var(--marigold-muted); }
.social-link svg { width: 16px; height: 16px; }
.placeholder-note { color: var(--clay); font-size: 13px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: clamp(48px, 8vw, 100px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
/* The glow fades out inside the header, so the overflow clip never shows an edge. */
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 62% at 18% 34%, rgba(240, 160, 40, 0.16) 0%, rgba(240, 160, 40, 0.05) 50%, rgba(240, 160, 40, 0) 100%); pointer-events: none; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero .lead { margin-top: 18px; }

/* ---------- Legal pages ---------- */

.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); padding-bottom: 100px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } }
.toc { position: sticky; top: 96px; align-self: start; border-left: 1px solid var(--border); padding-left: 18px; }
.toc p { font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.toc a { display: block; color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 0; }
.toc a:hover, .toc a.is-active { color: var(--marigold); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #D9D4CA; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--marigold); }
.prose strong { color: var(--text); }
.prose .label, .prose > h1, .prose > .muted:first-of-type { display: none; }

/* ---------- Share page (dtour.co.in/place/…) ---------- */

.share-card { max-width: 560px; margin: 0 auto; padding: 32px 0 80px; }
.share-card .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); background: var(--ink-surface); }
.share-card .credit { font-size: 11px; color: var(--text-3); margin: 6px 0 16px; }
.share-card .label { font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; color: var(--marigold); margin: 18px 0 6px; text-transform: uppercase; }
.share-card h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.04; }
.share-card .take { margin: 24px 0; padding: 22px; background: var(--ink-surface); border: 1px solid var(--marigold-muted); border-radius: var(--radius-xl); }
.share-card .take .label:first-child { margin-top: 0; }
.share-card .quote { font: 500 21px/1.35 var(--font-display); margin: 0 0 8px; }
.share-card .author { color: var(--text-2); margin: 12px 0 0; }
.share-card .button { display: block; text-align: center; background: var(--petal); color: var(--ink); font-weight: 700; text-decoration: none; padding: 15px; border-radius: var(--radius-md); margin: 24px 0 16px; }
.share-card .stores { margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 64px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--text-2); max-width: 22em; margin: 14px 0 20px; }
.site-footer h4 { font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-2); }
.socials a:hover { color: var(--marigold); border-color: var(--marigold-muted); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.footer-bottom .hand { font-size: 22px; }

/* ---------- 404 ---------- */

.not-found { text-align: center; padding: 120px 0; }
.not-found .sketch { width: 160px; margin: 0 auto 24px; }
.not-found .sketch path { stroke: var(--marigold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .drawn path { stroke-dashoffset: 0; }
}

/* ---------- Early access & city vote ---------- */

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.vote { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); background: var(--ink-surface); border: 1px solid var(--border); border-radius: var(--radius-xxl); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.vote::before { content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; background: var(--wash); pointer-events: none; }
@media (max-width: 900px) { .vote { grid-template-columns: 1fr; } }
.vote form { display: grid; gap: 14px; margin-top: 24px; max-width: 480px; }
.field { display: grid; gap: 6px; }
.field span { font: 700 11px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.field input { width: 100%; background: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 14px 16px; color: var(--text); font: 500 16px/1.2 var(--font-body); transition: border-color 0.2s; }
.field input:focus { outline: none; border-color: var(--marigold); }
.field input::placeholder { color: var(--text-3); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--marigold); flex: none; }
.vote form .btn { justify-self: start; }
.form-message { min-height: 1.4em; margin: 0; font-size: 15px; }
.form-message.ok { color: var(--marigold-light); }
.form-message.error { color: #E2685A; }
.vote-board { position: relative; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board li { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); background: var(--ink); border: 1px solid var(--border); overflow: hidden; font-weight: 600; }
.board li .bar { position: absolute; inset: 0 auto 0 0; background: var(--marigold-tint); border-right: 2px solid var(--marigold-muted); transform-origin: left; transition: width 0.9s var(--ease); }
.board li span { position: relative; }
.board li .votes { color: var(--marigold); font-family: var(--font-display); }
.board li:first-child { border-color: var(--marigold-muted); }
.board li.is-mine { outline: 2px solid var(--marigold); }
.board-empty { justify-content: center !important; font-weight: 500 !important; }

/* ---------- Phones ---------- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .hero { padding: 20px 0 56px; }
  .hero-copy .lead { margin: 18px 0 26px; }
  .hero-ctas { display: grid; gap: 14px; justify-items: center; }
  .hero-ctas .stores { justify-self: stretch; }
  .hero-ctas .btn { padding-inline: 28px; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .store { min-width: 0; padding: 10px 12px; gap: 8px; }
  .store svg { width: 22px; height: 22px; }
  .store strong { font-size: 15px; }
  .store small { font-size: 10px; }
  .hero-visual .phone { transform: rotate(-3deg) scale(0.92); }
  .float-card { font-size: 12px; padding: 9px 11px; }
  .float-card.one { left: -2%; top: 58%; }
  .float-card.two { right: -2%; top: 8%; }
  .float-card strong { font-size: 13px; }
  .float-card .hand { font-size: 19px; }
  .story-step { padding: 28px 0; }
  .story-step p { font-size: 16px; }
  .rail { grid-auto-columns: 82%; gap: 14px; }
  .rail-controls { display: none; }
  .pick .photo { height: 180px; }
  .feature { padding: 22px; }
  .feature .icon { margin-bottom: 16px; }
  .statement { padding: 28px 20px; border-radius: var(--radius-xl); }
  .statement p { font-size: 16px; }
  .statement .btn-ink { width: 100%; }
  .cities { gap: 8px; }
  .city { padding: 9px 12px; font-size: 15px; gap: 7px; border-radius: var(--radius-md); }
  .city small { font-size: 11px; }
  .vote { padding: 24px 18px; border-radius: var(--radius-xl); }
  .vote form .btn { width: 100%; }
  .contact-card { padding: 24px 18px; }
  .email-pill { padding: 8px 8px 8px 14px; }
  .email-pill a { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .founder { padding: 20px; grid-template-columns: 96px 1fr; gap: 18px; }
  .founder .portrait, .founder .portrait img, .founder .portrait .mono { width: 96px; height: 96px; }
  .founder .portrait svg { width: 116px; height: 116px; }
  .faq summary { padding: 18px 0; }
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 36px 0 24px; }
  .h1 .drawn svg { bottom: -0.04em; height: 0.22em; }
  .vote .eyebrow .long { display: none; }
  .share-card { padding-top: 16px; }
}

/* Legal pages: collapsible table of contents on small screens. */
.toc-mobile { display: none; }
@media (max-width: 900px) {
  .toc { display: none; }
  .toc-mobile { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--ink-surface); margin-bottom: 8px; }
  .toc-mobile summary { list-style: none; cursor: pointer; padding: 14px 16px; font: 600 15px/1 var(--font-body); display: flex; justify-content: space-between; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: '+'; color: var(--marigold); font-size: 20px; line-height: 0.8; }
  .toc-mobile[open] summary::after { content: '–'; }
  .toc-mobile a { display: block; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: 15px; }
}
