/* the public marketing page. its own stylesheet rather than an extension of
   shared.css: shared.css is the application design system and is loaded on
   every authenticated page, and a landing page must not pay for it. */

:root {
    --bg: #0a0c10;
    --bg-raised: #11141a;
    --panel: #151922;
    --panel-border: #262c38;
    --text: #e2e5ea;
    --text-dim: #9aa3b2;
    --text-faint: #616b7a;
    --accent: #7c6cf0;
    --accent-strong: #9686ff;
    --accent-soft: rgba(124, 108, 240, 0.14);
    --green: #3ecf8e;
    --amber: #e0a855;
    --radius: 12px;
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- nav ---- */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 26px; height: 26px; border-radius: 7px;
    background: linear-gradient(140deg, var(--accent), #5a4bd6);
    display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 9px; border: 1px solid transparent;
    font-size: 14.5px; font-weight: 560; cursor: pointer; font-family: inherit;
    transition: background 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); text-decoration: none; }
.btn-ghost { border-color: var(--panel-border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-raised); text-decoration: none; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }

/* ---- hero ---- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -40% 20% auto -10%; height: 560px;
    background: radial-gradient(ellipse at center, var(--accent-soft), transparent 62%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 13px; border-radius: 999px;
    border: 1px solid var(--panel-border); background: var(--bg-raised);
    font-size: 13px; color: var(--text-dim); margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
h1 {
    font-size: clamp(38px, 6vw, 60px); line-height: 1.07; margin: 0 0 22px;
    letter-spacing: -0.032em; font-weight: 680;
}
h1 .grad {
    background: linear-gradient(100deg, var(--accent-strong), #6ee7d0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; color: var(--text-dim); margin: 0 0 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); }

/* ---- three pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 8px 0 84px; }
.pillar { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 26px; }
.pillar .n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--accent-strong); }
.pillar h3 { margin: 10px 0 8px; font-size: 17.5px; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---- sections ---- */
section { padding: 84px 0; border-top: 1px solid var(--panel-border); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(27px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -0.024em; font-weight: 660; }
.section-head p { color: var(--text-dim); margin: 0; font-size: 16.5px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.feature {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius); padding: 22px;
    transition: border-color 140ms ease, transform 140ms ease;
}
.feature:hover { border-color: #333b4a; transform: translateY(-2px); }
.feature .ico {
    width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft);
    display: grid; place-items: center; margin-bottom: 14px; color: var(--accent-strong);
}
.feature h3 { margin: 0 0 7px; font-size: 15.5px; letter-spacing: -0.005em; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* ---- pricing ---- */
.pricing { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.plan {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius); padding: 32px; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), 0 24px 60px -30px var(--accent); }
.plan-name { font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.price .amount { font-size: 44px; font-weight: 680; letter-spacing: -0.03em; }
.price .per { color: var(--text-dim); font-size: 15px; }
.plan .sub { color: var(--text-dim); font-size: 14.5px; margin: 0 0 24px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-dim); align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--green); }
.meter-note {
    margin-top: 18px; padding: 15px 17px; border-radius: 9px;
    background: var(--bg-raised); border: 1px solid var(--panel-border);
    font-size: 13.5px; color: var(--text-dim);
}
.meter-note strong { color: var(--text); font-weight: 600; }

/* ---- faq ---- */
.faq { display: grid; gap: 12px; max-width: 780px; }
details {
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: 10px; padding: 17px 20px;
}
details[open] { border-color: #333b4a; }
summary { cursor: pointer; font-weight: 560; font-size: 15.5px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--text-faint); font-weight: 400; }
details[open] summary::after { content: '\2212'; }
details p { color: var(--text-dim); margin: 13px 0 0; font-size: 14.5px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--panel-border); padding: 44px 0; color: var(--text-faint); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.foot-links a { color: var(--text-faint); }

@media (max-width: 860px) {
    .pillars { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    .hero { padding: 62px 0 48px; }
    section { padding: 60px 0; }
}
