/* ═══════════════════════════════════════════════════════════════════════════════
   TourKit  –  Promotional Website
   Colour scheme and typography matched to the app
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Design tokens live in /assets/tokens.css, linked before this file by every
   page that uses it. Do not redeclare them here — two copies is what that
   file exists to prevent. (TKF-226) */

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




html { scroll-behavior: smooth; }
body {
  background: var(--bg0);
  color: var(--txt);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Display ink, not --amber-ink: every .amber on the marketing pages is a
   headline span or a 30px metric, i.e. large text, and --amber-ink is the
   micro-label step that reads brown on paper. See tokens.css (TKB-372). */
.amber { color: var(--amber-display); }
.green { color: var(--green); }
.blue  { color: var(--blue); }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg0) 85%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bdr);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  font-size: var(--fs-xxl); letter-spacing: 12px; color: var(--amber-ink);
  text-transform: uppercase; font-weight: 700; white-space: nowrap;
  text-shadow: 0 0 20px rgba(245,158,11,0.3);
}
.nav-links {
  display: flex; gap: 6px;
  /* Right-aligned by its own auto margin rather than by the container's
     space-between, so the theme-toggle slot can follow it without the free
     space being split between the two of them (TKB-304). */
  margin-left: auto;
}
/* The theme toggle, moved in here by core/theme.js. It rides at the end of the
   bar instead of over it — the fixed corner sits INSIDE this nav, so below
   ~1150px (where the centred 1100px .nav-inner reaches the viewport edge) the
   floating button landed on top of the last link, and below 768px on top of the
   hamburger (TKB-304). */
.nav-inner > [data-theme-toggle-slot] {
  display: inline-flex; align-items: center; margin-left: 10px;
}
.nav-links a {
  font-size: var(--fs-xs); letter-spacing: 1.5px; color: var(--dim2);
  text-decoration: none; text-transform: uppercase;
  border: 1px solid var(--bdr); border-radius: 4px;
  padding: 6px 14px; transition: all .15s;
}
.nav-links a:hover {
  color: var(--amber-ink); border-color: var(--amber-ink);
}
.menu-btn {
  display: none; background: none; border: none; color: var(--dim); cursor: pointer;
}

/* ── Hero ── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; gap: 60px; position: relative;
  max-width: 1100px; margin: 0 auto;
  flex-wrap: wrap;
}
.hero-glow {
  position: absolute; top: 10%; left: 30%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--amber-wash), 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { flex: 1 1 420px; min-width: 300px; }
.hero-tag {
  font-size: var(--fs-xs); letter-spacing: 4px; color: var(--amber-ink);
  text-transform: uppercase; margin-bottom: 16px; font-weight: 600;
}
#hero h1 {
  font-size: clamp(var(--fs-xxl), 5vw, var(--fs-mega)); font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: var(--fs-base); color: var(--dim); max-width: 480px; margin-bottom: 32px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: var(--fs-xs); letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  padding: 12px 24px; border-radius: 6px; cursor: pointer;
  transition: all .2s; border: 1px solid transparent; font-weight: 600;
}
.btn-primary {
  background: var(--amber); color: var(--on-amber); border-color: var(--amber);
}
.btn-primary:hover { filter: brightness(1.15); box-shadow: 0 0 24px rgba(245,158,11,0.3); }
.btn-ghost {
  background: transparent; color: var(--dim); border-color: var(--bdr2);
}
.btn-ghost:hover { color: var(--amber-ink); border-color: var(--amber-ink); }
.btn-lg { padding: 14px 28px; font-size: var(--fs-sm); }

/* ── App Preview (hero mockup) ── */
.hero-visual { flex: 1 1 380px; min-width: 300px; display: flex; justify-content: center; }
.app-preview {
  width: 100%; max-width: 420px;
  background: var(--bg1); border: 1px solid var(--bdr); border-radius: 12px;
  overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.preview-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg2); border-bottom: 1px solid var(--bdr);
}
.preview-dots { display: flex; gap: 5px; }
.preview-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--bdr2);
}
.preview-dots i:first-child { background: var(--red); border-color: var(--red); }
.preview-dots i:nth-child(2) { background: var(--amber); border-color: var(--amber); }
.preview-dots i:nth-child(3) { background: var(--green); border-color: var(--green); }
.preview-title {
  font-size: var(--fs-xs); letter-spacing: 3px; color: var(--dim2); text-transform: uppercase;
}
.preview-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.preview-metric {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 14px; background: var(--bg2); border-radius: 6px; border: 1px solid var(--bdr);
}
.metric-label { font-size: var(--fs-micro); letter-spacing: 2px; color: var(--dim2); text-transform: uppercase; }
.metric-value { font-size: var(--fs-xxl); font-weight: 800; }
.metric-value small { font-size: var(--fs-sm); font-weight: 400; margin-left: 3px; opacity: .6; }
.metric-value.amber { color: var(--amber-display); }
.metric-value.green { color: var(--green); }
.metric-value.blue  { color: var(--blue); }
.preview-chart {
  background: var(--bg2); border-radius: 6px; border: 1px solid var(--bdr);
  padding: 12px; height: 80px; display: flex; align-items: flex-end;
}
.preview-chart svg { width: 100%; height: 100%; }

/* ── Sections (shared) ── */
section {
  padding: 100px 24px;
}
.section-inner {
  max-width: 1100px; margin: 0 auto;
}
.section-tag {
  font-size: var(--fs-xs); letter-spacing: 4px; color: var(--amber-ink);
  text-transform: uppercase; margin-bottom: 12px; font-weight: 600;
}
section h2 {
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-hero)); font-weight: 800; line-height: 1.2;
  margin-bottom: 20px;
}
.section-sub {
  font-size: var(--fs-base); color: var(--dim); max-width: 560px; line-height: 1.7; margin-bottom: 40px;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-top: 40px;
}
.feature-card {
  background: var(--bg1); border: 1px solid var(--bdr); border-radius: 10px;
  padding: 28px 24px; transition: all .25s;
}
.feature-card:hover {
  border-color: var(--amber-ink); background: linear-gradient(135deg, rgba(var(--amber-wash), 0.04), var(--bg1));
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: var(--fs-md); font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px;
}
.feature-card p {
  font-size: var(--fs-base); color: var(--dim); line-height: 1.6;
}

/* ── Platform grid ── */
#platforms { background: var(--bg1); }
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-top: 40px;
}
.platform-card {
  background: var(--bg0); border: 1px solid var(--bdr); border-radius: 10px;
  padding: 28px 24px; text-align: center; transition: all .25s;
}
.platform-card:hover {
  border-color: var(--amber-ink); transform: translateY(-2px);
}
.platform-card svg { color: var(--amber-ink); margin-bottom: 16px; }
.platform-card h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 6px; }
.platform-card p { font-size: var(--fs-sm); color: var(--dim); line-height: 1.5; }

/* ── Steps ── */
.steps {
  display: flex; align-items: flex-start; gap: 0; margin-top: 48px;
  flex-wrap: wrap; justify-content: center;
}
.step {
  flex: 1 1 200px; max-width: 280px; text-align: center; padding: 0 20px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--amber); color: var(--on-amber);
  font-size: var(--fs-lg); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 8px; }
.step p { font-size: var(--fs-base); color: var(--dim); line-height: 1.6; }
.step-line {
  width: 60px; height: 1px; background: var(--bdr2);
  margin-top: 24px; flex-shrink: 0;
}

/* ── Download CTA ── */
#download { text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-inner .section-sub { text-align: center; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--bdr); padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-inner .logo { font-size: var(--fs-md); letter-spacing: 6px; }
.footer-copy { font-size: var(--fs-xs); color: var(--dim2); }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: var(--fs-xs);
}
.footer-legal a {
  color: var(--dim2);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.footer-legal a:hover { color: var(--amber-ink); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg1);
    border-bottom: 1px solid var(--bdr); padding: 12px 24px; gap: 8px;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  /* .nav-links goes out of flow here, taking its auto margin with it — so the
     slot takes over pushing itself and the hamburger to the right edge. */
  .nav-inner > [data-theme-toggle-slot] { margin-left: auto; }

  #hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 40px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 100%; }

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

  .step-line { display: none; }
  .steps { gap: 32px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .platform-grid { grid-template-columns: 1fr; }
}
