:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #24304a;
    --muted: #67748d;
    --border: #d8e2f0;
    --accent: #2f63c6;
    --accent-hover: #244ea0;
    --navy: #202d66;
    --soft-blue: #d8e4ee;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
    --info-bg: #eff6ff;
    --info-text: #1e40af;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: inherit;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    box-shadow: 0 18px 40px rgba(35, 48, 74, 0.08);
}

h1 {
    margin: 0 0 8px;
    font-size: 22px;
}

.subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
}

form { display: flex; flex-direction: column; gap: 16px; }

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

label.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

input[type="email"],
input[type="file"],
input[type="text"],
input[type="tel"] {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
}

input[type="email"]:focus,
input[type="file"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

button {
    font: inherit;
    font-weight: 600;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: background 0.1s;
}

button:hover:not(:disabled) { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

#status {
    margin-top: 20px;
    padding: 0;
    font-size: 14px;
}

#status:empty { display: none; }

#status.info,
#status.success,
#status.error {
    padding: 12px 14px;
    border-radius: 6px;
}

#status.info    { background: var(--info-bg);    color: var(--info-text); }
#status.success { background: var(--success-bg); color: var(--success-text); }
#status.error   { background: var(--error-bg);   color: var(--error-text); }

/* --- Shared top navigation --- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 13px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--text);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
}

.site-brand-logo {
    display: block;
    height: 26px;
    width: auto;
}

.site-nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.public-links {
    margin-left: auto;
    margin-right: auto;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

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

.site-nav a.active {
    color: var(--navy);
    border-bottom-color: var(--accent);
}

.site-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 30px 2px;
    border: 1px solid #d2ddee;
    border-radius: 11px;
    background: white;
    color: #2f3b57;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
    border-bottom: 1px solid #c1d0e6;
    box-shadow:
        inset 0 -1px 0 rgba(193, 208, 230, 0.65),
        0 1px 0 rgba(36, 55, 90, 0.03);
    letter-spacing: -0.01em;
    flex: 0 0 auto;
    min-width: 156px;
}

.site-nav-cta span {
    display: block;
    position: relative;
    top: -1px;
}

.hero {
    background:
        linear-gradient(180deg, #f8faff 0%, #f8faff 87%, var(--soft-blue) 87%, var(--soft-blue) 100%);
    padding: 76px 24px 136px;
}

.hero-inner,
.benefit-card,
.feature-panel,
.request-copy,
.request-form-card {
    max-width: 1180px;
    margin: 0 auto;
}

.hero-inner {
    text-align: center;
    max-width: 980px;
}

.hero-kicker,
.benefit-kicker {
    margin: 0 0 18px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.38em;
    font-size: 13px;
    font-weight: 500;
}

.hero-title {
    margin: 0 auto 34px;
    max-width: 1120px;
    font-size: clamp(2.5rem, 4.15vw, 3.95rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    word-spacing: 0.1em;
    color: var(--navy);
    font-weight: 600;
}

.hero-title-line {
    display: block;
}

.hero-title-line-secondary {
    white-space: nowrap;
}

.hero-title-accent {
    color: var(--accent);
}

@media (max-width: 900px) {
    .hero-title-line-secondary {
        white-space: normal;
    }
}

.hero-copy {
    margin: 0 auto;
    max-width: 900px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 28px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.hero-price {
    margin-top: 27px;
    color: var(--muted);
    font-size: 15px;
}

.resume-report-section {
    background: var(--accent);
    margin-top: -84px;
    padding: 84px 24px 84px;
}

.resume-report-card {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 24px;
    padding: 28px 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    box-shadow: 0 14px 34px rgba(36, 87, 170, 0.08);
}

.resume-report-copy {
    max-width: 920px;
}

.resume-report-copy h2 {
    margin: 0 0 18px;
    color: #263249;
    font-size: clamp(2rem, 2.7vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    word-spacing: 0.05em;
    font-weight: 500;
}

.resume-report-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.resume-report-card .hero-cta {
    min-width: 220px;
    margin-top: -4px;
}

.benefit-section,
.feature-section {
    background: var(--soft-blue);
    padding: 52px 24px 68px;
}

.benefit-stack {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    gap: 72px;
}

.benefit-card,
.feature-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: stretch;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(36, 87, 170, 0.08);
    padding: 34px;
}

.benefit-copy,
.feature-copy {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-copy h2,
.feature-copy h2,
.request-copy h2,
.feature-heading h2 {
    margin: 0 0 18px;
    color: #263249;
    font-size: clamp(2rem, 2.7vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    word-spacing: 0.05em;
    font-weight: 500;
}

.benefit-copy p:last-child,
.feature-copy p:last-child,
.request-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.benefit-preview,
.feature-preview {
    border-left: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    margin: 0;
    overflow: hidden;
}

.preview-document,
.feature-box {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.benefit-preview-image {
    display: block;
    width: 100%;
    height: auto;
}

.feature-box {
    padding: 28px 20px;
}

.section-cta {
    text-align: center;
    justify-items: center;
    gap: 12px;
    display: grid;
}

.section-cta p {
    color: var(--muted);
    margin: 0;
    font-size: 0.98rem;
}

.feature-section {
    background: var(--accent);
    color: white;
    padding: 88px 44px;
}

.feature-section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.feature-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 44px;
}

.feature-heading .benefit-kicker {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
}

.feature-heading h2 {
    color: white;
    margin-bottom: 0;
    word-spacing: 0.07em;
}

.feature-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.includes-list {
    gap: 12px;
    display: grid;
}

.includes-list span {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
}

.feature-box-label {
    margin: 0 0 18px;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 500;
}

.metrics-card {
    color: var(--text);
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px;
}

.metrics-card h3 {
    margin: 0 0 28px;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 600;
    color: #1f2937;
}

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

.metric-grid div {
    background: #f6f8ff;
    border-radius: 6px;
    padding: 18px;
}

.metric-grid strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.metric-grid span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.construction-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 44px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
    align-items: center;
    gap: 54px;
    background: white;
}

.construction-copy {
    max-width: 640px;
}

.construction-copy .benefit-kicker {
    margin: 0 0 18px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.38em;
    font-size: 13px;
    font-weight: 500;
}

.construction-copy h2 {
    margin: 0 0 18px;
    color: #263249;
    font-size: clamp(2rem, 2.7vw, 2.35rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    word-spacing: 0.07em;
    font-weight: 500;
}

.construction-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.construction-copy p + p {
    margin-top: 28px;
}

.risk-list {
    display: grid;
    gap: 14px;
}

.risk-list article {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 16px;
    padding: 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(36, 87, 170, 0.06);
}

.risk-list span {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.risk-list p {
    margin: 0;
    color: #263249;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.final-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 32px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.process-section {
    background:
        radial-gradient(circle at top left, rgba(47, 99, 198, 0.08), transparent 32%),
        linear-gradient(180deg, #f8faff 0%, white 100%);
    padding: 88px 24px 76px;
}

.process-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.process-heading {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
}

.process-heading h2 {
    margin: 0 0 18px;
    color: #263249;
    font-size: clamp(2rem, 2.7vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    word-spacing: 0.05em;
    font-weight: 500;
}

.process-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.process-step {
    position: relative;
    min-height: 0;
    padding: 22px 20px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 42px rgba(36, 87, 170, 0.08);
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(47, 99, 198, 0.1);
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.process-step h3 {
    margin: 18px 0 12px;
    color: #263249;
    font-size: 1.22rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    word-spacing: 0.04em;
    font-weight: 600;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.process-support {
    margin-top: 48px;
    display: grid;
    justify-items: center;
    gap: 34px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.process-support p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
    text-align: center;
}

.process-support .final-cta-button {
    justify-self: center;
    min-height: 56px;
    padding: 0 40px;
}

.feature-box-label {
    margin: 0 0 18px;
    color: #7a859a;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 700;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f4f7fd;
    color: #274167;
    font-size: 16px;
    font-weight: 600;
}

.request-section {
    background:
        radial-gradient(circle at top left, rgba(47, 99, 198, 0.08), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, white 100%);
    padding: 88px 24px 104px;
}

.request-card {
    max-width: 1080px;
    margin: 0 auto;
}

.request-form-section-heading h4 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.request-form-section-heading p,
.request-submit-row p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.request-form-card {
    max-width: none;
    padding: 34px;
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(17, 34, 74, 0.12);
}

.request-form-card h3 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.request-form-header .subtitle {
    margin-bottom: 0;
    max-width: 44rem;
    line-height: 1.7;
    color: #74819a;
    font-size: 1rem;
}

.request-progress {
    margin: 28px 0 30px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.request-progress-step {
    min-height: 88px;
    padding: 14px 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f7faff;
    color: #8390a8;
    display: grid;
    align-content: start;
    gap: 10px;
}

.request-progress-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    border-radius: 999px;
    background: white;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 700;
}

.request-progress-step strong {
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 700;
}

.request-progress-step.is-active {
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    color: var(--navy);
    border-color: #bfd2f2;
    box-shadow: 0 12px 28px rgba(47, 99, 198, 0.08);
}

.request-progress-step.is-active span {
    background: rgba(47, 99, 198, 0.1);
    color: var(--accent);
}

.request-form-card form {
    gap: 24px;
}

.request-form-section {
    padding: 24px;
    border: 1px solid #dfe7f3;
    border-radius: 20px;
    background: linear-gradient(180deg, #fcfdff 0%, #f7f9fc 100%);
}

.request-form-section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.request-form-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 40px;
    border-radius: 14px;
    background: rgba(47, 99, 198, 0.1);
    color: var(--accent);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.request-form-section-heading h4 {
    color: var(--navy);
}

.request-form-section-heading p {
    color: var(--muted);
}

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

.request-field-grid label {
    gap: 9px;
    color: #31405d;
    font-size: 0.95rem;
}

.field-label {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: nowrap;
}

.request-field-grid input {
    min-height: 54px;
    padding: 14px 15px;
    border-radius: 12px;
    border-color: #ccd8ea;
}

.field-required {
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}

.upload-dropzone {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px 24px;
    border: 1.5px dashed #b7c9e8;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(47, 99, 198, 0.07), transparent 46%),
        white;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: #7da1db;
    box-shadow: 0 16px 36px rgba(47, 99, 198, 0.12);
    transform: translateY(-1px);
}

.upload-dropzone.has-file {
    border-style: solid;
    border-color: #9bb7e6;
    background:
        radial-gradient(circle at top, rgba(47, 99, 198, 0.09), transparent 46%),
        #fbfdff;
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.upload-dropzone strong {
    color: var(--navy);
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.upload-dropzone-copy,
.upload-dropzone-filename {
    max-width: 34rem;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.upload-dropzone-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: -1;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 0.96rem;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(47, 99, 198, 0.22);
    transition: background 0.1s ease;
}

.upload-dropzone:hover .upload-dropzone-action,
.upload-dropzone.is-dragover .upload-dropzone-action {
    background: var(--accent-hover);
}

.upload-dropzone-filename {
    color: #8794ab;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.request-submit-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.request-submit-row p {
    color: var(--muted);
}

/* --- Upload and Analyze Schedule — bespoke CTA --- */

.analyze-cta {
    --cta-accent: #2f63c6;
    --cta-accent-hot: #4f8bff;
    --cta-accent-deep: #202d66;

    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    min-height: 60px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cta-accent-deep) 0%, var(--cta-accent) 45%, var(--cta-accent-hot) 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 20px 40px rgba(47, 99, 198, 0.35),
        0 2px 6px rgba(32, 45, 102, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.3s ease;
}

.analyze-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 80%
    );
    transform: translateX(-120%);
    z-index: -1;
    pointer-events: none;
}

.analyze-cta-arrow {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.analyze-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 26px 52px rgba(47, 99, 198, 0.45),
        0 4px 10px rgba(32, 45, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.analyze-cta:hover:not(:disabled) .analyze-cta-arrow {
    transform: translateX(4px);
}

.analyze-cta:active:not(:disabled) {
    transform: translateY(0);
}

.analyze-cta:disabled {
    cursor: not-allowed;
    background: linear-gradient(135deg, #b6c0d2 0%, #94a2bb 100%);
    box-shadow: 0 4px 10px rgba(35, 48, 74, 0.1);
    filter: saturate(0.6);
    opacity: 0.85;
}

@keyframes analyze-cta-pop-in {
    0% {
        box-shadow:
            0 0 0 0 rgba(79, 139, 255, 0.6),
            0 6px 14px rgba(47, 99, 198, 0.25);
    }
    35% {
        box-shadow:
            0 0 0 14px rgba(79, 139, 255, 0.2),
            0 28px 56px rgba(47, 99, 198, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    75% {
        box-shadow:
            0 0 0 24px rgba(79, 139, 255, 0),
            0 22px 44px rgba(47, 99, 198, 0.38);
    }
    100% {
        box-shadow:
            0 20px 40px rgba(47, 99, 198, 0.35),
            0 2px 6px rgba(32, 45, 102, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }
}

@keyframes analyze-cta-shimmer {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.analyze-cta.is-ready {
    animation: analyze-cta-pop-in 0.9s ease-out;
}

.analyze-cta.is-ready::before {
    animation: analyze-cta-shimmer 1.1s ease-out 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .analyze-cta,
    .analyze-cta-arrow {
        transition: none;
    }
    .analyze-cta.is-ready,
    .analyze-cta.is-ready::before {
        animation: none;
    }
}

#status {
    margin-top: 24px;
    font-size: 0.95rem;
}

/* --- Admin page --- */

body.admin {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
}

body.admin header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

body.admin header h1 { font-size: 18px; margin: 0 0 4px; }
body.admin header .subtitle { margin: 0; }

.admin-grid {
    display: grid;
    grid-template-columns: 240px 320px 1fr;
    gap: 1px;
    background: var(--border);
    flex: 1;
    min-height: 0;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: none;
}

.admin-grid.preview-open {
    grid-template-columns: 240px 320px 1fr 1fr;
}

.pane {
    background: white;
    padding: 16px 20px;
    overflow-y: auto;
}

.pane h2 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.pane h3 {
    margin: 20px 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.pane > .small-button {
    margin-bottom: 12px;
}

.hint {
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.list li {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
}

.list li.clickable { cursor: pointer; }
.list li.clickable:hover { background: var(--bg); }
.list li.selected { background: var(--info-bg); color: var(--info-text); }
.list li.empty { color: var(--muted); font-style: italic; }
.list li.error-item { color: var(--error-text); background: var(--error-bg); }

.project-title { font-weight: 600; font-size: 13px; }
.project-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.list li.selected .project-meta { color: var(--info-text); opacity: 0.8; }

.actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

#action-status {
    margin: 8px 0 16px;
    font-size: 13px;
}

#action-status:empty { display: none; }

#action-status.info, #action-status.success, #action-status.error {
    padding: 8px 12px;
    border-radius: 4px;
}

#action-status.info    { background: var(--info-bg);    color: var(--info-text); }
#action-status.success { background: var(--success-bg); color: var(--success-text); }
#action-status.error   { background: var(--error-bg);   color: var(--error-text); }

#files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#files-table th, #files-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    word-break: break-all;
}

#files-table th {
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}


#files-table a.file-link {
    color: var(--accent);
    text-decoration: none;
}
#files-table a.file-link:hover { text-decoration: underline; }

#files-table a.file-preview-link {
    margin-left: 12px;
    color: var(--navy);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

#files-table a.file-preview-link:hover { text-decoration: underline; }

/* --- File preview pane (admin) --- */

.file-preview-pane[hidden] {
    display: none;
}

.file-preview-pane:not([hidden]) {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.file-preview-header h2 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.file-preview-controls label[hidden] {
    display: none;
}

.file-preview-controls label:not([hidden]) {
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-preview-content {
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-preview-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    background: var(--bg);
    padding: 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.file-preview-content .md-rendered {
    font-size: 13px;
    line-height: 1.65;
}

.file-preview-content .md-rendered h1,
.file-preview-content .md-rendered h2,
.file-preview-content .md-rendered h3 {
    margin: 1.2em 0 0.4em;
    line-height: 1.25;
}

.file-preview-content .md-rendered h1 { font-size: 1.3em; }
.file-preview-content .md-rendered h2 { font-size: 1.15em; }
.file-preview-content .md-rendered h3 { font-size: 1.05em; }

.file-preview-content .md-rendered p {
    margin: 0.6em 0;
}

.file-preview-content .md-rendered ul,
.file-preview-content .md-rendered ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.file-preview-content .md-rendered code {
    font-family: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg);
    padding: 2px 5px;
    border-radius: 3px;
}

.file-preview-content .md-rendered pre code {
    display: block;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.html-preview-iframe {
    width: 100%;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
}

.html-tag { color: #116329; }
.html-attr { color: #0550ae; }
.html-string { color: #0a3069; }
.html-comment { color: #6e7781; }

.json-key { color: #0550ae; }
.json-string { color: #0a3069; }
.json-number { color: #0550ae; }
.json-bool { color: #cf222e; }
.json-null { color: #6e7781; }

#files-table tr.previewable { cursor: pointer; }
#files-table tr.previewable:hover td { background: var(--info-bg); }
#files-table tr.preview-active td { background: var(--info-bg); color: var(--info-text); }

.file-link-previewable {
    color: var(--accent);
    cursor: pointer;
}
.file-link-previewable:hover { text-decoration: underline; }

.small-button[hidden] { display: none; }

.small-button {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.small-button:hover { background: var(--info-bg); }

/* --- Orchestrations page --- */

.orch-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1px;
    background: var(--border);
    flex: 1;
    min-height: 0;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: none;
}

@media (max-width: 1100px) {
    .process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-nav {
        position: static;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .public-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .hero {
        padding: 52px 20px 112px;
    }

    .benefit-card,
    .feature-panel,
    .request-card {
        grid-template-columns: 1fr;
    }

    .benefit-preview,
    .feature-preview {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .request-progress,
    .request-field-grid,
    .request-submit-row {
        grid-template-columns: 1fr;
    }

    .report-preview-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .report-preview-actions {
        justify-content: flex-start;
    }

    .construction-section {
        grid-template-columns: 1fr;
        padding: 64px 24px;
        gap: 36px;
    }

    .construction-copy {
        max-width: none;
    }

    .process-section {
        padding: 64px 20px 56px;
    }

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

    .process-step {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .construction-section {
        padding: 52px 20px;
        gap: 28px;
    }

    .risk-list article {
        grid-template-columns: 36px 1fr;
        padding: 14px 16px;
        gap: 12px;
    }

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

    .process-support {
        margin-top: 32px;
        gap: 24px;
    }

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

/* Landscape phones — keep nav on a single line despite the 900px wrap rules. */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .site-nav {
        flex-wrap: nowrap;
        gap: 14px;
    }

    .public-links {
        order: 0;
        width: auto;
        justify-content: flex-start;
        gap: 14px;
    }

    .site-nav-cta {
        width: auto;
    }
}

@media (max-width: 640px) {
    .site-brand-text {
        font-size: 17px;
    }

    .site-nav-cta {
        width: 100%;
        text-align: center;
    }

    .hero-copy,
    .benefit-copy p:last-child,
    .feature-copy p:last-child,
    .request-copy p:last-child {
        font-size: 16px;
    }

    .card,
    .benefit-copy,
    .feature-copy,
    .benefit-preview,
    .feature-preview {
        padding: 24px;
    }

    .request-form-card,
    .request-form-section {
        padding: 24px;
    }

    .request-progress-step {
        min-height: auto;
    }

    .request-form-section-heading {
        grid-template-columns: 1fr;
    }
}

.orch-list-pane, .orch-detail-pane {
    background: white;
    padding: 16px 20px;
    overflow-y: auto;
}

.orch-toolbar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.orch-toolbar label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.orch-toolbar select {
    font: inherit;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 4px;
    min-width: 160px;
}

.orch-toolbar #list-meta {
    margin-left: auto;
}

#orch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#orch-table th, #orch-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

#orch-table th {
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

#orch-table tbody tr.clickable { cursor: pointer; }
#orch-table tbody tr.clickable:hover { background: var(--bg); }
#orch-table tbody tr.selected { background: var(--info-bg); }

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--border);
    color: var(--text);
}
.status-Running        { background: #dbeafe; color: #1e40af; }
.status-Pending        { background: #f3e8ff; color: #6b21a8; }
.status-Completed      { background: var(--success-bg); color: var(--success-text); }
.status-Failed         { background: var(--error-bg); color: var(--error-text); }
.status-Terminated     { background: #fef3c7; color: #92400e; }
.status-Canceled       { background: #e5e7eb; color: #374151; }
.status-ContinuedAsNew { background: #e0f2fe; color: #075985; }

.orch-detail-pane .hint { margin-top: 16px; }

.detail-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.detail-header h2 { margin: 6px 0 0; font-size: 16px; }
.detail-id { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); margin-top: 4px; word-break: break-all; }

.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.detail-meta label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.detail-meta span { font-size: 13px; }

.crosslink {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
}
.crosslink:hover { text-decoration: underline; }

.detail-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.detail-actions button { font-size: 13px; padding: 6px 12px; }
.detail-actions button:disabled { background: var(--border); color: var(--muted); }

#detail-status { font-size: 13px; }
#detail-status:empty { display: none; }
#detail-status.info, #detail-status.success, #detail-status.error {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
#detail-status.info    { background: var(--info-bg);    color: var(--info-text); }
#detail-status.success { background: var(--success-bg); color: var(--success-text); }
#detail-status.error   { background: var(--error-bg);   color: var(--error-text); }

.orch-detail-pane h3 {
    margin: 16px 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.json-block {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--border);
}

.history-list li {
    padding: 6px 0 6px 14px;
    margin-left: 4px;
    position: relative;
    font-size: 12px;
    line-height: 1.4;
}

.history-list li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.history-list .history-started::before,
.history-list .history-orchestrator-completed::before { background: var(--accent); }
.history-list .history-scheduled::before,
.history-list .history-sub-created::before,
.history-list .history-timer-created::before { background: #9ca3af; }
.history-list .history-completed::before,
.history-list .history-sub-completed::before,
.history-list .history-timer-fired::before { background: #16a34a; }
.history-list .history-failed::before,
.history-list .history-sub-failed::before,
.history-list .history-terminated::before { background: #dc2626; }

.history-time {
    color: var(--muted);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    margin-right: 6px;
}
.history-label { font-weight: 500; }
.history-detail {
    display: block;
    color: var(--muted);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    margin-top: 2px;
    word-break: break-all;
}

.report-preview-body {
    background:
        radial-gradient(circle at top left, rgba(47, 99, 198, 0.08), transparent 22%),
        #eef3fb;
}

.report-preview-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}

.report-preview-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.report-preview-header h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(2.2rem, 3vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.report-preview-header p:last-child {
    margin: 0;
    max-width: 52rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.report-preview-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.report-preview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid #c9d7ec;
    background: white;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.report-preview-canvas {
    border: 1px solid #d6e1f1;
    border-radius: 28px;
    background: white;
    box-shadow: 0 28px 60px rgba(21, 42, 78, 0.08);
    overflow: hidden;
}

.public-report-preview-shell {
    max-width: 1380px;
}

.public-report-preview-header {
    margin-bottom: 34px;
}

.public-report-preview-header h1 {
    margin: 0 0 18px;
    color: #263249;
    font-size: clamp(2rem, 2.7vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    word-spacing: 0.05em;
    font-weight: 500;
}

.public-report-preview-header p:last-child {
    margin: 0;
    max-width: 980px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.public-preview-offer {
    margin-top: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.public-preview-offer-full {
    grid-template-columns: minmax(0, 1fr);
}

.public-preview-offer-copy,
.public-preview-offer-card {
    border: 1px solid #d6e1f1;
    border-radius: 28px;
    background: white;
    box-shadow: 0 20px 48px rgba(21, 42, 78, 0.06);
    padding: 32px;
}

.public-preview-not-ready {
    border: 1px solid #d6e1f1;
    border-radius: 28px;
    background: white;
    box-shadow: 0 20px 48px rgba(21, 42, 78, 0.06);
    padding: 32px;
    margin-bottom: 36px;
}

.public-preview-not-ready h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(1.8rem, 2.3vw, 2.2rem);
    line-height: 1.15;
}

.public-preview-not-ready p {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.public-preview-not-ready .hero-cta {
    margin-top: 24px;
}

.public-preview-offer-copy h2 {
    margin: 0 0 16px;
    color: #263249;
    font-size: clamp(2rem, 2.7vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    word-spacing: 0.05em;
    font-weight: 500;
}

.public-preview-price {
    color: #263249;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -0.02em;
    word-spacing: 0.05em;
    font-weight: 500;
}

.public-preview-price-copy {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.public-preview-includes {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    display: grid;
    gap: 18px;
    font-size: 1rem;
}

.public-preview-price-block {
    margin-top: 26px;
}

.public-preview-buy-form {
    margin: 20px 0 0;
    display: inline-flex;
    max-width: 100%;
}

.public-preview-buy-btn {
    appearance: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    min-height: 54px;
    padding: 14px 32px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(47, 99, 198, 0.25);
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.public-preview-buy-btn:hover {
    background: var(--accent-hover);
}

.public-preview-buy-btn:active {
    transform: translateY(1px);
}

.public-preview-buy-btn:disabled {
    background: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
}

.public-preview-next-step {
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.public-preview-offer-visual {
    display: grid;
    gap: 18px;
    align-content: start;
    justify-items: stretch;
}

.public-preview-visual-chip,
.public-preview-visual-panel,
.public-preview-visual-strip {
    border-radius: 0;
    background: linear-gradient(180deg, #edf3ff 0%, #dfe9fa 100%);
    position: relative;
    overflow: hidden;
}

.public-preview-visual-chip::after,
.public-preview-visual-panel::after,
.public-preview-visual-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0) 80%);
    transform: translateX(-32%);
    filter: blur(22px);
}

.public-preview-visual-chip {
    width: 36%;
    min-width: 120px;
    height: 86px;
}

.public-preview-visual-panel {
    height: 206px;
}

.public-preview-visual-strip {
    height: 100px;
}

/* ── Progress page ──────────────────────────────────────────────── */

.progress-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px;
}

.progress-card {
    padding: 48px;
}

.progress-header {
    margin-bottom: 32px;
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
}

.progress-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.progress-subtitle-stack {
    display: grid;
    gap: 12px;
    max-width: 42rem;
}

.progress-subtitle-stack p {
    margin: 0;
}

.progress-link-row {
    margin: 24px 0;
    font-size: 0.98rem;
}

.progress-link-row a {
    text-underline-offset: 0.12em;
}

.progress-project-name {
    margin-bottom: 28px;
    padding: 12px 16px;
    background: var(--info-bg);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--info-text);
}

.progress-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    padding-left: 4px;
}

.progress-stage {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    color: var(--muted);
    position: relative;
}

.progress-stage + .progress-stage {
    border-top: 1px solid var(--border);
}

.progress-stage-indicator {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    position: relative;
}

.progress-stage div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.progress-stage strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-stage span {
    font-size: 0.82rem;
}

.progress-stage.is-complete .progress-stage-indicator {
    border-color: var(--success-text);
    background: var(--success-text);
}

.progress-stage.is-complete .progress-stage-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.progress-stage.is-complete {
    color: var(--success-text);
}

.progress-stage.is-active .progress-stage-indicator {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(47, 99, 198, 0.15);
}

.progress-stage.is-active .progress-stage-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.progress-stage.is-active {
    color: var(--accent);
}

.progress-stage.is-active strong {
    font-weight: 700;
}

.progress-thinking-text {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
    line-height: 1.5;
}

.progress-thinking-text[hidden] {
    display: none;
}

.progress-download {
    text-align: left;
    padding-top: 18px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 36px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.15s;
}

.download-btn:hover {
    background: var(--accent-hover);
    color: white;
}

.progress-purchased {
    padding: 14px 18px;
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 16px;
}

.progress-purchased p {
    margin: 0;
}

.progress-error {
    padding: 14px 18px;
    background: var(--error-bg);
    color: var(--error-text);
    border-radius: 8px;
    font-size: 0.9rem;
}

.progress-error p {
    margin: 0;
}

@media (max-width: 920px) {
    .public-preview-offer {
        grid-template-columns: 1fr;
    }

    .resume-report-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .report-preview-shell {
        padding: 20px 10px 32px;
    }

    .report-preview-canvas {
        border-radius: 16px;
    }
}

/* --- Privacy badges (home page submit area) --- */

.privacy-badges {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.privacy-badge a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8faff;
    color: var(--navy);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    height: 100%;
}

.privacy-badge a:hover,
.privacy-badge a:focus {
    border-color: var(--accent);
    background: white;
}

.privacy-badge strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.privacy-badge span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

.privacy-badges-link {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4px;
}

.privacy-badges-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.privacy-badges-link a:hover,
.privacy-badges-link a:focus {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .privacy-badges {
        grid-template-columns: 1fr;
    }
}

/* --- Privacy page --- */

.privacy-main {
    background: linear-gradient(180deg, #f8faff 0%, white 100%);
    padding: 64px 24px 96px;
}

.privacy-article {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text);
}

.privacy-header {
    margin-bottom: 40px;
}

.privacy-header h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin: 8px 0 20px;
}

.privacy-lede {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5876;
    margin: 0 0 16px;
}

.privacy-updated {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.privacy-promises {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.privacy-promise {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 8px 24px rgba(35, 48, 74, 0.05);
    scroll-margin-top: 24px;
}

.privacy-promise h2 {
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0 0 14px;
}

.privacy-promise p {
    margin: 0 0 12px;
    line-height: 1.7;
    color: #3a4564;
}

.privacy-promise p:last-child {
    margin-bottom: 0;
}

.privacy-promise ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
    color: #3a4564;
}

.privacy-promise ul li {
    margin-bottom: 8px;
}

.privacy-section {
    margin-bottom: 40px;
    scroll-margin-top: 24px;
}

.privacy-section h2 {
    font-size: 1.2rem;
    color: var(--navy);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.privacy-section p,
.privacy-section li {
    line-height: 1.7;
    color: #3a4564;
}

.privacy-section ol,
.privacy-section ul {
    padding-left: 20px;
    margin: 0 0 12px;
}

.privacy-section ol li,
.privacy-section ul li {
    margin-bottom: 8px;
}

.privacy-article code {
    background: #eef2fb;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}

.privacy-article a {
    color: var(--accent);
}

@media (max-width: 640px) {
    .privacy-main {
        padding: 40px 16px 64px;
    }

    .privacy-header h1 {
        font-size: 1.9rem;
    }

    .privacy-promise {
        padding: 22px 20px;
    }
}

/* --- Site-wide footer --- */

.site-footer {
    border-top: 1px solid var(--border);
    background: white;
    padding: 24px 24px;
    margin-top: 32px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
}

.site-footer-links {
    display: flex;
    gap: 20px;
}

.site-footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus {
    color: var(--accent);
    text-decoration: underline;
}
