:root {
    --bg: #f8fafc;
    --bg-soft: rgba(255,255,255,0.76);
    --card: rgba(255,255,255,0.88);
    --line: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --muted: #475569;
    --primary: #0f172a;
    --primary-soft: #e2e8f0;
    --accent: #2563eb;
    --success: #166534;
    --error: #b91c1c;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    color: var(--text);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page { padding: 32px 0 60px; position: relative; z-index: 2; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.glass-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(248, 250, 252, 0.74);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.site-header-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #0f172a, #334155); color: white; font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text small { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--text); }
.hero {
    display: grid;
    grid-template-columns: 1.45fr .9fr;
    gap: 24px;
    align-items: stretch;
}
.hero-copy, .hero-panel, .mode-card, .info-card, .wizard-shell, .plan-header, .plan-section-card, .stat-card {
    padding: 28px;
}
.hero-copy h1, .wizard-topbar h1, .plan-header h1 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.hero-text { font-size: 16px; color: var(--muted); max-width: 860px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
    background: rgba(15, 23, 42, 0.05); color: #334155; font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
}
.hero-actions, .wizard-actions-top, .plan-header-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
    border: 1px solid transparent; border-radius: 16px; padding: 12px 18px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700;
    transition: .2s ease; min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--text); }
.btn-dark { background: #111827; color: #fff; }
.w-full { width: 100%; }
.badge {
    padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #334155; font-size: 13px; font-weight: 600;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stack-heading { font-weight: 800; margin-bottom: 14px; }
.feature-list { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 10px; }
.feature-list.compact { gap: 8px; }
.mode-grid-section, .architecture-grid { margin-top: 28px; }
.section-head {
    display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px;
}
.section-head h2 { margin: 8px 0 0; font-size: 30px; }
.section-head p { color: var(--muted); max-width: 520px; }
.mode-grid, .architecture-grid, .plan-meta-grid {
    display: grid; gap: 20px;
}
.mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.architecture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode-pill {
    display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(37, 99, 235, 0.08); color: #1d4ed8; font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.mode-card h3, .info-card h3 { margin: 14px 0 10px; font-size: 24px; }
.mode-card p, .info-card p { color: var(--muted); margin-top: 0; }
.flash-wrap { padding-bottom: 12px; display: grid; gap: 10px; }
.flash {
    border-radius: 16px; padding: 14px 16px; font-weight: 600; border: 1px solid transparent;
}
.flash-success { background: rgba(22, 101, 52, 0.08); color: var(--success); border-color: rgba(22, 101, 52, 0.16); }
.flash-error { background: rgba(185, 28, 28, 0.08); color: var(--error); border-color: rgba(185, 28, 28, 0.16); }
.wizard-page { padding-top: 28px; }
.wizard-shell { padding: 26px; }
.wizard-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.wizard-topbar h1 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 10px; }
.wizard-topbar p { margin: 0; color: var(--muted); max-width: 760px; }
.wizard-progress-wrap { margin-top: 24px; }
.wizard-progress-bar { height: 10px; background: rgba(15, 23, 42, 0.08); border-radius: 999px; overflow: hidden; }
.wizard-progress-bar span { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, #2563eb, #1d4ed8); border-radius: inherit; transition: width .25s ease; }
.wizard-step-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.wizard-step-pill {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
    border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600;
}
.wizard-step-pill.is-active, .wizard-step-pill.is-complete { color: var(--text); border-color: rgba(37,99,235,.18); }
.wizard-step-pill.is-active { background: rgba(37, 99, 235, 0.08); }
.wizard-step-pill.is-complete { background: rgba(15, 23, 42, 0.05); }
.wizard-step-index {
    width: 28px; height: 28px; border-radius: 999px; background: rgba(15,23,42,.07); display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.wizard-form { margin-top: 24px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.step-header { margin-bottom: 18px; }
.step-header h2 { margin: 10px 0 8px; font-size: 28px; }
.step-header p { margin: 0; color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-full { margin-top: 16px; }
.field-label { font-size: 14px; font-weight: 700; color: #334155; }
.req { color: #dc2626; }
.field-control {
    width: 100%; border: 1px solid rgba(15, 23, 42, 0.11); background: rgba(255,255,255,.92);
    border-radius: 18px; min-height: 54px; padding: 14px 16px; color: var(--text); outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(15, 23, 42, 0.03);
}
.field-control:focus { border-color: rgba(37, 99, 235, .42); box-shadow: 0 0 0 4px rgba(37, 99, 235, .08); }
.field-textarea { min-height: 120px; resize: vertical; }
.wizard-footer {
    margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wizard-footer-right { display: flex; gap: 12px; flex-wrap: wrap; }
.hidden { display: none !important; }
.review-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px;
}
.review-item { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.8); }
.review-item .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.review-item .value { font-weight: 700; color: var(--text); }
.checkbox-row { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; }
.plan-page { display: grid; gap: 22px; }
.plan-meta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card .label, .key-value-item .label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.stat-card strong { font-size: 20px; }
.plan-sections { display: grid; gap: 20px; }
.key-value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.key-value-item {
    border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(255,255,255,.74);
}
.value { color: var(--text); font-weight: 600; line-height: 1.55; }
.site-footer { padding: 0 0 32px; position: relative; z-index: 2; }
.footer-inner { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 24px; padding-inline: 22px; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 16px; color: var(--muted); }
.bg-orb {
    position: fixed; border-radius: 999px; filter: blur(80px); opacity: .3; z-index: 0; pointer-events: none;
}
.bg-orb-a { width: 360px; height: 360px; background: #bfdbfe; top: 80px; right: -80px; }
.bg-orb-b { width: 300px; height: 300px; background: #c4b5fd; left: -60px; bottom: 90px; }
@media (max-width: 1024px) {
    .hero, .architecture-grid, .mode-grid, .plan-meta-grid, .key-value-grid { grid-template-columns: 1fr; }
    .wizard-topbar, .section-head, .site-header-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
    .wizard-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .container { width: min(100% - 20px, 1180px); }
    .page { padding: 20px 0 36px; }
    .hero-copy, .hero-panel, .mode-card, .info-card, .wizard-shell, .plan-header, .plan-section-card, .stat-card { padding: 20px; }
    .form-grid.two-col, .review-grid, .key-value-grid { grid-template-columns: 1fr; }
    .wizard-step-list { grid-template-columns: 1fr; }
    .wizard-footer { flex-direction: column; align-items: stretch; }
    .wizard-footer-right, .hero-actions, .plan-header-actions { width: 100%; }
    .wizard-footer-right .btn, .hero-actions .btn, .plan-header-actions .btn { width: 100%; }
    .site-nav { width: 100%; flex-wrap: wrap; }
}

.brain-generate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.brain-summary-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.brain-summary-card h2,
.brain-summary-card h3,
.persona-card h3,
.mini-title {
    margin: 0 0 10px;
}

.brain-summary-hero {
    min-height: 100%;
}

.brain-meta-note,
.persona-note,
.persona-archetype,
.persona-market {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.72);
}

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

.persona-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    padding: 18px;
}

.persona-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.persona-columns,
.brain-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.compact-gap {
    gap: 14px;
}

.top-gap {
    margin-top: 18px;
}

.chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-muted {
    background: rgba(148, 163, 184, 0.12);
}

.full-span {
    grid-column: 1 / -1;
}

.subtle {
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .brain-summary-grid,
    .persona-grid,
    .brain-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .brain-generate {
        flex-direction: column;
        align-items: stretch;
    }

    .persona-top {
        flex-direction: column;
    }
}

.intelligence-summary-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
}

.intelligence-card {
    padding: 24px;
}

.intelligence-hero p,
.intelligence-card p,
.issue-card p,
.muted-inline {
    color: var(--muted);
}

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

.issue-grid.two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.issue-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255,255,255,.78);
}

.issue-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.issue-top h3,
.intelligence-card h3 {
    margin: 0;
}

.issue-domain,
.issue-action {
    font-size: 14px;
    color: #334155;
    margin-top: 10px;
}

.severity-pill,
.impact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.severity-critical {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.18);
}

.severity-high {
    background: rgba(234, 88, 12, 0.12);
    color: #9a3412;
    border-color: rgba(234, 88, 12, 0.18);
}

.severity-medium {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.18);
}

.severity-low {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
    border-color: rgba(22, 163, 74, 0.18);
}

.impact-pill {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    border-color: rgba(15, 23, 42, 0.1);
}

.opportunity-card {
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.92));
}

@media (max-width: 1024px) {
    .intelligence-summary-grid,
    .issue-grid,
    .issue-grid.two-col-grid {
        grid-template-columns: 1fr;
    }
}


.report-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.top-gap-sm { margin-top: 14px; }
.share-link-box {
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: rgba(248, 250, 252, 0.95);
    border-radius: 14px;
    padding: 14px 16px;
}
.share-link-value {
    margin-top: 8px;
    word-break: break-all;
    color: #0f172a;
    font-size: 14px;
}


/* Phase 6.1 stabilization patch */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
.page-shell,
.page-intro,
.card,
.plan-section-card,
.brain-summary-card,
.persona-card,
.feature-list,
.feature-list li,
.summary-card,
.share-link-box,
.report-actions-grid a,
.btn,
.section-head,
.brain-two-col > div,
.persona-grid > * {
    min-width: 0;
}

.card,
.plan-section-card,
.brain-summary-card,
.persona-card,
.summary-card,
.share-link-box {
    overflow: hidden;
}

.card *,
.plan-section-card *,
.brain-summary-card *,
.persona-card *,
.summary-card *,
.share-link-box *,
.feature-list li,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
strong,
a,
code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.page-intro {
    gap: 16px;
    align-items: start;
}

.page-actions,
.report-actions-grid {
    width: 100%;
}

.brain-summary-grid,
.persona-grid,
.report-actions-grid,
.brain-two-col {
    align-items: stretch;
}

.brain-summary-grid > *,
.persona-grid > *,
.brain-two-col > * {
    min-width: 0;
}

.brain-summary-card,
.persona-card,
.plan-section-card {
    height: 100%;
}

.plan-section-card,
.brain-summary-card,
.persona-card,
.card {
    padding: 20px;
    border-radius: 18px;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
}

.feature-list.compact li,
.feature-list li {
    line-height: 1.65;
    margin-bottom: 8px;
}

.section-head {
    gap: 14px;
    align-items: flex-start;
}

.section-head h2,
.brain-summary-card h2,
.persona-card h3,
.mini-title,
.page-intro h1 {
    line-height: 1.25;
    margin-bottom: 10px;
}

.brain-meta-note,
.persona-archetype,
.eyebrow {
    line-height: 1.4;
}

.report-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.report-actions-grid .btn,
.page-actions .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
}

.share-link-box {
    margin-top: 12px;
    background: rgba(248, 250, 252, 0.98);
}

.share-link-value {
    display: block;
    margin-top: 8px;
    white-space: normal;
    line-height: 1.6;
}

.top-gap,
.top-gap-sm {
    width: 100%;
}

@media (max-width: 1024px) {
    .brain-two-col {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .plan-section-card,
    .brain-summary-card,
    .persona-card,
    .card {
        padding: 16px;
        border-radius: 16px;
    }

    .page-intro h1 {
        font-size: 28px;
    }

    .section-head h2,
    .brain-summary-card h2 {
        font-size: 22px;
    }

    .report-actions-grid {
        grid-template-columns: 1fr;
    }
}



/* ===============================
   UI PRO UPGRADE
   Premium spacing, alignment, sticky quick nav, collapsible cards
================================== */
:root{
    --page-max: 1280px;
    --page-pad-x: 24px;
    --section-gap: 20px;
    --card-pad: 24px;
    --card-pad-lg: 28px;
    --card-gap: 16px;
    --heading-gap: 12px;
    --body-gap: 10px;
    --muted-2: #64748b;
    --surface-2: #f8fafc;
}
body{
    background: linear-gradient(180deg, #f8fafc 0%, #eef3fb 40%, #f8fafc 100%);
}
.container,
.page-shell{
    width: min(var(--page-max), calc(100% - (var(--page-pad-x) * 2)));
    margin-inline: auto;
}
.page,
.page-shell{
    padding-top: 28px;
    padding-bottom: 64px;
}
.bg-orb{filter: blur(90px); opacity:.45;}
.card,
.plan-section-card,
.brain-summary-card,
.persona-card,
.mode-card,
.info-card,
.hero-copy,
.hero-panel,
.wizard-shell,
.plan-header,
.stat-card{
    position: relative;
    overflow: clip;
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.22);
    box-shadow:
      0 1px 2px rgba(15,23,42,.03),
      0 16px 40px rgba(15,23,42,.06);
}
.card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:1px;
    background: linear-gradient(90deg, rgba(255,255,255,.8), rgba(255,255,255,.2));
    pointer-events:none;
}
.hero-copy, .hero-panel, .mode-card, .info-card, .wizard-shell, .plan-header, .plan-section-card, .stat-card, .brain-summary-card, .persona-card{
    padding: var(--card-pad-lg);
}
.page > section,
.page-shell > section{
    margin-bottom: var(--section-gap);
}
.page > section:last-child,
.page-shell > section:last-child{
    margin-bottom: 0;
}
.plan-header,
.page-intro,
.wizard-topbar,
.section-head,
.persona-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}
.plan-header h1,
.page-intro h1,
.hero-copy h1,
.wizard-topbar h1{
    margin: 8px 0 0;
    font-size: clamp(28px, 3.3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.03em;
    max-width: 14ch;
}
.page-intro p,
.plan-header p,
.hero-text,
.wizard-topbar p,
.card p,
.brain-summary-card p,
.persona-card p{
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}
.hero-text,
.plan-header > div:first-child > p,
.page-intro > div:first-child > p{
    margin-top: 14px;
    max-width: 78ch;
}
h2{
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
    letter-spacing: -.02em;
}
h3{
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.label,
.eyebrow,
.brain-meta-note,
.persona-archetype{
    line-height: 1.45;
}
.eyebrow{
    padding: 7px 11px;
    font-size: 11px;
    letter-spacing: .08em;
    background: rgba(15,23,42,.045);
    border: 1px solid rgba(15,23,42,.05);
}
.hero,
.plan-meta-grid,
.brain-summary-grid,
.persona-grid,
.report-actions-grid{
    gap: 16px;
}
.plan-meta-grid{
    grid-template-columns: repeat(4, minmax(0,1fr));
}
.stat-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    min-height: 118px;
}
.stat-card strong{
    font-size: 18px;
    line-height: 1.35;
}
.brain-generate{
    padding: 22px 24px;
    display:grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items:center;
    gap: 16px 24px;
}
.brain-generate p{
    margin-top: 8px;
    max-width: 76ch;
}
.brain-generate form{
    margin:0;
}
.plan-section-card .section-head{
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148,163,184,.18);
}
.brain-summary-card{
    display:flex;
    flex-direction:column;
    gap: 10px;
    min-height: 100%;
}
.brain-summary-hero{
    justify-content:flex-end;
}
.brain-summary-grid{
    align-items:stretch;
}
.brain-sections{
    display:grid;
    gap: 18px;
}
.brain-two-col{
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}
.feature-list{
    margin: 0;
    padding: 0 0 0 18px;
}
.feature-list li{
    margin: 0 0 10px;
    padding-left: 2px;
    line-height: 1.72;
    color: var(--text);
}
.feature-list li:last-child{ margin-bottom:0; }
.mini-title{
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--muted-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.top-gap{ margin-top: 18px !important; }
.top-gap-sm{ margin-top: 12px !important; }
.persona-card{
    display:flex;
    flex-direction:column;
    gap: 12px;
}
.persona-card,
.persona-card *{
    color: var(--text);
}
.persona-card .persona-archetype{
    color: var(--muted-2);
}
.persona-card .feature-list li{
    color: var(--muted);
}
.persona-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.btn{
    min-height: 46px;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    gap: 8px;
    justify-content:center;
    text-align:center;
}
.btn-primary{
    box-shadow: 0 8px 22px rgba(15,23,42,.14);
}
.btn-secondary{
    background: rgba(255,255,255,.8);
    border-color: rgba(148,163,184,.28);
}
.site-header{
    background: rgba(248,250,252,.78);
    border-bottom: 1px solid rgba(148,163,184,.18);
}
.site-header-inner, .footer-inner{
    padding-block: 14px;
}
.site-nav{
    gap: 12px;
    align-items:center;
    flex-wrap: wrap;
}
.site-nav a{
    padding: 9px 12px;
    border-radius: 12px;
}
.site-nav a:hover{
    background: rgba(15,23,42,.05);
}
.flash-wrap{ padding-bottom: 8px; }
.flash{
    border-radius: 14px;
    padding: 12px 14px;
}
.page-home .hero{
    margin-bottom: 18px;
}
.report-actions-grid{
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
}
.share-link-box{
    border-radius: 16px;
    padding: 16px;
}
.share-link-value{
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.65;
}
.wizard-progress-wrap{
    margin: 22px 0 6px;
}
.wizard-step-list{
    gap: 10px;
}
.wizard-step-pill{
    min-height: 52px;
    align-items: center;
}
input, select, textarea{
    border-radius: 14px !important;
    min-height: 48px;
    padding: 12px 14px;
}
textarea{ min-height: 120px; }
.field, .field-group, .input-group{
    gap: 10px;
}
.page-actions,
.hero-actions,
.plan-header-actions,
.wizard-actions-top{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
}
.footer-links{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
.footer-links a{
    padding: 8px 12px;
    border-radius: 10px;
}
.footer-links a:hover{
    background: rgba(15,23,42,.05);
}

/* Sticky quick nav created by JS */
.ui-pro-quicknav{
    position: fixed;
    right: 18px;
    top: 92px;
    width: 250px;
    z-index: 30;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148,163,184,.2);
    box-shadow: 0 16px 36px rgba(15,23,42,.10);
}
.ui-pro-quicknav-title{
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted-2);
    font-weight: 800;
}
.ui-pro-quicknav-links{
    display:grid;
    gap: 6px;
    max-height: calc(100vh - 180px);
    overflow: auto;
    padding-right: 4px;
}
.ui-pro-quicknav-links a{
    display:block;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.ui-pro-quicknav-links a:hover,
.ui-pro-quicknav-links a.is-active{
    background: rgba(37,99,235,.08);
    color: #1d4ed8;
}
.ui-pro-quicknav-tools{
    display:flex;
    gap:8px;
    margin-top: 10px;
}
.ui-pro-quicknav-tools button{
    flex:1;
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.22);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

/* Collapsible cards */
.ui-pro-collapsible > .ui-pro-collapse-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom: 14px;
}
.ui-pro-collapse-toggle{
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.22);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display:grid;
    place-items:center;
}
.ui-pro-collapsible.is-collapsed .ui-pro-collapse-body{
    display:none;
}
.ui-pro-collapsible.is-collapsed .ui-pro-collapse-toggle{
    transform: rotate(-90deg);
}

@media (max-width: 1360px){
    .ui-pro-quicknav{ display:none; }
}
@media (max-width: 1024px){
    .hero{
        grid-template-columns: 1fr;
    }
    .plan-meta-grid{
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .brain-generate{
        grid-template-columns: 1fr;
        align-items:flex-start;
    }
    .brain-two-col,
    .persona-grid{
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px){
    :root{
        --page-pad-x: 14px;
        --card-pad: 18px;
        --card-pad-lg: 18px;
        --section-gap: 14px;
    }
    .page, .page-shell{ padding-top: 18px; padding-bottom: 42px; }
    .plan-header h1,
    .page-intro h1,
    .hero-copy h1,
    .wizard-topbar h1{
        font-size: clamp(24px, 7vw, 34px);
        max-width: 100%;
    }
    .hero-copy, .hero-panel, .mode-card, .info-card, .wizard-shell, .plan-header, .plan-section-card, .stat-card, .brain-summary-card, .persona-card{
        padding: 18px;
        border-radius: 18px;
    }
    .plan-meta-grid{
        grid-template-columns: 1fr;
    }
    .site-header-inner, .footer-inner{
        flex-direction: column;
        align-items: flex-start;
    }
    .btn{ width: 100%; }
    .page-actions .btn,
    .hero-actions .btn,
    .plan-header-actions .btn,
    .wizard-actions-top .btn{
        width: 100%;
    }
}
