/* ============ TownAR marketing landing page ============ */
/* Self-contained: no Bootstrap. Design tokens first. */

:root {
    --ink: #0f172a;          /* deep slate — hero + text on light */
    --ink-2: #1e293b;
    --body: #475569;
    --line: #e2e8f0;
    --bg-soft: #f8fafc;
    --brand: #6366f1;        /* indigo */
    --brand-deep: #4f46e5;
    --glow: #22d3ee;         /* cyan accent */
    --amber: #f59e0b;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 25px 60px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand-deep); text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 23, 42, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner {
    display: flex; align-items: center; gap: 28px;
    height: 64px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand svg { display: block; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: #cbd5e1; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .ghost { color: #cbd5e1; font-size: .95rem; font-weight: 500; }
.nav-cta .ghost:hover { color: #fff; }
.btn {
    display: inline-block; padding: 10px 20px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(99, 102, 241, .4); }
.btn-brand:hover { background: var(--brand-deep); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1100px 500px at 15% -10%, rgba(99, 102, 241, .35), transparent 60%),
                radial-gradient(900px 460px at 90% 10%, rgba(34, 211, 238, .18), transparent 55%),
                linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #fff;
}
.hero-grid {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
    padding: 88px 0 96px;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99, 102, 241, .18); border: 1px solid rgba(99, 102, 241, .45);
    color: #c7d2fe; font-size: .85rem; font-weight: 600;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em;
    margin: 0 0 20px; font-weight: 800;
}
.hero h1 .grad {
    background: linear-gradient(90deg, #a5b4fc, #22d3ee);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: #cbd5e1; font-size: 1.15rem; max-width: 34rem; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: #94a3b8; font-size: .9rem; }

/* Phone mockup (pure CSS, shows the app) */
.phone-wrap { display: flex; justify-content: center; }
.phone {
    /* Aspect matches the bundled app screenshot exactly so nothing gets cropped. */
    width: 290px; aspect-ratio: 560 / 1109; border-radius: 40px;
    background: #0b1220; border: 10px solid #1f2937;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(99, 102, 241, .35);
    overflow: hidden; position: relative;
    transform: rotate(3deg);
}
.phone::before {
    content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 84px; height: 8px; border-radius: 999px; background: #1f2937; z-index: 2;
}
.screen { position: absolute; inset: 0; background: #fdf9f0; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ---------- Stats strip ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--white); }
.stats-inner {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    padding: 34px 0; text-align: center;
}
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.02em; color: var(--ink); }
.stat span { color: var(--body); font-size: .92rem; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.kicker { color: var(--brand-deep); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
h2.title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.03em; margin: 10px 0 14px; line-height: 1.15; }
p.sub { color: var(--body); font-size: 1.08rem; max-width: 42rem; margin: 0 0 48px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(34, 211, 238, .14));
    color: var(--brand-deep); margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--body); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow);
}
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -18px; left: 24px;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800;
    display: grid; place-items: center; box-shadow: 0 6px 16px rgba(99, 102, 241, .4);
}
.step h3 { margin: 6px 0 8px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--body); font-size: .95rem; }

/* Split (for businesses) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.split li { display: flex; gap: 12px; color: var(--ink-2); }
.split li svg { flex: none; margin-top: 3px; color: var(--brand-deep); }
.split li b { display: block; }
.split li span { color: var(--body); font-size: .95rem; }
.panel {
    border-radius: 20px; padding: 36px;
    background: linear-gradient(160deg, var(--ink), var(--ink-2));
    color: #e2e8f0; box-shadow: var(--shadow-lg);
}
.panel .chip {
    display: inline-block; background: rgba(34, 211, 238, .15); border: 1px solid rgba(34, 211, 238, .4);
    color: #67e8f9; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; margin-bottom: 14px;
}
.panel h3 { color: #fff; margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -.02em; }
.panel p { margin: 0 0 8px; font-size: .97rem; color: #cbd5e1; }

/* CTA band */
.cta-band {
    background: radial-gradient(800px 400px at 50% -20%, rgba(99, 102, 241, .5), transparent 60%),
                linear-gradient(180deg, var(--ink-2), var(--ink));
    color: #fff; text-align: center; border-radius: 24px;
    padding: 72px 32px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -.03em; margin: 0 0 12px; }
.cta-band p { color: #cbd5e1; max-width: 36rem; margin: 0 auto 30px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--white); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); font-size: 1.05rem; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--body); font-size: .92rem; }
.foot-links a:hover { color: var(--ink); }

/* Scroll reveal — elements are only hidden when JS is running (html.js), so the page
   degrades to fully-visible content if scripts are blocked or fail. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; padding: 64px 0 72px; }
    .phone-wrap { order: -1; }
    .phone { width: 240px; transform: rotate(0deg); }
    .grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; gap: 34px; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}
@media (max-width: 620px) {
    .grid { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
    .nav-cta .ghost { display: none; }
}
