:root {
    --navy: #132238;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;
    --green: #15803d;
    --amber: #a16207;
    --amber-light: #fef9c3;
    --text: #26364a;
    --muted: #64748b;
    --border: #dbe3ed;
    --surface: #ffffff;
    --surface-muted: #f6f8fb;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
    --radius: 18px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.6;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(219, 227, 237, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 1.12rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--navy);
    color: white;
    font-size: 0.92rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #526174;
    font-size: 0.93rem;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--blue);
}

.main-nav .nav-button {
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--navy);
    color: white;
}

.main-nav .nav-button:hover {
    background: var(--blue);
    color: white;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 112px;
    background:
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -220px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 76px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 650px;
    margin: 28px 0 0;
    color: #526174;
    font-size: 1.18rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

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

.button-primary {
    background: var(--blue);
    color: white;
}

.button-primary:hover {
    background: var(--blue-dark);
}

.button-secondary {
    background: white;
    border-color: var(--border);
    color: var(--navy);
}

.button-secondary:hover {
    border-color: #aebed0;
}

.button:disabled,
.button-disabled {
    cursor: default;
    opacity: 0.65;
}

.button:disabled:hover,
.button-disabled:hover {
    transform: none;
}

.prototype-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

/* Proposal preview */

.proposal-preview {
    padding: 26px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.preview-header strong {
    color: var(--navy);
    font-size: 1.28rem;
}

.preview-label {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-review {
    background: var(--amber-light);
    color: var(--amber);
}

.proposal-fields {
    margin: 8px 0 0;
}

.proposal-fields div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
}

.proposal-fields dt {
    color: var(--muted);
}

.proposal-fields dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
    text-align: right;
}

.policy-result {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
}

.policy-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 0.8rem;
    font-weight: 900;
}

.policy-result p {
    margin: 2px 0 0;
    font-size: 0.86rem;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

/* General sections */

.section {
    padding: 100px 0;
}

.section-muted {
    background: var(--surface-muted);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-heading h2,
.demonstration-grid h2,
.idas-panel h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.section-copy,
.idas-panel p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Process */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.process-card {
    min-height: 245px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

.step-number {
    display: inline-block;
    margin-bottom: 42px;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.process-card h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 1.28rem;
}

.process-card p {
    margin: 0;
    color: var(--muted);
}

/* Functioning prototype */

.prototype-heading {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 44px;
}

.prototype-heading h2,
.video-copy h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.prototype-heading > p,
.video-copy > p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.prototype-path {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.prototype-path article {
    position: relative;
    min-height: 220px;
    padding: 28px;
    border-right: 1px solid var(--border);
}

.prototype-path article:last-child {
    border-right: 0;
}

.prototype-path article:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 29px;
    right: -10px;
    z-index: 1;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
}

.prototype-path span {
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.prototype-path h3 {
    margin: 50px 0 8px;
    color: var(--navy);
    font-size: 1.2rem;
}

.prototype-path p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.prototype-disclaimer {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Video */

.video-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: center;
    gap: 72px;
}

.video-copy > p {
    margin-top: 20px;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--navy);
    box-shadow: var(--shadow);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Demonstration */

.demonstration-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 80px;
}

.section-copy {
    margin: 20px 0 28px;
}

.boundary-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.boundary-side {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
}

.boundary-side span {
    color: var(--muted);
    font-size: 0.85rem;
}

.boundary-side strong {
    margin-top: 5px;
    color: var(--navy);
    font-size: 1.3rem;
}

.authority-boundary {
    display: grid;
    place-items: center;
    padding: 16px 11px;
    background: var(--navy);
    color: white;
}

.authority-boundary span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* IDAS */

.idas-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 90px;
    padding: 56px;
    border-radius: 24px;
    background: var(--navy);
}

.idas-panel .eyebrow {
    color: #93c5fd;
}

.idas-panel h2 {
    color: white;
}

.idas-panel p {
    margin-top: 0;
    color: #cbd5e1;
}

.idas-panel p:last-child {
    margin-bottom: 0;
}

/* Footer */

.site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--border);
    background: white;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-inner strong {
    color: var(--navy);
}

.footer-inner p {
    margin: 4px 0 0;
}

.footer-note {
    text-align: right;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    color: var(--navy);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--blue);
}

/* Contact and interest */

.interest-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 48px 52px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.interest-callout h2,
.interest-intro h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.interest-callout p:last-child,
.interest-intro > p:last-child {
    max-width: 700px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.interest-page {
    padding: 72px 0 100px;
    background:
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.09), transparent 26%),
        var(--surface-muted);
}

.interest-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: start;
    gap: 72px;
}

.interest-points {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.interest-point {
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
}

.interest-point strong {
    display: block;
    color: var(--navy);
}

.interest-point span {
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-form {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label,
.consent-row {
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: white;
    color: var(--text);
    font: inherit;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(37, 99, 235, 0.12);
}

.field-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 20px;
    font-weight: 500;
}

.consent-row input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--blue);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.form-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
}

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px 24px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px 20px;
        font-size: 0.86rem;
    }

    .hero {
        padding: 76px 0 86px;
    }

    .hero-grid,
    .demonstration-grid,
    .idas-panel,
    .prototype-heading,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .demonstration-grid {
        gap: 50px;
    }

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

    .prototype-heading,
    .video-grid {
        gap: 32px;
    }

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

    .prototype-path article:nth-child(2) {
        border-right: 0;
    }

    .prototype-path article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .prototype-path article:nth-child(2)::after {
        display: none;
    }

    .idas-panel {
        gap: 24px;
    }

    .interest-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 66px;
    }

    .main-nav .nav-button {
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .hero {
        padding: 58px 0 72px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1.02rem;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .proposal-preview {
        padding: 20px;
    }

    .preview-header {
        flex-direction: column;
    }

    .proposal-fields div {
        display: block;
    }

    .proposal-fields dd {
        margin-top: 3px;
        text-align: left;
    }

    .preview-actions .button {
        flex: 1;
    }

    .section {
        padding: 72px 0;
    }

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

    .prototype-path {
        grid-template-columns: 1fr;
    }

    .prototype-path article,
    .prototype-path article:nth-child(2) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .prototype-path article:last-child {
        border-bottom: 0;
    }

    .prototype-path article::after,
    .prototype-path article:nth-child(2)::after {
        display: none;
    }

    .prototype-path h3 {
        margin-top: 22px;
    }

    .video-actions,
    .video-actions .button {
        width: 100%;
    }

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

    .step-number {
        margin-bottom: 26px;
    }

    .boundary-card {
        grid-template-columns: 1fr;
    }

    .boundary-side {
        min-height: 130px;
    }

    .authority-boundary {
        padding: 11px;
    }

    .authority-boundary span {
        writing-mode: initial;
        transform: none;
    }

    .idas-panel {
        padding: 34px 26px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 18px;
    }

    .footer-note {
        text-align: left;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .interest-callout {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
        padding: 32px 26px;
    }

    .interest-callout .button {
        width: 100%;
    }

    .interest-page {
        padding: 50px 0 72px;
    }

    .contact-form {
        padding: 24px 20px;
    }

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

    .form-field-full {
        grid-column: auto;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-footer .button {
        width: 100%;
    }
}
/* Demonstration */

.demo-hero {
    padding: 62px 0 42px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.09), transparent 28%),
        var(--surface-muted);
}

.back-link {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.back-link:hover {
    color: var(--blue);
}

.demo-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 60px;
}

.demo-heading h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.demo-heading > div:first-child > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.demo-safety-note {
    max-width: 350px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: rgba(239, 246, 255, 0.9);
    color: var(--navy);
}

.safety-indicator {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.demo-safety-note p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.demo-content {
    min-height: 600px;
    padding: 42px 0 100px;
    background: #ffffff;
}

/* Demonstration summary */

.workbox-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    margin-bottom: 54px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.workbox-summary > div {
    padding: 22px 24px;
    border-right: 1px solid var(--border);
}

.workbox-summary > div:last-child {
    border-right: 0;
}

.workbox-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.workbox-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--navy);
    font-size: 1.8rem;
    line-height: 1;
}

/* Proposal queue */

.workbox-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.workbox-toolbar h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.fictional-label {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 0.75rem;
    font-weight: 750;
}

.proposal-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
}

.proposal-row {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.35fr)
        minmax(170px, 0.8fr)
        minmax(210px, 1fr)
        minmax(155px, 0.72fr)
        28px;
    align-items: center;
    gap: 24px;
    min-height: 112px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    transition:
        background 150ms ease,
        transform 150ms ease;
}

.proposal-row:last-child {
    border-bottom: 0;
}

.proposal-row:hover {
    background: #f8fbff;
}

.proposal-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.proposal-id {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.proposal-identity h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1rem;
}

.proposal-identity p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.proposal-action span,
.proposal-source span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.proposal-action strong,
.proposal-source strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: 0.86rem;
}

.proposal-status {
    justify-self: start;
}

.status-review_required {
    background: var(--amber-light);
    color: var(--amber);
}

.status-blocked {
    background: #fee2e2;
    color: #b91c1c;
}

.status-authorised {
    background: #dcfce7;
    color: #166534;
}

.row-arrow {
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 800;
    transition: transform 150ms ease;
}

.proposal-row:hover .row-arrow {
    transform: translateX(3px);
    color: var(--blue);
}

/* Demonstration explanation */

.demo-explanation {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    margin-top: 70px;
    padding: 46px;
    border-radius: 20px;
    background: var(--navy);
}

.demo-explanation h2 {
    margin: 0;
    color: white;
    font-size: 2rem;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.demo-explanation .eyebrow {
    color: #93c5fd;
}

.demo-explanation > p {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.02rem;
}

/* Demonstration responsive layout */

@media (max-width: 1000px) {
    .proposal-row {
        grid-template-columns: minmax(240px, 1.4fr) 1fr 160px 24px;
    }

    .proposal-source {
        display: none;
    }
}

@media (max-width: 760px) {
    .demo-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 28px;
    }

    .demo-safety-note {
        max-width: none;
    }

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

    .workbox-summary > div:nth-child(2) {
        border-right: 0;
    }

    .workbox-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .workbox-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .proposal-row {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 20px;
    }

    .proposal-action,
    .proposal-source {
        display: none;
    }

    .proposal-status {
        grid-column: 1;
        margin-left: 79px;
    }

    .row-arrow {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .demo-explanation {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 26px;
    }
}

@media (max-width: 480px) {
    .demo-hero {
        padding: 42px 0 34px;
    }

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

    .workbox-summary > div {
        padding: 18px;
    }

    .proposal-identity {
        align-items: flex-start;
    }

    .proposal-id {
        display: none;
    }

    .proposal-status {
        margin-left: 0;
    }
}
/* Proposal detail */

.detail-header {
    padding: 46px 0 40px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 90% 15%, rgba(37, 99, 235, 0.08), transparent 30%),
        var(--surface-muted);
}

.detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}

.detail-heading h1 {
    margin: 12px 0 0;
    color: var(--navy);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.detail-heading > div > p {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.detail-reference {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-reference span {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: white;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 750;
}

.detail-heading > .status {
    margin-top: 8px;
}

.detail-content {
    padding: 46px 0 100px;
    background: #f8fafc;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 28px;
}

.detail-main {
    min-width: 0;
}

.detail-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.card-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.action-code,
.policy-type,
.record-count {
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 750;
}

.proposal-summary-text {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-left: 3px solid var(--blue);
    background: #f8fbff;
    color: var(--text);
}

.proposal-summary-text p {
    margin: 0;
}

.parameter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.parameter-grid div {
    padding: 17px;
    border-right: 1px solid var(--border);
}

.parameter-grid div:last-child {
    border-right: 0;
}

.parameter-grid dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.parameter-grid dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: var(--navy);
    font-weight: 750;
}

.submission-meta {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.submission-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.submission-meta strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: var(--navy);
    font-size: 0.86rem;
}

/* Authority boundary */

.detail-boundary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
    padding: 11px 18px;
    border-radius: 9px;
    background: var(--navy);
    color: white;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-boundary span {
    color: #94a3b8;
}

.detail-boundary strong {
    color: white;
}

/* Evidence */

.evidence-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.evidence-item {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.evidence-item:last-child {
    border-bottom: 0;
}

.evidence-symbol {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-weight: 900;
}

.evidence-warning .evidence-symbol {
    background: #fee2e2;
    color: #b91c1c;
}

.evidence-description h3 {
    margin: 0;
    color: var(--navy);
    font-size: 0.94rem;
}

.evidence-description p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.evidence-result {
    padding-left: 20px;
    color: var(--navy);
    font-size: 0.8rem;
    text-align: right;
}

/* Policy checks */

.check-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.check-row {
    display: grid;
    grid-template-columns: 28px minmax(160px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
}

.check-row:last-child {
    border-bottom: 0;
}

.check-symbol {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.76rem;
    font-weight: 900;
}

.check-pass .check-symbol {
    background: #dcfce7;
    color: #166534;
}

.check-review .check-symbol {
    background: var(--amber-light);
    color: var(--amber);
}

.check-fail .check-symbol {
    background: #fee2e2;
    color: #b91c1c;
}

.check-row > span:nth-child(2) {
    color: var(--text);
    font-size: 0.9rem;
}

.check-row strong {
    color: var(--navy);
    font-size: 0.82rem;
    text-align: right;
}

/* Authority panel */

.authority-panel {
    position: sticky;
    top: 98px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.authority-panel h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.authority-message {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.authority-rule {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
}

.authority-rule span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.authority-rule strong {
    display: block;
    margin-top: 4px;
    color: var(--navy);
    font-size: 0.9rem;
}

.decision-area {
    margin-top: 22px;
}

.decision-area > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.84rem;
}

.decision-buttons {
    display: grid;
    gap: 9px;
}

.decision-buttons .button {
    width: 100%;
}

.decision-result {
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

.decision-result.result-authorised {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.decision-result.result-rejected {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.decision-unavailable {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.85rem;
}

.execution-warning {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.execution-warning strong {
    color: var(--navy);
    font-size: 0.82rem;
}

.execution-warning p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

/* Proposal detail responsive */

@media (max-width: 920px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .authority-panel {
        position: static;
    }
}

@media (max-width: 660px) {
    .detail-heading {
        flex-direction: column;
        gap: 20px;
    }

    .detail-heading > .status {
        margin-top: 0;
    }

    .detail-card {
        padding: 21px;
    }

    .card-heading {
        flex-direction: column;
        gap: 12px;
    }

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

    .parameter-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .parameter-grid div:last-child {
        border-bottom: 0;
    }

    .submission-meta {
        grid-template-columns: 1fr;
    }

    .detail-boundary {
        flex-direction: column;
        gap: 2px;
    }

    .evidence-item {
        grid-template-columns: 30px 1fr;
    }

    .evidence-result {
        grid-column: 2;
        padding-left: 0;
        text-align: left;
    }

    .check-row {
        grid-template-columns: 28px 1fr;
    }

    .check-row strong {
        grid-column: 2;
        text-align: left;
    }
}
/* Error page */

.error-page {
    min-height: calc(100vh - 170px);
    display: grid;
    align-items: center;
    padding: 90px 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(37, 99, 235, 0.1), transparent 28%),
        var(--surface-muted);
}

.error-content {
    max-width: 760px;
    text-align: center;
}

.error-content h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.error-content > p:not(.eyebrow) {
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin-top: 30px;
}
.csv-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.csv-preview-grid > div {
    min-width: 0;
}

.csv-preview-grid dt {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.csv-preview-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {
    .csv-preview-grid {
        grid-template-columns: 1fr;
    }
}
.csv-preview-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1.25rem;
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.csv-preview-card > div {
    width: 100%;
    min-width: 0;
}

.csv-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
    width: 100%;
    margin-top: 1rem;
}

.csv-preview-grid > div {
    min-width: 0;
}

.csv-preview-grid dt {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.csv-preview-grid dd {
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 800px) {
    .csv-preview-grid {
        grid-template-columns: 1fr;
    }
}