/* TravelMindsAI — landing site
   Plain CSS, no framework. Brand palette: deep indigo + coral accent.
*/

:root {
  --bg: #0b1020;
  --bg-2: #11173a;
  --surface: #161d44;
  --line: rgba(255,255,255,0.08);
  --text: #e6e8f5;
  --muted: #98a0c4;
  --accent: #ff6f5e;
  --accent-2: #6ce5d3;
  --max: 1080px;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #060a1a 100%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  /* Near-opaque: at 0.82 page headings read through the bar on scroll. */
  background: rgba(11,16,32,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.1rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark {
  /* The constellation mark — same artwork as the favicon set, just at
     nav-strip scale. Uses the 180px apple-touch source so it stays crisp
     on retina without burning a separate SVG path. The mark already has
     a dark navy ground baked in, which matches the nav background. */
  width: 28px; height: 28px;
  background: url("/apple-touch-icon.png") center / cover no-repeat;
  border-radius: 6px;
  display: inline-block;
  flex: 0 0 auto;
}
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ---- hero ---- */
.hero { padding: 88px 0 64px; }
.eyebrow {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(108,229,211,0.12); color: var(--accent-2);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(108,229,211,0.25);
}
h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 14px;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 720px; }

.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent); color: #1a0f0c;
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.08); color: #1a0f0c; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---- sections ---- */
section { padding: 56px 0; }
section h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.section-sub { color: var(--muted); margin-bottom: 28px; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .num {
  font-size: 1.6rem; font-weight: 700; color: var(--accent-2);
  display: block; margin-bottom: 4px; letter-spacing: -0.01em;
}

/* ---- pricing ---- */
.pricing-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: rgba(255,111,94,0.45);
  box-shadow: var(--shadow);
}
.plan h3 { margin: 0 0 4px; font-size: 1.15rem; }
.plan .tag { color: var(--muted); font-size: 0.85rem; }
.plan .price {
  font-size: 2rem; font-weight: 700; margin: 16px 0 4px;
  letter-spacing: -0.01em;
}
.plan .price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan ul { padding: 0 0 0 18px; margin: 16px 0; color: var(--muted); }
.plan ul li { margin: 6px 0; font-size: 0.94rem; }
.plan .cta { margin-top: auto; }

/* ---- legal text pages ---- */
.legal {
  padding: 56px 0; max-width: 800px;
}
.legal h1 { margin-bottom: 6px; }
.legal h2 {
  margin-top: 32px; margin-bottom: 6px;
  font-size: 1.15rem; letter-spacing: -0.005em;
}
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal .meta {
  font-size: 0.88rem; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px;
}

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-top: 56px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent-2); }
footer .legal-line {
  margin-top: 18px; border-top: 1px solid var(--line);
  padding-top: 14px; font-size: 0.82rem;
}

/* ---- blog / articles ---- */
.article {
  max-width: 760px;
  padding: 56px 0 72px;
}
.article h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 6px;
}
.article .meta {
  color: var(--muted); font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin-bottom: 28px;
}
.article h2 {
  font-size: 1.25rem; letter-spacing: -0.005em;
  margin: 32px 0 8px;
}
.article h3 {
  font-size: 1rem; margin: 22px 0 6px;
  color: var(--text);
}
.article p, .article li {
  color: var(--text); font-size: 1rem; line-height: 1.65;
}
.article p { margin: 12px 0; }
.article ul, .article ol { padding-left: 22px; }
.article a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--accent); }
.article blockquote {
  border-left: 3px solid var(--accent);
  margin: 22px 0; padding: 8px 16px;
  background: rgba(255,111,94,0.06);
  border-radius: 4px;
  color: var(--muted);
}
.article pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
  /* Contain wide code: scroll the block, never the page (390px viewports
     were panning 718px because nothing clamped <pre>). */
  overflow-x: auto;
  max-width: 100%;
}
.article pre code {
  font-size: 0.85rem; line-height: 1.55; color: var(--text);
  background: none; padding: 0;
}
.article table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0; font-size: 0.94rem;
}
.article th, .article td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article th {
  background: var(--surface);
  font-weight: 600; color: var(--text);
}
.article td { color: var(--muted); }
.article td strong { color: var(--text); }
.article .cta-card {
  background: var(--surface);
  border: 1px solid rgba(255,111,94,0.35);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 32px 0;
}
.article .cta-card h3 { margin-top: 0; color: var(--accent); }
.article .cta-card p { color: var(--muted); }
.article .disclosure {
  font-size: 0.82rem; color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 22px 0;
}

/* ---- blog index ---- */
.blog-index {
  padding: 56px 0; max-width: 880px;
}
.post-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  display: block; color: inherit; text-decoration: none;
}
.post-card:hover { border-color: var(--accent-2); color: inherit; }
.post-card h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--text); }
.post-card .post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.post-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 880px) {
  /* Mobile nav: brand row + ONE swipeable row of links (was: 11 links
     wrapping into two cramped rows that ate ~130px of sticky viewport). */
  .nav .container { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-links {
    flex-wrap: nowrap; overflow-x: auto; gap: 18px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: 4px 0; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 36px; }
}

/* -- Hero code-snippet tabs (gap: were rendering as OS-default 3D-bevel
      grey buttons against the dark theme — they had no CSS rules at all). */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}
.tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  padding: 10px 16px;
  margin: 0;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
  border-radius: 6px 6px 0 0;
}
.tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.tab:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}
.tab.tab-active {
  color: var(--text);
  border-bottom-color: var(--accent-2);
  background: rgba(108,229,211,0.04);
}
.tab-pane {
  /* Inline display:none/block on each <pane> drives visibility; this
     just normalises typography + corner-radius continuity with the tab strip. */
  margin: 0;
  border-radius: 0 0 6px 6px;
}

/* -- Pricing-page tertiary line: "Or pay annually · Try the live demo".
      Used 3× on pricing.html under each plan card. Was rendering at
      default <p> size/colour, which fought with the price right above it. */
.annual-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.annual-note a {
  color: var(--accent-2);
  text-decoration: none;
}
.annual-note a:hover {
  color: var(--accent);
}

/* -- Onboarding-checklist status circle (gap 1.14). Rendered as ○ when
      pending, swapped to ✓ in app.js when the step completes. Was an
      unstyled inline <span> inheriting the body color — needs to be
      visually anchored as a deliberate status indicator. */
.step-status {
  display: inline-block;
  width: 1.4em;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  color: var(--muted);
  font-weight: 600;
}

/* -- Quota-banner / dashboard upgrade buttons. Composite `.btn .btn-ghost
      .upgrade` — the upgrade modifier nudges hover affordance toward the
      brand accent so the buttons stand out from generic ghost buttons. */
.btn.upgrade {
  border-color: rgba(108,229,211,0.35);
}
.btn.upgrade:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(108,229,211,0.06);
}
