/* ============================================================
   TourDeck — Landing Page
   Palette mirrors the app's dark theme (src/index.css)
   ============================================================ */

:root {
  --stage-base: #1C1917;
  --stage-surface: #292524;
  --stage-elevated: #44403C;
  --stage-border: #57534E;

  --td-text: #EBDDC2;
  --td-text-secondary: #D6CCB8;
  --td-text-muted: #A8A092;
  --td-text-faint: #78716C;

  --accent: #D4A0A0;
  --accent-soft: #D4A0A059;
  --accent-cream: #EBDDC2;
  --accent-ochre: #C4956A;

  --radius: 6px;
  --radius-lg: 10px;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --maxw-wide: 1320px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stage-base);
  color: var(--td-text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--accent-cream); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout containers ---------- */

.container,
.container-narrow,
.container-wide {
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}
.container { max-width: var(--maxw); }
.container-narrow { max-width: var(--maxw-narrow); }
.container-wide { max-width: var(--maxw-wide); }

/* ---------- Typography ---------- */

.display {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: .01em;
  margin: 0 0 1.5rem;
  color: var(--td-text);
}
.hero-display {
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: .88;
  margin-bottom: 2rem;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: .01em;
  margin: 0 0 2rem;
  color: var(--td-text);
}
.section-title.centered { text-align: center; }
.section-title.dark { color: #1C1917; }

.accent { color: var(--accent); }

.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--td-text-muted);
  margin-bottom: 1.25rem;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--stage-border);
}
.eyebrow.accent-eyebrow {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}
.eyebrow.centered {
  display: block;
  text-align: center;
  border-bottom: 0;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 1rem;
}
.eyebrow.centered::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 1px;
  background: var(--accent);
}

h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--td-text);
}

p {
  margin: 0 0 1rem;
  color: var(--td-text-secondary);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 36em;
  color: var(--td-text-secondary);
  margin-bottom: 2.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1C1917;
}
.btn-primary:hover {
  background: var(--accent-cream);
  color: #1C1917;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--td-text);
  border-color: var(--stage-border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-row.centered { justify-content: center; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-nav.scrolled {
  border-bottom-color: var(--stage-border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 28px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--td-text-secondary);
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent);
  color: #1C1917;
  padding: 10px 18px;
  border-radius: var(--radius);
}
.nav-links .nav-cta:hover {
  background: var(--accent-cream);
  color: #1C1917;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--td-text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  min-height: calc(100vh - 64px);
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
}
.hero .container { width: 100%; }
.hero .lede {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  margin-bottom: 2.5rem;
}
.hero .cta-row .btn {
  padding: 18px 36px;
  font-size: 1.15rem;
}
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .scroll-indicator { margin-left: auto; margin-right: auto; }
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 80vw;
  height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,160,160,0.10) 0%, rgba(212,160,160,0) 60%);
  pointer-events: none;
}
.hero .container { position: relative; }

.scroll-indicator {
  margin-top: 4rem;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
}
.scroll-indicator span {
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

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

.hero-shot {
  padding: 0 0 clamp(80px, 12vh, 140px);
}
.shot-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
}
.screenshot-frame {
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212,160,160,0.06);
  overflow: hidden;
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* ---------- Pitch ---------- */

.pitch {
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid var(--stage-border);
  border-bottom: 1px solid var(--stage-border);
  background: var(--stage-surface);
  position: relative;
}
.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.pitch::before { top: -1px; }
.pitch::after  { bottom: -1px; }
.pitch-body p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---------- Features ---------- */

.features {
  padding: clamp(80px, 12vh, 140px) 0;
}
.features-header { margin-bottom: 4rem; text-align: center; }
.features-header .eyebrow { display: inline-block; }

.feature-block {
  padding: clamp(40px, 6vh, 80px) 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.feature-block.alt .feature-grid {
  grid-template-columns: 1.15fr 1fr;
}
.feature-block.alt .feature-copy { order: 2; }
.feature-block.alt .feature-shot { order: 1; }

.feature-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.feature-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 8px;
  opacity: .9;
}
.feature-num.light { color: rgba(28,25,23,0.7); }

.callout {
  margin-top: 1.75rem;
  padding: 18px 22px;
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.callout-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.callout p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--td-text-muted);
}

/* ---------- Full-bleed accent feature block ---------- */

.feature-bleed {
  position: relative;
  background: var(--accent);
  color: #1C1917;
  padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 10vh, 120px);
  overflow: hidden;
}
.feature-bleed::before,
.feature-bleed::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.feature-bleed::before { top: -30vw; left: -20vw; }
.feature-bleed::after  { bottom: -30vw; right: -20vw; }

.feature-bleed-inner {
  position: relative;
  text-align: center;
  margin-bottom: 4rem;
}
.feature-bleed-inner .feature-num {
  display: inline-block;
}
.bleed-copy {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(28,25,23,0.85);
  max-width: 36em;
  margin: 1rem auto 0;
}

.venue-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.screenshot-frame.light {
  background: #1C1917;
  border-color: rgba(28,25,23,0.4);
  box-shadow:
    0 30px 60px -20px rgba(28,25,23,0.4),
    0 0 0 1px rgba(28,25,23,0.1);
}

/* ---------- Lightbox ---------- */

[data-zoomable] { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.8);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--td-text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lightbox-close:hover {
  background: rgba(212,160,160,0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Mobile section ---------- */

.mobile-section {
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid var(--stage-border);
  background: linear-gradient(180deg, rgba(41,37,36,0.4) 0%, var(--stage-base) 100%);
}
.mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.mobile-copy p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 32em;
}
.mobile-shots {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}
.phone {
  background: #0a0a0a;
  border: 1px solid var(--stage-border);
  border-radius: 26px;
  padding: 8px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(212,160,160,0.06);
  max-width: 240px;
  flex: 1 1 0;
}
.phone img {
  width: 100%;
  border-radius: 18px;
  display: block;
}
.phone.offset {
  margin-top: 48px;
}

/* ---------- Pricing ---------- */

.pricing {
  padding: clamp(80px, 12vh, 140px) 0;
  text-align: center;
  border-top: 1px solid var(--stage-border);
}
.pricing .pitch-body { text-align: left; }
.pricing .cta-row { margin-top: 2rem; }

/* ---------- Roadmap ---------- */

.roadmap {
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid var(--stage-border);
  background: linear-gradient(180deg, var(--stage-base) 0%, rgba(41,37,36,0.4) 100%);
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3rem;
}
.roadmap-card {
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.roadmap-marker {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.25rem;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 12px;
  line-height: 1;
}
.roadmap-card p {
  font-size: .98rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Waitlist ---------- */

.waitlist {
  padding: clamp(100px, 14vh, 160px) 0 clamp(80px, 10vh, 120px);
  border-top: 1px solid var(--stage-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 50%;
  width: 70vw;
  height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,160,160,0.10) 0%, rgba(212,160,160,0) 60%);
  pointer-events: none;
}
.waitlist .container-narrow { position: relative; }
.waitlist .display { text-align: center; margin-bottom: 3rem; }

.waitlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.waitlist-card {
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist-card .btn { align-self: flex-start; margin-top: auto; }
.waitlist-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.waitlist-card p {
  margin: 0 0 8px;
  color: var(--td-text-secondary);
}

.form-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.form-row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  background: var(--stage-base);
  border: 1px solid var(--stage-border);
  border-radius: var(--radius);
  color: var(--td-text);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  transition: border-color .2s var(--ease);
}
.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row input[type="email"]::placeholder {
  color: var(--td-text-faint);
}
.form-status {
  min-height: 1.2em;
  margin-top: 10px;
  font-size: .9rem;
  color: var(--td-text-muted);
}
.form-status.success { color: var(--accent); }
.form-status.error { color: #B57171; }

.trust-line {
  margin-top: 3rem;
  font-size: .9rem;
  color: var(--td-text-muted);
  letter-spacing: .04em;
}

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

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--stage-border);
  background: var(--stage-base);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.footer-logo:hover { opacity: 1; }
.footer-logo img { height: 28px; width: auto; }
.site-footer p {
  margin: 0;
  font-size: .9rem;
  color: var(--td-text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 32px 24px;
    background: var(--stage-base);
    border-bottom: 1px solid var(--stage-border);
    transform: translateY(-110%);
    transition: transform .3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--stage-border);
    font-size: 1.05rem;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .nav-cta {
    margin-top: 12px;
    border-bottom: 0;
    text-align: center;
  }

  .feature-grid,
  .feature-block.alt .feature-grid,
  .mobile-grid {
    grid-template-columns: 1fr;
  }
  .feature-block.alt .feature-copy,
  .feature-block.alt .feature-shot {
    order: initial;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }
  .form-row .btn { width: 100%; }

  .venue-row {
    grid-template-columns: 1fr;
  }

  .phone.offset {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .container,
  .container-narrow,
  .container-wide {
    padding: 0 20px;
  }
  .nav-inner { padding: 14px 20px; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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