/* Inheritance marketing site — shares the app's brand (violet accent,
   Quicksand/Nunito type) but is its own lightweight stylesheet; this project
   is deployed standalone and never loads the app's own styles.css. */

:root {
  --accent: #7C5CFF;
  --accent-dark: #6a46f0;
  --accent-2: #FF7A59;
  --accent-soft: #F1EEFF;
  --ink: #16122B;
  --ink-muted: #5B5670;
  --ink-faint: #8E88A3;
  --surface: #FFFFFF;
  --surface-alt: #F8F6FF;
  --border: #E7E3F5;
  --success: #1BAF7A;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 32px rgba(45, 27, 105, 0.10);
  --shadow-sm: 0 2px 8px rgba(45, 27, 105, 0.06);
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Quicksand', var(--font-sans);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F1FB;
    --ink-muted: #B7B1D1;
    --ink-faint: #837CA0;
    --surface: #150F2E;
    --surface-alt: #1B1440;
    --border: #2E2660;
    --accent-soft: rgba(124, 92, 255, 0.16);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hint { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px rgba(124,92,255,.3); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(124,92,255,.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 19px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-weight: 700; font-size: 14.5px; color: var(--ink-muted); transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 20px 24px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .nav-actions { flex-direction: column; margin-top: 10px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 64px; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 560px; z-index: -1;
  background: radial-gradient(560px 320px at 20% 10%, rgba(124,92,255,.20), transparent 60%),
              radial-gradient(480px 300px at 85% 0%, rgba(255,122,89,.16), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 12.5px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.12; }
.hero h1 .grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: 17px; color: var(--ink-muted); max-width: 520px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta span { font-size: 13px; color: var(--ink-faint); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.hero-meta span::before { content: '✓'; color: var(--success); font-weight: 900; }

/* Product mock — CSS-only illustrative panel, not a real screenshot */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-title { margin-left: 8px; font-size: 12px; font-weight: 800; color: var(--ink-faint); }
.mock-body { display: grid; grid-template-columns: 84px 1fr; min-height: 300px; }
.mock-rail { background: var(--surface-alt); border-right: 1px solid var(--border); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock-rail i { width: 30px; height: 30px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.mock-rail i.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.mock-main { padding: 18px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; background: var(--surface-alt); }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border); flex: 1; }
.mock-line.short { flex: 0 0 40%; }
.mock-chip { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .mock { order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: 32px; line-height: 1.2; }
.section-head p { margin-top: 12px; font-size: 16px; color: var(--ink-muted); }
.eyebrow-center { display: block; text-align: center; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent-dark); }
.feature-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Logic strip (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface-alt); border: 1px solid var(--border); }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing teaser + full page ---------- */
.bg-alt { background: var(--surface-alt); }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 42px; }
.billing-toggle span { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.billing-toggle span.active { color: var(--ink); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--border); border: none; cursor: pointer; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.save-badge { font-size: 11.5px; font-weight: 800; color: var(--success); background: rgba(27,175,122,.14); padding: 3px 9px; border-radius: 999px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 16px 40px rgba(124,92,255,.22); position: relative; }
.price-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { font-size: 18px; }
.price-card .plan-desc { font-size: 13px; color: var(--ink-muted); margin-top: 6px; min-height: 34px; }
.price-value { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 4px; }
.price-value .amount { font-size: 38px; font-weight: 800; font-family: var(--font-heading); }
.price-value .period { font-size: 13.5px; color: var(--ink-faint); font-weight: 700; }
.price-note { font-size: 12px; color: var(--ink-faint); min-height: 16px; margin-bottom: 20px; }
.price-card .btn { margin-bottom: 22px; }
.price-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-features li { font-size: 13.5px; color: var(--ink-muted); display: flex; align-items: flex-start; gap: 8px; }
.price-features li::before { content: '✓'; color: var(--success); font-weight: 900; flex-shrink: 0; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } .price-card.featured { order: -1; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
table.compare th, table.compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); font-size: 13.5px; }
table.compare th { font-family: var(--font-heading); font-weight: 800; background: var(--surface-alt); }
table.compare td:first-child, table.compare th:first-child { text-align: left; font-weight: 700; color: var(--ink); }
table.compare tr:last-child td { border-bottom: none; }
table.compare td.yes { color: var(--success); font-weight: 900; }
table.compare td.no { color: var(--ink-faint); }
.compare-section-row td { background: var(--surface-alt); text-align: left; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 800; font-size: 15px; }
.faq-q i { transition: transform .2s ease; color: var(--accent); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14px; color: var(--ink-muted); line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner { border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent), var(--accent-2)); padding: 56px; text-align: center; color: #fff; }
.cta-banner h2 { color: #fff; font-size: 28px; }
.cta-banner p { color: rgba(255,255,255,.88); margin-top: 10px; font-size: 15.5px; }
.cta-banner .hero-cta { justify-content: center; margin-top: 26px; }
.cta-banner .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.2); }
.cta-banner .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-muted); margin-bottom: 10px; font-weight: 600; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.pricing-hero { padding: 64px 0 8px; text-align: center; }
.pricing-hero h1 { font-size: 40px; }
.pricing-hero p { margin-top: 14px; color: var(--ink-muted); font-size: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }

.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.badge-row span { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); background: var(--surface-alt); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
