/* ═══════════════════════════════════════════════════════════
   InstantPages.ai — Brand & Landing Stylesheet
   Part 1/2 — design tokens, base, nav, footer, buttons, flash
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Palette — confident, dense, slightly off-spec to avoid generic SaaS feel */
    --ip-bg: #0b0b10;
    --ip-bg-elev: #131320;
    --ip-bg-card: #16162a;
    --ip-bg-soft: #1c1c34;
    --ip-line: #25253f;
    --ip-line-strong: #3a3a5e;
    --ip-text: #f4f4ff;
    --ip-text-mute: #a0a0c0;
    --ip-text-dim: #6b6b8c;
    --ip-cyan: #22d3ee;
    --ip-lime: #a3e635;
    --ip-coral: #ff6b6b;
    --ip-amber: #fbbf24;
    --ip-violet: #a78bfa;
    --ip-success: #34d399;

    /* Type scale */
    --ip-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --ip-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;

    /* Layout */
    --ip-radius: 14px;
    --ip-radius-sm: 8px;
    --ip-radius-lg: 22px;
    --ip-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -20px rgba(0,0,0,.6);
    --ip-shadow-glow: 0 0 0 1px rgba(34,211,238,.18), 0 30px 80px -20px rgba(34,211,238,.18);

    --ip-max: 1200px;
    --ip-gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.ip-body {
    background: var(--ip-bg);
    color: var(--ip-text);
    font-family: var(--ip-font);
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ─── Nav ───────────────────────────────────────────────── */
.ip-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 14px var(--ip-gutter);
    background: rgba(11,11,16,.8);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--ip-line);
}
.ip-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--ip-text);
}
.ip-nav__dot { color: var(--ip-cyan); }
.ip-nav__links {
    display: flex;
    gap: 28px;
    margin-left: 16px;
}
.ip-nav__link {
    color: var(--ip-text-mute);
    font-size: 14.5px;
    font-weight: 500;
    transition: color .15s ease;
}
.ip-nav__link:hover { color: var(--ip-text); }
.ip-nav__cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.ip-nav__signin {
    color: var(--ip-text-mute);
    font-size: 14.5px;
    font-weight: 500;
}
.ip-nav__signin:hover { color: var(--ip-text); }
@media (max-width: 760px) {
    .ip-nav__links { display: none; }
}

/* ─── Buttons ───────────────────────────────────────────── */
.ip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: var(--ip-radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.ip-btn:active { transform: translateY(1px); }
.ip-btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 7px; }
.ip-btn--lg { padding: 18px 28px; font-size: 16.5px; }
.ip-btn--primary {
    background: linear-gradient(180deg, var(--ip-cyan), #06b6d4);
    color: #051820;
    box-shadow: 0 8px 30px -8px rgba(34,211,238,.55), 0 1px 0 rgba(255,255,255,.4) inset;
}
.ip-btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(34,211,238,.7), 0 1px 0 rgba(255,255,255,.5) inset; }
.ip-btn--ghost {
    background: transparent;
    color: var(--ip-text);
    border-color: var(--ip-line-strong);
}
.ip-btn--ghost:hover { background: var(--ip-bg-elev); }
.ip-btn--lime {
    background: var(--ip-lime);
    color: #15170a;
    box-shadow: 0 8px 30px -8px rgba(163,230,53,.55);
}

/* ─── Flash messages ────────────────────────────────────── */
.ip-flash {
    max-width: var(--ip-max);
    margin: 16px auto 0;
    padding: 12px 18px;
    border-radius: var(--ip-radius-sm);
    font-size: 14.5px;
    font-weight: 500;
}
.ip-flash--error { background: rgba(255,107,107,.08); color: var(--ip-coral); border: 1px solid rgba(255,107,107,.25); }
.ip-flash--success { background: rgba(52,211,153,.08); color: var(--ip-success); border: 1px solid rgba(52,211,153,.25); }

/* ─── Footer ────────────────────────────────────────────── */
.ip-footer {
    margin-top: 120px;
    padding: 64px var(--ip-gutter) 32px;
    background: linear-gradient(180deg, transparent, rgba(34,211,238,.03));
    border-top: 1px solid var(--ip-line);
}
.ip-footer__grid {
    max-width: var(--ip-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
@media (max-width: 760px) { .ip-footer__grid { grid-template-columns: 1fr 1fr; } }
.ip-footer__brand { font-weight: 700; font-size: 18px; }
.ip-footer__brand span { color: var(--ip-cyan); }
.ip-footer__tag { color: var(--ip-text-mute); font-size: 14.5px; max-width: 360px; margin-top: 8px; }
.ip-footer__col h4 {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ip-text-dim);
    margin: 0 0 14px;
}
.ip-footer__col a {
    display: block;
    color: var(--ip-text-mute);
    font-size: 14.5px;
    padding: 4px 0;
    transition: color .15s;
}
.ip-footer__col a:hover { color: var(--ip-text); }
.ip-footer__bottom {
    max-width: var(--ip-max);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--ip-line);
    color: var(--ip-text-dim);
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   Part 2/2 — section layouts (hero, mocks, how-it-works,
   pricing, FAQ, agency, error)
   ═══════════════════════════════════════════════════════════ */

.ip-section { padding: 96px var(--ip-gutter); }
.ip-section--tight { padding: 64px var(--ip-gutter); }
.ip-container { max-width: var(--ip-max); margin: 0 auto; }
.ip-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ip-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ip-cyan);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34,211,238,.08);
    border: 1px solid rgba(34,211,238,.2);
}
.ip-h1 {
    font-size: clamp(40px, 6.4vw, 84px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 24px 0 20px;
}
.ip-h1 em { font-style: normal; color: var(--ip-cyan); }
.ip-h1 mark { background: linear-gradient(180deg, transparent 60%, rgba(163,230,53,.35) 60%); color: inherit; padding: 0 4px; }
.ip-h2 {
    font-size: clamp(30px, 3.8vw, 50px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 16px;
}
.ip-h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}
.ip-lede {
    font-size: clamp(17px, 1.8vw, 21px);
    color: var(--ip-text-mute);
    max-width: 640px;
    line-height: 1.55;
}

/* ─── Hero ──────────────────────────────────────────────── */
.ip-hero {
    position: relative;
    padding: 96px var(--ip-gutter) 60px;
    overflow: hidden;
}
.ip-hero::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto;
    height: 800px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(34,211,238,.18), transparent 50%),
        radial-gradient(ellipse at 80% 10%, rgba(163,230,53,.10), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.ip-hero__inner { position: relative; z-index: 1; max-width: var(--ip-max); margin: 0 auto; text-align: center; }
.ip-hero__cta { display: inline-flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.ip-hero__proof {
    display: inline-flex;
    gap: 24px;
    margin-top: 28px;
    color: var(--ip-text-dim);
    font-size: 13.5px;
    flex-wrap: wrap;
    justify-content: center;
}
.ip-hero__proof b { color: var(--ip-text); font-weight: 600; }

/* Demo prompt card under hero */
.ip-demo {
    margin: 60px auto 0;
    max-width: 980px;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius-lg);
    box-shadow: var(--ip-shadow);
    overflow: hidden;
}
.ip-demo__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ip-line);
    background: var(--ip-bg-soft);
}
.ip-demo__dot { width: 11px; height: 11px; border-radius: 999px; background: var(--ip-line-strong); }
.ip-demo__dot:nth-child(1) { background: #ff6b6b; }
.ip-demo__dot:nth-child(2) { background: #fbbf24; }
.ip-demo__dot:nth-child(3) { background: #34d399; }
.ip-demo__url { margin-left: 12px; font-family: var(--ip-mono); font-size: 13px; color: var(--ip-text-dim); }
.ip-demo__body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 880px) { .ip-demo__body { grid-template-columns: 1fr; } }
.ip-demo__prompt { padding: 36px; border-right: 1px solid var(--ip-line); }
@media (max-width: 880px) { .ip-demo__prompt { border-right: none; border-bottom: 1px solid var(--ip-line); } }
.ip-demo__label { font-family: var(--ip-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ip-text-dim); margin-bottom: 12px; }
.ip-demo__typing {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ip-text);
    min-height: 80px;
}
.ip-demo__caret {
    display: inline-block;
    width: 9px;
    height: 22px;
    background: var(--ip-cyan);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: ip-caret 1s steps(1) infinite;
}
@keyframes ip-caret { 50% { opacity: 0; } }
.ip-demo__output { padding: 0; background: #fff; min-height: 280px; position: relative; }
.ip-demo__timer {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--ip-mono);
    font-size: 12px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}

/* ─── Section header ────────────────────────────────────── */
.ip-section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

/* ─── How it works steps ───────────────────────────────── */
.ip-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .ip-steps { grid-template-columns: 1fr; } }
.ip-step {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 28px;
    position: relative;
    transition: transform .2s ease, border-color .2s ease;
}
.ip-step:hover { transform: translateY(-2px); border-color: var(--ip-line-strong); }
.ip-step__num { font-family: var(--ip-mono); color: var(--ip-cyan); font-size: 13px; font-weight: 600; }
.ip-step__title { margin: 14px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ip-step__body { color: var(--ip-text-mute); font-size: 15px; line-height: 1.55; }
.ip-step__mock {
    margin-top: 22px;
    background: var(--ip-bg-card);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius-sm);
    padding: 16px;
    min-height: 140px;
}

/* ─── Comparison strip ──────────────────────────────────── */
.ip-versus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}
@media (max-width: 720px) { .ip-versus { grid-template-columns: 1fr; } }
.ip-versus__card { padding: 28px; border-radius: var(--ip-radius); border: 1px solid var(--ip-line); }
.ip-versus__card--bad { background: var(--ip-bg-elev); }
.ip-versus__card--good { background: linear-gradient(180deg, rgba(34,211,238,.08), rgba(163,230,53,.04)); border-color: rgba(34,211,238,.3); }
.ip-versus__head { display: flex; align-items: center; gap: 8px; font-family: var(--ip-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ip-versus__card--bad .ip-versus__head { color: var(--ip-text-dim); }
.ip-versus__card--good .ip-versus__head { color: var(--ip-cyan); }
.ip-versus__list { list-style: none; padding: 0; margin: 18px 0 0; }
.ip-versus__list li { padding: 9px 0; color: var(--ip-text-mute); border-top: 1px solid var(--ip-line); display: flex; gap: 10px; }
.ip-versus__list li::before { content: '·'; color: var(--ip-text-dim); }
.ip-versus__card--good .ip-versus__list li::before { content: '✓'; color: var(--ip-lime); font-weight: 700; }

/* ─── Pricing ───────────────────────────────────────────── */
.ip-pricing__toggle {
    display: inline-flex;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 999px;
    padding: 4px;
    margin: 0 auto 40px;
}
.ip-pricing__toggle button {
    background: transparent;
    border: 0;
    color: var(--ip-text-mute);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.ip-pricing__toggle button.is-active {
    background: var(--ip-bg-soft);
    color: var(--ip-text);
}
.ip-pricing__toggle button[data-interval="lifetime"] { color: var(--ip-lime); }
.ip-pricing__toggle button[data-interval="lifetime"].is-active { background: rgba(163,230,53,.12); }
.ip-pricing__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1000px) { .ip-pricing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ip-pricing__grid { grid-template-columns: 1fr; } }
.ip-plan {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ip-plan:hover { transform: translateY(-3px); border-color: var(--ip-line-strong); }
.ip-plan--featured {
    border-color: var(--ip-cyan);
    box-shadow: var(--ip-shadow-glow);
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(34,211,238,.06), var(--ip-bg-elev) 60%);
}
.ip-plan__badge {
    align-self: flex-start;
    font-family: var(--ip-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ip-cyan);
    background: rgba(34,211,238,.1);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.ip-plan__name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ip-plan__price { margin: 14px 0 4px; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.ip-plan__price small { font-size: 14px; font-weight: 500; color: var(--ip-text-dim); margin-left: 4px; }
.ip-plan__credits { font-size: 14px; color: var(--ip-text-mute); margin-bottom: 18px; }
.ip-plan__feat { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.ip-plan__feat li {
    padding: 7px 0;
    font-size: 14px;
    color: var(--ip-text-mute);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.ip-plan__feat li::before { content: '✓'; color: var(--ip-lime); font-weight: 700; flex-shrink: 0; }
.ip-plan__cta { width: 100%; }
.ip-pricing__note {
    text-align: center;
    margin-top: 32px;
    color: var(--ip-text-dim);
    font-size: 13.5px;
}

/* ─── Top-up packs ──────────────────────────────────────── */
.ip-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 720px) { .ip-packs { grid-template-columns: repeat(2, 1fr); } }
.ip-pack {
    padding: 18px;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius-sm);
    text-align: center;
}
.ip-pack__size { font-size: 24px; font-weight: 700; }
.ip-pack__price { color: var(--ip-cyan); font-family: var(--ip-mono); font-size: 14px; }
.ip-pack__per { color: var(--ip-text-dim); font-size: 12px; margin-top: 2px; }

/* ─── FAQ ───────────────────────────────────────────────── */
.ip-faq { max-width: 820px; margin: 0 auto; }
.ip-faq__item {
    border-top: 1px solid var(--ip-line);
    padding: 24px 0;
}
.ip-faq__item:last-child { border-bottom: 1px solid var(--ip-line); }
.ip-faq__q {
    font-size: 18.5px;
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 0 0 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.ip-faq__q::after {
    content: '+';
    color: var(--ip-cyan);
    font-size: 24px;
    line-height: 1;
    transition: transform .2s;
}
.ip-faq__item.is-open .ip-faq__q::after { transform: rotate(45deg); }
.ip-faq__a {
    color: var(--ip-text-mute);
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 720px;
    display: none;
}
.ip-faq__item.is-open .ip-faq__a { display: block; }
.ip-faq__a p { margin: 0 0 12px; }
.ip-faq__a p:last-child { margin: 0; }

/* ─── Agency upsell strip ──────────────────────────────── */
.ip-agency {
    background: linear-gradient(135deg, var(--ip-bg-elev), var(--ip-bg-soft));
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius-lg);
    padding: 56px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.ip-agency::before {
    content: 'AGENCY';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--ip-mono);
    font-size: 120px;
    font-weight: 800;
    color: var(--ip-line);
    letter-spacing: -.04em;
    line-height: 1;
    pointer-events: none;
    opacity: .4;
}
@media (max-width: 880px) {
    .ip-agency { grid-template-columns: 1fr; padding: 32px; }
    .ip-agency::before { display: none; }
}
.ip-agency__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 12px 0 14px; }
.ip-agency__body { color: var(--ip-text-mute); font-size: 15.5px; line-height: 1.6; max-width: 540px; }

/* ─── Final CTA ─────────────────────────────────────────── */
.ip-cta-final {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(34,211,238,.08), transparent 70%);
    padding: 96px var(--ip-gutter);
}

/* ─── Error page ────────────────────────────────────────── */
.ip-error { padding: 120px var(--ip-gutter); text-align: center; }
.ip-error__inner { max-width: 480px; margin: 0 auto; }
.ip-error__code { font-family: var(--ip-mono); font-size: 80px; font-weight: 800; color: var(--ip-cyan); margin: 0; letter-spacing: -.04em; }
.ip-error__title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 12px; }
.ip-error__lede { color: var(--ip-text-mute); margin: 0 0 28px; }

/* ═══════════════════════════════════════════════════════════
   Auth shell (signup / login / forgot / reset)
   ═══════════════════════════════════════════════════════════ */
.ip-auth-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ip-auth-shell__nav {
    padding: 18px var(--ip-gutter);
    border-bottom: 1px solid var(--ip-line);
    background: rgba(11,11,16,.85);
}
.ip-auth-shell__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px var(--ip-gutter);
}
.ip-auth { width: 100%; max-width: 460px; }
.ip-auth__card {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius-lg);
    padding: 40px;
    box-shadow: var(--ip-shadow);
}
@media (max-width: 520px) { .ip-auth__card { padding: 28px 22px; } }
.ip-auth__title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 8px;
}
.ip-auth__lede {
    color: var(--ip-text-mute);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 28px;
}
.ip-auth__alt {
    margin-top: 24px;
    text-align: center;
    color: var(--ip-text-mute);
    font-size: 14px;
}
.ip-auth__alt a { color: var(--ip-cyan); font-weight: 600; }
.ip-auth__fineprint {
    color: var(--ip-text-dim);
    font-size: 12.5px;
    margin: 16px 0 0;
    text-align: center;
    line-height: 1.5;
}
.ip-auth__fineprint a { color: var(--ip-text-mute); text-decoration: underline; text-decoration-color: var(--ip-line-strong); }

/* ─── Forms ─────────────────────────────────────────────── */
.ip-form { display: flex; flex-direction: column; gap: 16px; }
.ip-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .ip-form__row { grid-template-columns: 1fr; } }
.ip-form__field { display: flex; flex-direction: column; gap: 6px; }
.ip-form__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ip-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ip-form__hint { color: var(--ip-text-dim); font-weight: 400; font-size: 12px; }
.ip-form__inline-link { color: var(--ip-cyan); font-size: 12.5px; font-weight: 500; }
.ip-form__input,
.ip-form__select,
.ip-form__textarea {
    background: var(--ip-bg);
    border: 1px solid var(--ip-line-strong);
    border-radius: var(--ip-radius-sm);
    padding: 11px 14px;
    color: var(--ip-text);
    font: inherit;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.ip-form__input:focus,
.ip-form__select:focus,
.ip-form__textarea:focus {
    outline: none;
    border-color: var(--ip-cyan);
    box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.ip-form__textarea { min-height: 100px; resize: vertical; }

/* ═══════════════════════════════════════════════════════════
   Back-office shell (sidebar, topbar, page chrome)
   Power-user density. Linear/Attio-ish.
   ═══════════════════════════════════════════════════════════ */
.ip-app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 880px) { .ip-app { grid-template-columns: 1fr; } }

.ip-sidebar {
    background: var(--ip-bg-elev);
    border-right: 1px solid var(--ip-line);
    display: flex;
    flex-direction: column;
    padding: 18px 12px 12px;
    position: sticky;
    top: 0;
    height: 100vh;
}
@media (max-width: 880px) { .ip-sidebar { position: relative; height: auto; } }
.ip-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px 22px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.01em;
    color: var(--ip-text);
}
.ip-sidebar__nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ip-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--ip-text-mute);
    font-size: 14px;
    font-weight: 500;
    transition: background .12s, color .12s;
}
.ip-sidebar__link:hover { background: var(--ip-bg-soft); color: var(--ip-text); }
.ip-sidebar__link.is-active {
    background: rgba(34,211,238,.1);
    color: var(--ip-text);
}
.ip-sidebar__link.is-active svg { color: var(--ip-cyan); }
.ip-sidebar__foot { border-top: 1px solid var(--ip-line); padding-top: 10px; margin-top: 10px; }
.ip-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--ip-text);
    transition: background .12s;
}
.ip-sidebar__user:hover { background: var(--ip-bg-soft); }
.ip-sidebar__avatar {
    width: 30px; height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--ip-cyan), var(--ip-lime));
    color: #051820;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.ip-sidebar__user-meta { min-width: 0; }
.ip-sidebar__user-name {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ip-sidebar__user-role { font-size: 11px; color: var(--ip-text-dim); }
.ip-sidebar__logout { margin-top: 6px; padding: 0 10px; }
.ip-sidebar__logout-btn {
    background: transparent;
    border: 0;
    color: var(--ip-text-dim);
    font-size: 12px;
    padding: 6px 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}
.ip-sidebar__logout-btn:hover { color: var(--ip-coral); }

.ip-main { display: flex; flex-direction: column; min-width: 0; }
.ip-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--ip-line);
    background: rgba(11,11,16,.85);
    backdrop-filter: saturate(140%) blur(10px);
    position: sticky; top: 0; z-index: 10;
}
.ip-topbar__title { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
.ip-topbar__actions { display: flex; align-items: center; gap: 12px; }

.ip-credits-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34,211,238,.08);
    border: 1px solid rgba(34,211,238,.2);
    color: var(--ip-cyan);
    font-family: var(--ip-mono);
    font-size: 12.5px;
    font-weight: 600;
}
.ip-credits-chip__label { color: var(--ip-text-dim); font-weight: 500; }

.ip-page { padding: 28px 24px 80px; max-width: 1280px; width: 100%; }

/* ─── App hero ──────────────────────────────────────────── */
.ip-app-hero { margin-bottom: 28px; }
.ip-app-hero__title {
    font-size: 28px; font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 6px;
}
.ip-app-hero__lede { color: var(--ip-text-mute); font-size: 15px; margin: 0; }

/* ─── Stat cards ────────────────────────────────────────── */
.ip-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 1000px) { .ip-stats { grid-template-columns: repeat(2, 1fr); } }
.ip-stat {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 18px;
    transition: border-color .15s;
}
.ip-stat:hover { border-color: var(--ip-line-strong); }
.ip-stat__label {
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ip-text-dim);
    font-weight: 600;
}
.ip-stat__value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 6px 0 4px;
    line-height: 1.1;
}
.ip-stat__link { color: var(--ip-cyan); font-size: 13px; font-weight: 500; }
.ip-stat--cta { background: linear-gradient(135deg, rgba(163,230,53,.06), rgba(34,211,238,.04)); border-color: rgba(163,230,53,.2); }

/* ─── Card surface ──────────────────────────────────────── */
.ip-grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .ip-grid-2 { grid-template-columns: 1fr; } }
.ip-card {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    overflow: hidden;
}
.ip-card__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ip-line);
}
.ip-card__title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.ip-card__link { font-size: 13px; color: var(--ip-cyan); font-weight: 500; }

/* ─── List rows ─────────────────────────────────────────── */
.ip-list { list-style: none; margin: 0; padding: 0; }
.ip-list__row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ip-line);
}
.ip-list__row:last-child { border-bottom: 0; }
.ip-list__main { min-width: 0; flex: 1; }
.ip-list__title { font-size: 14px; font-weight: 600; color: var(--ip-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-list__sub { font-size: 12.5px; color: var(--ip-text-dim); display: block; }
.ip-list__sub:hover { color: var(--ip-cyan); }

/* ─── Status pills ──────────────────────────────────────── */
.ip-status {
    font-family: var(--ip-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}
.ip-status--analyzing,
.ip-status--customizing,
.ip-status--generating { background: rgba(251,191,36,.1); color: var(--ip-amber); }
.ip-status--completed { background: rgba(52,211,153,.1); color: var(--ip-success); }
.ip-status--failed { background: rgba(255,107,107,.1); color: var(--ip-coral); }

/* ─── Credit ledger delta ───────────────────────────────── */
.ip-tx-delta { font-family: var(--ip-mono); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.ip-tx-delta.is-pos { color: var(--ip-success); }
.ip-tx-delta.is-neg { color: var(--ip-coral); }

/* ─── Empty state ───────────────────────────────────────── */
.ip-empty { padding: 36px 24px; text-align: center; }
.ip-empty__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--ip-bg-soft);
    border: 1px solid var(--ip-line);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ip-cyan);
    margin-bottom: 14px;
}
.ip-empty__title { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.ip-empty__body { color: var(--ip-text-mute); font-size: 14px; margin: 0 0 18px; }

/* ═══════════════════════════════════════════════════════════
   Onboarding wizard
   ═══════════════════════════════════════════════════════════ */
.ip-onb-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ip-onb-shell .ip-auth-shell__nav {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ip-onb-skip { color: var(--ip-text-dim); font-size: 13px; }
.ip-onb-skip:hover { color: var(--ip-text-mute); }

.ip-onb-progress {
    max-width: 580px;
    margin: 0 auto;
    padding: 24px var(--ip-gutter) 0;
    width: 100%;
}
.ip-onb-progress__bar {
    height: 4px;
    background: var(--ip-bg-soft);
    border-radius: 999px;
    overflow: hidden;
}
.ip-onb-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ip-cyan), var(--ip-lime));
    transition: width .25s ease;
}
.ip-onb-progress__label {
    font-family: var(--ip-mono);
    font-size: 11px;
    color: var(--ip-text-dim);
    margin-top: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ip-onb { width: 100%; max-width: 580px; }
.ip-onb__card {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius-lg);
    padding: 40px;
    box-shadow: var(--ip-shadow);
}
.ip-onb__card--wide { max-width: 760px; }
@media (max-width: 580px) { .ip-onb__card { padding: 28px 22px; } }

.ip-onb__eyebrow {
    font-family: var(--ip-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ip-cyan);
    margin-bottom: 14px;
}
.ip-onb__title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0 0 14px;
}
.ip-onb__title em { font-style: normal; color: var(--ip-cyan); }
.ip-onb__lede { color: var(--ip-text-mute); font-size: 15.5px; line-height: 1.55; margin: 0 0 24px; }

.ip-onb__bullets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.ip-onb__bullet {
    display: flex; align-items: center; gap: 10px;
    color: var(--ip-text); font-size: 14.5px;
    padding: 10px 14px;
    background: var(--ip-bg-soft);
    border: 1px solid var(--ip-line);
    border-radius: 10px;
}
.ip-onb__check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 999px;
    background: var(--ip-lime); color: #15170a;
    font-weight: 800; font-size: 12px;
    flex-shrink: 0;
}

.ip-onb__success-icon {
    width: 64px; height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ip-cyan), var(--ip-lime));
    color: #051820;
    font-size: 32px;
    font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}

/* ─── Choice grid (radio cards) ─────────────────────────── */
.ip-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 580px) { .ip-choices { grid-template-columns: 1fr; } }
.ip-choice {
    position: relative;
    cursor: pointer;
    padding: 14px 16px;
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    background: var(--ip-bg-soft);
    transition: border-color .15s, background .15s;
}
.ip-choice:hover { border-color: var(--ip-line-strong); }
.ip-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ip-choice:has(input:checked) {
    border-color: var(--ip-cyan);
    background: rgba(34,211,238,.06);
    box-shadow: 0 0 0 1px var(--ip-cyan);
}
.ip-choice__body { display: flex; flex-direction: column; gap: 2px; }
.ip-choice__title { font-size: 14.5px; font-weight: 600; color: var(--ip-text); }
.ip-choice__desc { font-size: 12.5px; color: var(--ip-text-dim); line-height: 1.4; }

/* ─── BYOK side-by-side ─────────────────────────────────── */
.ip-byok-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .ip-byok-pick { grid-template-columns: 1fr; } }
.ip-byok-card {
    cursor: pointer;
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    background: var(--ip-bg-soft);
    transition: border-color .15s, transform .12s;
    position: relative;
}
.ip-byok-card:hover { border-color: var(--ip-line-strong); transform: translateY(-1px); }
.ip-byok-card input { position: absolute; opacity: 0; pointer-events: none; }
.ip-byok-card:has(input:checked) {
    border-color: var(--ip-cyan);
    background: linear-gradient(180deg, rgba(34,211,238,.08), var(--ip-bg-soft) 60%);
    box-shadow: 0 0 0 1px var(--ip-cyan);
}
.ip-byok-card__inner { padding: 22px; }
.ip-byok-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ip-byok-card__name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ip-byok-card__tag {
    font-family: var(--ip-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
}
.ip-byok-card__body { color: var(--ip-text-mute); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.ip-byok-card__body strong { color: var(--ip-text); font-weight: 700; }
.ip-byok-card__feat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ip-byok-card__feat li {
    font-size: 13px; color: var(--ip-text-mute);
    padding-left: 16px; position: relative;
}
.ip-byok-card__feat li::before {
    content: '·'; position: absolute; left: 4px; color: var(--ip-cyan); font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   /app/create — single-screen page builder
   ═══════════════════════════════════════════════════════════ */
.ip-create { max-width: 760px; margin: 24px auto 0; padding: 0 8px; }
.ip-create__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 8px;
    line-height: 1.05;
}
.ip-create__lede {
    color: var(--ip-text-mute);
    font-size: 15.5px;
    line-height: 1.55;
    margin: 0 0 24px;
}
.ip-create__form { display: flex; flex-direction: column; gap: 18px; }
.ip-create__box {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line-strong);
    border-radius: var(--ip-radius);
    transition: border-color .15s, box-shadow .15s;
    box-shadow: var(--ip-shadow);
}
.ip-create__box:focus-within {
    border-color: var(--ip-cyan);
    box-shadow: 0 0 0 3px rgba(34,211,238,.12), 0 20px 60px -20px rgba(0,0,0,.6);
}
.ip-create__input {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--ip-text);
    font-family: var(--ip-font);
    font-size: 18px;
    line-height: 1.5;
    padding: 22px 24px 8px;
    resize: vertical;
    min-height: 100px;
    outline: none;
}
.ip-create__input::placeholder { color: var(--ip-text-dim); font-style: normal; }
.ip-create__chip-row { padding: 0 24px; }
.ip-create__detect-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ip-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ip-cyan);
    background: rgba(34,211,238,.1);
    border: 1px solid rgba(34,211,238,.25);
    padding: 4px 10px;
    border-radius: 999px;
}
.ip-create__bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 16px;
}
.ip-create__bottom-spacer { flex: 1; }
.ip-create__hint {
    font-family: var(--ip-mono);
    font-size: 11.5px;
    color: var(--ip-text-dim);
    display: flex;
    gap: 6px;
}
.ip-create__hint strong {
    color: var(--ip-text-mute);
    background: var(--ip-bg-soft);
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 600;
}
.ip-create__mic {
    background: transparent;
    color: var(--ip-text-mute);
    border: 1px solid var(--ip-line-strong);
    border-radius: 8px;
    padding: 9px 11px;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}
.ip-create__mic:hover { color: var(--ip-text); border-color: var(--ip-text-mute); }
.ip-create__mic.is-listening {
    color: var(--ip-coral);
    border-color: var(--ip-coral);
    background: rgba(255,107,107,.06);
    animation: ip-pulse 1.4s ease-in-out infinite;
}
@keyframes ip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,107,107,0); }
}
.ip-create__submit { gap: 10px; padding: 11px 18px; }
.ip-create__kbd {
    background: rgba(0,0,0,.2);
    color: rgba(0,0,0,.6);
    font-family: var(--ip-mono);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ─── Chip row ──────────────────────────────────────────── */
.ip-create__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ip-create__chips-label {
    font-size: 13px;
    color: var(--ip-text-dim);
    margin-right: 4px;
}
.ip-create__chip {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    color: var(--ip-text-mute);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
}
.ip-create__chip:hover {
    color: var(--ip-text);
    border-color: var(--ip-cyan);
    background: rgba(34,211,238,.06);
}
.ip-create__reroll {
    color: var(--ip-text-dim);
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    margin-left: auto;
}
.ip-create__reroll:hover { color: var(--ip-cyan); }

/* ─── Meta line ─────────────────────────────────────────── */
.ip-create__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--ip-text-dim);
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 8px;
}
.ip-create__meta-item strong { color: var(--ip-text); font-weight: 600; }
.ip-create__meta-warn {
    color: var(--ip-amber);
    background: rgba(251,191,36,.06);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(251,191,36,.2);
}
.ip-create__meta-warn a { color: var(--ip-amber); text-decoration: underline; }

/* ─── Progress card (during generation) ─────────────────── */
.ip-create__progress {
    max-width: 760px;
    margin: 24px auto 0;
}
.ip-create__progress-card {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--ip-shadow);
}
.ip-create__progress-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(34,211,238,.08);
    color: var(--ip-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: ip-spin 2s linear infinite;
}
@keyframes ip-spin {
    to { transform: rotate(360deg); }
}
.ip-create__progress-meta { flex: 1; min-width: 0; }
.ip-create__progress-stage {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ip-text);
}
.ip-create__progress-sub {
    font-size: 13px;
    color: var(--ip-text-dim);
    margin-top: 4px;
}
.ip-create__progress-timer {
    font-family: var(--ip-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--ip-cyan);
    flex-shrink: 0;
}

/* ─── /app/pages list + detail head ─────────────────────── */
.ip-pages-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   Dashboard — real stats + sparklines (Phase 7 redesign)
   ═══════════════════════════════════════════════════════════ */
.ip-dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ip-line);
    flex-wrap: wrap;
}
.ip-dash-hero__title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0;
}
.ip-dash-hero__lede {
    color: var(--ip-text-mute);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 8px 0 0;
    max-width: 580px;
}
.ip-dash-hero__cta { white-space: nowrap; }
.ip-dash-hero__cta kbd {
    margin-left: 6px;
}

/* ─── 4-up metric strip with sparklines ─────────────────── */
.ip-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .ip-metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ip-metric-grid { grid-template-columns: 1fr; } }

.ip-metric {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    padding: 18px 18px 12px;
    transition: border-color .15s ease, transform .15s ease;
    overflow: hidden;
    position: relative;
}
.ip-metric:hover { border-color: var(--ip-line-strong); transform: translateY(-1px); }
.ip-metric--cyan { background: linear-gradient(180deg, rgba(34,211,238,.04), var(--ip-bg-elev) 70%); border-color: rgba(34,211,238,.18); }
.ip-metric--lime { background: linear-gradient(180deg, rgba(163,230,53,.04), var(--ip-bg-elev) 70%); border-color: rgba(163,230,53,.18); }

.ip-metric > header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.ip-metric__label {
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ip-text-dim);
    font-weight: 600;
}
.ip-metric__delta {
    font-family: var(--ip-mono);
    font-size: 11.5px;
    color: var(--ip-text-dim);
    white-space: nowrap;
}
.ip-metric__value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 4px 0 14px;
    color: var(--ip-text);
}
.ip-metric__value small { font-size: 14px; font-weight: 500; color: var(--ip-text-dim); margin-left: 4px; }
.ip-metric__spark {
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: -12px;
    padding: 0;
}

/* ─── Top pages ─────────────────────────────────────────── */
.ip-toplist { list-style: none; margin: 0; padding: 0; }
.ip-toplist__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ip-line);
    transition: background .12s;
}
.ip-toplist__row:last-child { border-bottom: 0; }
.ip-toplist__row:hover { background: rgba(255,255,255,.02); }
.ip-toplist__rank {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--ip-bg-soft);
    border: 1px solid var(--ip-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ip-mono);
    font-size: 12px;
    color: var(--ip-text-dim);
    font-weight: 600;
}
.ip-toplist__main {
    flex: 1;
    min-width: 0;
}
.ip-toplist__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ip-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ip-toplist__title:hover { color: var(--ip-cyan); }
.ip-toplist__url {
    font-family: var(--ip-mono);
    font-size: 11.5px;
    color: var(--ip-text-dim);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ip-toplist__url:hover { color: var(--ip-cyan); }
.ip-toplist__metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.ip-toplist__views,
.ip-toplist__subs {
    font-family: var(--ip-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ip-text);
}
.ip-toplist__views small,
.ip-toplist__subs small {
    font-family: var(--ip-font);
    font-weight: 500;
    color: var(--ip-text-dim);
    margin-left: 3px;
    font-size: 11px;
}
.ip-toplist__subs { color: var(--ip-text-mute); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   Canvas layout — /app/create gets its own clean window
   ═══════════════════════════════════════════════════════════ */
.ip-canvas-body {
    background: radial-gradient(ellipse at top, rgba(34,211,238,.04), transparent 60%),
                radial-gradient(ellipse at bottom, rgba(163,230,53,.025), transparent 60%),
                var(--ip-bg);
    min-height: 100vh;
}
.ip-canvas-bar {
    position: sticky; top: 0; z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--ip-line);
    background: rgba(11,11,16,.75);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.ip-canvas-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ip-text-mute);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1px solid var(--ip-line);
    background: var(--ip-bg-elev);
    transition: color .15s, background .15s, border-color .15s;
}
.ip-canvas-back:hover {
    color: var(--ip-text);
    border-color: var(--ip-line-strong);
    background: var(--ip-bg-soft);
}
.ip-canvas-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 80px 32px 60px;
}
@media (max-width: 640px) { .ip-canvas-main { padding: 56px 20px 40px; } }

.ip-canvas {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.ip-canvas__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 0;
    text-align: center;
}

.ip-create__box--canvas {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line-strong);
    border-radius: 18px;
    box-shadow: 0 24px 80px -28px rgba(0,0,0,.7), 0 0 0 1px rgba(34,211,238,0) inset;
    transition: border-color .15s, box-shadow .2s ease;
}
.ip-create__box--canvas:focus-within {
    border-color: var(--ip-cyan);
    box-shadow: 0 0 0 3px rgba(34,211,238,.10), 0 24px 80px -20px rgba(34,211,238,.18);
}
.ip-create__input--canvas {
    padding: 28px 28px 4px;
    font-size: 19px;
    line-height: 1.55;
    min-height: 120px;
}

.ip-create__chips--canvas {
    justify-content: center;
}
.ip-create__meta--canvas {
    justify-content: center;
    text-align: center;
    color: var(--ip-text-dim);
    font-size: 12.5px;
}

/* ─── Create canvas attachments row (brain + media pickers) ─ */
.ip-create__attachments {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 22px;
    border-top: 1px solid var(--ip-line);
    flex-wrap: wrap;
}
.ip-create__attach {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    background: var(--ip-bg-soft);
    border: 1px solid var(--ip-line);
    color: var(--ip-text-mute);
    font-size: 12.5px;
    cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
}
.ip-create__attach:hover {
    color: var(--ip-text);
    border-color: var(--ip-line-strong);
    background: var(--ip-bg-elev);
}
.ip-create__attach--ghost { background: transparent; }
.ip-create__attach-label {
    font-family: var(--ip-mono);
    font-size: 11px;
    color: var(--ip-text-dim);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ip-create__attach select {
    background: transparent;
    border: 0;
    color: var(--ip-text);
    font: inherit;
    font-size: 12.5px;
    outline: none;
    padding: 0;
    max-width: 220px;
}
.ip-create__attach select option { background: var(--ip-bg-elev); color: var(--ip-text); }

/* ─── Media Center grid + folder strip ───────────────────── */
.ip-media-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.ip-media-folder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    color: var(--ip-text-mute);
    font-size: 13.5px;
    transition: color .12s, border-color .12s, background .12s;
}
.ip-media-folder:hover {
    color: var(--ip-text);
    border-color: var(--ip-cyan);
    background: rgba(34,211,238,.04);
}
.ip-media-folder svg { color: var(--ip-amber); flex-shrink: 0; }

.ip-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.ip-media-tile {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .12s, transform .12s;
}
.ip-media-tile:hover {
    border-color: var(--ip-line-strong);
    transform: translateY(-1px);
}
.ip-media-tile__thumb {
    aspect-ratio: 4 / 3;
    background: var(--ip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ip-media-tile__thumb img,
.ip-media-tile__thumb video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ip-media-tile__audio {
    color: var(--ip-text-dim);
}
.ip-media-tile__kind {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-family: var(--ip-mono);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ip-media-tile__meta { padding: 10px 12px 12px; }
.ip-media-tile__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ip-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ip-media-tile__sub {
    font-family: var(--ip-mono);
    font-size: 11px;
    color: var(--ip-text-dim);
    margin-top: 2px;
}
.ip-media-tile__actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}
.ip-media-tile__copy {
    background: transparent;
    border: 0;
    color: var(--ip-cyan);
    font-size: 11.5px;
    cursor: pointer;
    padding: 0;
}
.ip-media-tile__copy:hover { color: var(--ip-text); }

/* ─── Funnel step list ─────────────────────────────────── */
.ip-funnel-steps {
    list-style: none; padding: 0; margin: 0;
}
.ip-funnel-step {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 22px;
    border-bottom: 1px solid var(--ip-line);
}
.ip-funnel-step:last-child { border-bottom: 0; }
.ip-funnel-step__pos {
    flex: 0 0 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ip-cyan), var(--ip-lime));
    color: #0b0b10;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--ip-mono); font-weight: 700; font-size: 14px;
}
.ip-funnel-step__main { flex: 1; min-width: 0; }
.ip-funnel-step__head {
    display: flex; gap: 10px; align-items: baseline;
}
.ip-funnel-step__kind {
    font-family: var(--ip-mono);
    font-size: 10.5px;
    color: var(--ip-cyan);
    background: rgba(34,211,238,.08);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ip-funnel-step__label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ip-text);
}
.ip-funnel-step__page {
    display: block; margin-top: 4px;
    color: var(--ip-cyan); font-size: 13px;
}
.ip-funnel-step__prompt {
    color: var(--ip-text-mute);
    font-size: 13.5px; line-height: 1.5;
    margin: 4px 0 0;
}

/* ─── Twin photo grid ──────────────────────────────────── */
.ip-twin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 0 22px 22px;
}
.ip-twin-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ip-line);
}
.ip-twin-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-twin-photo__del,
.ip-twin-photo__copy {
    position: absolute; top: 6px; right: 6px;
    width: 24px; height: 24px;
    border: 0;
    border-radius: 4px;
    background: rgba(0,0,0,.6);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    padding: 0;
}
.ip-twin-photo__del:hover { background: var(--ip-coral); }
.ip-twin-photo__copy:hover { background: var(--ip-cyan); color: #051820; }

/* ═══════════════════════════════════════════════════════════
   Light mode + theme system (Notion-clean aesthetic)
   ═══════════════════════════════════════════════════════════ */
body.ip-body[data-theme="light"] {
    --ip-bg: #ffffff;
    --ip-bg-elev: #fafafa;
    --ip-bg-card: #f4f4f5;
    --ip-bg-soft: #f4f4f6;
    --ip-line: #e5e5e9;
    --ip-line-strong: #d4d4d8;
    --ip-text: #18181b;
    --ip-text-mute: #52525b;
    --ip-text-dim: #a1a1aa;
    --ip-cyan: #0891b2;
    --ip-lime: #65a30d;
    --ip-coral: #dc2626;
    --ip-amber: #d97706;
    --ip-violet: #7c3aed;
    --ip-success: #059669;
    --ip-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px -10px rgba(0,0,0,.08);
    --ip-shadow-glow: 0 0 0 1px rgba(8,145,178,.18), 0 18px 50px -16px rgba(8,145,178,.18);
}
body.ip-body[data-theme="light"] .ip-nav,
body.ip-body[data-theme="light"] .ip-topbar,
body.ip-body[data-theme="light"] .ip-canvas-bar {
    background: rgba(255,255,255,.85);
}
body.ip-body[data-theme="light"] .ip-btn--primary {
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(8,145,178,.45);
}
body.ip-body[data-theme="light"] .ip-btn--primary:hover {
    box-shadow: 0 10px 28px -8px rgba(8,145,178,.55);
}
body.ip-body[data-theme="light"] .ip-create__kbd {
    background: rgba(255,255,255,.5);
    color: rgba(0,0,0,.55);
}
body.ip-body[data-theme="light"] .ip-canvas-body {
    background: radial-gradient(ellipse at top, rgba(8,145,178,.05), transparent 60%),
                radial-gradient(ellipse at bottom, rgba(101,163,13,.04), transparent 60%),
                #ffffff;
}

/* ─── Theme toggle button ───────────────────────────────── */
.ip-theme-toggle {
    background: transparent;
    border: 1px solid var(--ip-line);
    border-radius: 7px;
    padding: 6px 8px;
    color: var(--ip-text-mute);
    cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.ip-theme-toggle:hover {
    color: var(--ip-text);
    border-color: var(--ip-line-strong);
    background: var(--ip-bg-elev);
}
body[data-theme="dark"] .ip-theme-toggle .ip-theme-toggle__sun { display: inline; }
body[data-theme="dark"] .ip-theme-toggle .ip-theme-toggle__moon { display: none; }
body[data-theme="light"] .ip-theme-toggle .ip-theme-toggle__sun { display: none; }
body[data-theme="light"] .ip-theme-toggle .ip-theme-toggle__moon { display: inline; }

/* ────────────────────────────────────────────────────────────
   Landing 2026 — additions for feature grid, stats, matrix,
   hero blobs/pills. Kept tight; reuses existing tokens.
   ──────────────────────────────────────────────────────────── */

/* Hero atmospheric blobs — pure CSS, no images */
.ip-hero { position: relative; overflow: hidden; }
.ip-hero__bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    overflow: hidden;
}
.ip-hero__inner, .ip-demo { position: relative; z-index: 1; }
.ip-hero__blob {
    position: absolute; width: 520px; height: 520px; border-radius: 50%;
    filter: blur(110px); opacity: .22; will-change: transform;
}
.ip-hero__blob--cyan   { background: var(--ip-cyan);   top: -160px; left: -100px; animation: ipBlobA 18s ease-in-out infinite; }
.ip-hero__blob--lime   { background: var(--ip-lime);   bottom: -200px; right: -80px; animation: ipBlobB 22s ease-in-out infinite; }
.ip-hero__blob--violet { background: var(--ip-violet); top: 40%; left: 45%; opacity: .12; animation: ipBlobC 26s ease-in-out infinite; }
@keyframes ipBlobA { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,30px) scale(1.08)} }
@keyframes ipBlobB { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,-20px) scale(1.05)} }
@keyframes ipBlobC { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-40px) scale(.95)} }

/* Hero feature pills row */
.ip-hero__pills {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin: 18px auto 0; max-width: 720px;
}
.ip-hero__pill {
    font-size: 12.5px; font-weight: 500; letter-spacing: -.005em;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--ip-line);
    color: var(--ip-text-mute);
}
.ip-hero__pill--lime {
    background: rgba(163,230,53,.08); border-color: rgba(163,230,53,.25);
    color: var(--ip-lime); font-weight: 600;
}

/* Feature grid */
.ip-feat-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 36px;
}
.ip-feat {
    background: var(--ip-bg-elev); border: 1px solid var(--ip-line);
    border-radius: 14px; padding: 22px 20px 20px;
    position: relative; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    opacity: 0; transform: translateY(14px);
    animation: ipFeatIn .7s cubic-bezier(.2,.7,.2,1) var(--ip-feat-delay,0ms) forwards;
}
@keyframes ipFeatIn { to { opacity: 1; transform: translateY(0); } }
.ip-feat::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(180px 120px at 90% -10%, rgba(255,255,255,.04), transparent 60%);
}
.ip-feat:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.14);
    box-shadow: 0 24px 48px -32px rgba(0,0,0,.6);
}
.ip-feat--cyan:hover   { border-color: rgba(34,211,238,.35); box-shadow: 0 24px 48px -28px rgba(34,211,238,.25); }
.ip-feat--lime:hover   { border-color: rgba(163,230,53,.35); box-shadow: 0 24px 48px -28px rgba(163,230,53,.20); }
.ip-feat--violet:hover { border-color: rgba(167,139,250,.35); box-shadow: 0 24px 48px -28px rgba(167,139,250,.20); }
.ip-feat__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.04);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ip-text); margin-bottom: 14px;
}
.ip-feat--cyan   .ip-feat__icon { background: rgba(34,211,238,.10); color: var(--ip-cyan); }
.ip-feat--lime   .ip-feat__icon { background: rgba(163,230,53,.10); color: var(--ip-lime); }
.ip-feat--violet .ip-feat__icon { background: rgba(167,139,250,.10); color: var(--ip-violet); }
.ip-feat__tag {
    display: inline-block; font-family: var(--ip-mono); font-size: 10px;
    letter-spacing: .12em; color: var(--ip-text-dim);
    background: rgba(255,255,255,.04); padding: 2px 8px; border-radius: 999px;
    margin-bottom: 8px;
}
.ip-feat__title { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.ip-feat__body { color: var(--ip-text-mute); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.ip-feat__chip {
    font-size: 11.5px; color: var(--ip-text-dim); font-family: var(--ip-mono);
    padding-top: 10px; border-top: 1px dashed var(--ip-line);
}

/* Stats strip */
.ip-stats-strip { background: linear-gradient(180deg, transparent, rgba(34,211,238,.04) 50%, transparent); }
.ip-stats {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    text-align: center;
}
.ip-stat-big {
    padding: 20px 16px;
    background: var(--ip-bg-elev); border: 1px solid var(--ip-line);
    border-radius: 14px;
}
.ip-stat-big__num {
    font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em;
    line-height: 1; color: var(--ip-cyan);
    font-variant-numeric: tabular-nums;
}
.ip-stat-big__label { color: var(--ip-text-mute); font-size: 13px; margin-top: 8px; }
.ip-stat-big__label em { color: var(--ip-lime); font-style: normal; font-weight: 600; }

/* Feature matrix table */
.ip-mat-wrap { overflow-x: auto; border: 1px solid var(--ip-line); border-radius: 14px; background: var(--ip-bg-elev); margin-top: 36px; }
.ip-mat { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.ip-mat th, .ip-mat td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ip-line); }
.ip-mat thead th {
    font-family: var(--ip-mono); font-size: 11px; letter-spacing: .1em;
    color: var(--ip-text-dim); text-transform: uppercase; font-weight: 600;
    background: rgba(255,255,255,.02); position: sticky; top: 0;
}
.ip-mat tbody th[scope=row] { color: var(--ip-text); font-weight: 500; font-size: 13.5px; }
.ip-mat td { color: var(--ip-text-mute); }
.ip-mat td.is-feat, .ip-mat th.is-feat {
    background: rgba(34,211,238,.06); color: var(--ip-text);
}
.ip-mat td.is-life, .ip-mat th.is-life {
    background: rgba(163,230,53,.06); color: var(--ip-text);
}
.ip-mat__pop {
    font-family: var(--ip-mono); font-size: 9px; letter-spacing: .1em;
    background: var(--ip-cyan); color: #06121b; padding: 2px 6px; border-radius: 999px;
    margin-left: 6px; vertical-align: middle;
}
.ip-mat__new {
    font-family: var(--ip-mono); font-size: 9px; letter-spacing: .1em;
    background: rgba(163,230,53,.18); color: var(--ip-lime); padding: 2px 6px; border-radius: 999px;
    margin-left: 4px; vertical-align: middle;
}
.ip-mat tr:last-child td, .ip-mat tr:last-child th { border-bottom: 0; }
.ip-mat tbody tr:hover td, .ip-mat tbody tr:hover th { background: rgba(255,255,255,.02); }

/* Reduced motion: disable blob & feat-in animations */
@media (prefers-reduced-motion: reduce) {
    .ip-hero__blob { animation: none; }
    .ip-feat { opacity: 1; transform: none; animation: none; }
    [data-typing], .ip-demo__caret { animation: none; }
}

/* Feature matrix — mobile reflow.
   At narrow widths, transform the comparison table into stacked
   per-feature cards where each plan column becomes a "Plan: value"
   line inside the card. Pure CSS, uses data-plan on each <td>. */
@media (max-width: 760px) {
    #matrix .ip-mat-wrap {
        overflow: visible; border: 0; background: transparent;
        margin-top: 28px;
    }
    #matrix .ip-mat { display: block; min-width: 0; font-size: 13.5px; }
    #matrix .ip-mat thead { display: none; }
    #matrix .ip-mat tbody { display: block; }
    #matrix .ip-mat tr {
        display: block;
        background: var(--ip-bg-elev);
        border: 1px solid var(--ip-line);
        border-radius: 12px;
        padding: 14px 14px 6px;
        margin-bottom: 10px;
    }
    #matrix .ip-mat tr:last-child { margin-bottom: 0; }
    #matrix .ip-mat th[scope="row"] {
        display: block; padding: 0 0 10px;
        border-bottom: 1px dashed var(--ip-line);
        margin-bottom: 8px;
        color: var(--ip-text);
        font-size: 15px; font-weight: 600;
    }
    #matrix .ip-mat td {
        display: flex; justify-content: space-between; align-items: center;
        padding: 7px 0;
        border-bottom: 0;
        background: transparent !important;
        color: var(--ip-text-mute);
    }
    #matrix .ip-mat td::before {
        content: attr(data-plan);
        font-family: var(--ip-mono);
        font-size: 10.5px; letter-spacing: .1em;
        color: var(--ip-text-dim);
        text-transform: uppercase; font-weight: 600;
    }
    /* Subtle accent dot for the Pro / Lifetime rows */
    #matrix .ip-mat td.is-feat::before { color: var(--ip-cyan); }
    #matrix .ip-mat td.is-life::before { color: var(--ip-lime); }
    #matrix .ip-mat td.is-feat, #matrix .ip-mat td.is-life { color: var(--ip-text); font-weight: 500; }
    #matrix .ip-mat tbody tr:hover td,
    #matrix .ip-mat tbody tr:hover th { background: transparent; }
}

/* ────────────────────────────────────────────────────────────
   Pre-launch waitlist page (replaces home until product opens).
   Reuses hero blob/eyebrow tokens; adds form + success states.
   ──────────────────────────────────────────────────────────── */
.ip-wait {
    position: relative; overflow: hidden;
    padding: clamp(60px, 10vh, 120px) 24px clamp(60px, 10vh, 120px);
}
.ip-wait--hero { display: flex; align-items: center; justify-content: center; }
.ip-wait__bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    overflow: hidden;
}
.ip-wait__inner {
    position: relative; z-index: 1;
    max-width: 760px; width: 100%; text-align: center;
}

/* Form card — narrower so the email field doesn't dominate the page */
.ip-wait__form-card {
    margin: 32px auto 0;
    max-width: 460px;
    padding: 18px;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    box-shadow: 0 24px 64px -32px rgba(0,0,0,.6);
}
.ip-wait__label {
    display: block; text-align: left;
    font-family: var(--ip-mono); font-size: 11px; letter-spacing: .12em;
    color: var(--ip-text-dim); text-transform: uppercase; font-weight: 600;
    margin-bottom: 10px;
}
.ip-wait__row { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-wait__input {
    flex: 1 1 200px; min-width: 0; max-width: 100%;
    height: 42px; padding: 0 14px;
    background: var(--ip-bg);
    border: 1px solid var(--ip-line);
    border-radius: 10px;
    color: var(--ip-text); font: inherit; font-size: 14.5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ip-wait__input:focus {
    outline: none; border-color: var(--ip-cyan);
    box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.ip-wait__submit {
    flex: 0 0 auto; height: 42px; padding: 0 18px;
    font-size: 14px; white-space: nowrap;
}
.ip-wait__legal {
    margin: 12px 0 0; text-align: left;
    font-size: 12.5px; color: var(--ip-text-dim);
}

/* Success state */
.ip-wait__success { text-align: center; padding: 8px 4px; }
.ip-wait__check {
    width: 56px; height: 56px; border-radius: 999px;
    background: rgba(163,230,53,.12);
    color: var(--ip-lime);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 0 6px rgba(163,230,53,.06);
}
.ip-wait__success-title {
    font-size: 22px; font-weight: 700; margin: 0 0 6px;
    letter-spacing: -.015em; color: var(--ip-text);
}
.ip-wait__success-body { color: var(--ip-text-mute); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.ip-wait__success-foot { font-size: 13px; color: var(--ip-text-dim); margin: 0; }

/* Bullets row */
.ip-wait__bullets {
    list-style: none; padding: 0; margin: 32px 0 0;
    display: flex; gap: 16px 28px; flex-wrap: wrap; justify-content: center;
}
.ip-wait__bullets li {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ip-text-mute); font-size: 14px;
}
.ip-wait__dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: var(--ip-cyan);
    box-shadow: 0 0 12px var(--ip-cyan);
}
.ip-wait__dot--lime { background: var(--ip-lime); box-shadow: 0 0 12px var(--ip-lime); }
.ip-wait__dot--violet { background: var(--ip-violet); box-shadow: 0 0 12px var(--ip-violet); }

/* Footer peek link */
.ip-wait__footer {
    margin-top: 36px; padding-top: 20px;
    border-top: 1px dashed var(--ip-line);
}
.ip-wait__peek {
    color: var(--ip-text-dim); font-size: 13px; text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
.ip-wait__peek:hover { color: var(--ip-cyan); border-color: var(--ip-cyan); }

@media (max-width: 560px) {
    .ip-wait { padding: clamp(36px, 7vh, 64px) 16px clamp(48px, 8vh, 80px); }
    .ip-wait__form-card { max-width: 100%; padding: 14px; border-radius: 12px; }
    .ip-wait__label { font-size: 10.5px; margin-bottom: 8px; }
    .ip-wait__row { flex-direction: column; align-items: stretch; gap: 8px; }
    /* flex: 0 0 auto kills the desktop flex-basis: 200px which, in a
       column-direction parent, would force the input to be 200px tall
       and override `height: 40px`. With basis auto, height wins. */
    .ip-wait__input  {
        flex: 0 0 auto;
        display: block; width: 100%; box-sizing: border-box;
        -webkit-appearance: none; appearance: none;
        height: 44px; min-height: 0; max-height: 44px;
        padding: 0 12px; font-size: 16px; line-height: 44px;
        border-radius: 8px;
    }
    .ip-wait__submit {
        flex: 0 0 auto;
        width: 100%; height: 44px; min-height: 0;
        font-size: 14px; padding: 0 14px; border-radius: 8px;
    }
    .ip-wait__legal { font-size: 11.5px; margin-top: 10px; }
    .ip-wait-final__form { padding: 14px; max-width: 100%; }
}

/* ────────────────────────────────────────────────────────────
   Waitlist page — extended sections (hero demo, how-it-works,
   features, founder note, final CTA). Scoped under .ip-wait*.
   ──────────────────────────────────────────────────────────── */

/* Inline demo block under the email form */
.ip-wait__demo {
    margin: 44px auto 0;
    max-width: 780px;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px -32px rgba(0,0,0,.55);
    text-align: left;
}
.ip-wait__demo-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid var(--ip-line);
}
.ip-wait__demo-dot {
    width: 10px; height: 10px; border-radius: 999px;
    background: rgba(255,255,255,.18);
}
.ip-wait__demo-url {
    margin-left: 8px;
    font-family: var(--ip-mono);
    font-size: 11.5px; color: var(--ip-text-dim);
    letter-spacing: .04em;
}
.ip-wait__demo-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    padding: 22px;
    align-items: stretch;
}
.ip-wait__demo-pane {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px;
    background: var(--ip-bg);
    border: 1px solid var(--ip-line);
    border-radius: 10px;
}
.ip-wait__demo-pane--out {
    background: linear-gradient(180deg, rgba(34,211,238,.05), rgba(163,230,53,.04));
    border-color: rgba(34,211,238,.25);
}
.ip-wait__demo-tag {
    font-family: var(--ip-mono); font-size: 10.5px; letter-spacing: .14em;
    color: var(--ip-text-dim); font-weight: 600; text-transform: uppercase;
}
.ip-wait__demo-tag--live { color: var(--ip-success, #4ade80); }
.ip-wait__demo-prompt {
    font-size: 14.5px; line-height: 1.55; color: var(--ip-text);
}
.ip-wait__demo-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ip-wait__demo-chip {
    font-family: var(--ip-mono); font-size: 10.5px; font-weight: 600;
    padding: 3px 8px; border-radius: 999px; letter-spacing: .04em;
}
.ip-wait__demo-chip--cyan   { background: rgba(34,211,238,.10); color: var(--ip-cyan); }
.ip-wait__demo-chip--lime   { background: rgba(163,230,53,.10); color: var(--ip-lime); }
.ip-wait__demo-chip--violet { background: rgba(167,139,250,.10); color: var(--ip-violet); }
.ip-wait__demo-arrow {
    align-self: center;
    font-size: 22px; color: var(--ip-text-dim);
}
.ip-wait__demo-url-out {
    font-family: var(--ip-mono); font-size: 14px; color: var(--ip-text);
    background: var(--ip-bg); padding: 8px 10px; border-radius: 6px;
    border: 1px solid var(--ip-line);
    word-break: break-all;
}
.ip-wait__demo-meta {
    font-size: 12px; color: var(--ip-text-dim); line-height: 1.5;
}
@media (max-width: 720px) {
    .ip-wait__demo-body { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .ip-wait__demo-arrow { transform: rotate(90deg); }
}

/* Generic section spacing tweak for waitlist-page sections */
.ip-wait-section { padding: clamp(64px, 9vh, 120px) 0; position: relative; }
.ip-wait-section--alt { background: rgba(255,255,255,.015); border-top: 1px solid var(--ip-line); border-bottom: 1px solid var(--ip-line); }

/* How it works — 3 steps */
.ip-wait-steps {
    display: grid; gap: 18px; margin-top: 40px;
    grid-template-columns: repeat(3, 1fr);
}
.ip-wait-step {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    padding: 24px;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .2s ease, border-color .2s ease;
}
.ip-wait-step:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.3); }
.ip-wait-step__num {
    font-family: var(--ip-mono); font-size: 11px; letter-spacing: .14em;
    color: var(--ip-cyan); font-weight: 700;
}
.ip-wait-step__title {
    font-size: 19px; font-weight: 700; margin: 4px 0 0;
    letter-spacing: -.01em; color: var(--ip-text);
}
.ip-wait-step__body { color: var(--ip-text-mute); font-size: 14px; line-height: 1.55; margin: 0; }
.ip-wait-step__icons { display: flex; gap: 8px; margin-top: 6px; }
.ip-wait-step__icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(34,211,238,.10); color: var(--ip-cyan);
    display: inline-flex; align-items: center; justify-content: center;
}
.ip-wait-step__icon--lime   { background: rgba(163,230,53,.10); color: var(--ip-lime); }
.ip-wait-step__icon--violet { background: rgba(167,139,250,.10); color: var(--ip-violet); }
.ip-wait-step__swatches { display: flex; gap: 6px; margin-top: 6px; }
.ip-wait-step__swatches span {
    width: 30px; height: 30px; border-radius: 7px; display: inline-block;
}
.ip-wait-step__caption {
    margin-top: auto; padding-top: 8px;
    font-family: var(--ip-mono); font-size: 10.5px; letter-spacing: .12em;
    color: var(--ip-text-dim); text-transform: uppercase;
}
.ip-wait-step__live {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ip-mono); font-size: 13px; color: var(--ip-text);
    background: var(--ip-bg); padding: 8px 10px; border-radius: 6px;
    border: 1px solid var(--ip-line);
}
.ip-wait-step__live-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: var(--ip-success, #4ade80);
    box-shadow: 0 0 10px var(--ip-success, #4ade80);
}
@media (max-width: 880px) { .ip-wait-steps { grid-template-columns: 1fr; } }

/* What's coming — feature cards */
.ip-wait-feats {
    display: grid; gap: 16px; margin-top: 40px;
    grid-template-columns: repeat(4, 1fr);
}
.ip-wait-feat {
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 12px;
    padding: 20px;
    transition: transform .2s ease, border-color .2s ease;
}
.ip-wait-feat:hover { transform: translateY(-2px); }
.ip-wait-feat--cyan:hover   { border-color: rgba(34,211,238,.4); }
.ip-wait-feat--lime:hover   { border-color: rgba(163,230,53,.4); }
.ip-wait-feat--violet:hover { border-color: rgba(167,139,250,.4); }
.ip-wait-feat__tag {
    display: inline-block;
    font-family: var(--ip-mono); font-size: 10.5px; letter-spacing: .14em;
    color: var(--ip-text-dim); font-weight: 700;
    padding: 3px 8px; border-radius: 999px;
    background: rgba(255,255,255,.05);
}
.ip-wait-feat--cyan .ip-wait-feat__tag   { color: var(--ip-cyan);   background: rgba(34,211,238,.10); }
.ip-wait-feat--lime .ip-wait-feat__tag   { color: var(--ip-lime);   background: rgba(163,230,53,.10); }
.ip-wait-feat--violet .ip-wait-feat__tag { color: var(--ip-violet); background: rgba(167,139,250,.10); }
.ip-wait-feat__title { font-size: 17px; font-weight: 700; margin: 12px 0 6px; letter-spacing: -.01em; color: var(--ip-text); }
.ip-wait-feat__body { font-size: 13.5px; line-height: 1.55; color: var(--ip-text-mute); margin: 0; }
@media (max-width: 1080px) { .ip-wait-feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ip-wait-feats { grid-template-columns: 1fr; } }

/* Founder note + perks */
.ip-wait-founder {
    display: grid; gap: 40px;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
}
.ip-wait-founder__col { text-align: left; }
.ip-wait-founder__body {
    color: var(--ip-text-mute); font-size: 15.5px; line-height: 1.65;
    margin: 18px 0 0; max-width: 56ch;
}
.ip-wait-perks {
    list-style: none; padding: 0; margin: 18px 0 0;
    display: flex; flex-direction: column; gap: 14px;
}
.ip-wait-perks li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 12px;
}
.ip-wait-perks__num {
    flex: 0 0 auto;
    font-family: var(--ip-mono); font-weight: 700; font-size: 14px;
    letter-spacing: .08em; padding-top: 2px;
}
.ip-wait-perks li strong {
    display: block; color: var(--ip-text); font-size: 15px;
    font-weight: 700; margin-bottom: 4px;
}
.ip-wait-perks li span { color: var(--ip-text-mute); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 880px) { .ip-wait-founder { grid-template-columns: 1fr; gap: 32px; } }

/* Final CTA */
.ip-wait-final {
    padding: clamp(64px, 10vh, 130px) 0;
    background: linear-gradient(180deg, transparent, rgba(34,211,238,.03));
}
.ip-wait-final__inner { text-align: center; }
.ip-wait-final__form {
    max-width: 460px; margin: 0 auto;
    padding: 20px;
    background: var(--ip-bg-elev);
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    box-shadow: 0 24px 64px -32px rgba(0,0,0,.55);
}
.ip-wait-final__joined {
    color: var(--ip-lime); font-weight: 600; font-size: 16px;
    margin: 0 auto; max-width: 460px;
}
