/* DrivenFocus — Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: oklch(0.985 0.004 85);
  --bg-elev: oklch(0.97 0.005 85);
  --bg-card: oklch(1 0 0);
  --ink: oklch(0.18 0.012 60);
  --ink-soft: oklch(0.42 0.012 60);
  --ink-mute: oklch(0.62 0.012 60);
  --line: oklch(0.88 0.008 80);
  --line-soft: oklch(0.94 0.006 80);
  --accent: oklch(0.45 0.08 245);
  --accent-soft: oklch(0.92 0.03 245);
  --road: oklch(0.78 0.01 80);
  --map: oklch(0.94 0.012 95);
  --map-water: oklch(0.86 0.03 230);
  --map-park: oklch(0.9 0.04 145);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.008 80);
  --bg-elev: oklch(0.2 0.008 80);
  --bg-card: oklch(0.22 0.01 80);
  --ink: oklch(0.96 0.005 85);
  --ink-soft: oklch(0.78 0.008 80);
  --ink-mute: oklch(0.55 0.01 80);
  --line: oklch(0.32 0.012 80);
  --line-soft: oklch(0.26 0.01 80);
  --accent: oklch(0.7 0.1 245);
  --accent-soft: oklch(0.3 0.05 245);
  --road: oklch(0.35 0.008 80);
  --map: oklch(0.22 0.01 80);
  --map-water: oklch(0.32 0.04 230);
  --map-park: oklch(0.3 0.04 145);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }

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

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1;
  padding-bottom: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ── HERO ────────────────────────────────────── */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 120px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: oklch(0.65 0.18 145);
  box-shadow: 0 0 0 3px oklch(0.65 0.18 145 / 0.2);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero h1 .it { font-style: italic; color: var(--ink-soft); }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 460px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px oklch(0.18 0.012 60 / 0.4); }
.btn-primary svg { flex: none; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.hero-meta {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .num {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── PHONE ──────────────────────────────────── */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 8% -10% 8% -10%;
  background: radial-gradient(ellipse at center, color-mix(in oklch, var(--accent) 18%, transparent), transparent 65%);
  z-index: 0;
  filter: blur(40px);
}
.phone {
  position: relative;
  width: 320px;
  height: 660px;
  border-radius: 52px;
  background: oklch(0.12 0.008 80);
  padding: 11px;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.05) inset,
    0 50px 100px -30px oklch(0.18 0.012 60 / 0.45),
    0 20px 40px -15px oklch(0.18 0.012 60 / 0.25);
  z-index: 1;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--map);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  border-radius: 999px;
  background: oklch(0.08 0.008 80);
  z-index: 5;
}
.phone-status {
  position: absolute;
  top: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 9px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  z-index: 4;
}
.phone-status .right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── SECTION ────────────────────────────────── */
section { padding: clamp(80px, 10vw, 140px) 0; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.section-head .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.section-head h2 .it { font-style: italic; color: var(--ink-soft); }

/* ── FEATURES ───────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.feature.f1 { grid-column: span 7; min-height: 440px; }
.feature.f2 { grid-column: span 5; min-height: 440px; }
.feature.f3 { grid-column: span 4; }
.feature.f4 { grid-column: span 4; }
.feature.f5 { grid-column: span 4; }
@media (max-width: 880px) {
  .feature { grid-column: span 12 !important; min-height: 320px; }
}
.feature-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.feature h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 16ch;
}
.feature h3 .it { font-style: italic; color: var(--ink-soft); }
.feature p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 38ch;
}
.feature .visual {
  margin-top: auto;
  position: relative;
}

/* ── HOW IT WORKS ──────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.step .n {
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  line-height: 1;
  color: var(--ink-mute);
}
.step h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.step p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ── PRO ───────────────────────────────────── */
.pro {
  background: var(--ink);
  color: var(--bg);
  border-radius: 32px;
  padding: clamp(48px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .pro { background: var(--bg-card); border: 1px solid var(--line); }
@media (max-width: 880px) { .pro { grid-template-columns: 1fr; gap: 32px; } }
.pro h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.pro h2 .it { font-style: italic; opacity: 0.6; }
.pro p {
  color: oklch(0.78 0.005 80);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.pro-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.pro-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 14px;
  font-size: 14px;
}
.pro-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ── FAQ ───────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.faq-q .plus {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .3s;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
}
.faq-item[data-open="true"] .plus { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}
.faq-item[data-open="true"] .faq-a { max-height: 240px; padding: 0 0 28px; }

/* ── WAITLIST ──────────────────────────────── */
.waitlist {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(80px, 10vw, 140px) 0;
}
.waitlist h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.waitlist h2 .it { font-style: italic; color: var(--ink-soft); }
.waitlist p {
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: 16px;
}
.waitlist-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  align-items: center;
}
.waitlist-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 12px 0;
}
.waitlist-form input::placeholder { color: var(--ink-mute); }
.waitlist-form button {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* ── FOOTER ────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li a { font-size: 14px; color: var(--ink-soft); }
.footer-grid li a:hover { color: var(--ink); }
.footer-tag {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 16ch;
}
.footer-tag .it { font-style: italic; color: var(--ink-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ── DECORATIVE / MAP ──────────────────────── */
.map-svg { width: 100%; height: 100%; display: block; }

/* tweaks panel offset */
.tweaks-panel { z-index: 100; }

/* ── SCREENSHOT PHONE (real screenshot in bezel) ─ */
.screenshot-phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1206 / 2622;
  position: relative;
}
.hero-screenshot { max-width: 340px; }
.screenshot-phone-bezel {
  width: 100%;
  height: 100%;
  border-radius: 14% / 6.4%;
  background: oklch(0.12 0.008 80);
  padding: 3.2%;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.05) inset,
    0 30px 60px -20px oklch(0.18 0.012 60 / 0.4),
    0 12px 24px -10px oklch(0.18 0.012 60 / 0.2);
}
.screenshot-phone-bezel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11% / 5%;
  display: block;
}

/* ── MOCKUP ROW (3 phones side-by-side) ─────── */
.mockup-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 6vw, 80px) 0;
}
@media (max-width: 880px) {
  .mockup-row { grid-template-columns: 1fr; }
}
.mockup-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.mockup-cap { max-width: 280px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.mockup-cap .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.mockup-cap h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.mockup-cap p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ── COMPACT FOOTER ─────────────────────────── */
.footer-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
[data-theme="dark"] .brand img { filter: invert(1); }
