:root {
    --bg: #efe6db;
    --bg-deep: #e7dac6;
    --paper: rgba(255, 253, 248, 0.84);
    --paper-strong: #fff8ef;
    --ink: #1f1b18;
    --muted: #6e6259;
    --line: rgba(31, 27, 24, 0.12);
    --brand: #b6462f;
    --brand-dark: #8b2f1d;
    --accent: #d7b36d;
    --accent-soft: #f0dfb8;
    --success: #235f46;
    --warning: #9b5d10;
    --error: #a63131;
    --info: #325ea8;
    --shadow: 0 24px 60px rgba(68, 44, 20, 0.12);
    --shadow-strong: 0 34px 90px rgba(71, 44, 24, 0.16);
    --reveal-duration: 720ms;
    --reveal-distance: 36px;
    --reveal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(214, 179, 109, 0.34), transparent 24%),
        radial-gradient(circle at right center, rgba(182, 70, 47, 0.16), transparent 22%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.66), transparent 30%),
        linear-gradient(180deg, #f9f2e7 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

body.is-loading {
    overflow: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(31, 27, 24, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 27, 24, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
    pointer-events: none;
    opacity: 0.3;
}

body::after {
    position: fixed;
    inset: auto auto 6% 6%;
    width: min(32vw, 320px);
    height: min(32vw, 320px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 70, 47, 0.1), transparent 66%);
    filter: blur(8px);
    content: "";
    pointer-events: none;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(214, 179, 109, 0.24), transparent 26%),
        radial-gradient(circle at right center, rgba(182, 70, 47, 0.16), transparent 24%),
        linear-gradient(180deg, #f8f2e8 0%, #f2eadf 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen__inner {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.loading-screen__eyebrow {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.loading-screen__title {
    margin: 0;
    max-width: none;
    font-family: "Cinzel", serif;
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1;
}

.loading-screen__dot {
    width: 42px;
    height: 42px;
    margin-top: 12px;
    border-radius: 50%;
    border: 3px solid rgba(182, 70, 47, 0.16);
    border-top-color: rgba(182, 70, 47, 0.88);
    border-right-color: rgba(182, 70, 47, 0.46);
    background: transparent;
    box-shadow: 0 0 24px rgba(182, 70, 47, 0.1);
    animation: loaderSpin 0.9s linear infinite;
}

.processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.processing-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.processing-overlay__card {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 360px;
    padding: 22px 24px;
    border: 1px solid rgba(31, 27, 24, 0.08);
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 24px 48px rgba(71, 44, 24, 0.14);
    backdrop-filter: blur(16px);
    text-align: center;
}

.processing-overlay__card strong {
    font-size: 1rem;
}

.processing-overlay__card p {
    color: var(--muted);
    line-height: 1.6;
}

.processing-overlay__spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(182, 70, 47, 0.16);
    border-top-color: rgba(182, 70, 47, 0.86);
    animation: loaderSpin 0.8s linear infinite;
}

.creator-watermark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 52px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
    padding-bottom: 12px;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.creator-watermark__line {
    width: min(200px, 42vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 27, 24, 0.18), transparent);
}

.creator-watermark__handle {
    display: inline-block;
    font-family: "Cinzel", serif;
    font-size: clamp(0.98rem, 2vw, 1.12rem);
    letter-spacing: 0.14em;
    color: rgba(31, 27, 24, 0.24);
    text-shadow: 0 10px 24px rgba(31, 27, 24, 0.08);
    text-align: center;
}

.page-shell {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    isolation: isolate;
}

body.is-processing .page-shell > :not(.processing-overlay) {
    filter: blur(8px);
    transform: scale(0.996);
    transition: filter 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.page-shell::before,
.page-shell::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.page-shell::before {
    top: 100px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(215, 179, 109, 0.22), transparent 68%);
}

.page-shell::after {
    left: -40px;
    bottom: 180px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(182, 70, 47, 0.16), transparent 68%);
}

.hero,
.workspace,
.report {
    animation: rise 0.7s ease both;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid rgba(31, 27, 24, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(255, 248, 239, 0.66));
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(71, 44, 24, 0.08);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-lockup__mark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--brand));
    box-shadow: 0 0 0 8px rgba(182, 70, 47, 0.08);
}

.brand-lockup strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
}

.brand-lockup p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.masthead-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(31, 27, 24, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, var(--reveal-distance), 0) scale(0.98);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease),
        transform var(--reveal-duration) var(--reveal-ease),
        filter var(--reveal-duration) var(--reveal-ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal-left {
    transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0) scale(0.98);
}

.reveal-right {
    transform: translate3d(var(--reveal-distance), 0, 0) scale(0.98);
}

.reveal-up {
    transform: translate3d(0, var(--reveal-distance), 0) scale(0.98);
}

.reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.stagger-group > .reveal:nth-child(1) {
    --reveal-delay: 60ms;
}

.stagger-group > .reveal:nth-child(2) {
    --reveal-delay: 140ms;
}

.stagger-group > .reveal:nth-child(3) {
    --reveal-delay: 220ms;
}

.stagger-group > .reveal:nth-child(4) {
    --reveal-delay: 300ms;
}

.stagger-group > .reveal:nth-child(5) {
    --reveal-delay: 380ms;
}

.stagger-group > .reveal:nth-child(6) {
    --reveal-delay: 460ms;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    min-height: 72vh;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
.section-heading h2,
.panel-body h2 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    letter-spacing: -0.03em;
}

h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.95;
}

.hero-text,
.section-heading p,
.panel-body span,
.rules-list li,
.muted-label,
.validation-item p,
.report-summary p,
.helper-text,
.summary-card span,
.insight-card span,
.hero-note,
.signal-item p,
.process-note,
.upload-hint-card p {
    color: var(--muted);
}

.hero-text {
    max-width: 58ch;
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-badges,
.hero-actions,
.insight-strip,
.signal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badges {
    margin-top: 20px;
}

.hero-actions {
    align-items: center;
    margin-top: 26px;
}

.hero-note {
    max-width: 34ch;
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(31, 27, 24, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(71, 44, 24, 0.08);
}

.hero-points {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.hero-points li::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(215, 179, 109, 0.24);
    content: "";
}

.hero-panel,
.card,
.panel-window {
    border: 1px solid var(--line);
    background: var(--paper);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    padding: 18px;
    border-radius: 32px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.panel-window {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.95));
}

.panel-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.panel-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(31, 27, 24, 0.15);
}

.panel-body {
    padding: 24px;
}

.status-pill,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-pill {
    background: rgba(182, 70, 47, 0.1);
    color: var(--brand);
}

.panel-body h2 {
    margin-top: 18px;
    font-size: 2rem;
}

.signal-stack {
    margin-top: 22px;
}

.signal-item {
    flex: 1 1 220px;
    padding: 16px 18px;
    border: 1px solid rgba(31, 27, 24, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 239, 0.82));
}

.signal-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.metric-grid,
.workspace-grid,
.report-grid,
.stats-grid,
.summary-strip {
    display: grid;
    gap: 16px;
}

.metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.metric-grid article,
.stats-grid article,
.summary-card,
.insight-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 27, 24, 0.08);
}

.metric-grid strong,
.stats-grid strong,
.summary-card strong {
    display: block;
    font-size: 1.65rem;
}

.credibility-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 20px;
}

.credibility-card {
    padding: 22px;
    border: 1px solid rgba(31, 27, 24, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 248, 239, 0.76));
    box-shadow: 0 20px 40px rgba(71, 44, 24, 0.07);
}

.credibility-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.credibility-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.credibility-card p {
    color: var(--muted);
    line-height: 1.7;
}

.profile-guide {
    display: grid;
    gap: 14px;
}

.profile-guide__card {
    padding: 18px;
    border: 1px solid rgba(31, 27, 24, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 239, 0.72));
}

.profile-guide__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.profile-guide__top strong {
    font-size: 1rem;
}

.profile-guide__top span {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-guide__headline {
    margin-bottom: 12px;
    color: var(--muted);
    line-height: 1.6;
}

main {
    display: grid;
    gap: 44px;
}

.workspace,
.report {
    padding-top: 10px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
}

.section-heading p {
    max-width: 64ch;
    margin-top: 12px;
    line-height: 1.7;
}

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

.summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.summary-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
    font-weight: 700;
}

.summary-card.success {
    border-color: rgba(35, 95, 70, 0.18);
}

.summary-card.warning {
    border-color: rgba(155, 93, 16, 0.18);
}

.summary-card.info {
    border-color: rgba(50, 94, 168, 0.18);
}

.summary-card.error {
    border-color: rgba(166, 49, 49, 0.18);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px;
    border-radius: 28px;
    overflow: hidden;
}

.card::before,
.hero-panel::before {
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 179, 109, 0.9), transparent);
    content: "";
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

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

.field-label {
    margin-bottom: -8px;
    font-size: 0.92rem;
    font-weight: 800;
}

.helper-text {
    margin-top: -8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.choice .helper-text {
    margin-top: 6px;
}

.text-field,
.text-area,
.file-field {
    width: 100%;
    border: 1px solid rgba(31, 27, 24, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.text-field:focus-visible,
.text-area:focus-visible,
.file-field:focus-visible,
.button:focus-visible {
    outline: none;
    border-color: rgba(182, 70, 47, 0.4);
    box-shadow: 0 0 0 4px rgba(182, 70, 47, 0.12);
}

.text-field {
    min-height: 54px;
    padding: 0 18px;
}

.text-area {
    min-height: 300px;
    padding: 18px;
    resize: vertical;
    line-height: 1.7;
}

.file-field {
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 239, 0.92));
}

.file-field.has-file {
    border-color: rgba(35, 95, 70, 0.28);
    box-shadow: 0 0 0 4px rgba(35, 95, 70, 0.08);
}

.mode-title {
    margin-top: 8px;
}

.upload-hint-card {
    padding: 16px 18px;
    border: 1px dashed rgba(182, 70, 47, 0.22);
    border-radius: 20px;
    background: rgba(182, 70, 47, 0.04);
}

.upload-hint-card strong {
    display: block;
    margin-bottom: 6px;
}

.process-note {
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.choice {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(31, 27, 24, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.66);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.choice:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(71, 44, 24, 0.08);
}

.choice input {
    margin-top: 4px;
    accent-color: var(--brand);
}

.choice.active,
.choice:has(input:checked) {
    border-color: rgba(182, 70, 47, 0.24);
    background: rgba(182, 70, 47, 0.06);
    box-shadow: 0 18px 36px rgba(182, 70, 47, 0.1);
}

.choice strong,
.report-summary h3,
.validation-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.choice p,
.report-summary p,
.validation-item p {
    line-height: 1.6;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--brand);
    color: #fffaf4;
    box-shadow: 0 14px 24px rgba(182, 70, 47, 0.22);
}

.button-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 18px 34px rgba(139, 47, 29, 0.28);
}

.button-block {
    width: 100%;
}

.report-card,
.preview-card {
    gap: 14px;
}

.report-summary,
.validation-item,
.message-box {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 27, 24, 0.08);
}

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

.stats-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.validation-item {
    justify-content: start;
}

.tag.success {
    background: rgba(35, 95, 70, 0.12);
    color: var(--success);
}

.tag.warning {
    background: rgba(155, 93, 16, 0.14);
    color: var(--warning);
}

.tag.info {
    background: rgba(50, 94, 168, 0.12);
    color: var(--info);
}

.tag.error {
    background: rgba(166, 49, 49, 0.12);
    color: var(--error);
}

.message-box.success {
    border-color: rgba(35, 95, 70, 0.18);
    background: rgba(35, 95, 70, 0.06);
}

.message-box.error {
    border-color: rgba(166, 49, 49, 0.18);
    background: rgba(166, 49, 49, 0.06);
}

.async-feedback[hidden] {
    display: none;
}

.rules-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.rules-card .rules-list + .rules-list {
    margin-top: 4px;
}

.rules-list li {
    position: relative;
    padding-left: 18px;
    font-weight: 700;
}

.rules-list li::before {
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    content: "";
}

.preview-box {
    margin: 0;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 27, 24, 0.08);
    color: var(--ink);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.94rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.muted-label {
    font-size: 0.92rem;
}

.second-row {
    margin-top: 18px;
}

.insight-strip {
    margin-bottom: 18px;
}

.insight-card {
    flex: 1 1 220px;
}

.insight-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

.insight-card strong {
    font-size: 1.08rem;
}

@media (max-width: 1180px) {
    .hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    }

    .page-shell {
        padding-inline: 20px;
    }
}

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

@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .masthead,
    .hero,
    .workspace-grid,
    .report-grid,
    .credibility-band {
        grid-template-columns: 1fr;
    }

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

    .masthead-pills {
        justify-content: flex-start;
    }

    .profile-guide__top {
        flex-direction: column;
        align-items: start;
    }

    .hero,
    .workspace-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 20px;
        padding-top: 20px;
    }

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

    .hero-panel,
    .card {
        border-radius: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 860px) {
    .page-shell {
        padding: 28px 18px 56px;
    }

    .hero-copy,
    .panel-body,
    .card {
        width: 100%;
    }

    .panel-body h2 {
        font-size: 1.8rem;
    }

    .section-heading h2 {
        line-height: 1.05;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 26px 16px 60px;
    }

    h1 {
        max-width: none;
        font-size: clamp(2.6rem, 11vw, 3rem);
    }

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

    .summary-strip {
        grid-template-columns: 1fr;
    }

    .report-summary,
    .message-box,
    .card-header {
        flex-direction: column;
        align-items: start;
    }

    .report-summary,
    .message-box,
    .validation-item {
        gap: 12px;
    }

    .choice {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .choice input {
        margin-top: 0;
    }

    .card,
    .hero-panel {
        padding: 20px;
    }

    .button,
    .button-block {
        width: 100%;
    }

    .masthead {
        padding: 18px;
    }

    .hero-badges,
    .insight-strip,
    .signal-stack {
        gap: 10px;
    }

    .creator-watermark {
        margin-top: 20px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 22px 14px 48px;
    }

    .hero {
        gap: 16px;
    }

    .section-heading {
        margin-bottom: 16px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .text-area {
        min-height: 220px;
    }

    .creator-watermark__handle {
        font-size: 0.84rem;
        letter-spacing: 0.08em;
    }

    .loading-screen__title {
        letter-spacing: 0.1em;
    }

    .hero-note {
        max-width: none;
    }

    .metric-grid article,
    .stats-grid article,
    .summary-card,
    .insight-card,
    .report-summary,
    .validation-item,
    .message-box,
    .preview-box {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .page-shell {
        padding-inline: 12px;
    }

    .hero-panel,
    .card {
        padding: 16px;
        border-radius: 20px;
    }

    .panel-window,
    .text-field,
    .text-area,
    .file-field,
    .choice,
    .preview-box {
        border-radius: 18px;
    }

    .button {
        min-height: 48px;
    }

    .status-pill,
    .tag {
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .loading-screen,
    .loading-screen__dot {
        animation: none !important;
    }
}
