/* LaunchEase — Main Stylesheet
   v0.1.0
   Desktop-first, breakpoints at 900/768/480
   Brand: VentureEase unified palette — #5599cc primary, #ffd700 gold, #1e293b dark, #ffffff light */

/* ========== Reset & Base ========== */
:root {
    /* Height of the sticky ecosystem nav. Used as the top offset for every
       platform-level sticky bar (site-header, dashboard-header, sidebar). */
    --ecosystem-nav-h: 40px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #3574a3;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1e293b;
}

a:focus-visible {
    outline: 2px solid #5599cc;
    outline-offset: 2px;
}

img { max-width: 100%; height: auto; }
ul { list-style: none; }

h1, h2, h3, h4 {
    line-height: 1.2;
    color: #111;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

/* ========== Layout ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    max-width: 100%;
    padding: 0 1.5rem;
}

/* ========== Ecosystem Nav (shared across products) ========== */
/* Ecosystem nav — unified VentureEase chrome (5 links, gold sweep, arrows). */
.ecosystem-nav {
    background: #1e293b;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    /* Fixed (not sticky) so it never releases at the bottom of containing blocks. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
}

body { padding-top: var(--ecosystem-nav-h); }

.eco-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.9rem;
    justify-content: safe center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.eco-inner::-webkit-scrollbar { display: none; }

.eco-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    opacity: 0.55;
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
}

.ecosystem-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    transition: color 0.15s, background 0.15s;
}
.ecosystem-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: #fff;
}
.ecosystem-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}
.ecosystem-nav .gold { color: #ffd700; }

/* === Brand wordmark rules (ecosystem standard) ===
   "Ease" is always bold; the prefix word(s) are never bold.
   LaunchEase wordmark: "Launch" = NOT bold + default color; "Ease" = bold + gold.
   Does NOT apply inside .ecosystem-nav (which has its own gold-sweep flow:
   LaunchEase = all-gold in the navbar). */
.gold         { color: #ffd700; font-weight: inherit; }
.brand-prefix { font-weight: 400; }
.brand-ease   { font-weight: 700; }

@media (max-width: 480px) {
    .eco-inner { gap: 0.5rem; padding: 0 0.5rem; }
    .eco-arrow { font-size: 0.75rem; }
    .ecosystem-nav a { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
}

/* ========== Site Header ========== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: var(--ecosystem-nav-h);
    z-index: 250;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { text-decoration: none; }

.logo-text {
    font-size: 1.5rem;
    color: #333;
    font-weight: 300;
}

.logo-text strong {
    font-weight: 700;
    color: #ffd700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: transform 0.2s;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: #555;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #5599cc;
    background: #ffffff;
}

.nav-link.active {
    color: #5599cc;
    font-weight: 600;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: #5599cc;
    color: #fff;
}

.btn-primary:hover {
    background: #3574a3;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #5599cc;
    border-color: #5599cc;
}

.btn-outline:hover {
    background: #5599cc;
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* ========== Hero ========== */
.hero {
    /* v0.13.128: LaunchEase is the deliberate odd-one-out in the ecosystem
       hero sweep — solid #5599cc (the build hub), while siblings use a
       positional dark→blue / blue→dark gradient. Same logic as LaunchEase
       being all-gold in the ecosystem gold sweep. See brand memory
       "Hero Gradients — POSITIONAL SWEEP". Height stays 5rem 0 (StartEase
       reference). */
    background: #5599cc;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Animated hero title: "LaunchEase" → typed → "Launch Your Business with Ease" */
.hero-title-animated {
    text-align: center;
}

.hero-word-ease {
    font-weight: bold;
}

.hero-typed.typing::after {
    content: '|';
    font-weight: normal;
    animation: hero-blink 0.7s step-end infinite;
}

.hero-typed.done::after {
    content: none;
}

@keyframes hero-blink {
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-subtitle em {
    color: #fff;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: #fff;
    color: #1e293b;
}

.hero-cta .btn-primary:hover {
    background: #ffffff;
    color: #1e293b;
}

.hero-cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Page hero (subpages) */
.page-hero {
    /* v0.13.128: match the flattened solid #5599cc hero (see .hero). */
    background: #5599cc;
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-hero .hero-subtitle {
    max-width: 650px;
}

/* ========== Sections ========== */
.content-section {
    padding: 4rem 0;
}

/* v0.13.120: alt-bg was #ffffff (identical to default sections) so adjacent
   bands had zero visual separation. Now a soft on-brand blue tint — every
   page that alternates .content-section / .content-section.alt-bg gets clear
   section distinction for free. */
.alt-bg {
    background: #eef4fb;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ========== Cards ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #5599cc;
    color: #333;
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
    color: #555;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.card-icon {
    color: #5599cc;
    margin-bottom: 1rem;
}

/* ========== Feature List ========== */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background: #5599cc;
    border-radius: 50%;
}

/* ========== Pricing Cards ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: #5599cc;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.15);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #5599cc;
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.pricing-setup {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #5599cc;
    font-weight: 700;
}

/* ========== How It Works (Steps) ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: #5599cc;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; }

.step p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ========== Ecosystem Journey ========== */
.launchpad-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.launchpad-step {
    text-align: center;
    padding: 1.5rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    min-width: 180px;
}

.launchpad-step.current {
    border-color: #5599cc;
    background: #ffffff;
}

.launchpad-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.launchpad-step.current .launchpad-number {
    background: #5599cc;
    color: #fff;
}

.launchpad-step h3 { margin-bottom: 0.25rem; }

.launchpad-step p {
    color: #64748b;
    font-size: 0.9rem;
}

.launchpad-step p em { color: #5599cc; }

.launchpad-arrow {
    font-size: 1.5rem;
    color: #94a3b8;
}

/* ========== CTA Block ========== */
.cta-block {
    text-align: center;
    padding: 3rem;
    background: #ffffff;
    border-radius: 12px;
    margin-top: 2.5rem;
}

.cta-block h3 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* ========== Flash Messages ========== */
.flash-container {
    padding: 0.5rem 0;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #ffffff; color: #1e293b; border: 1px solid #e2e8f0; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ========== Forms ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #5599cc;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-help {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ========== Auth Page ========== */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
}

.auth-toggle a {
    font-weight: 600;
}

/* ========== Badge ========== */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-explorer { background: #e2e8f0; color: #475569; }
.badge-voyager { background: #5599cc; color: #fff; }
.badge-adventurer { background: #2563eb; color: #fff; }
.badge-leader { background: #ffd700; color: #fff; }
.badge-launcher { background: #5599cc; color: #fff; }      /* legacy alias */
.badge-accelerator { background: #7c3aed; color: #fff; }   /* legacy alias */
.badge-enterprise { background: #1e293b; color: #fff; }

/* ========== Dashboard Layout ========== */
.dashboard-body {
    background: #f8fafc;
    /* Always fill viewport so the body bg covers the area below short content
       (no html-default white showing through). */
    min-height: 100vh;
}

.dashboard-wrapper {
    /* Sidebar is fixed (out of flow), so the wrapper is just a positioning
       context for .dashboard-main. No flex needed. */
    min-height: calc(100vh - var(--ecosystem-nav-h));
}

/* Desktop sidebar: pinned via position: fixed below the fixed ecosystem-nav.
   This pulls it out of the document flow so .dashboard-main doesn't stretch
   to match its height (which was creating empty space below short content).
   The mobile drawer (≤1024px) keeps position: fixed too but with translate. */
.sidebar {
    width: 240px;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--ecosystem-nav-h);
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

/* Main content sits to the right of the fixed sidebar via margin-left. */
.dashboard-main {
    margin-left: 240px;
    min-width: 0;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Close button — hidden on desktop, shown on mobile via media query below */
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}
.sidebar-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sidebar-close:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; }

/* Mobile sidebar scrim */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

.sidebar-header .logo-text {
    color: #e2e8f0;
    font-size: 1.25rem;
}

.sidebar-header .logo-text strong {
    color: #ffd700;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul { list-style: none; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}
.sidebar-link:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: -2px;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: #ffd700;
    background: rgba(251, 191, 36, 0.1);
    border-right: 3px solid #ffd700;
}

.sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', sans-serif;
    -webkit-text-stroke: 0;
}

/* Force emoji characters to use text presentation (no color emoji) */
.sidebar-icon {
    font-variant-emoji: text;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #334155;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-user-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-logout {
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.sidebar-toggle .nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #64748b;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: var(--ecosystem-nav-h);
    z-index: 250;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.dashboard-content {
    padding: 2rem;
}

/* Dashboard cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
}

/* ========== Footer ========== */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.footer-brand .logo-text {
    color: #e2e8f0;
    font-size: 1.25rem;
}

.footer-brand .logo-text strong { color: #ffd700; }

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-brand a { color: #ffd700; }

.footer-nav h4 {
    color: #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.4rem; }

.footer-nav a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ========== Responsive: 900px ========== */
@media (max-width: 900px) {
    .card-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .launchpad-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .launchpad-arrow { transform: rotate(90deg); }

    .launchpad-step {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

}

/* ========== Responsive: 768px ========== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-list.open { display: flex; }

    .site-header .container { position: relative; }

    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-title-animated { font-size: 2.25rem; min-height: 2.4em; }
    .hero { padding: 3.5rem 0; }
    .content-section { padding: 3rem 0; }

    .footer-grid { grid-template-columns: 1fr; }

    .dashboard-content { padding: 1rem; }
    .dashboard-header { padding: 1rem; }

    .steps-grid { grid-template-columns: 1fr; }
}

/* ========== Responsive: 1024px (sidebar drawer breakpoint — covers iPad portrait) ========== */
@media (max-width: 1024px) {
    /* Below ~laptop width (≤1024px) the persistent sidebar would steal too much
       horizontal room from .dashboard-main, so it collapses into a slide-in drawer.
       This includes iPad portrait (768/810/820/834) and iPad mini landscape (1024). */
    .sidebar {
        /* Already fixed in the desktop rule — just hide it off-screen by
           default and bump z-index so the drawer overlays content. */
        left: -240px;
        z-index: 200;
        transition: left 0.3s;
    }

    .sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35); }

    /* Drawer mode → main content is full-width (no fixed sidebar to clear). */
    .dashboard-main { margin-left: 0; }

    .sidebar-toggle { display: flex; }

    /* Close button is only useful when the drawer can actually close */
    .sidebar-close { display: inline-flex; align-items: center; justify-content: center; }

    /* Lock body scroll while the drawer is open so background content stays still */
    body.sidebar-open { overflow: hidden; }
}

/* ========== Responsive: 480px ========== */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-title-animated { font-size: 1.5rem; min-height: 2.4em; }
    .hero-subtitle { font-size: 1rem; }
    .hero { padding: 2.5rem 0; }
    .content-section { padding: 2rem 0; }
    .card { padding: 1.5rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
    .cta-block { padding: 2rem 1rem; }
    .auth-card { padding: 1.5rem; }
    .hero-stats { flex-direction: column; gap: 1.25rem; }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== Progress Bar ========== */
.progress-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem 1rem;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    min-width: 800px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.35rem;
}

a.progress-step-link:hover .progress-dot {
    transform: scale(1.2);
}

a.progress-step-link:hover .progress-label {
    color: #5599cc;
}

.progress-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.progress-dot.completed { background: #22c55e; }
.progress-dot.current { background: #5599cc; }
.progress-dot.locked { background: #cbd5e1; }
.progress-dot.informational { background: #94a3b8; }

.progress-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: #475569;
    text-align: center;
    max-width: 90px;
    line-height: 1.3;
}

.progress-deliverable {
    font-size: 0.6rem;
    color: #94a3b8;
    text-align: center;
    max-width: 90px;
    line-height: 1.25;
}

.progress-connector {
    position: absolute;
    top: 0.625rem;
    left: calc(50% + 0.75rem);
    right: calc(-50% + 0.75rem);
    height: 2px;
    background: #cbd5e1;
    z-index: 0;
}

.progress-connector.completed {
    background: #22c55e;
}

/* ========== Step Header ========== */
.step-header {
    margin-bottom: 1.5rem;
}

.step-phase-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* ========== Journey Intake (Typeform-style) ========== */
.launchpad-intake {
    position: relative;
    min-height: 420px;
}

.launchpad-slide {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    /* v0.13.20: clearance under the fixed ecosystem-nav (~40px) + the
       sticky dashboard-header (~60px) so the auto-scroll lands the
       question heading comfortably below the chrome. */
    scroll-margin-top: 120px;
}

.launchpad-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.launchpad-slide.leaving {
    display: block;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.launchpad-slide.entering {
    opacity: 0;
    transform: translateY(16px);
}

.launchpad-slide-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    text-align: center;
}

/* --- Intro Slide --- */
.launchpad-slide--intro .launchpad-slide-inner {
    padding-top: 1rem;
}

.launchpad-step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1e293b;
    background: #ffffff;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.launchpad-slide-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.launchpad-slide-subtitle {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.launchpad-slide-description {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.launchpad-slide-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.launchpad-slide-phase,
.launchpad-slide-deliverable {
    padding: 0.25rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

.launchpad-btn-begin {
    padding: 0.9rem 3rem;
    font-size: 1.1rem;
}

/* --- Question Slides --- */
.launchpad-q-counter {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.launchpad-q-current {
    color: #5599cc;
    font-weight: 700;
    font-size: 1rem;
}

.launchpad-q-sep { margin: 0 0.15rem; }

.launchpad-q-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    text-align: left;
}

.launchpad-q-help {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.5;
}

.launchpad-q-input {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Option Cards (Radio & Checkbox) */
.launchpad-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.launchpad-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.launchpad-option:hover {
    border-color: #5599cc;
    background: #ffffff;
    transform: translateY(-1px);
    /* v0.13.96 Fix #E: was rgba(217, 119, 6, 0.08) — an amber tint left over
       from the pre-v0.13.0 palette. Aligning to the current brand blue. */
    box-shadow: 0 4px 12px rgba(85, 153, 204, 0.12);
}

.launchpad-option.selected {
    border-color: #5599cc;
    background: #ffffff;
    box-shadow: 0 0 0 1px #5599cc;
}

/* v0.13.96 Fix #E (a11y): focus-visible ring on option chips. The label is the
   clickable surface; the underlying radio/checkbox is offscreen for visual
   reasons (lines 1473-1478) so keyboard focus lands on the label. Without an
   explicit focus-visible style, keyboard-only users had ZERO indicator which
   option they were on — WCAG 2.1 AA fail (1.4.11 + 2.4.7). */
.launchpad-option:focus-within,
.launchpad-option:has(input:focus-visible) {
    border-color: #5599cc;
    outline: 2px solid #5599cc;
    outline-offset: 2px;
}

.launchpad-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.launchpad-option-text {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
}

.launchpad-option-check {
    display: none;
    color: #5599cc;
    font-size: 1.1rem;
    font-weight: 700;
}

.launchpad-option.selected .launchpad-option-check {
    display: inline;
}

/* Text Input */
.launchpad-text-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1.05rem;
    font-family: inherit;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.launchpad-text-input:focus {
    outline: none;
    border-color: #5599cc;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

/* Textarea */
.launchpad-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1.05rem;
    font-family: inherit;
    color: #1e293b;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.launchpad-textarea:focus {
    outline: none;
    border-color: #5599cc;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.launchpad-textarea::placeholder,
.launchpad-text-input::placeholder {
    color: #94a3b8;
}

.launchpad-char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

/* Conditional slides hidden until JS reveals them */
.launchpad-slide--conditional-hidden {
    display: none !important;
}

/* Select */
.launchpad-select-wrap {
    position: relative;
}

.launchpad-select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1.05rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.launchpad-select:focus {
    outline: none;
    border-color: #5599cc;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

/* Navigation Buttons */
.launchpad-q-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.launchpad-q-nav .btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
}

/* Error */
.launchpad-q-error {
    color: #dc2626;
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Review Slide --- */
.launchpad-slide--review .launchpad-slide-inner {
    max-width: 700px;
    text-align: center;
}

.launchpad-review-summary {
    margin: 2rem 0;
    text-align: left;
}

.launchpad-review-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 0.375rem;
}

.launchpad-review-item:hover {
    background: #ffffff;
}

.launchpad-review-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.launchpad-review-value {
    font-size: 0.95rem;
    color: #1e293b;
}

/* --- Completed Card --- */
.launchpad-completed-card {
    max-width: 500px;
    margin: 3rem auto;
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.launchpad-completed-icon {
    width: 56px;
    height: 56px;
    background: #22c55e;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.launchpad-completed-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.launchpad-completed-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.launchpad-completed-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Generating Overlay --- */
.launchpad-generating[hidden],
.launchpad-thinking[hidden] {
    display: none !important;
}

.launchpad-generating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.launchpad-generating-inner {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.launchpad-generating-inner h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.25rem;
}

.launchpad-generating-inner p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Spinner */
.launchpad-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f1f5f9;
    border-top-color: #5599cc;
    border-radius: 50%;
    animation: launchpad-spin 0.8s linear infinite;
    margin: 0 auto;
}

.launchpad-spinner--sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

@keyframes launchpad-spin {
    to { transform: rotate(360deg); }
}

/* --- Thinking indicator --- */
.launchpad-thinking {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.launchpad-thinking-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1e293b;
    color: #f1f5f9;
    padding: 0.65rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --- Clarifiers (inline) --- */
.launchpad-clarifiers {
    margin-top: 1rem;
}

.launchpad-clarifier {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 0.75rem;
}

.launchpad-clarifier-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Write-in textbox shown when user selects "Other (write in)". Hidden by
   default via the [hidden] attribute. Belt-and-suspenders override in case
   any future .launchpad-text-input rule sets a non-default display. */
.launchpad-clarifier-other {
    margin-top: 0.5rem;
}
.launchpad-clarifier-other[hidden] {
    display: none !important;
}

/* v0.12.0 dynamic intake — progress bar + step header + error banner */
.launchpad-step-header {
    margin-bottom: 1.5rem;
}
.launchpad-progress {
    margin: 1rem 0 1.5rem;
}
.launchpad-progress-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.launchpad-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.launchpad-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #5599cc, #ffd700);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.launchpad-error-banner {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}
.launchpad-slides {
    position: relative;
}
/* v0.12.8: dynamic-engine slides are visible by default. The legacy rule
   .launchpad-slide { display: none } at line ~1293 was hiding them — that
   rule existed because the legacy Typeform engine added .active to whichever
   slide was current. The v0.12.0 dynamic engine renders slides sequentially
   instead of toggling active/inactive, so they need to be visible from render. */
.launchpad-slides .launchpad-slide-dynamic,
.launchpad-slides .launchpad-slide-seed,
.launchpad-slides .launchpad-slide-ready {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 1.5rem;
}
.launchpad-intake.launchpad-loading {
    pointer-events: none;
    opacity: 0.85;
}
.launchpad-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
    /* v0.13.108: gap between Back + Continue. Back is left-aligned in the
       row, Continue is right-aligned (default justify-content: flex-end +
       margin-left:auto on Continue would also work, but flex-gap keeps both
       buttons in the same right-aligned cluster). */
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}
/* v0.13.108/v0.13.109: Back button + edit-mode visual cues.
   The Back button is .btn .btn-outline .launchpad-back-btn in v0.13.109+.
   (v0.13.108 used .btn-ghost which doesn't exist — the button rendered
   invisibly. Standalone styles here ensure the button is visible even if
   .btn-outline ever changes.) */
.launchpad-back-btn {
    /* Pushed to the left edge so Back sits opposite the primary action.
       margin-right: auto eats the flex gap and makes Continue stay flush right. */
    margin-right: auto;
    /* Belt-and-suspenders visual styling so the button NEVER appears invisible
       regardless of the base .btn-* class. */
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.launchpad-back-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}
.launchpad-back-btn:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}
.launchpad-edit-banner {
    margin: 0.5rem 0 1rem;
    padding: 0.65rem 0.85rem;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    color: #78350f;
    font-size: 0.9rem;
}
.launchpad-edit-banner[hidden] {
    display: none !important;
}
.launchpad-slide-editing {
    /* Subtle ring so the user notices they're editing a prior answer. */
    box-shadow: 0 0 0 2px #fbbf24 inset, 0 6px 16px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}
/* v0.13.112: restored-history slides — visually muted "completed" appearance
   so the user understands these are read-only history, not the live next
   question. Becomes visually active when entering edit mode (the
   .launchpad-slide-editing class above takes precedence). */
.launchpad-slide-restored:not(.launchpad-slide-editing) {
    opacity: 0.78;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem 0;
}
.launchpad-slide-restored:not(.launchpad-slide-editing) .launchpad-q-counter::after {
    content: ' — answered';
    color: #64748b;
    font-weight: 400;
}
.launchpad-slide-restored:not(.launchpad-slide-editing) .launchpad-textarea {
    background: #ffffff;
    color: #334155;
    border-color: #e2e8f0;
}
.launchpad-q-counter {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* v0.12.4 — Inline View / Edit Answers section (replaces the v0.12.3 modal).
   Lives below the .launchpad-completed-card on /launchpad?step=N pages for
   completed steps. Reuses the existing .launchpad-review-summary / -item /
   -label / -value classes from the legacy review surface — only the
   container, header, edit-form, and footer styling are new here. */
.step-review[hidden] { display: none !important; }
.step-review {
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}
.step-review-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.step-review-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
}
.step-review-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 0.25rem;
}
.step-review-close:hover { color: #1e293b; }
.step-review-loading {
    text-align: center;
    color: #94a3b8;
    padding: 1.5rem 0;
}

/* Edit-in-place — each .launchpad-review-item gets an Edit pill when shown
   in this surface, and switches to an inline editor when clicked. */
.step-review .launchpad-review-item {
    position: relative;
    cursor: default;  /* overrides the row-click hover from the legacy surface */
}
.step-review-edit-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 0.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 0.5rem;
    line-height: 1;
}
.step-review-edit-btn:hover { background: #f3f4f6; }
.step-review-edit-form {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 0.5rem;
}
.step-review-edit-form textarea,
.step-review-edit-form input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.step-review-edit-actions { display: flex; gap: 0.5rem; }

.step-review-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.step-review-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}
.step-review-finalized {
    background: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #1e293b;
    text-align: left;
    line-height: 1.5;
    font-size: 0.95rem;
}
.step-review-finalized a {
    color: #3574a3;
    font-weight: 600;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .launchpad-slide-inner {
        padding: 2rem 1rem;
    }

    .launchpad-slide-title {
        font-size: 1.75rem;
    }

    .launchpad-q-label {
        font-size: 1.15rem;
    }

    .launchpad-slide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .launchpad-q-nav {
        flex-direction: column;
    }

    .launchpad-q-nav .btn {
        width: 100%;
    }
}

/* ========== ETI Banner ========== */
.eti-banner {
    background: linear-gradient(135deg, #5599cc 0%, #5599cc 100%);
    color: #fff;
    text-align: center;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.eti-banner h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.eti-banner p {
    color: #fff;
    margin-bottom: 1rem;
}

.eti-banner .btn {
    background: #fff;
    color: #1e293b;
}

.eti-banner .btn:hover {
    background: #ffffff;
}

/* ========== Step Content ========== */
.step-content-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.step-content-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

.roadmap-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    padding: 1rem 0 0.75rem;
    margin-bottom: 0.5rem;
}

.roadmap-narrative {
    border-left: 4px solid #5599cc;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #555;
    line-height: 1.7;
}

.roadmap-details {
    margin-top: 1rem;
}

.roadmap-discipline {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    padding-left: 0.75rem;
    border-left: 3px solid #5599cc;
    color: #333;
}

.roadmap-paragraph {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.roadmap-tasks {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.roadmap-tasks li {
    color: #555;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.principle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.principle-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.principle-card h4 {
    color: #5599cc;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.principle-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== Copilot Chat ========== */
.agent-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative; /* v0.13.6: anchor for drop overlay */
}

.agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-step-badge {
    background: #5599cc;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.agent-working-on {
    font-size: 0.85rem;
    color: #64748b;
}

.agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agent-welcome {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    color: #1e293b;
}

.agent-welcome h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.agent-message {
    max-width: 85%;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.agent-message.user {
    align-self: flex-end;
    background: #5599cc;
    color: #fff;
    border-bottom-right-radius: 0.15rem;
}

.agent-message.assistant {
    align-self: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 0.15rem;
    color: #333;
}

.agent-message.assistant h1,
.agent-message.assistant h2,
.agent-message.assistant h3,
.agent-message.assistant h4 {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    color: #111;
}

.agent-message.assistant h1 { font-size: 1.25rem; }
.agent-message.assistant h2 { font-size: 1.15rem; }
.agent-message.assistant h3 { font-size: 1.05rem; }
.agent-message.assistant h4 { font-size: 1rem; }

.agent-message.assistant ul,
.agent-message.assistant ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.agent-message.assistant ul { list-style: disc; }
.agent-message.assistant ol { list-style: decimal; }

.agent-message.assistant li {
    margin-bottom: 0.25rem;
}

.agent-message.assistant p {
    margin-bottom: 0.5rem;
}

.agent-message.assistant p:last-child {
    margin-bottom: 0;
}

.agent-loading {
    font-style: italic;
    color: #94a3b8;
    padding: 0.5rem;
    align-self: flex-start;
}

.agent-input-area {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.agent-input-area textarea {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.5;
}

.agent-input-area textarea:focus {
    outline: none;
    border-color: #5599cc;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.agent-input-area .btn {
    flex-shrink: 0;
}

/* ========== LaunchControls Folder Tabs ========== */
.folder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.folder-tab {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    position: relative;
    margin-bottom: -1px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.folder-tab:hover {
    background: #f9fafb;
    color: #111827;
}

.folder-tab.active {
    background: #ffffff;
    color: #5599cc;
    border-color: #d1d5db;
    border-bottom-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.03);
}

.folder-content {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    min-height: 300px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ========== Deliverable Cards ========== */
.deliverables-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deliverable-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.deliverable-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
}

.deliverable-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.35rem;
}

.deliverable-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.deliverable-content {
    padding: 0 2rem 1.5rem;
}

.deliverable-body {
    line-height: 1.8;
    color: #334155;
    font-size: 1rem;
}

.deliverable-body h1,
.deliverable-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f1f5f9;
}

.deliverable-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.25rem 0 0.5rem;
}

.deliverable-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    margin: 1rem 0 0.4rem;
}

.deliverable-body p {
    margin-bottom: 0.75rem;
}

.deliverable-body ul,
.deliverable-body ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.deliverable-body ul { list-style: disc; }
.deliverable-body ol { list-style: decimal; }

.deliverable-body li {
    margin-bottom: 0.35rem;
}

.deliverable-body strong {
    color: #1e293b;
}

.deliverable-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.deliverable-versions[hidden] {
    display: none;
}

.deliverable-versions {
    padding: 1.25rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* ========== LaunchAgent Chat ========== */
.agent-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 450px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.agent-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: #5599cc;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.agent-working-on {
    font-size: 0.9rem;
    color: #64748b;
}

.agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agent-welcome {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 500px;
    margin: auto;
}

.agent-welcome-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.agent-welcome h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.agent-welcome p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.agent-welcome-hint {
    color: #94a3b8;
    font-style: italic;
    margin-top: 1rem;
}

.agent-message-user,
.agent-message-ai {
    max-width: 80%;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.agent-message-user {
    align-self: flex-end;
    background: #5599cc;
    color: #fff;
    border-bottom-right-radius: 0.2rem;
}
.agent-message-text { white-space: pre-wrap; word-wrap: break-word; }
.agent-message-attachments {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* v0.13.6 (Phase 3) — chat composer attachment chips, paperclip, drop overlay */
.agent-attachments-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.4rem 0;
    padding: 0.4rem 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}
/* v0.13.32: own-class [hidden] override — `.agent-attachments-bar { display: flex }`
   has equal specificity to the UA `[hidden] { display: none }` rule and comes
   later in the cascade, so HTML5 `hidden=true` was being silently overridden. */
.agent-attachments-bar[hidden] { display: none !important; }
.agent-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.45rem 0.2rem 0.55rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #0f172a;
    line-height: 1.2;
    max-width: 100%;
}
.agent-attachment-chip-uploading { opacity: 0.6; font-style: italic; }

/* v0.13.96 Fix #D: errored upload chips — red-tinted background + border so
   the user sees the failure inline rather than dismissing a native alert and
   wondering whether the upload finished. The X-to-remove button is still
   rendered (from renderAttachmentsBar) so the user can clear the failure. */
.agent-attachment-chip-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.agent-attachment-error-text {
    font-size: 0.85em;
    color: #b91c1c;
}
.agent-attachment-chip-static { background: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.35); color: #0f172a; }
.agent-message-user .agent-attachment-chip-static { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); color: #ffffff; }
.agent-attachment-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.agent-attachment-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.1rem;
}
.agent-attachment-remove:hover { color: #b91c1c; }

.agent-attach-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.4rem;
    margin-right: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.agent-attach-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.agent-attach-btn svg { display: block; }

/* v0.13.8 — Stop button (visible only while agent run in flight) */
.agent-stop-btn {
    background: #fff;
    border: 1px solid #ef4444;
    border-radius: 0.5rem;
    color: #b91c1c;
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    margin-right: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}
.agent-stop-btn:hover { background: #fee2e2; }
.agent-stop-btn:disabled { opacity: 0.6; cursor: wait; }

.agent-drop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(85, 153, 204, 0.12);
    border: 2px dashed #5599cc;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
}
/* v0.13.32: same [hidden] override — without this the dashed overlay
   covers the entire chat ALL THE TIME, even when no file is being dragged. */
.agent-drop-overlay[hidden] { display: none !important; }
.agent-drop-card {
    background: #ffffff;
    border: 1px solid #5599cc;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.agent-drop-card strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.agent-drop-card div { font-size: 0.85rem; color: #64748b; }


.agent-message-ai {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 0.2rem;
}

.agent-message-ai h1,
.agent-message-ai h2,
.agent-message-ai h3 {
    margin: 0.75rem 0 0.4rem;
}

.agent-message-ai h1:first-child,
.agent-message-ai h2:first-child,
.agent-message-ai h3:first-child {
    margin-top: 0;
}

.agent-message-ai ul,
.agent-message-ai ol {
    list-style: revert;
    padding-left: 1.5rem;
    margin: 0.4rem 0;
}

.agent-message-ai p { margin: 0.4rem 0; }
.agent-message-ai p:first-child { margin-top: 0; }
.agent-message-ai p:last-child { margin-bottom: 0; }

.agent-loading {
    align-self: flex-start;
    color: #94a3b8;
    font-style: italic;
    padding: 0.75rem;
}

.agent-input-form {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    background: #f8fafc;
}

.agent-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.agent-input-wrapper textarea {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    line-height: 1.5;
    transition: border-color 0.2s;
    background: #fff;
}

.agent-input-wrapper textarea:focus {
    outline: none;
    border-color: #5599cc;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.agent-input-wrapper textarea::placeholder {
    color: #94a3b8;
}

.agent-send {
    padding: 0.85rem 1.5rem;
    flex-shrink: 0;
}

/* v0.13.53 — Opus/Sonnet composer toggle. Lives below the input row so it
   doesn't compete with the textarea + Send button. Sonnet (default) shows
   a slate dot; Opus shows the brand gold dot. Disabled state when monthly
   Opus quota is exhausted. */
.agent-model-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.agent-model-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.agent-model-toggle:hover:not([disabled]) {
    border-color: #94a3b8;
    background: #f8fafc;
}
.agent-model-toggle:focus-visible {
    outline: 2px solid #5599cc;
    outline-offset: 2px;
}
.agent-model-toggle[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}
.agent-model-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    transition: background-color 0.15s, box-shadow 0.15s;
}
.agent-model-toggle.is-opus {
    border-color: #ffd700;
    color: #1e293b;
    background: #fffbeb;
}
.agent-model-toggle.is-opus .agent-model-dot {
    background: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
}
.agent-model-name {
    font-weight: 700;
}
.agent-model-hint {
    color: #64748b;
    font-weight: 400;
}
.agent-model-toggle.is-opus .agent-model-hint {
    color: #92400e;
}
.agent-model-meta {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .agent-container { height: calc(100vh - 160px); }
    .agent-welcome { padding: 2rem 1rem; }
    .agent-message-user,
    .agent-message-ai { max-width: 92%; }
    .deliverable-header { padding: 1rem 1.25rem 0.75rem; }
    .deliverable-content { padding: 0 1.25rem 1rem; }
    .deliverable-footer { padding: 0.75rem 1.25rem; }
}

/* ========== Deliverables Next Step CTA ========== */
.deliverables-next-step {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 1.5rem;
    background: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 0.75rem;
}

.deliverables-next-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.deliverables-next-step p {
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* ========== Paywall Gate ========== */
.paywall-gate {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.paywall-gate h2 {
    margin-bottom: 1rem;
}

.paywall-gate p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.paywall-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.paywall-stat {
    text-align: center;
}

.paywall-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #5599cc;
    display: block;
}

.paywall-stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

.paywall-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.paywall-features li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: #555;
}

.paywall-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

.paywall-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 1rem;
}

/* ========== Info Step ========== */
.info-step-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e40af;
}

.info-step-banner h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.hireease-cta-block {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #fff;
    text-align: center;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.hireease-cta-block h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.hireease-cta-block p {
    color: #ccfbf1;
    margin-bottom: 1rem;
}

.hireease-cta-block .btn {
    background: #fff;
    color: #0d9488;
}

.hireease-cta-block .btn:hover {
    background: #ccfbf1;
}

.ibisworld-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    margin: 1rem 0;
}

/* ========== Responsive: 900px (new components) ========== */
@media (max-width: 900px) {
    .progress-steps {
        min-width: 600px;
    }

    .agent-container {
        height: calc(100vh - 160px);
    }
}

/* ========== Responsive: 480px (new components) ========== */
@media (max-width: 480px) {
    .step-form-actions {
        flex-direction: column;
    }

    .step-form-actions .btn {
        width: 100%;
    }

    .agent-input-area {
        flex-direction: column;
    }

    .agent-input-area .btn {
        width: 100%;
    }

    .agent-message {
        max-width: 95%;
    }

    .paywall-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========== Admin Dashboard ========== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.admin-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5599cc;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.admin-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    /* v0.13.33: was `overflow: hidden` which clipped admin tables on
       narrow viewports (iPad portrait, ~1024px). Right-side columns
       (Actions, Joined, AI Sessions, Impersonate buttons) silently
       disappeared. `overflow-x: auto` lets tables scroll horizontally
       while preserving the rounded corners. */
    overflow-x: auto;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.admin-panel-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.admin-table tr:hover td {
    background: #ffffff;
}

.admin-meta {
    color: #94a3b8;
    font-size: 0.8rem;
}

.admin-inline-select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
}

.admin-inline-select:focus {
    outline: none;
    border-color: #5599cc;
}

.admin-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 100px;
}

.admin-input:focus {
    outline: none;
    border-color: #5599cc;
}

.admin-site-list {
    list-style: none;
    padding: 0;
}

.admin-site-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-site-list li:last-child {
    border-bottom: none;
}

.badge-role-admin {
    background: #3b82f6;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-role-dev {
    background: #dc2626;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.impersonation-banner {
    background: #dc2626;
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.impersonation-banner .btn {
    background: #fff;
    color: #dc2626;
    border-color: #fff;
}

.admin-settings-form .admin-table td {
    vertical-align: middle;
}

@media (max-width: 1024px) {
    /* v0.13.33: admin tables hint to the browser that they're scrollable */
    .admin-panel { -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 720px; }
    /* Users-page table has 9 columns — give it more elbow room */
    .admin-table.admin-table-wide { min-width: 900px; }
}

@media (max-width: 768px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 0.5rem 0.65rem; }
}

/* ========== Session Timeout Modal ========== */
.timeout-modal[hidden] { display: none !important; }

.timeout-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.timeout-modal-inner {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.timeout-modal-inner h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #dc2626;
}

.timeout-modal-inner p {
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.timeout-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ---- Journey Switcher ---- */

.launchpad-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.launchpad-switcher-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.launchpad-switcher-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.launchpad-switcher-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.launchpad-switcher-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
}

.launchpad-switcher-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.launchpad-limit-note {
    font-size: 0.8125rem;
    color: #1e293b;
    font-style: italic;
}

@media (max-width: 1024px) {
    /* Below ~laptop width the switcher's left half (label + name + dropdown)
       and right half (4 action buttons) can't fit on one row — stack them. */
    .launchpad-switcher {
        flex-direction: column;
        align-items: stretch;
    }
    .launchpad-switcher-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* ---- Dashboard Journey Cards ---- */

.launchpads-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.launchpad-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.launchpad-card--active {
    border-left: 4px solid #5599cc;
}

.launchpad-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.launchpad-card-header h4 {
    margin: 0;
    font-size: 1rem;
}

.launchpad-card-meta {
    font-size: 0.8125rem;
    color: #64748b;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.badge-explorer_plus {
    background: #ffd700;
    color: #1e293b;
}

/* ========== Roadmap Accordion (ETI pattern) ========== */
.roadmap-accordion {
    display: flex;
    gap: 0;
    min-height: 320px;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.roadmap-acc-bar {
    flex: 0 0 2.5rem;
    position: relative;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    transition: flex 0.4s ease;
    overflow: hidden;
    background: #fff;
}

.roadmap-acc-bar:last-child {
    border-right: none;
}

.roadmap-acc-bar:hover {
    opacity: 0.92;
}

.roadmap-acc-bar.active {
    flex: 1 1 auto;
}

.roadmap-acc-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
    user-select: none;
}

.roadmap-acc-content {
    margin-left: 2.5rem;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: 500px;
    width: calc(100% - 2.5rem);
    min-width: 280px;
    animation: roadmap-fade-in 0.4s ease;
}

@keyframes roadmap-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.roadmap-acc-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.roadmap-acc-content ul {
    padding-left: 1.25rem;
    list-style: disc;
    margin: 0.5rem 0 1rem;
}

.roadmap-acc-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #475569;
    font-size: 0.95rem;
}

.roadmap-acc-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.25rem 0 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.roadmap-acc-subtitle:first-child {
    margin-top: 0;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .roadmap-accordion {
        flex-direction: column;
        min-height: auto;
    }

    .roadmap-acc-bar {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .roadmap-acc-bar:last-child {
        border-bottom: none;
    }

    .roadmap-acc-label {
        position: relative;
        width: 100%;
        height: 2.75rem;
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 1rem;
        justify-content: flex-start;
    }

    .roadmap-acc-content {
        margin-left: 0;
        width: 100%;
        min-width: auto;
        max-height: none;
    }

    .roadmap-acc-bar.active {
        flex: 0 0 auto;
    }
}

/* ========== Site Built Banner ========== */
.site-built-banner {
    text-align: center;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}
/* v0.13.2 — celebration variant fires only on the just-built turn */
.site-built-banner-fresh {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
}
/* v0.13.22 — building/failed variants for the cron-driven elevation flow */
.site-built-banner-building {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border-color: #facc15;
}
.site-built-banner-failed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #f87171;
}
.site-build-progress-bar {
    margin: 1rem auto 0.5rem;
    max-width: 320px;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.site-build-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    border-radius: 999px;
    transition: width 0.6s ease;
}
.site-built-domain {
    display: inline-block;
    margin: 0.25rem 0 1rem;
    padding: 0.4rem 0.85rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95rem;
    color: #0f172a;
    letter-spacing: 0.01em;
}
.launchpad-progress-link {
    color: #2563eb;
    text-decoration: underline;
}
.launchpad-progress-link:hover { color: #1d4ed8; }

.site-built-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.site-built-banner h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.site-built-banner-fresh h3 { color: #065f46; font-size: 1.5rem; margin-bottom: 0.75rem; }

.site-built-banner p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.site-built-banner-fresh p { color: #047857; margin-bottom: 1.25rem; }

.site-built-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem 0.75rem;
}

.site-built-note {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ========== LaunchAgent Working Indicator ========== */
.agent-working {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.agent-working-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #5599cc;
    border-radius: 50%;
    animation: agent-spin 0.7s linear infinite;
}

@keyframes agent-spin {
    to { transform: rotate(360deg); }
}

.agent-working-text {
    font-style: italic;
}

/* ========== LaunchAgent Activity Log ========== */
.agent-activity {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    max-width: 85%;
    align-self: flex-start;
}

.agent-activity-header {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}

.agent-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #64748b;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    max-height: 150px;
    overflow-y: auto;
}

.agent-activity-list li {
    padding: 0.15rem 0;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-activity-list li:last-child {
    border-bottom: none;
}

.agent-activity-applied {
    margin-top: 0.5rem;
    color: #059669;
    font-weight: 600;
}

.agent-activity-pending {
    margin-top: 0.25rem;
    color: #5599cc;
    font-weight: 600;
}

/* ========== Agent Approval Queue ========== */
.approval-banner {
    background: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.approval-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #1e293b;
}

.approval-banner-actions {
    display: flex;
    gap: 0.5rem;
}

.approval-list {
    border-top: 1px solid #ffd700;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid #ffffff;
}

.approval-item:last-child {
    border-bottom: none;
}

.approval-item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.approval-action-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    background: #5599cc;
    color: #fff;
}

.approval-path {
    font-size: 0.8rem;
    color: #475569;
}

.approval-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.approval-item-actions {
    display: flex;
    gap: 0.35rem;
}
.approval-banner-close {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 0.4rem;
    margin-left: 0.25rem;
    opacity: 0.6;
}
.approval-banner-close:hover { opacity: 1; }

/* === Onboarding modal === */
.onboarding-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}
.onboarding-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}
.onboarding-modal-card h2 { margin: 0 0 0.5rem; color: #1e293b; }
.onboarding-modal-lead { color: #64748b; margin: 0 0 1.5rem; font-size: 0.95rem; }
.onboarding-steps {
    margin: 0 0 1.75rem;
    padding-left: 1.5rem;
    color: #334155;
    line-height: 1.6;
}
.onboarding-steps li { margin-bottom: 0.85rem; }
.onboarding-steps strong { color: #5599cc; }
.onboarding-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* === Agent capabilities (inside agent-welcome) === */
.agent-capabilities {
    margin-top: 1.25rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
.agent-capabilities summary {
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
    list-style-position: inside;
}
.agent-capabilities ul { margin: 0.75rem 0 0.5rem; padding-left: 1.25rem; color: #334155; }
.agent-capabilities li { margin-bottom: 0.4rem; line-height: 1.5; font-size: 0.92rem; }
.agent-capabilities strong { color: #1e293b; }
.agent-capabilities-foot {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* === Billing tier grid === */
.billing-tier-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0;
}
.billing-tier-grid .btn { text-align: left; }

/* v0.13.0 — multi-line tier buttons with headline + detail */
.btn-checkout-headline { display: block; font-weight: 600; font-size: 0.98rem; }
.billing-tier-detail { display: block; margin-top: 0.2rem; font-weight: 400; font-size: 0.82rem; opacity: 0.85; }
.btn-loading { position: relative; cursor: wait; opacity: 0.55; }
.btn-loading::after {
    content: '…';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
}

/* v0.13.53 — pricing layout (horizontal rows for Free + Enterprise, vertical
   3-col grid for Voyager/Adventurer/Leader). Replaces the v0.13.0 5-col grid
   that squeezed the middle three on desktop. The dup "Most Popular" badge
   from .pricing-badge was removed alongside this — the .featured::before pill
   (line ~492) is now the single source of the marker. */
.pricing-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
}
.pricing-tagline {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
}
.pricing-grid-3 .pricing-card { position: relative; }
.pricing-fineprint { line-height: 1.6; }

.pricing-row-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 2fr minmax(180px, auto);
    gap: 2rem;
    align-items: center;
    margin: 0 0 2rem 0;
    position: relative;
}
.pricing-row-card-elevated {
    margin-top: 2rem;
    border-color: #5599cc;
    box-shadow: 0 4px 20px rgba(85, 153, 204, 0.10);
}
.pricing-row-meta {
    text-align: left;
}
.pricing-row-meta .pricing-name {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.pricing-row-meta .pricing-price {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.pricing-row-meta .pricing-tagline {
    text-align: left;
    margin-bottom: 0;
}
.pricing-row-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pricing-row-features li {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.45;
    padding-left: 1.1rem;
    position: relative;
}
.pricing-row-features li::before {
    content: '\2713';
    color: #5599cc;
    position: absolute;
    left: 0;
    font-weight: 700;
}
.pricing-row-cta {
    min-width: 180px;
}

@media (max-width: 1180px) {
    .pricing-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pricing-row-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: left;
    }
    .pricing-row-features {
        grid-template-columns: 1fr 1fr;
    }
    .pricing-row-cta { min-width: 0; }
    .pricing-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .pricing-row-features { grid-template-columns: 1fr; }
    .pricing-grid-3 { grid-template-columns: 1fr; }
}

/* === Agent thinking feed === */
.agent-thoughts {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: block;
    width: 100%;
}
.agent-thoughts li {
    color: #475569;
    font-size: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding-left: 1.1rem;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: agent-thought-in 0.25s ease-out;
}
.agent-thoughts li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #5599cc;
    font-weight: 700;
}
.agent-thoughts li:first-child { opacity: 0.4; }
.agent-thoughts li:nth-child(2) { opacity: 0.6; }
.agent-thoughts li:nth-child(3) { opacity: 0.8; }

/* === Inline approval cards (replace top banner) === */
.approval-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin: 0.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.approval-card--approved { border-left-color: #16a34a; background: #f0fdf4; }
.approval-card--rejected { border-left-color: #94a3b8; background: #f8fafc; opacity: 0.85; }
.approval-card--stale    { border-left-color: #94a3b8; background: #f1f5f9; opacity: 0.75; }

.approval-card-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.approval-card-head .approval-action-badge {
    background: #1e293b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.approval-card-head .approval-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    color: #0f172a;
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}
.approval-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}
.approval-status--pending  { background: #ffffff; color: #1e293b; }
.approval-status--approved { background: #dcfce7; color: #166534; }
.approval-status--rejected { background: #e2e8f0; color: #475569; }
.approval-status--stale    { background: #e2e8f0; color: #475569; cursor: help; }

.approval-card-actions { display: flex; gap: 0.4rem; }

.approve-all-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    margin: 0 0 0.5rem;
    background: #ffffff;
    border: 1px solid #ffd700;
    border-radius: 8px;
}
.approve-all-bar[hidden] { display: none; }
.approve-all-bar-label { color: #1e293b; font-size: 0.9rem; font-weight: 600; }

.agent-activity-warn {
    background: #ffffff;
    border: 1px solid #ffd700;
    border-left: 4px solid #5599cc;
    color: #1e293b;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin: 0.4rem 0;
}

/* === Step content + roadmap consistency (v0.11.28) ====================== */
/* Apply ETI's Arial typography to the entire step-content surface so the
 * roadmap accordion, the heading + narrative above it, and any fallback
 * static content (no-subtype intros, principle cards) all read as one
 * coherent block. */
.step-content,
.step-content *,
.disciplines-container,
.disciplines-container * {
    font-family: Arial, sans-serif;
}
.step-content {
    color: #333;
    line-height: 1.55;
}
.step-content h3,
.roadmap-title {
    color: #5599cc;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.25rem 0 0.6rem;
    letter-spacing: -0.005em;
}
.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0 0.4rem;
}
.step-content p,
.roadmap-narrative p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0.5rem 0 0.75rem;
    color: #333;
}
.roadmap-narrative {
    margin-bottom: 0.5rem;
}

/* Principle cards (step-1-shift fallback) — match the discipline content feel */
.principle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}
.principle-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #5599cc;
    border-radius: 6px;
    padding: 0.85rem 1rem;
}
.principle-card h4 { margin-top: 0; }
.principle-card p { margin-bottom: 0; font-size: 0.9rem; }

/* Industry-reports placeholder (step-2-unfold fallback) — keep visually
 * consistent with the disciplines panel feel. */
.ibisworld-placeholder {
    background: #f9fbe7;
    border: 1px solid #cddc39;
    border-left: 3px solid #cddc39;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin: 1rem 0;
}
.ibisworld-placeholder h4 { margin-top: 0; color: #555; }
.ibisworld-placeholder p { margin-bottom: 0; font-size: 0.9rem; color: #666; }

.disciplines-container {
    display: flex;
    gap: 0;
    margin: 1.5rem 0;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    /* When all bars are collapsed, the container shrinks to row height */
}
/* When no .active inside, stop reserving the 400px min-height */
.disciplines-container:not(:has(.discipline-bar.active)) {
    min-height: auto;
}
.discipline-bar {
    flex: 0 0 2.5rem;
    position: relative;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: flex 0.4s ease;
    overflow: hidden;
    background: #fff;
    transform: translate3d(0,0,0);
}
.discipline-bar:hover { opacity: 0.9; }
.discipline-bar.active { flex: 1 1 auto; }
.discipline-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
}
.discipline-content {
    margin-left: 2.5rem;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    max-height: 600px;
    width: calc(100% - 2.5rem);
    min-width: 300px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.55;
    animation: roadmap-fade-in 0.5s ease-in-out;
}
.discipline-content p { font-size: 0.92rem; line-height: 1.55; margin: 0.4rem 0; }
.discipline-content ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; }
.discipline-content li { font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.3rem; }
@keyframes roadmap-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.discipline-ol { background-color: #FFF3E0; }
.discipline-ol .discipline-label { background-color: #FF9800; color: #fff; }
.discipline-mr { background-color: #F3E5F5; }
.discipline-mr .discipline-label { background-color: #9C27B0; color: #fff; }
.discipline-ps { background-color: #E8F5E9; }
.discipline-ps .discipline-label { background-color: #4CAF50; color: #fff; }
.discipline-la { background-color: #F9FBE7; }
.discipline-la .discipline-label { background-color: #CDDC39; color: #333; }
/* Explicit font-size on h6 elements inside the roadmap — browser default
 * for h6 is 0.67em which renders ~10px on the mobile-scaled body. Force
 * a sensible size that matches the rest of the roadmap copy. ETI uses
 * weight 600 — match it for consistency. */
.discipline-bar h6,
.task-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 1rem 0 0.4rem;
    line-height: 1.4;
}
.task-header {
    cursor: pointer;
    user-select: none;
}
.task-header:hover { opacity: 0.8; }
.task-header .toggle-icon {
    display: inline-block;
    margin-right: 0.4rem;
    font-size: 0.7rem;
    color: #555;
    transition: transform 0.15s ease;
}
.task-content { margin-left: 1.25rem; }
.task-content p {
    margin: 0.4rem 0;
    font-size: 0.92rem;
    line-height: 1.55;
}
.task-content ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; }
.task-content li {
    margin-bottom: 0.3rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
/* Any inline H4/H5 inside task content (legacy markup support) */
.task-content h4, .task-content h5,
.discipline-content h4, .discipline-content h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #444;
    margin: 0.6rem 0 0.3rem;
}

/* Mobile: stack vertically (matches ETI behavior) */
@media (max-width: 768px) {
    .disciplines-container { flex-direction: column; min-height: auto; }
    .discipline-bar { flex: 0 0 auto; border-bottom: 1px solid #ddd; border-right: 1px solid #ddd; }
    .discipline-bar.active { flex: 0 0 auto; }
    .discipline-label {
        position: relative;
        width: 100%;
        height: 2.75rem;
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 1rem;
        justify-content: flex-start;
    }
    .discipline-content { margin-left: 0; width: 100%; min-width: auto; max-height: none; }
}

/* === Mobile responsiveness pass (v0.11.22) ============================== */

/* Inline-style replacements (auth signup, dashboard CTA grid) */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.dashboard-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 600px) {
    .form-grid-2,
    .dashboard-cta-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing table: at narrow widths, font shrinks AND parent gets horizontal-
 * scroll affordance via existing .pricing-comparison-wrap. Belt and suspenders. */
@media (max-width: 480px) {
    .pricing-table { font-size: 0.8rem; min-width: 460px; }
    .pricing-table th, .pricing-table td { padding: 0.5rem 0.5rem; }
}

/* Verify banner — at very narrow widths the 220px min-width forced overflow. */
@media (max-width: 380px) {
    .verify-banner-text { min-width: 0; }
    .verify-banner { gap: 0.5rem; padding: 0.65rem 0.75rem; font-size: 0.85rem; }
    .verify-banner-actions .btn { font-size: 0.75rem; padding: 0.3rem 0.55rem; }
}

/* Analytics funnel — collapse 3-col grid at 480 instead of 600 so 480-600
 * tablets/wide phones get the readable single-column layout too. */
@media (max-width: 480px) {
    .analytics-funnel-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .analytics-funnel-value { text-align: left; }
    .analytics-funnel-label, .analytics-funnel-pct { font-size: 0.78rem; }
}

/* Progress steps — at 320px even with min-width:0, 9 step circles + labels
 * in a row need tighter typography to not overflow. */
@media (max-width: 380px) {
    .progress-step { font-size: 0.6rem; }
    .progress-step .progress-deliverable { display: none; }
}

/* Approval cards — long file paths in monospace + flex sometimes still
 * overflow into action badge at very narrow widths. Force wrap. */
.approval-path { overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .approval-card-head { flex-wrap: wrap; }
    .approval-status { margin-left: auto; }
}

/* Agent thoughts — long file paths in the thinking feed should also wrap. */
@media (max-width: 480px) {
    .agent-thoughts li { white-space: normal; word-break: break-word; }
}

/* Approve-all bar — keep button accessible if label gets long. */
@media (max-width: 380px) {
    .approve-all-bar { flex-wrap: wrap; gap: 0.5rem; }
    .approve-all-bar-label { font-size: 0.8rem; }
}

/* Settings page already collapses .settings-row at 480; nothing more needed. */
/* Onboarding modal already has 480 override. */
/* Paywall gate already has 480 override. */
@keyframes agent-thought-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: var(--final-opacity, 1); transform: none; }
}
/* Override the legacy flex layout — the working block now has a row + a list
 * stacked vertically. Keep it block-level so children fall naturally. */
.agent-working {
    display: block;
    align-items: initial;
    flex-wrap: initial;
}
.agent-working-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.agent-poll-status {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: auto;
}

/* === Pricing comparison table === */
.pricing-comparison {
    max-width: 900px;
    margin: 1.5rem auto 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #fff;
}
.pricing-comparison summary {
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
}
.pricing-comparison-wrap { overflow-x: auto; margin-top: 1rem; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 540px; }
.pricing-table th,
.pricing-table td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.pricing-table th { background: #ffffff; color: #1e293b; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:not(:first-child) { text-align: center; color: #475569; }
.pricing-table td:first-child { color: #0f172a; }

/* === Admin analytics === */
.analytics-wrap { max-width: 1100px; }
.analytics-wrap h2 { margin: 1.5rem 0 1rem; font-size: 1.1rem; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.analytics-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.analytics-card h3 { margin: 0 0 0.25rem; font-size: 0.85rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.analytics-headline { font-size: 1.75rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }

.analytics-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; }
.analytics-bar {
    flex: 1;
    background: #5599cc;
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: opacity 0.2s;
}
.analytics-bar:hover { opacity: 0.75; }
.analytics-bar-amber { background: #5599cc; }

.analytics-funnel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.analytics-funnel-row { display: grid; grid-template-columns: 160px 1fr 130px; gap: 0.75rem; align-items: center; }
.analytics-funnel-label { color: #475569; font-size: 0.92rem; }
.analytics-funnel-bar { background: #f1f5f9; border-radius: 5px; height: 18px; overflow: hidden; }
.analytics-funnel-fill { background: linear-gradient(90deg, #5599cc, #ffd700); height: 100%; transition: width 0.3s; }
.analytics-funnel-value { font-weight: 600; color: #0f172a; text-align: right; font-variant-numeric: tabular-nums; }
.analytics-funnel-pct { color: #94a3b8; font-weight: 400; font-size: 0.85rem; margin-left: 0.5rem; }

.analytics-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.analytics-table td { padding: 0.4rem 0; border-bottom: 1px solid #f1f5f9; }
.analytics-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: #475569; }
.analytics-table tr:last-child td { border-bottom: 0; }
.analytics-table code { background: #f1f5f9; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85em; }
.analytics-empty { color: #94a3b8; font-style: italic; }

/* === HireEase handoff === */
.handoff-card {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border: 1px solid #ffd700;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
}
.handoff-card h3 { margin: 0 0 0.5rem; color: #1e293b; }
.handoff-card p { margin: 0 0 1rem; color: #475569; }
.handoff-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.handoff-status {
    margin-top: 0.85rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.92rem;
}
.handoff-status-ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.handoff-status-warn { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
@media (max-width: 480px) {
    .handoff-actions { flex-direction: column; }
    .handoff-actions .btn { width: 100%; }
}

@media (max-width: 600px) {
    .analytics-funnel-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .analytics-funnel-value { text-align: left; }
}
@media (max-width: 480px) {
    .onboarding-modal-card { padding: 1.5rem 1.25rem; }
    .onboarding-actions { flex-direction: column; }
    .onboarding-actions .btn { width: 100%; }
}

/* === Settings page === */
.settings-wrap { max-width: 640px; }
.settings-title { margin: 0 0 1.5rem; }

.settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.settings-card h2 { margin: 0 0 0.25rem; font-size: 1.15rem; color: #0f172a; }
.settings-card-hint { color: #64748b; font-size: 0.9rem; margin: 0 0 1rem; }
.settings-card-danger { border-color: #fecaca; background: #fff7f7; }
.settings-card-danger h2 { color: #b91c1c; }

.settings-form { display: flex; flex-direction: column; gap: 0.85rem; }
.settings-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.92rem; color: #334155; }
.settings-form label span { font-weight: 600; }
.settings-form input[type=text],
.settings-form input[type=email],
.settings-form input[type=password] {
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}
.settings-form input:focus-visible {
    outline: 2px solid #5599cc;
    outline-offset: 1px;
    border-color: #5599cc;
}
.settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) { .settings-row { grid-template-columns: 1fr; } }

.settings-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
    vertical-align: middle;
}
.settings-pill-ok { background: #dcfce7; color: #166534; }
.settings-pill-warn { background: #ffffff; color: #1e293b; }

.settings-flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.settings-flash-ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.settings-flash-err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.btn-danger {
    background: #b91c1c;
    color: #fff;
    border: 1px solid #991b1b;
}
.btn-danger:hover { background: #991b1b; }
.btn:disabled, .btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === v0.9.4 mobile + a11y pass === */

/* Phones (and small tablets): progress bar shrinks instead of forcing
 * horizontal scroll. The 600px min-width that was triggering at 481-900
 * was leaving the 481-768 zone broken — extending the shrink behavior up
 * to 768 fixes mid-phone landscape and small tablet portrait. */
@media (max-width: 768px) {
    .progress-steps { min-width: 0; gap: 0.25rem; }
}
@media (max-width: 480px) {
    .progress-step .progress-label { font-size: 0.6rem; }
    .progress-step .progress-deliverable { font-size: 0.55rem; }
    .progress-dot { width: 1rem; height: 1rem; }
    .paywall-gate {
        max-width: 100%;
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }
    .agent-message-user,
    .agent-message-ai { max-width: 96%; }
}

/* LaunchPad switcher select can grow to its longest option label and
 * overflow narrow viewports. Constrain it to the row width. */
.launchpad-switcher-select {
    max-width: 100%;
    min-width: 0;
}
@media (max-width: 600px) {
    .launchpad-switcher-left { min-width: 0; flex: 1 1 100%; }
    .launchpad-switcher-select { width: 100%; }
}

/* === Mobile typographic + control scale-down (v0.11.30) ===============
 * Default sizes are tuned for desktop. On phone-class viewports buttons
 * end up 50px tall and headings 22-24px which feels heavy. Scale the
 * whole hierarchy down by ~15% at <=600 to match the cramped feel of
 * a phone without going so small that touch targets become hard to hit.
 * Buttons stay above 36px tall (Apple/Google minimum touch target).
 */
@media (max-width: 600px) {
    /* body font-size and h1/hero h1 scale-down removed for cross-platform
       parity — StartEase/SquadEase don't shrink the hero on mobile, so this
       leaves all three at the shared <=768px rule (2.25rem hero h1). */
    h2 { font-size: 1.25rem; line-height: 1.3; }
    h3 { font-size: 1.1rem; line-height: 1.35; }
    h4 { font-size: 1rem; line-height: 1.4; }
    p, li { font-size: 0.9rem; line-height: 1.5; }

    .step-title, .step-header h2 { font-size: 1.1rem; line-height: 1.3; }
    .step-phase-label { font-size: 0.65rem; }
    .step-description { font-size: 0.88rem; }

    .roadmap-title, .step-content h3 { font-size: 1.1rem; }
    .step-content h4 { font-size: 0.95rem; }

    .btn {
        padding: 0.55rem 1rem;
        font-size: 0.88rem;
    }
    .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    .btn-sm {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }

    /* Cards and stat values */
    .stat-value { font-size: 1.3rem; }
    .stat-label { font-size: 0.78rem; }
    .card h3, .card h4 { font-size: 1rem; }
    .launchpad-card h4 { font-size: 1rem; }
    .launchpad-card-meta { font-size: 0.78rem; }

    /* Settings page */
    .settings-title { font-size: 1.3rem; }
    .settings-card h2 { font-size: 1rem; }
    .settings-card-hint { font-size: 0.82rem; }

    /* Dashboard header */
    .dashboard-title { font-size: 1.2rem; }

    /* Approval cards */
    .approval-action-badge { font-size: 0.62rem; padding: 0.1rem 0.35rem; }
    .approval-path { font-size: 0.78rem; }
    .approval-status { font-size: 0.62rem; padding: 0.1rem 0.4rem; }
}

/* Focus-visible on every interactive surface for keyboard a11y */
.btn:focus-visible,
.folder-tab:focus-visible,
.launchpad-card:focus-visible,
.card:focus-visible,
button:focus-visible,
a.btn:focus-visible {
    outline: 2px solid #5599cc;
    outline-offset: 2px;
}

/* Disabled-button styling (extends earlier .btn:disabled in this file) */
.btn[disabled],
button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* === Verify-email banner === */
.verify-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #ffd700;
    border-left-width: 4px;
    color: #1e293b;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.verify-banner-icon { font-size: 1.4rem; line-height: 1; }
.verify-banner-text { flex: 1; min-width: 220px; font-size: 0.95rem; }
.verify-banner-actions { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
.verify-banner-actions button { background: none; cursor: pointer; }

/* === Quota meter === */
.quota-meter {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.quota-row { font-size: 0.88rem; color: #475569; }
.quota-row-head { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.quota-row-value { color: #0f172a; font-weight: 600; font-variant-numeric: tabular-nums; }
.quota-row-unlimited { padding: 0.15rem 0; }
.quota-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.quota-bar-fill { height: 100%; background: linear-gradient(90deg, #5599cc, #ffd700); border-radius: 3px; transition: width 0.3s ease; }
.quota-row-warn .quota-bar-fill { background: linear-gradient(90deg, #b91c1c, #f97316); }
.quota-row-warn .quota-row-value { color: #b91c1c; }

/* v0.13.0 — extended quota meter (tier label, opus row, blocked notice) */
.quota-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.35rem; border-bottom: 1px solid #f1f5f9; font-size: 0.78rem; color: #64748b; }
.quota-plan-label { font-weight: 600; color: #0f172a; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.72rem; }
.quota-reset { font-variant-numeric: tabular-nums; }
.quota-row-sublabel { font-weight: 400; color: #94a3b8; font-size: 0.82em; }
.quota-row-opus .quota-bar-fill-opus { background: linear-gradient(90deg, #ffd700, #d97706); }
.quota-row-opus-locked { font-size: 0.85rem; color: #64748b; padding: 0.15rem 0; }
.quota-row-opus-locked a { color: #5599cc; text-decoration: none; font-weight: 600; }
.quota-row-opus-locked a:hover { text-decoration: underline; }
.quota-row-note { font-size: 0.82rem; color: #64748b; margin-top: 0.35rem; }
.quota-row-note a { color: #5599cc; font-weight: 600; text-decoration: none; }
.quota-row-note a:hover { text-decoration: underline; }
.quota-row-note-blocked { color: #b91c1c; font-weight: 500; }

/* v0.13.5 — file_optional question slide + Reference Material panel.
   Phase 2 of native Anthropic document upload. */
.launchpad-file-optional {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
}
.launchpad-file-hints {
    font-size: 0.86rem;
    color: #475569;
}
.launchpad-file-hint-chip {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    margin: 0.1rem 0.2rem 0.1rem 0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #1e40af;
}
.launchpad-file-drop {
    display: block;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 2px dashed #cbd5e1;
    border-radius: 0.6rem;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.launchpad-file-drop:hover  { background: #f1f5f9; }
.launchpad-file-drop.drag   { background: #eff6ff; border-color: #2563eb; color: #1e40af; }
.launchpad-file-sub         { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: #64748b; }
.launchpad-file-list        { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.launchpad-file-item        { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0.6rem; border-radius: 0.4rem; background: #fff; border: 1px solid #e2e8f0; font-size: 0.88rem; }
.launchpad-file-item-uploading { color: #64748b; font-style: italic; }
.launchpad-file-item-ok     { color: #0f172a; }
.launchpad-file-item-error  { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.launchpad-file-remove      { background: none; border: none; color: #b91c1c; cursor: pointer; font-size: 0.82rem; padding: 0.1rem 0.35rem; }
.launchpad-file-remove:hover { text-decoration: underline; }
.launchpad-file-desc        { min-height: 3em; }
.launchpad-file-skip-line   { color: #64748b; font-size: 0.84rem; margin: 0; }

/* Reference Material panel (standalone, persistent on each step page) */
.launchpad-refmat-host { margin: 0 0 1rem; }
.launchpad-refmat {
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #ffffff;
    overflow: hidden;
}
.launchpad-refmat[open] { box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.launchpad-refmat-summary {
    cursor: pointer;
    padding: 0.65rem 0.9rem;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}
.launchpad-refmat-summary::-webkit-details-marker { display: none; }
.launchpad-refmat-summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.15s ease;
    color: #64748b;
}
.launchpad-refmat[open] .launchpad-refmat-summary::before { transform: rotate(90deg); }
.launchpad-refmat-title { font-weight: 600; }
.launchpad-refmat-count { color: #64748b; font-weight: 500; font-size: 0.88rem; }
.launchpad-refmat-body { padding: 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.7rem; }
.launchpad-refmat-hint { margin: 0; color: #64748b; font-size: 0.85rem; line-height: 1.5; }
.launchpad-refmat-drop { padding: 1rem 0.75rem; font-size: 0.9rem; }
.launchpad-refmat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.launchpad-refmat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    font-size: 0.85rem;
}
.launchpad-refmat-name { color: #0f172a; word-break: break-word; }
.launchpad-refmat-remove {
    background: none;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-size: 0.8rem;
}
.launchpad-refmat-remove:hover { text-decoration: underline; }

/* v0.13.1 — step-completion live progress feed (mirrors LaunchAgent's
   live-thinking feed). Renders below the "Generate Deliverable" button so
   the user sees what's happening during the 30-90s request. */
.launchpad-progress-feed {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    max-height: 220px;
    overflow-y: auto;
}
.launchpad-progress-line {
    line-height: 1.5;
    padding: 0.1rem 0;
    opacity: 0;
    animation: launchpad-progress-fadein 0.3s ease forwards;
}
@keyframes launchpad-progress-fadein {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* v0.13.0 — usage chip (always-on header indicator) */
.usage-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.usage-chip:hover { background: #fff; border-color: #5599cc; color: #0f172a; }
.usage-chip-lead { display: inline-flex; align-items: baseline; gap: 0.25rem; }
.usage-chip-count { font-variant-numeric: tabular-nums; color: #0f172a; }
.usage-chip-count strong { font-weight: 700; }
.usage-chip-count-unlimited { font-weight: 600; }
.usage-chip-label { color: #94a3b8; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }
.usage-chip-bar { display: inline-block; width: 56px; height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.usage-chip-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #5599cc, #ffd700); border-radius: 3px; transition: width 0.3s ease; }
.usage-chip-opus { color: #ffd700; font-variant-numeric: tabular-nums; font-size: 0.78rem; padding-left: 0.45rem; border-left: 1px solid #e2e8f0; }
.usage-chip-opus strong { color: #ffd700; font-weight: 700; }
.usage-chip-plan { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; font-weight: 600; padding-left: 0.45rem; border-left: 1px solid #e2e8f0; }
.usage-chip-warn { background: #fef3c7; border-color: #fbbf24; color: #78350f; }
.usage-chip-warn .usage-chip-bar-fill { background: linear-gradient(90deg, #f59e0b, #b91c1c); }
.usage-chip-blocked { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.usage-chip-blocked .usage-chip-bar-fill { background: #b91c1c; }
@media (max-width: 720px) {
    .usage-chip-plan, .usage-chip-bar { display: none; }
    .usage-chip { padding: 0.35rem 0.6rem; gap: 0.4rem; font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .usage-chip-opus, .usage-chip-label { display: none; }
}

.admin-warning {
    background: #ffffff;
    border: 1px solid #ffd700;
    border-left-width: 4px;
    color: #1e293b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

/* v0.13.11 — roadmap accordion control row (Collapse / Expand all) */
.roadmap-acc-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.roadmap-acc-control {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 0.4rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.roadmap-acc-control:hover {
    background: #f8fafc;
    border-color: #5599cc;
    color: #0f172a;
}

/* ============================================================ */
/* Accessibility — skip-to-main-content link (WCAG 2.1 AA req)  */
/* v0.13.35                                                     */
/* ============================================================ */
.skip-link {
    position: absolute;
    left: 0;
    top: -100px;
    background: #5599cc;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 0 0 6px 0;
    z-index: 99999;
    font-weight: 600;
    transition: top 0.15s ease-in;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #ffd700;
    outline-offset: 0;
}
@media (prefers-reduced-motion: reduce) {
    .skip-link { transition: none; }
}

/* v0.13.36 — noscript banner (no-JS fallback messaging) */
.noscript-banner {
    background: #fee2e2;
    color: #7f1d1d;
    border-bottom: 2px solid #dc2626;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}
.noscript-banner strong { color: #991b1b; }

/* ============================================================ */
/* v0.13.40 — Global build-status badge (dashboard header)      */
/* ============================================================ */
.build-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.build-status-badge:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    transform: translateY(-1px);
}
.build-status-badge[hidden] { display: none !important; }
.build-status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    animation: build-pulse 1.8s ease-in-out infinite;
}
@keyframes build-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    50%      { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .build-status-pulse { animation: none; }
}
@media (max-width: 768px) {
    .build-status-badge .build-status-text {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================================
   v0.13.59 — Brand Image Manager (Brand Brief section, /controls)
   ============================================================ */
/* v0.13.103 — App Capabilities surface (/controls).
   Shows what FEATURES were added to or could not be added to the
   user's site. The user is the business person; package names live
   in the engineering layer and never surface here unless we need to
   explain WHY a capability couldn't be added autonomously. */
.app-capabilities {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid #c7d2fe;
    border-radius: 0.75rem;
    background: #eef2ff;
}
.app-capabilities[hidden] { display: none !important; }
.app-capabilities-title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #1e1b4b;
}
.app-capabilities-hint {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}
.app-capabilities-section-header {
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
    color: #1e293b;
}
.app-capabilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.app-capabilities-list li {
    padding: 0.6rem 0.75rem;
    margin: 0.35rem 0;
    background: #fff;
    border-radius: 0.5rem;
    line-height: 1.5;
}
.app-capability-check {
    color: #16a34a;
    font-weight: 700;
    margin-right: 0.45rem;
    font-size: 1.05rem;
}
.app-capability-icon-gap {
    color: #d97706;
    margin-right: 0.45rem;
    font-size: 1.05rem;
}
.app-capability-label {
    color: #1e293b;
    font-weight: 600;
}
.app-capability-summary {
    color: #475569;
    font-size: 0.9rem;
}
.app-capability-reason {
    margin-top: 0.3rem;
    color: #92400e;
    font-size: 0.85rem;
    font-style: italic;
}
.app-capability-suggestion {
    margin-top: 0.25rem;
    color: #475569;
    font-size: 0.85rem;
}
.app-capability-suggestion-block {
    /* v0.13.104: multi-line URL/code blocks inside capability suggestions
       (e.g., webhook URLs for revenue-readiness). Mono font for legibility,
       wraps long URLs, easy to triple-click to select. */
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.65rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}
.app-capabilities-footer {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #c7d2fe;
    color: #475569;
    font-size: 0.88rem;
}
.app-capabilities-loading {
    color: #6366f1;
    font-style: italic;
    margin: 0;
}

.brand-image-manager {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e5e7eb;
}
.brand-image-manager-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #1f2937;
}
.brand-image-manager-hint {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}
.brand-image-slots {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.brand-image-slots[data-loading="true"] {
    opacity: 0.5;
    pointer-events: none;
}
.brand-image-loading,
.brand-image-error {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    padding: 1rem 0;
}
.brand-image-error { color: #b45309; }

.brand-image-slot {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.brand-image-slot--missing { border-style: dashed; background: #fafaf9; }
.brand-image-slot-thumb {
    aspect-ratio: 4/3;
    background: #f3f4f6;
    border-radius: 0.35rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.85rem;
}
.brand-image-slot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-image-slot-thumb.is-empty { font-style: italic; }
.brand-image-slot-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 3rem;
}
.brand-image-slot-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}
.brand-image-slot-source {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.brand-image-slot--uploaded .brand-image-slot-source { color: #059669; }
.brand-image-slot--unsplash .brand-image-slot-source { color: #d97706; }
.brand-image-slot--missing .brand-image-slot-source { color: #dc2626; }
.brand-image-slot-attrib {
    font-size: 0.78rem;
    color: #9ca3af;
    font-style: italic;
}
.brand-image-slot-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.brand-image-slot-actions .btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    flex: 1;
    min-width: 0;
}

/* Stock picker modal */
.stock-picker-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.stock-picker {
    background: #fff;
    border-radius: 0.6rem;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.stock-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.stock-picker-head h3 { margin: 0; font-size: 1.1rem; }
.stock-picker-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}
.stock-picker-form {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}
.stock-picker-query {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.35rem;
    font-size: 0.95rem;
}
.stock-picker-query:focus { outline: none; border-color: #d97706; }
.stock-picker-hint, .stock-picker-error {
    color: #6b7280;
    font-size: 0.88rem;
    margin: 0;
}
.stock-picker-error { color: #b45309; }
.stock-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.stock-picker-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font: inherit;
    text-align: left;
    transition: border-color 0.15s, transform 0.1s;
}
.stock-picker-card:hover {
    border-color: #d97706;
    transform: translateY(-2px);
}
.stock-picker-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.stock-picker-cred {
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    color: #6b7280;
    background: #fff;
}

/* ============================================================
   v0.13.115 — How It Works page (pages/how-it-works.php)
   Brand: #5599cc primary, #ffd700 gold, #1e293b dark.
   ============================================================ */
.hiw-pipeline,
.hiw-journey {
    margin: 2.5rem auto 0;
    max-width: 980px;
}
.hiw-pipeline-svg,
.hiw-journey-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Step detail cards */
.hiw-steps {
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
}
.hiw-step-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #5599cc;
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
}
.hiw-step-card-later {
    border-left-color: #94a3b8;
    background: #f8fafc;
}
.hiw-step-num {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: #5599cc;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
}
.hiw-step-card-later .hiw-step-num {
    background: #94a3b8;
}
.hiw-step-body h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: #1e293b;
    letter-spacing: 0.02em;
}
.hiw-step-title {
    font-weight: 400;
    font-size: 0.95rem;
    color: #64748b;
    letter-spacing: 0;
}
.hiw-step-body p {
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}
.hiw-step-deliverable {
    display: inline-block;
    font-size: 0.85rem;
    color: #3d7ab5;
    background: #eef4fb;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}
.hiw-step-deliverable-guide {
    color: #64748b;
    background: #eef1f5;
}

/* Deliverables grid */
.hiw-deliverables {
    margin-top: 2.5rem;
    display: grid;
    /* v0.13.124: the four standard deliverables sit in one row; the feature
       card (Launch Package + live site) spans the full width below them. */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.hiw-deliverable {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1.3rem;
    text-align: center;
}
.hiw-deliverable-feature {
    grid-column: 1 / -1;            /* full-width row beneath the four */
    border-color: #ffd700;
    box-shadow: 0 4px 18px rgba(85, 153, 204, 0.10);
    /* horizontal layout so the full width is used well (icon left, copy right) */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    padding: 1.5rem 2rem;
}
.hiw-deliverable-feature .hiw-deliverable-icon {
    margin: 0;                      /* override the centered-margin base rule */
    flex: 0 0 auto;
}
.hiw-deliverable-feature-text h3 { margin-top: 0; }
.hiw-deliverable-feature-text p  { margin-bottom: 0; }
@media (max-width: 900px) {
    .hiw-deliverables { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .hiw-deliverables { grid-template-columns: 1fr; }
    .hiw-deliverable-feature { flex-direction: column; text-align: center; gap: 0.75rem; }
    .hiw-deliverable-feature .hiw-deliverable-icon { margin: 0 auto; }
}
.hiw-deliverable-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.9rem;
    display: block;
}
.hiw-deliverable h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    color: #1e293b;
}
.hiw-deliverable p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}
.hiw-deliverable code,
.hiw-step-deliverable code {
    background: #f1f5f9;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: #1e293b;
}

/* Steps 6–9 handoff block — dark callout, distinct from the deliverable cards */
.hiw-handoff {
    margin: 2.5rem auto 0;
    max-width: 760px;
    background: #1e293b;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    border-left: 5px solid #ffd700;
}
.hiw-handoff-body h3 {
    margin: 0 0 0.5rem;
    color: #ffffff;
    font-size: 1.15rem;
}
.hiw-handoff-body p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}
.hiw-handoff-body a { color: #ffd700; }
.hiw-gating-note {
    text-align: center;
    margin: 1.5rem auto 0;
    max-width: 680px;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .hiw-step-card { flex-direction: column; gap: 0.6rem; }
    .hiw-step-num { width: 34px; height: 34px; line-height: 34px; font-size: 0.95rem; }
    .hiw-handoff { padding: 1.4rem 1.25rem; }
}

/* ============================================================
   v0.13.117 — Features page (pages/features.php)
   ============================================================ */
.feat-pillar {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.feat-pillar-reverse { flex-direction: row-reverse; }
.feat-pillar-art {
    flex: 0 0 42%;
    max-width: 42%;
}
.feat-pillar-art svg {
    width: 100%;
    height: auto;
    display: block;
}
.feat-pillar-body { flex: 1 1 auto; }
.feat-pillar-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5599cc;
    margin-bottom: 0.5rem;
}
.feat-pillar-body h2 {
    margin: 0 0 0.9rem;
    color: #1e293b;
    font-size: 1.6rem;
}
.feat-pillar-body p {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1rem;
}

/* Module catalog */
.feat-modules {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feat-module-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
}
.feat-module-group h3 {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    color: #1e293b;
    border-bottom: 2px solid #eef4fb;
    padding-bottom: 0.5rem;
}
.feat-chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.feat-chip {
    font-size: 0.85rem;
    color: #3d7ab5;
    background: #eef4fb;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}
.feat-modules-note {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 2rem;
}
.feat-cta-sub {
    margin-top: 1rem;
    font-size: 0.95rem;
}
.feat-cta-sub a { color: #5599cc; }

@media (max-width: 820px) {
    .feat-pillar,
    .feat-pillar-reverse { flex-direction: column; gap: 1.5rem; }
    .feat-pillar-art { flex-basis: auto; max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   v0.13.118 — FAQ page (pages/faq.php)
   JS-free <details>/<summary> accordion.
   ============================================================ */
.faq-list {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.faq-item[open] {
    border-color: #5599cc;
    box-shadow: 0 4px 16px rgba(85, 153, 204, 0.08);
}
.faq-q {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 1.3rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    color: #5599cc;
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after {
    content: "\2212"; /* minus */
    transform: rotate(180deg);
}
.faq-q:hover { color: #5599cc; }
.faq-a {
    padding: 0 1.3rem 1.2rem;
    color: #475569;
    line-height: 1.6;
}
.faq-a p { margin: 0 0 0.75rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: #5599cc; }
.faq-a code {
    background: #f1f5f9;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: #1e293b;
}
/* dynamic plan table inside an answer */
.faq-table-wrap { overflow-x: auto; margin: 0.5rem 0; }
.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.faq-table th,
.faq-table td {
    text-align: left;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid #e2e8f0;
}
.faq-table th {
    color: #1e293b;
    font-weight: 700;
    background: #eef4fb;
}
.faq-table td:first-child { font-weight: 600; color: #1e293b; }

/* ============================================================
   v0.13.119 — Use Cases page (pages/use-cases.php)
   ============================================================ */
.usecase-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.usecase-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
}
.usecase-glyph { width: 48px; height: 48px; margin-bottom: 1rem; }
.usecase-glyph svg { width: 100%; height: 100%; display: block; }
.usecase-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: #1e293b; }
.usecase-you { margin: 0 0 0.6rem; color: #1e293b; font-weight: 600; font-size: 0.95rem; }
.usecase-get { margin: 0; color: #475569; line-height: 1.55; font-size: 0.95rem; }
.usecase-get strong { color: #3d7ab5; }
.usecase-cta-sub { margin-top: 1rem; font-size: 0.95rem; }
.usecase-cta-sub a { color: #5599cc; }

/* Example: brief excerpt + site mockup, side by side */
.example-wrap {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.example-brief,
.example-site {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}
.example-brief-label,
.example-site-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5599cc;
    margin-bottom: 0.75rem;
}
.example-brief-label span,
.example-site-label span {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.4rem;
}
.example-brief h3 { margin: 0 0 1rem; font-size: 1.3rem; color: #1e293b; }
.example-brief-dl { margin: 0; }
.example-brief-dl dt {
    font-weight: 700;
    color: #5599cc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.9rem;
}
.example-brief-dl dt:first-child { margin-top: 0; }
.example-brief-dl dd { margin: 0.25rem 0 0; color: #475569; line-height: 1.5; font-size: 0.95rem; }
.example-site-svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.example-note { text-align: center; color: #64748b; margin-top: 2rem; font-size: 0.95rem; }

/* Comparison table */
.compare-wrap { margin-top: 2.5rem; overflow-x: auto; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.compare-table th,
.compare-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.92rem;
    color: #475569;
    vertical-align: top;
}
.compare-table thead th {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
}
.compare-table tbody th {
    color: #1e293b;
    font-weight: 600;
}
.compare-featured {
    background: #eef4fb;
    color: #1e293b !important;
}
thead .compare-featured {
    background: #5599cc;
    color: #ffffff !important;
    border-radius: 8px 8px 0 0;
}
.compare-yes { color: #16a34a; font-weight: 700; margin-right: 0.3rem; }
.compare-no  { color: #dc2626; font-weight: 700; margin-right: 0.3rem; }
.compare-mid { color: #d97706; font-weight: 700; margin-right: 0.3rem; }

@media (max-width: 820px) {
    .example-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   v0.13.120 — Homepage positioning section (anti-single-tool framing)
   ============================================================ */
.positioning-contrast {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.positioning-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 1.6rem;
}
.positioning-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: #1e293b;
}
.positioning-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}
.positioning-card-them {
    border-top: 4px solid #cbd5e1;
}
.positioning-card-them h3 { color: #64748b; }
.positioning-card-us {
    border-top: 4px solid #ffd700;
    box-shadow: 0 6px 20px rgba(85, 153, 204, 0.10);
}
.positioning-card-us h3 { color: #3d7ab5; }
@media (max-width: 760px) {
    .positioning-contrast { grid-template-columns: 1fr; }
}

/* ============================================================
   v0.13.121 — Homepage step + phase icons (How LaunchEase Works,
   Built for Every Stage). Replaces bare number circles with icon
   badges + a "Step N" kicker; adds an icon to each phase card.
   ============================================================ */
.step-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.6rem;
}
.step-icon svg { width: 100%; height: 100%; display: block; }
.step-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5599cc;
    margin-bottom: 0.35rem;
}
.phase-icon {
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
}
.phase-icon svg { width: 100%; height: 100%; display: block; }

/* v0.13.123: 3-column variant of the homepage steps grid (How LaunchEase
   Works went from 4 steps to 3 — the "tell us where you are" step folded
   its ETI mention into "Answer Smart Questions"). */
.steps-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* v0.13.125: "Refine it by chatting" illustration (chat → live-site edit). */
.hiw-refine-art {
    max-width: 760px;
    margin: 1rem auto 0.5rem;
}
.hiw-refine-svg { width: 100%; height: auto; display: block; }
