:root {
    --ink: #04131a;
    --ink-2: #0a2430;
    --ink-3: #133647;
    --sand: #f7f1e8;
    --sand-2: #efe6d8;
    --text: #14242d;
    --muted: #5d6f78;
    --line: rgba(20, 36, 45, 0.1);
    --signal: #e4572e;
    --signal-2: #b53d18;
    --sea: #0f8f7b;
    --sea-2: #0b6b5c;
    --sea-mist: #d9f3ec;
    --warn: #9a6b16;
    --danger: #a12d2d;
    --ok: #0f8f7b;
    --glass: rgba(247, 241, 232, 0.08);
    --shadow: 0 30px 80px rgba(4, 19, 26, 0.35);
    --radius: 22px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background: var(--ink);
    overflow-x: hidden;
}

/* Atmospheric stage */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(15, 143, 123, 0.38), transparent 58%),
        radial-gradient(780px 480px at 92% 8%, rgba(228, 87, 46, 0.28), transparent 52%),
        radial-gradient(700px 500px at 50% 110%, rgba(19, 54, 71, 0.9), transparent 60%),
        linear-gradient(160deg, #04131a 0%, #0a2430 45%, #123a4a 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        radial-gradient(rgba(247, 241, 232, 0.09) 0.8px, transparent 0.8px);
    background-size: 3px 3px;
    mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 70%);
}

a { color: var(--sea); transition: color 0.2s ease; }
a:hover { color: var(--signal); }

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0 4rem;
    position: relative;
    z-index: 1;
}

.shell-home {
    width: min(1200px, calc(100% - 2rem));
}

/* Topbar */
.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.7rem 0.85rem 0.7rem 1.15rem;
    border: 1px solid rgba(247, 241, 232, 0.12);
    border-radius: 999px;
    background: rgba(4, 19, 26, 0.55);
    backdrop-filter: blur(16px);
    color: var(--sand);
    animation: rise 0.55s ease both;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
    color: var(--sand) !important;
    text-decoration: none !important;
}

.brand-mark {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 4px rgba(228, 87, 46, 0.2);
    animation: ping 2.4s ease-out infinite;
    align-self: center;
}

.brand span { color: var(--signal); font-style: italic; font-weight: 500; }

.topbar .spacer { flex: 1; min-width: 0.5rem; }

.topbar a:not(.brand):not(.btn) {
    color: rgba(247, 241, 232, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.topbar a:not(.brand):not(.btn):hover { color: #fff; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 143, 123, 0.22);
    border: 1px solid rgba(217, 243, 236, 0.22);
    color: #d9f3ec;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Panels */
.panel {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.97), rgba(247, 241, 232, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.35rem, 3vw, 2.15rem);
    animation: rise 0.65s ease both;
}

.panel + .panel { margin-top: 1.05rem; }
.panel:nth-child(2) { animation-delay: 0.05s; }
.panel:nth-child(3) { animation-delay: 0.1s; }
.panel:nth-child(4) { animation-delay: 0.15s; }
.panel:nth-child(5) { animation-delay: 0.2s; }

.hero-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 240px at 100% 0%, rgba(15, 143, 123, 0.12), transparent 60%),
        linear-gradient(145deg, #fffcf7 0%, #f4ebe0 100%);
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -60px;
    top: -80px;
    border-radius: 50%;
    border: 1px solid rgba(15, 143, 123, 0.18);
    pointer-events: none;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sea);
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0 0 0.65rem;
    color: var(--text);
}

h1 { font-size: clamp(1.95rem, 4.2vw, 2.85rem); font-weight: 600; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }

.lead {
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.65;
    max-width: 40rem;
    margin: 0 0 1.2rem;
}

.meta { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.flash {
    margin: 0 0 1rem;
    padding: 0.9rem 1.05rem;
    border-radius: 14px;
    animation: rise 0.4s ease both;
    font-weight: 600;
}

.flash-success {
    background: var(--sea-mist);
    color: var(--sea-2);
    border: 1px solid rgba(15, 143, 123, 0.25);
}

.flash-error, .errors {
    background: #fbe4e4;
    color: var(--danger);
    border: 1px solid rgba(161, 45, 45, 0.18);
}

.errors { margin: 0 0 1rem; padding: 0.9rem 1.05rem; border-radius: 14px; }
.errors ul { margin: 0; padding-left: 1.1rem; }

label {
    display: block;
    margin-top: 1.05rem;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

input, select, textarea {
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    font: inherit;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(15, 143, 123, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 143, 123, 0.12);
}

textarea {
    resize: vertical;
    min-height: 8rem;
}

.engine-picker {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
}

.engine-picker legend {
    padding: 0 0.35rem;
    font-weight: 700;
    font-size: 0.88rem;
}

.engine-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
    font-weight: 600;
}

.engine-option input {
    width: auto;
    margin: 0;
}

.recent-profiles {
    margin: 1.1rem 0 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}

.recent-profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.recent-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(247, 241, 232, 0.92);
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.recent-chip small {
    font-weight: 500;
    color: var(--muted);
}

.recent-chip:hover {
    border-color: rgba(15, 143, 123, 0.45);
    color: var(--ink);
    transform: translateY(-1px);
}

/* New scan composer */
.shell-scan-create {
    width: min(1080px, calc(100% - 2rem));
}

.scan-create {
    animation: rise 0.55s ease both;
}

.scan-create-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: end;
    margin-bottom: 1.15rem;
}

.scan-create-head .lead {
    margin-bottom: 0;
    max-width: 36rem;
}

.scan-create-head h1 {
    margin-bottom: 0.45rem;
}

.scan-credit-pill {
    display: grid;
    gap: 0.15rem;
    min-width: 8.5rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(247, 241, 232, 0.16);
    background: rgba(4, 19, 26, 0.55);
    color: var(--sand);
    text-align: right;
    backdrop-filter: blur(12px);
}

.scan-credit-pill__label,
.scan-credit-pill__plan {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 241, 232, 0.62);
    font-weight: 700;
}

.scan-credit-pill strong {
    font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1;
    color: #fff;
}

.scan-reuse {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(247, 241, 232, 0.14);
    background: rgba(4, 19, 26, 0.35);
    color: var(--sand);
}

.scan-reuse__title {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(247, 241, 232, 0.7);
}

.scan-reuse .recent-chip {
    background: rgba(247, 241, 232, 0.96);
}

.scan-create-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 1rem;
}

.scan-create-card {
    padding: clamp(1.2rem, 2.5vw, 1.7rem);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(15, 143, 123, 0.1), transparent 55%),
        linear-gradient(160deg, #fffcf7 0%, #f3ebe0 100%);
    box-shadow: var(--shadow);
    animation: rise 0.65s ease both;
}

.scan-create-card--intent {
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(228, 87, 46, 0.1), transparent 55%),
        linear-gradient(160deg, #fffcf7 0%, #f6ece2 100%);
    animation-delay: 0.06s;
}

.scan-create-card__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sea);
}

.scan-create-card h2 {
    margin-bottom: 0.35rem;
}

.scan-create-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.scan-kw-hint {
    margin: 0.35rem 0 0;
}

.scan-kw-hint kbd {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.78em;
    font-family: inherit;
}

.keyword-composer {
    margin-top: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    min-height: 3.4rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.keyword-composer:focus-within {
    border-color: rgba(15, 143, 123, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 143, 123, 0.12);
}

.keyword-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 143, 123, 0.28);
    background: var(--sea-mist);
    color: var(--sea-2);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    animation: pop 0.22s ease both;
}

.keyword-chip i {
    font-style: normal;
    opacity: 0.7;
    font-weight: 800;
}

.keyword-composer input {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.45rem 0.2rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.keyword-composer input:focus {
    outline: none;
    box-shadow: none;
}

.keyword-suggestions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.75rem;
}

.kw-suggest {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink-2);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.kw-suggest:hover {
    border-color: rgba(228, 87, 46, 0.45);
    transform: translateY(-1px);
}

.scan-create-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 241, 232, 0.92));
    box-shadow: var(--shadow);
    animation: rise 0.7s ease both;
    animation-delay: 0.1s;
}

.scan-cost {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: baseline;
    font-weight: 600;
    color: var(--ink-2);
}

.scan-cost__total strong {
    color: var(--signal);
    font-size: 1.15rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.btn, button, .button {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.88rem 1.25rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 750;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary, button[type="submit"], .button.primary {
    background: linear-gradient(135deg, var(--signal), var(--signal-2));
    color: #fff8f4 !important;
    box-shadow: 0 14px 30px rgba(228, 87, 46, 0.32);
}

.btn-primary:hover, button[type="submit"]:hover, .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(228, 87, 46, 0.4);
}

.btn-secondary, .button {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text) !important;
    border: 1px solid var(--line);
}

.btn-secondary:hover, .button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 143, 123, 0.35);
}

.btn-ghost {
    background: rgba(247, 241, 232, 0.06);
    color: var(--sand) !important;
    border: 1px solid rgba(247, 241, 232, 0.2);
}

.btn-ghost:hover {
    background: rgba(247, 241, 232, 0.12);
}

.btn-sm { padding: 0.48rem 0.95rem; font-size: 0.9rem; }

form.inline { display: inline; }
form.inline button {
    margin: 0;
    padding: 0.45rem 0.9rem;
    background: transparent;
    color: rgba(247, 241, 232, 0.8);
    border: 1px solid rgba(247, 241, 232, 0.18);
    box-shadow: none;
    font-weight: 650;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.45rem 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Home hero — one composition */
.home-stage {
    min-height: calc(100vh - 7.5rem);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    color: var(--sand);
}

.home-copy { animation: rise 0.7s ease both; }

.home-copy h1 {
    font-size: clamp(3rem, 8vw, 5.4rem);
    max-width: 9ch;
    color: var(--sand);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.home-copy h1 em {
    font-style: italic;
    font-weight: 500;
    color: #ffb199;
}

.home-copy .lead {
    color: rgba(247, 241, 232, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    max-width: 28rem;
    margin-bottom: 0.25rem;
}

.home-visual {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    animation: rise 0.85s ease 0.1s both;
}

.radar {
    position: relative;
    width: min(420px, 88vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(15, 143, 123, 0.18) 0 8%, transparent 9%),
        repeating-radial-gradient(circle at center,
            transparent 0 38px,
            rgba(247, 241, 232, 0.07) 38px 39px);
    box-shadow:
        inset 0 0 0 1px rgba(247, 241, 232, 0.12),
        0 0 80px rgba(15, 143, 123, 0.2);
    overflow: hidden;
}

.radar::before,
.radar::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(247, 241, 232, 0.1);
}

.radar::after { inset: 34%; }

.radar-sweep {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(15, 143, 123, 0.35) 85%, transparent 100%);
    animation: sweep 4.5s linear infinite;
    transform-origin: center;
}

.radar-blip {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 6px rgba(228, 87, 46, 0.2), 0 0 24px rgba(228, 87, 46, 0.55);
    animation: blip 2.8s ease-in-out infinite;
}

.radar-blip.b1 { top: 28%; left: 62%; animation-delay: 0.2s; }
.radar-blip.b2 { top: 58%; left: 30%; animation-delay: 1.1s; background: #7dd3c2; box-shadow: 0 0 0 6px rgba(125, 211, 194, 0.18), 0 0 20px rgba(125, 211, 194, 0.45); }
.radar-blip.b3 { top: 68%; left: 68%; animation-delay: 1.8s; }

.radar-caption {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(4, 19, 26, 0.65);
    border: 1px solid rgba(247, 241, 232, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 241, 232, 0.85);
    white-space: nowrap;
}

/* Report */
.report-hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.75rem;
    align-items: center;
}

.score-orb {
    --score: 0;
    width: min(230px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,0.9), transparent 42%),
        conic-gradient(from -90deg, var(--sea) calc(var(--score) * 1%), rgba(20, 36, 45, 0.1) 0);
    box-shadow:
        inset 0 0 0 14px #fffcf7,
        0 22px 50px rgba(4, 19, 26, 0.12);
    animation: pop 0.85s cubic-bezier(.2,.85,.2,1) both;
}

.score-orb-inner {
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fffcf7;
    display: grid;
    place-items: center;
    text-align: center;
}

.score-orb strong {
    font-family: var(--font-display);
    font-size: 2.6rem;
    display: block;
    letter-spacing: -0.05em;
    line-height: 1;
}

.score-orb span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.verdict {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.verdict::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.verdict-bad { background: #fbe4e4; color: var(--danger); }
.verdict-mid { background: #fff0cc; color: var(--warn); }
.verdict-good { background: var(--sea-mist); color: var(--ok); }

.fact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin: 1.5rem 0 0;
}

.fact {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(4, 19, 26, 0.035);
    border: 1px solid var(--line);
}

.fact small {
    display: block;
    color: var(--muted);
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fact strong { font-size: 0.98rem; word-break: break-word; font-weight: 700; }

.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.05rem;
}

.insight {
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
}

.insight h3 { margin-bottom: 0.75rem; }

.step-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    counter-reset: step;
}

.step-list li {
    position: relative;
    padding: 0.7rem 0 0.7rem 2.6rem;
    border-top: 1px solid var(--line);
    color: var(--text);
    line-height: 1.5;
}

.step-list li:first-child { border-top: 0; }

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink-2);
    color: var(--sand);
    font-size: 0.78rem;
    font-weight: 800;
}

.competitor-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.competitor-cloud span {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(4, 19, 26, 0.04);
    transition: transform 0.18s ease;
}

.competitor-cloud span:hover { transform: translateY(-2px); }

.engine-block {
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
}

.engine-block:first-of-type { border-top: 0; padding-top: 0.25rem; }

.engine-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.badge-yes { background: var(--sea-mist); color: var(--ok); }
.badge-no { background: #fbe4e4; color: var(--danger); }

.snippet {
    margin: 0.85rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(4, 19, 26, 0.04);
    border-left: 3px solid rgba(15, 143, 123, 0.45);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cite-list {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.86rem;
}

.cite-list li { margin: 0.3rem 0; }
.cite-list a { word-break: break-all; }

.table-wrap { overflow-x: auto; margin-top: 0.4rem; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.9rem 0.55rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
}

th {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(15, 143, 123, 0.04); }

.processing {
    display: grid;
    gap: 0.85rem;
    place-items: start;
    padding: 0.5rem 0 0.25rem;
}

.pulse {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(15, 143, 123, 0.18);
    border-top-color: var(--sea);
    animation: spin 0.85s linear infinite;
}

.auth-panel {
    max-width: 480px;
    margin: 1rem auto 0;
}

/* Dashboard */
.dash-hero {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.05rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--radius);
    border: 1px solid rgba(247, 241, 232, 0.14);
    background:
        radial-gradient(520px 280px at 100% 0%, rgba(15, 143, 123, 0.22), transparent 60%),
        radial-gradient(420px 240px at 0% 100%, rgba(228, 87, 46, 0.16), transparent 55%),
        linear-gradient(145deg, rgba(10, 36, 48, 0.92), rgba(4, 19, 26, 0.88));
    box-shadow: var(--shadow);
    color: var(--sand);
    animation: rise 0.6s ease both;
}

.dash-hero .section-kicker { color: #7dd3c2; }
.dash-hero h1 { color: var(--sand); margin-bottom: 0.55rem; }
.dash-hero-lead {
    color: rgba(247, 241, 232, 0.78) !important;
    margin-bottom: 0.35rem;
}

.dash-hero .btn-secondary {
    background: rgba(247, 241, 232, 0.08);
    color: var(--sand) !important;
    border-color: rgba(247, 241, 232, 0.2);
}

.dash-credit {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
}

.dash-credit-ring {
    --left: 100;
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 28%, rgba(255,255,255,0.22), transparent 42%),
        conic-gradient(from -90deg, #7dd3c2 calc(var(--left) * 1%), rgba(247, 241, 232, 0.12) 0);
    box-shadow: inset 0 0 0 10px rgba(4, 19, 26, 0.88);
    animation: pop 0.75s cubic-bezier(.2,.85,.2,1) both;
}

.dash-credit-inner {
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(4, 19, 26, 0.92);
    display: grid;
    place-items: center;
    text-align: center;
}

.dash-credit-inner strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dash-credit-inner span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 241, 232, 0.65);
}

.dash-credit-plan {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 241, 232, 0.7);
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.05rem;
    animation: rise 0.65s ease 0.05s both;
}

.dash-stat {
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 241, 232, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 40px rgba(4, 19, 26, 0.14);
}

.dash-stat small {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-stat strong {
    font-family: var(--font-display);
    font-size: 1.85rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.dash-reports-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.dash-reports-head h2 { margin-bottom: 0.35rem; }
.dash-reports-head .meta { margin: 0; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.dash-card {
    display: block;
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    text-decoration: none !important;
    color: inherit;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 143, 123, 0.28);
    box-shadow: 0 18px 36px rgba(4, 19, 26, 0.1);
    color: inherit;
}

.dash-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.dash-card-id {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.dash-card-title {
    font-size: 1.2rem;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.dash-card-site {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    word-break: break-all;
}

.dash-card-foot {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.1rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
}

.dash-mini-score {
    --score: 0;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(from -90deg, var(--sea) calc(var(--score) * 1%), rgba(20, 36, 45, 0.1) 0);
    box-shadow: inset 0 0 0 5px #fffcf7;
}

.dash-mini-score span {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fffcf7;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text);
}

.dash-card-meta {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.dash-card-meta strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card-meta small {
    color: var(--muted);
    font-size: 0.78rem;
}

.dash-empty {
    text-align: center;
    padding: 2rem 1rem 1.25rem;
}

.dash-empty h3 {
    margin-top: 0.75rem;
}

.dash-empty .meta {
    max-width: 28rem;
    margin: 0 auto;
}

.dash-empty .actions {
    justify-content: center;
}

.dash-empty-visual {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at center, rgba(15, 143, 123, 0.2), transparent 65%);
    border: 1px solid rgba(15, 143, 123, 0.2);
}

.dash-empty-visual span {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px dashed rgba(15, 143, 123, 0.35);
    animation: spin 8s linear infinite;
}

.dash-empty-visual span:nth-child(2) {
    inset: 30%;
    animation-direction: reverse;
    animation-duration: 6s;
}

.dash-empty-visual span:nth-child(3) {
    inset: 42%;
    border-style: solid;
    animation: none;
    background: var(--signal);
    box-shadow: 0 0 0 5px rgba(228, 87, 46, 0.15);
}

/* Livewire dashboard extras */
.lw-dash { display: grid; gap: 1.05rem; }

.lw-latest {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.lw-latest-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lw-pulse-label {
    color: var(--sea);
    font-weight: 700;
}

.lw-engine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.lw-engine-card {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.lw-engine-card.status-recommended {
    border-color: rgba(15, 143, 123, 0.35);
    box-shadow: inset 3px 0 0 var(--sea);
}

.lw-engine-card.status-error {
    border-color: rgba(161, 45, 45, 0.25);
    box-shadow: inset 3px 0 0 var(--danger);
}

.lw-engine-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.lw-engine-card-top h3 {
    margin: 0;
    font-size: 1.05rem;
}

.delta-up { color: #7dd3c2; }
.delta-down { color: #ffb199; }

.lw-rec-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.lw-rec-item {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
}

.lw-rec-item.severity-high { box-shadow: inset 3px 0 0 var(--danger); }
.lw-rec-item.severity-medium { box-shadow: inset 3px 0 0 var(--warn); }
.lw-rec-item.severity-low { box-shadow: inset 3px 0 0 var(--sea); }

.lw-rec-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.lw-rec-cat {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.lw-rec-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.lw-rec-item .list-clean {
    margin-top: 0.55rem;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes pop {
    from { opacity: 0; transform: scale(0.84); }
    to { opacity: 1; transform: none; }
}

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

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blip {
    0%, 100% { transform: scale(0.85); opacity: 0.55; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(228, 87, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0); }
}

/* Growth plan */
.growth-estimate-grid,
.dash-growth-grid,
.growth-card-grid,
.growth-gap-grid,
.growth-fix-grid {
    display: grid;
    gap: 0.75rem;
}

.growth-estimate-grid,
.dash-growth-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1rem;
}

.growth-metric {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.growth-metric small {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.growth-metric strong {
    font-family: var(--font-display);
    font-size: 1.55rem;
}

.growth-metric--potential strong { color: var(--signal); }

.growth-progress { margin-top: 1.15rem; }
.growth-progress-head {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.growth-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(20, 36, 45, 0.08);
    overflow: hidden;
}
.growth-progress-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--sea), #1bb39a);
}

.growth-card-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 0.85rem; }
.growth-card,
.growth-gap,
.growth-issue,
.growth-task {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}
.growth-issue-list,
.growth-task-list { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.growth-issue-top,
.growth-task {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}
.growth-issue.severity-critical { border-color: rgba(161, 45, 45, 0.35); }
.growth-issue.severity-high { border-color: rgba(228, 87, 46, 0.35); }
.growth-group-title { margin: 1.1rem 0 0.45rem; font-size: 1rem; }
.growth-gap-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 0.9rem; }
.growth-fix-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 0.85rem; }
.growth-fix-draft {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(4, 19, 26, 0.04);
    border: 1px solid var(--line);
}
.growth-pre {
    margin: 0.55rem 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.45;
}
.growth-task-actions select {
    width: auto;
    min-width: 9rem;
    margin-top: 0;
    padding: 0.45rem 0.65rem;
}
.growth-task.status-completed { opacity: 0.72; }
.list-clean {
    margin: 0.45rem 0 0;
    padding-left: 1.05rem;
}
.list-clean li { margin: 0.2rem 0; color: var(--muted); font-size: 0.92rem; }

.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.55rem 0 0.65rem;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 750;
}
.trust-chip--source { border-color: rgba(15, 143, 123, 0.35); color: var(--sea-2); }
.trust-chip--inferred { border-color: rgba(154, 107, 22, 0.35); color: var(--warn); }
.trust-evidence-list {
    margin: 0.55rem 0 0;
    padding-left: 0;
    list-style: none;
}
.trust-evidence-list li {
    margin: 0.28rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.trust-evidence-list .ok { color: var(--sea-2); font-weight: 800; }
.trust-evidence-list small { color: var(--muted); opacity: 0.85; }
.trust-evidence-panel {
    margin-top: 0.85rem;
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
}
.trust-evidence-panel summary {
    cursor: pointer;
    font-weight: 750;
    color: var(--sea-2);
}
.trust-panel-body { margin-top: 0.7rem; }
.trust-note {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(154, 107, 22, 0.1);
    border: 1px solid rgba(154, 107, 22, 0.22);
}
.trust-proof-table {
    margin-top: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.trust-proof-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.86rem;
    border-top: 1px solid var(--line);
}
.trust-proof-row:first-child { border-top: 0; }
.trust-proof-head {
    background: rgba(4, 19, 26, 0.04);
    font-weight: 750;
}

@media (max-width: 900px) {
    .growth-estimate-grid,
    .dash-growth-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .growth-issue-top,
    .growth-task {
        flex-direction: column;
    }

    .trust-proof-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .home-stage,
    .report-hero,
    .insight-grid,
    .fact-row,
    .dash-hero,
    .dash-stats,
    .dash-grid,
    .lw-engine-grid,
    .scan-create-head,
    .scan-create-grid,
    .scan-create-row {
        grid-template-columns: 1fr;
    }

    .scan-credit-pill {
        text-align: left;
        justify-self: start;
    }

    .scan-create-footer {
        flex-direction: column;
        align-items: stretch;
    }

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

    .home-stage {
        min-height: auto;
        padding: 1.25rem 0 2rem;
        gap: 2rem;
    }

    .home-copy h1 { max-width: 11ch; }
    .home-visual { min-height: 300px; order: -1; }
    .topbar { border-radius: 20px; }

    .marketing-split,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Marketing pages */
.shell-marketing {
    width: min(1080px, calc(100% - 2rem));
}

.marketing-hero {
    margin-bottom: 1rem;
}

.marketing-hero h1 {
    max-width: 16ch;
}

.marketing-split,
.pricing-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.marketing-split {
    grid-template-columns: 1fr 1fr;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pricing-card .actions {
    margin-top: auto;
    padding-top: 1rem;
}

.pricing-card--featured {
    border-color: rgba(15, 143, 123, 0.45);
    box-shadow: 0 24px 60px rgba(15, 143, 123, 0.18);
}

.pricing-badge {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--sea-mist);
    color: var(--sea-2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-price {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--muted);
}

.pricing-yearly {
    margin-top: 0.35rem;
}

.marketing-list {
    margin: 0.85rem 0 0;
    padding-left: 1.1rem;
    color: var(--ink-2);
}

.marketing-list li {
    margin: 0.4rem 0;
    line-height: 1.5;
}

.marketing-cta {
    margin-top: 1rem;
}

.home-links {
    margin-top: 1rem;
}

.home-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

.home-link-row a {
    font-weight: 700;
    color: var(--ink-2);
    text-decoration: none;
}

.home-link-row a:hover {
    color: var(--signal);
}

.contact-form label {
    margin-top: 0.95rem;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
    padding: 1.15rem 0.35rem 0.5rem;
    border-top: 1px solid rgba(247, 241, 232, 0.14);
    color: rgba(247, 241, 232, 0.72);
}

.site-footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--sand);
}

.site-footer-brand span {
    color: var(--signal);
    font-style: italic;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.site-footer-nav a {
    color: rgba(247, 241, 232, 0.78);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.site-footer-nav a:hover {
    color: var(--sand);
}

.site-footer-copy {
    margin: 0;
    width: 100%;
    font-size: 0.86rem;
    color: rgba(247, 241, 232, 0.5);
}

