/* LeisureQuant marketing site. Same tokens as the app (leisurequant.app) so the two feel like one product.
   Light and dark follow the visitor's system setting; the toggle stores a choice in localStorage. */
:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --text: #0f1f38;
  --muted: #566577;
  --border: #d8e1e8;
  --accent: #007780;
  --accent-text: #ffffff;
  --accent-soft: #e0f3f4;
  --brand-1: #0d2d55;
  --brand-2: #00a4ae;
  --up: #0f7a4f;
  --down: #c0362c;
  --warn: #8a5a00;
  --warn-soft: #fdf3dc;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --grid: #eceef2;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1628;
    --surface: #0f1f38;
    --surface-2: #142a48;
    --text: #e6edf5;
    --muted: #9fb0c4;
    --border: #1f3654;
    --accent: #00d4dc;
    --accent-text: #0b1a33;
    --accent-soft: #0e3442;
    --brand-1: #ffffff;
    --brand-2: #00d4dc;
    --up: #4cc38a;
    --down: #f07167;
    --warn: #e0b45a;
    --warn-soft: #2d2412;
    --series-1: #3987e5;
    --series-2: #d95926;
    --grid: #182c47;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1628;
  --surface: #0f1f38;
  --surface-2: #142a48;
  --text: #e6edf5;
  --muted: #9fb0c4;
  --border: #1f3654;
  --accent: #00d4dc;
  --accent-text: #0b1a33;
  --accent-soft: #0e3442;
  --brand-1: #ffffff;
  --brand-2: #00d4dc;
  --up: #4cc38a;
  --down: #f07167;
  --warn: #e0b45a;
  --warn-soft: #2d2412;
  --series-1: #3987e5;
  --series-2: #d95926;
  --grid: #182c47;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--brand-1); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--brand-2); font-weight: inherit; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 1.1rem; margin-left: 1rem; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; }
.menu-btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1.1rem; border-radius: 9px; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost { background: none; border-color: transparent; color: var(--text); }
.btn.lg { padding: 0.8rem 1.4rem; font-size: 1.05rem; }
.btn.block { width: 100%; }

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.hero { padding: 88px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 0.75rem; }
.trust { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.trust b { color: var(--text); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0.3rem; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.2rem; }
.stat .n { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat .l { color: var(--muted); font-size: 0.9rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 0.6rem; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: 0; }
.feature-row.flip > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.45rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-weight: 700; }

/* product mock (pure CSS/SVG, no screenshots) */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-body { padding: 14px; }
.chip { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.chip.good { background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--up); border-color: transparent; }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.score-big { font-size: 2.4rem; font-weight: 800; }
.bar { height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--up); border-radius: 4px; }

/* pricing */
.toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; padding: 3px; background: var(--surface); }
.toggle button { border: 0; background: none; padding: 0.45rem 0.9rem; border-radius: 8px; color: var(--muted); font: inherit; font-size: 0.92rem; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.plan { display: flex; flex-direction: column; gap: 0.8rem; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; flex: 1; font-size: 0.93rem; }
.plan li { padding: 0.3rem 0 0.3rem 1.4rem; position: relative; border-bottom: 1px dashed var(--border); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--up); }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-text); }

table.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
table.compare th, table.compare td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* faq */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 0.5rem; }

.cta { text-align: center; }
.cta .card { padding: 3rem 1.5rem; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }

.note { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--text); border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.92rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--surface); font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.site-footer h4 { margin: 0 0 0.6rem; font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted); }
.disclaimer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }

/* phone and tablet */
@media (max-width: 960px) {
  .hero .wrap, .feature-row, .grid-2 { grid-template-columns: 1fr; }
  .feature-row.flip > :first-child { order: 0; }
  .grid-3, .steps, .plans, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--surface); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 16px; border-top: 1px solid var(--border); }
  .menu-btn { display: inline-block; }
  .header-actions .btn.ghost { display: none; }
  .grid-3, .steps, .plans, .grid-4 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
