:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --accent: #0ea5e9;
  --success: #10b981;
  --amber: #f59e0b;
  --sky: #0ea5e9;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05), 0 1px 3px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 10px 30px rgb(15 23 42 / 0.08), 0 2px 6px rgb(15 23 42 / 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: #334155; }
.muted { color: var(--muted); font-size: .95rem; }
.fine-print { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(180%) blur(10px); background: rgba(255,255,255,.85); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--fg); font-weight: 700; text-decoration: none; }
.brand-dot { display: inline-block; width: 22px; height: 22px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 14px rgba(79, 70, 229, .35); }
.brand b { color: var(--primary); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--fg); font-weight: 500; }
@media (max-width: 720px) {
  .nav-links a:not(.btn-primary):not(.btn-ghost) { display: none; }
}

/* ---------- buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  transition: transform .05s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }
.btn-primary:hover { background: var(--primary-strong); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: #f1f5f9; text-decoration: none; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.pill { display: inline-block; background: #eef2ff; color: var(--primary-strong); padding: .35rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 3rem; background: radial-gradient(1200px 400px at 50% -10%, rgba(79,70,229,.15), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-ctas { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-bullets { list-style: none; padding: 0; margin: 1.5rem 0 0; color: #334155; }
.hero-bullets li { padding: .3rem 0; }
.hero-card { display: flex; align-items: center; justify-content: center; }
.mock { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.mock-head { display: flex; align-items: center; gap: .35rem; padding: .6rem .8rem; background: #f1f5f9; border-bottom: 1px solid var(--border); }
.mock-head span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-head span:nth-child(1) { background: #ef4444; }
.mock-head span:nth-child(2) { background: #f59e0b; }
.mock-head span:nth-child(3) { background: #10b981; }
.mock-head small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.mock-body { padding: 1rem; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .8rem; }
.kpi { padding: .6rem; border-radius: 10px; background: #f8fafc; border: 1px solid var(--border); display: flex; flex-direction: column; gap: .1rem; }
.kpi b { font-size: 1.3rem; }
.kpi span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi-sky { border-left: 4px solid var(--sky); }
.kpi-amber { border-left: 4px solid var(--amber); }
.kpi-emerald { border-left: 4px solid var(--success); }
.mock-list { display: flex; flex-direction: column; gap: .4rem; }
.mock-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.sky { background: var(--sky); }
.dot.amber { background: var(--amber); }
.dot.emerald { background: var(--success); }

/* ---------- trust / logos ---------- */
.trust { padding: 2rem 0; text-align: center; color: var(--muted); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); margin-top: 2rem; background: #fff; }
.trust p { margin: 0; }

/* ---------- section head ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: .75rem; }

/* ---------- problem ---------- */
.problem { padding: 4rem 0; background: #fff; border-bottom: 1px solid var(--border); }
.problem h2 { text-align: center; margin-bottom: 2rem; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.problem-card .emoji { font-size: 1.7rem; margin-bottom: .6rem; }

/* ---------- features ---------- */
.features { padding: 5rem 0; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: #eef2ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: .75rem; }

/* ---------- how ---------- */
.how { padding: 5rem 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .how-steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 1.5rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 1rem; font-size: 1.15rem; box-shadow: 0 6px 14px rgba(79,70,229,.3); }

/* ---------- pricing ---------- */
.pricing { padding: 5rem 0; background: var(--bg); }
.price-card { max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2.25rem; box-shadow: var(--shadow-lg); text-align: center; position: relative; overflow: hidden; }
.price-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.price-head { margin-bottom: 1.5rem; }
.price-tag { display: inline-flex; align-items: baseline; gap: .15rem; color: var(--fg); }
.price-tag .currency { font-size: 1.2rem; color: var(--muted); }
.price-tag .value { font-size: 4rem; font-weight: 800; line-height: 1; }
.price-tag .cents { font-size: 1.6rem; font-weight: 700; color: var(--muted); }
.price-tag .per { font-size: 1rem; color: var(--muted); margin-left: .35rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: left; }
.price-features li { padding: .4rem 0; color: #334155; }

/* ---------- faq ---------- */
.faq { padding: 5rem 0; background: #fff; border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
details { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; transition: background .15s ease; }
details[open] { background: #eef2ff; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-weight: 700; color: var(--primary); transition: transform .2s ease; }
details[open] summary::after { content: '–'; }
details p { margin: .75rem 0 0; color: #475569; }

/* ---------- final cta ---------- */
.final-cta { padding: 5rem 0; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; text-align: center; }
.final-cta .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 22px rgba(0,0,0,.12); }
.final-cta .btn-primary:hover { background: #f1f5f9; color: var(--primary-strong); }
.final-cta .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,.2); }
.final-inner { max-width: 720px; margin: 0 auto; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }

/* ---------- footer ---------- */
.footer { background: #0f172a; color: #cbd5e1; padding: 3rem 0 2rem; }
.footer .brand, .footer .brand:hover { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.footer h4 { color: #fff; margin-bottom: .75rem; font-size: .95rem; }
.footer a { display: block; color: #cbd5e1; padding: .2rem 0; }
.footer a:hover { color: #fff; }
.copy { text-align: center; color: #64748b; font-size: .85rem; padding-top: 2rem; border-top: 1px solid #1e293b; margin-top: 2rem; }

/* ---------- signup & success ---------- */
.signup-main { min-height: calc(100vh - 64px); background: var(--bg); }
.signup { padding: 3rem 0 4rem; }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .signup-inner { grid-template-columns: 1fr; } }
.signup-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.signup-card h2 { margin-bottom: 1.25rem; }
.signup-card form { display: flex; flex-direction: column; gap: .85rem; }
.signup-card label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .9rem; }
.signup-card input { padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.signup-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
.signup-card .fine-print { text-align: center; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .92rem; }

.success { padding: 5rem 0; display: flex; align-items: center; justify-content: center; }
.success-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem; text-align: center; box-shadow: var(--shadow-lg); max-width: 520px; margin: 0 auto; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
