/* ===========================
   LifeRunner — Marketing site
   =========================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4fb;
  --bg-hero: linear-gradient(180deg, #eef0fe 0%, #f5f1fb 55%, #ffffff 100%);
  --text: #131426;
  --text-muted: #5b6076;
  --text-faint: #8a8fa6;
  --border: #e6e7ef;
  --border-soft: #eef0f7;
  --card: #ffffff;
  --primary: #4f6bf6;
  --primary-strong: #3b53e6;
  --primary-soft: #eef1ff;
  --dark: #0f1020;
  --warn: #f59f0a;
  --warn-soft: #fff5e0;
  --good: #16a34a;
  --good-soft: #e6f7ec;
  --info-soft: #e8eeff;
  --shadow-sm: 0 1px 2px rgba(15, 16, 32, 0.04), 0 1px 3px rgba(15, 16, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 16, 32, 0.06), 0 2px 8px rgba(15, 16, 32, 0.04);
  --shadow-lg: 0 24px 60px rgba(60, 70, 160, 0.12), 0 8px 24px rgba(15, 16, 32, 0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

[data-theme="dark"] {
  --bg: #0c0d18;
  --bg-soft: #11142a;
  --bg-hero: linear-gradient(180deg, #161938 0%, #14152a 55%, #0c0d18 100%);
  --text: #ecedf5;
  --text-muted: #a4a9c0;
  --text-faint: #757a92;
  --border: #232645;
  --border-soft: #1b1e38;
  --card: #14172e;
  --primary: #6b80ff;
  --primary-strong: #8497ff;
  --primary-soft: #1d2247;
  --dark: #ecedf5;
  --warn-soft: #3a2c10;
  --good-soft: #103021;
  --info-soft: #1c2347;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ============= Header ============= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
[data-theme="dark"] .site-header { background: rgba(12, 13, 24, 0.78); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text);
}
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 17px; letter-spacing: -0.01em; }
.primary-nav {
  display: flex; gap: 28px;
  font-size: 14.5px; color: var(--text-muted);
}
.primary-nav a { transition: color .15s; }
.primary-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-muted); transition: all .15s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ============= Buttons ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 16px rgba(79,107,246,.35);
}
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: #fff; }
[data-theme="dark"] .btn-dark { color: var(--bg); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-outline {
  background: var(--card); color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-soft); border-color: #d4d6e3; }

/* ============= Hero ============= */
.hero {
  background: var(--bg-hero);
  padding: 72px 0 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,140,255,0.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; padding-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(245,159,10,.18);
}
.hero-title {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800; letter-spacing: -0.035em;
  margin: 0 0 8px; line-height: 1.02;
  background: linear-gradient(180deg, var(--text) 0%, #2a2e57 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .hero-title {
  background: linear-gradient(180deg, #ffffff 0%, #b9c1ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; color: var(--primary-strong);
  margin: 0 0 20px; letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 640px; margin: 0 auto 32px;
  color: var(--text-muted); font-size: 17px; line-height: 1.6;
}
.hero-cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 48px;
}
.hero-microcopy {
  font-size: 11.5px; letter-spacing: 0.14em; font-weight: 600;
  color: var(--text-faint); margin: 0 0 16px; text-transform: uppercase;
}
.hero-tools {
  display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 56px;
}
.tool-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* ============= App mock ============= */
.app-mock {
  max-width: 980px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  transform: translateY(20px);
}
.mock-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border-soft);
}
.mock-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.mock-logo {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #7c8cff, #4f6bf6);
}
.mock-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb47a, #ff7a59);
}
.mock-tabs {
  display: flex; gap: 4px; padding: 8px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-muted);
}
.mock-tab {
  padding: 8px 12px; border-radius: 8px;
}
.mock-tab.active { background: var(--primary-soft); color: var(--primary-strong); font-weight: 600; }
.mock-body { padding: 28px 28px 32px; }
.mock-h { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
.mock-p { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; }
.mock-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px;
}
.mock-stat {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.mock-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mock-stat-value { font-size: 28px; font-weight: 700; }
.mock-pill {
  position: absolute; top: 14px; right: 14px;
  font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.mock-pill-warn { background: var(--warn-soft); color: var(--warn); }
.mock-pill-good { background: var(--good-soft); color: var(--good); }
.mock-pill-info { background: var(--info-soft); color: var(--primary-strong); }
.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-row {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--border-soft); border-radius: 10px;
  background: var(--bg);
  font-size: 13.5px;
}
.mock-row-tag {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  text-align: center;
}
.tag-follow { background: #fff0e0; color: #c2700b; }
.tag-decision { background: #ecf3ff; color: var(--primary-strong); }
.tag-task { background: #ecf8ee; color: var(--good); }
[data-theme="dark"] .tag-follow { background: #3a2c10; color: #ffb756; }
[data-theme="dark"] .tag-decision { background: #1d2247; color: #8497ff; }
[data-theme="dark"] .tag-task { background: #103021; color: #5be08b; }
.mock-row-meta { font-size: 12px; color: var(--text-faint); }

/* ============= Sections ============= */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-cta { padding: 80px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title {
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 14px; line-height: 1.15;
  color: var(--text);
}
.section-sub {
  margin: 0; font-size: 17px; color: var(--text-muted);
}
.section-sub a { color: var(--primary-strong); font-weight: 500; }

/* ============= Feature tabs ============= */
.feature-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px;
  margin-bottom: 56px;
}
.feature-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-muted); font-weight: 500; font-size: 14.5px;
  transition: all .15s;
}
.feature-tab:hover { color: var(--text); background: var(--bg-soft); }
.feature-tab.active {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-color: rgba(79,107,246,0.18);
  font-weight: 600;
}
.ft-icon { font-size: 16px; }

.feature-panel { display: none; }
.feature-panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-bottom: 40px;
}
.feature-h {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 16px; line-height: 1.2;
}
.feature-h span { color: var(--text); }
.feature-h { color: var(--text-muted); }
.feature-h span { display: inline; }
.feature-lead { color: var(--primary-strong); font-size: 16px; font-weight: 500; margin: 0 0 14px; }
.feature-text { color: var(--text-muted); margin: 0; font-size: 15.5px; }

.feature-visual {
  display: flex; justify-content: center;
}
.mini-mock {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mini-row {
  padding: 12px 16px; font-size: 13.5px; color: var(--text);
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.mini-row:first-child { border-top: none; }
.mini-row small { margin-left: auto; color: var(--text-faint); font-size: 11.5px; }
.mini-row strong { color: var(--text); margin-right: 4px; }
.mini-row em { color: var(--warn); font-style: normal; font-weight: 500; }
.mini-row-head {
  background: var(--bg-soft); font-weight: 600; font-size: 13px; color: var(--text-muted);
}
.mini-row-ai {
  background: var(--primary-soft); color: var(--primary-strong); font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-warn { background: var(--warn); }
.dot-info { background: var(--primary); }
.dot-good { background: var(--good); }

.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 16px;
}
.benefit {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.benefit-icon { font-size: 22px; margin-bottom: 10px; }
.benefit h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.benefit p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ============= Pillars ============= */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pillar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pillar-icon { font-size: 28px; margin-bottom: 14px; }
.pillar h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ============= Audience ============= */
.audience-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.audience-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.audience-card h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
.audience-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ============= Agents ============= */
.agents-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.agent-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative;
}
.agent-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--primary-soft); color: var(--primary-strong);
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.agent-icon { font-size: 28px; margin-bottom: 14px; }
.agent-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.agent-card > p { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; }
.agent-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.agent-list li {
  font-size: 13.5px; color: var(--text-muted);
  padding-left: 18px; position: relative;
}
.agent-list li::before {
  content: "›"; position: absolute; left: 4px; color: var(--primary);
  font-weight: 700;
}

/* ============= Pricing ============= */
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; margin: 0 auto 40px;
  position: relative; left: 50%; transform: translateX(-50%);
}
.billing-opt {
  background: transparent; border: none; padding: 8px 18px;
  border-radius: 999px; color: var(--text-muted); font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.billing-opt.active { background: var(--text); color: var(--bg); font-weight: 600; }
[data-theme="dark"] .billing-opt.active { background: var(--text); color: var(--bg); }
.save {
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  background: var(--good-soft); color: var(--good); font-weight: 700;
}
.billing-opt.active .save { background: rgba(255,255,255,0.15); color: #b6f7c8; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,107,246,0.12), var(--shadow-md);
  transform: translateY(-4px);
}
.recommended {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.price-name { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.price-card-featured .price-name { color: var(--primary-strong); }
.price-tag { margin: 0 0 22px; color: var(--text-muted); font-size: 14px; }
.price-features {
  margin: 0 0 26px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border-soft); padding-top: 22px;
}
.price-features li {
  font-size: 14px; color: var(--text); padding-left: 22px; position: relative;
}
.price-features li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}
.price-features li.trial { color: var(--primary-strong); font-weight: 500; }
.price-features li.trial::before { content: ""; }
.price-amount {
  margin-top: auto; margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 6px;
}
.price-num { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.price-per { color: var(--text-muted); font-size: 14px; }
.price-btn { width: 100%; }

/* ============= FAQ ============= */
.faq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 980px; margin: 0 auto;
}
.faq-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.faq-card h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
.faq-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ============= CTA / Waitlist ============= */
.section-cta { background: var(--bg); }
.cta-icon {
  font-size: 36px; margin-bottom: 4px;
}
.waitlist-form {
  display: flex; gap: 8px; max-width: 460px; margin: 28px auto 0;
}
.waitlist-form input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-family: inherit; font-size: 14.5px;
}
.waitlist-form input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,107,246,0.18);
}
.form-ok {
  margin-top: 14px; font-size: 14px; color: var(--good); font-weight: 500;
}
.form-err {
  margin-top: 14px; font-size: 14px; color: #c0392b; font-weight: 500;
}
.form-err a { color: inherit; text-decoration: underline; }

/* ============= Footer ============= */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-tag { color: var(--text-muted); margin: 0 0 8px; font-size: 14px; }
.footer-copy { color: var(--text-faint); margin: 0; font-size: 13px; }
.footer-col h5 {
  margin: 0 0 14px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text);
}
.footer-col a {
  display: block; padding: 4px 0;
  color: var(--text-muted); font-size: 14px; transition: color .15s;
}
.footer-col a:hover { color: var(--text); }

/* ============= Responsive ============= */
@media (max-width: 920px) {
  .primary-nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card-featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 80px 1fr; }
  .mock-row-meta { grid-column: 2; padding-left: 0; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 0; }
  .pillars-grid, .audience-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .header-actions .btn { padding: 8px 14px; font-size: 13.5px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}
