/* The marketing pages share one stylesheet so they render without the app shell.
   Only public pages use this file: the studio UI has its own tokens in index.css.
   Tokens mirror src/static/css/style.css and partials/_tailwind_config.html, so a
   visitor moving from /pricing into the studio does not cross a palette change. */

:root {
    --bg: #0a0a0c;
    --surface: #131318;
    --surface-2: #1a1a22;
    --border: #2a2a36;
    --text: #e8e8ed;
    --dim: #8888a0;
    --accent: #6c5ce7;
    --accent-hover: #5a4bd1;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --green: #00cec9;
    --warn: #e17055;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --font-heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --max: 1120px;
    --gutter: clamp(20px, 4vw, 32px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

h1, h2, h3, .plan-price, .stat-value, .soon-price {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 12, 0.86);
    backdrop-filter: blur(12px);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px var(--gutter);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }

nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
nav a { text-decoration: none; color: var(--dim); transition: color 0.15s ease; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); }

/* The signup door, in the rail: the one nav entry that is a button. */
nav a.nav-cta {
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

/* ── Layout ─────────────────────────────────────────────────────────────── */

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    scroll-margin-top: 80px;
}

.hero { padding: 72px 0 36px; max-width: 800px; }

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.05rem, 5vw, 3.35rem);
    font-weight: 700;
    line-height: 1.06;
    margin: 0 0 18px;
}

h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }

.sub { font-size: clamp(16px, 2vw, 18px); color: var(--dim); margin: 0 0 26px; max-width: 62ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    padding: 6px 13px;
    color: var(--dim);
    font-size: 13px;
}

.notice {
    margin: 24px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(0, 206, 201, 0.35);
    border-radius: var(--radius);
    background: rgba(0, 206, 201, 0.08);
    color: #9ff5f2;
    font-size: 14px;
}

/* ── Hero doors (landing) ───────────────────────────────────────────────── */

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 0 0 12px; }
.cta-quiet { color: var(--dim); font-size: 15px; text-decoration: none; }
.cta-quiet:hover { color: var(--text); }

/* ── Plans ──────────────────────────────────────────────────────────────── */

.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 12px 0 48px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #15151c 0%, #101016 100%);
}

.plan-primary {
    border-color: rgba(108, 92, 231, 0.55);
    box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.12), 0 30px 70px -40px rgba(108, 92, 231, 0.65);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan h2 {
    margin: 0 0 14px;
    color: var(--dim);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.plan-price {
    margin: 0 0 6px;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
}
.plan-price span {
    margin-left: 8px;
    color: var(--dim);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.plan-lede { margin: 0 0 22px; color: var(--dim); font-size: 15px; }

.plan ul {
    display: grid;
    gap: 9px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.45;
}
.plan li { position: relative; padding-left: 26px; }
.plan li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-light);
    font-weight: 700;
}

.plan-actions { margin-top: auto; display: grid; gap: 10px; }
.plan-actions form { margin: 0; display: grid; }
.plan-actions .button, .plan-actions button { width: 100%; }

.plan-note {
    /* Two lines at the desktop measure: the cards' fine print has to reserve
       the same height or the two buy buttons stop sitting on one line. */
    min-height: 3em;
    margin: 14px 0 0;
    color: var(--dim);
    font-size: 13px;
    line-height: 1.5;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
button:hover, .button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: default; }

.button-quiet {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.button-quiet:hover { background: rgba(108, 92, 231, 0.1); border-color: var(--accent); }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { border-top: 1px solid var(--border); padding: 52px 0; }

.section-title {
    margin: 0 0 24px;
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    font-weight: 600;
}

.section-note { max-width: 72ch; margin: 20px 0 0; color: var(--dim); font-size: 14px; }

.month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.stat {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #14141b 0%, #101016 100%);
}

.stat-value { margin: 0; font-size: 40px; font-weight: 700; line-height: 1; }
.stat-label {
    margin: 8px 0 10px;
    color: var(--dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.stat-note { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; }

.table-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; font-size: 15px; }

table thead th {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: #101016;
    color: var(--dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}
table thead th:last-child { text-align: right; }

table tbody th, table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--border); }
table tbody tr:last-child th, table tbody tr:last-child td { border-bottom: 0; }
table tbody th { font-weight: 500; text-align: left; }
table tbody td {
    text-align: right;
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.soon {
    padding: 22px;
    border: 1px dashed var(--border);
    border-radius: 16px;
}
.soon header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.soon h3 { margin: 0; font-size: 18px; font-weight: 600; }
.soon-price { margin: 0; font-size: 22px; font-weight: 600; }
.soon-price span { color: var(--dim); font-family: var(--font-body); font-size: 13px; font-weight: 400; }
.soon p { margin: 12px 0 0; color: var(--dim); font-size: 14.5px; }
.soon .soon-tag {
    margin-top: 14px;
    color: var(--warn);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 600;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 72ch; margin: 10px 0 0; color: var(--dim); font-size: 15px; }
/* An inline reference inside dim copy has to read as a link on its own: the
   colour alone is a 1.05:1 difference from the paragraph. */
.faq p a, .section-note a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Landing blocks (the root page's own sections) ──────────────────────── */

.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; }
.proof ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.proof td, .proof th { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.proof table { width: 100%; border-collapse: collapse; margin-top: 12px; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; padding: 56px 0; }
.pillars p { color: var(--dim); font-size: 15px; }

.segments { padding: 16px 0 48px; }
.segments dt { font-weight: 600; margin-top: 16px; }
.segments dd { margin: 4px 0 0; color: var(--dim); }

.cta { text-align: center; padding: 48px 0 24px; }
.cta .button { width: auto; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; }

.waitlist { display: flex; gap: 8px; flex-wrap: wrap; }
.waitlist-status { min-height: 24px; font-size: 14px; color: var(--dim); margin: 12px 0 4px; }

input[type="email"] {
    flex: 1 1 260px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
}

.fine { font-size: 13px; color: var(--dim); }

/* Kept for the legacy price markup the landing page once used. */
.price { font-size: 30px; font-weight: 700; margin: 8px 0 16px; }
.price span { font-size: 15px; font-weight: 400; color: var(--dim); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--dim);
    font-size: 14px;
}
.foot-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px var(--gutter) 48px;
}
.foot-brand img { display: block; height: 24px; width: auto; opacity: 0.9; }
.foot-brand p { margin: 10px 0 0; }
.foot-brand a { color: var(--dim); }
.foot-brand a:hover { color: var(--text); }
.foot-inner nav { gap: 16px; flex-wrap: wrap; }
.foot-year { margin: 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .plans, .month-grid, .soon-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 52px 0 28px; }
    .section { padding: 40px 0; }
    .plan { padding: 26px; }
    .plan-badge { left: 26px; }
    .site-head { position: static; }
}

@media (max-width: 560px) {
    nav { gap: 14px; font-size: 13.5px; }
    .head-inner { flex-wrap: wrap; row-gap: 12px; }
    .head-inner nav { width: 100%; justify-content: space-between; }
    .plan-price { font-size: 40px; }
    .foot-inner { flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
