/* TourVision marketing site — shared styles.
   Light-first; dark mode via @media. System fonts; no JS, no framework. */

:root {
    --bg:        #fbfafa;
    --fg:        #15131a;
    --muted:     #6c6776;
    --rule:      #ece8e3;
    --accent:    #f08e54;       /* matches the rabbit-hole icon gradient */
    --accent-2:  #ee6f5a;
    --accent-deep: #d2601f;     /* darker orange for chips carrying white glyphs (contrast) */
    --card:      #ffffff;
    --shadow:    0 10px 32px rgba(15, 13, 26, 0.08);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg:    #0f0c12;
        --fg:    #f5f3f0;
        --muted: #a4a0aa;
        --rule:  #221c28;
        --card:  #18141d;
        --shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
        --accent-deep: #e0692a;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;   /* backstop against any element wider than the viewport */
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

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

header.site {
    padding: 28px 0 16px;
}
header.site .row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 18px; color: var(--fg);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.spacer { flex: 1; }
nav.top a {
    color: var(--muted); margin-left: 24px; font-size: 15px; font-weight: 500;
}
nav.top a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 520px) {
    /* Drop the nav to its own full-width line so it never crowds the brand. */
    header.site .row { row-gap: 4px; }
    nav.top { width: 100%; margin-top: 2px; }
    nav.top a { margin-left: 0; margin-right: 20px; font-size: 14px; }
}

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

.hero {
    padding: 56px 0 32px;
    background: radial-gradient(1100px 600px at 70% -10%,
                rgba(240, 142, 84, 0.22), transparent 65%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px; align-items: start;
}
.hero-grid > div:first-child { padding-top: 24px; }
.hero h1 {
    font-size: clamp(38px, 5.2vw, 60px);
    line-height: 1.05; letter-spacing: -0.025em;
    margin: 0 0 18px; font-weight: 700;
}
.hero .lede {
    font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 36ch;
}
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.appstore {
    display: inline-block; height: 56px; transition: transform 0.15s ease;
}
.appstore:hover { transform: translateY(-1px); }
.cta-note {
    margin: 16px 0 0; color: var(--muted); font-size: 14px; font-weight: 500;
}
.hero img.shot,
.hero video.shot {
    width: 100%; max-width: 380px; margin-left: auto; display: block;
    border-radius: 36px; box-shadow: var(--shadow);
    background: #0f1a2e;   /* navy, so the poster/space edges blend while loading */
}

@media (max-width: 760px) {
    .hero { padding: 32px 0 16px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero img.shot,
    .hero video.shot { max-width: 320px; margin: 0 auto; }
}

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

.features {
    padding: 48px 0 24px;
}
.features h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    letter-spacing: -0.02em; margin: 0 0 32px;
}
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
    background: var(--card); border: 1px solid var(--rule);
    border-radius: 16px; padding: 24px;
}
.feature h3 {
    font-size: 18px; margin: 12px 0 8px; font-weight: 600;
}
.feature p {
    margin: 0; color: var(--muted); font-size: 15px;
}
.feature-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-2));
    border-radius: 10px;
    display: grid; place-items: center;
    color: white;
}
.feature-icon svg { width: 20px; height: 20px; display: block; }

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

/* ---- Showcase (second visual) ---- */

.showcase {
    padding: 40px 0 8px;
}
.showcase-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px; align-items: center;
}
.showcase-media { display: flex; justify-content: center; }
.showcase video.shot {
    width: 100%; max-width: 320px; display: block;
    border-radius: 36px; box-shadow: var(--shadow); background: #0f1a2e;
}
.showcase h2 {
    font-size: clamp(26px, 3.2vw, 34px);
    letter-spacing: -0.02em; margin: 0 0 16px;
}
.showcase .lede { font-size: 18px; color: var(--muted); margin: 0; max-width: 40ch; }

@media (max-width: 760px) {
    .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
    .showcase-media { order: 2; }        /* copy first, then the clip on mobile */
    .showcase video.shot { max-width: 300px; }
}

/* ---- How it works ---- */

.how {
    padding: 56px 0;
    border-top: 1px solid var(--rule);
    margin-top: 32px;
}
.how h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    letter-spacing: -0.02em; margin: 0 0 32px;
}
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    counter-reset: step;
}
.step {
    position: relative; padding: 0;
}
.step::before {
    content: counter(step);
    counter-increment: step;
    display: block; width: 28px; height: 28px;
    background: var(--accent-deep); color: white;
    border-radius: 999px; font-size: 14px; font-weight: 600;
    text-align: center; line-height: 28px;
    margin-bottom: 12px;
}
.step h3 {
    font-size: 17px; margin: 0 0 6px; font-weight: 600;
}
.step p {
    margin: 0; color: var(--muted); font-size: 15px;
}
@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Closing CTA ---- */

.closing {
    padding: 64px 0 8px;
    text-align: center;
}
.closing h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    letter-spacing: -0.02em; margin: 0 0 10px;
}
.closing p {
    color: var(--muted); margin: 0 0 24px; font-size: 18px;
}
.closing .appstore { height: 56px; }

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

footer.site {
    padding: 48px 0 32px;
    margin-top: 32px;
    border-top: 1px solid var(--rule);
    color: var(--muted); font-size: 14px;
}
footer.site .row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
footer.site a { color: var(--muted); margin-right: 18px; }
footer.site a:hover { color: var(--fg); text-decoration: none; }
footer.site .spacer { flex: 1; }

/* ---- Document pages (privacy, support, terms) ---- */

.doc {
    padding: 56px 0 96px;
}
.doc h1 {
    font-size: clamp(34px, 4.5vw, 44px);
    letter-spacing: -0.025em; margin: 0 0 8px;
}
.doc .meta {
    color: var(--muted); margin: 0 0 40px; font-size: 14px;
}
.doc h2 {
    font-size: 20px; margin: 36px 0 12px; font-weight: 600;
    color: var(--accent-2);
}
.doc h3 {
    font-size: 17px; margin: 24px 0 6px; font-weight: 600;
}
.doc p, .doc li {
    color: var(--fg);
}
.doc ul {
    padding-left: 22px;
}
.doc li { margin-bottom: 6px; }
.doc small.muted { color: var(--muted); }
.doc code {
    background: var(--rule); padding: 1px 6px; border-radius: 4px;
    font-size: 14px;
}
