@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', system-ui, Arial, sans-serif;
    color: #111111;
    background-color: #FFFFFF;
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 760px;
    margin: 0 auto;
}

/* Navigation */

nav {
    display: flex;
    gap: 28px;
    padding: 32px 24px 0;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #4A4F55;
}

nav a:hover {
    color: #111111;
    text-decoration: none;
}

nav a.nav-cta {
    margin-left: auto;
    background: #4A6B8A;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

nav a.nav-cta:hover {
    background: #3a5a78;
    color: #fff;
}

/* Hero */

.hero {
    padding: 64px 24px 48px;
    border-bottom: 1px solid #E3E7EB;
}

.hero--compact {
    padding: 40px 24px 24px;
}

.hero-inner {
    max-width: none;
    width: 100%;
    text-align: center;
}

/* Hero CTA row */
.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary {
    margin-top: 0;
}

h1 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #111111;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #4A4F55;
    line-height: 1.6;
    max-width: 700px;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle-tagline {
    font-size: 1rem;
    font-weight: 400;
    color: #6f7a85;
    line-height: 1.6;
    max-width: 700px;
    margin-top: 6px;
    margin-left: auto;
    margin-right: auto;
}

.hero-credibility {
    font-size: 0.85rem;
    font-weight: 400;
    color: #8C96A0;
    letter-spacing: 0.02em;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Defining line — visually prominent standalone statement */
.defining-line {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.5;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero supporting line — more prominent than credibility line */
.hero-supporting {
    font-size: 1.05rem;
    font-weight: 400;
    color: #4A4F55;
    line-height: 1.6;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Hero spacing is set via inline styles on each element for reliability. */

.cta-helper {
    font-size: 0.8rem;
    color: #8C96A0;
    margin-top: 10px;
    margin-bottom: 0;
    letter-spacing: 0.01em;
    text-align: center;
}

.cta-supporting {
    font-size: 0.8rem;
    color: #8C96A0;
    margin-top: 12px;
    margin-bottom: 0;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.6;
}

.simulation-adoption {
    font-size: 0.8rem;
    color: #8C96A0;
    margin-top: 16px;
    margin-bottom: 0;
    letter-spacing: 0.02em;
    text-align: center;
    font-style: italic;
}

/* Main content */

main {
    padding: 0 24px 80px;
}

section {
    padding: 48px 0;
}

/* Micro-label — sits above section headline */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #4A6B8A;
    margin-bottom: 8px;
}

/* Section label with no following h2 — needs more breathing room before body text */
.section-label--standalone {
    margin-bottom: 24px;
}

/* Reading column — constrains prose to analytical reading width */
.reading-col {
    max-width: 760px;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #111111;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E3E7EB;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: #111111;
}

p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #111111;
}

p:last-child {
    margin-bottom: 0;
}

footer p {
    color: #4A4F55;
}

footer a {
    color: #4A4F55;
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer a:hover {
    color: #4A6B8A;
}

ul {
    list-style: none;
    margin: 16px 0;
}

ul li {
    position: relative;
    padding-left: 24px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 1rem;
    color: #111111;
}

ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 2px;
    color: #4A6B8A;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1;
}

hr {
    border: none;
    border-top: 1px solid #E3E7EB;
}

/* Links and buttons */

a {
    color: #4A6B8A;
    text-decoration: none;
}

a:hover {
    color: #3A5878;
    text-decoration: underline;
}

.btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 10px 22px;
    background-color: #4A6B8A;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: none;
}

.btn:hover,
.btn-primary:hover {
    background-color: #3A5878;
    color: #FFFFFF;
    text-decoration: none;
}

/* Secondary (outlined) button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background-color: transparent;
    color: #4A6B8A;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid #4A6B8A;
}

.btn-secondary:hover {
    background-color: #4A6B8A;
    color: #FFFFFF;
    text-decoration: none;
}

/* Summary line beneath primary CTA */
.pilot-summary {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #4A4F55;
    letter-spacing: 0.02em;
}

/* Secondary email fallback beneath primary CTA */
.cta-email-fallback {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #6b7785;
}

.cta-email-fallback a {
    color: #8C96A0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-email-fallback a:hover {
    color: #4A6B8A;
    text-decoration: underline;
}

/* Structural diagram */

.diagram-wrapper {
    display: block;
    max-width: 720px;
    width: 80%;
    margin-top: 48px;
    margin-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
}

.diagram-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #6b7785;
    margin-bottom: 16px;
    text-align: center;
}

.diagram-wrapper--flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 620px;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.diagram-caption {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #6b7785;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 540px;
}

/* ── Diagram block ── */
.diagram-block {
    max-width: 560px;
    margin: 40px auto 0;
}

section > .diagram-block:last-child {
    margin-bottom: 0;
}

/* ── Decision sequence annotation ── */
.diagram-annotation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #4A6B8A;
    background: #eef2f6;
    border: 1px solid #c5ced8;
}

/* ── Escalation trajectory chart ── */
.trajectory-chart {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .trajectory-chart {
        max-width: 100%;
    }
}

.diagram-vertical {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
}

.diagram-arrow-down {
    width: 1px;
    height: 20px;
    background-color: #c5ced8;
    align-self: center;
    position: relative;
}

.diagram-arrow-down::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -4px;
    border-top: 6px solid #c5ced8;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.diagram-arrow-down--accent {
    background-color: #4A6B8A;
}

.diagram-arrow-down--accent::after {
    border-top-color: #4A6B8A;
}

.diagram {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0;
    margin-top: 8px;
}

.diagram-node {
    border: 1px solid #c5ced8;
    padding: 12px 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #4A4F55;
    background: #eef2f6;
}

.diagram-node-label {
    display: block;
}

.diagram-node-sublabel {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #8C96A0;
    margin-top: 3px;
}

.diagram-node--accent .diagram-node-sublabel {
    color: #7A9BB8;
}

.diagram-node--accent {
    border-color: #2a4a62;
    border-width: 1.5px;
    background: #d6e5f0;
    color: #3a5a78;
}

.diagram-arrow {
    width: 28px;
    height: 1px;
    background-color: #E3E7EB;
    position: relative;
    flex-shrink: 0;
}

.diagram-arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    border-left: 6px solid #E3E7EB;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.diagram-arrow--accent {
    background-color: #4A6B8A;
}

.diagram-arrow--accent::after {
    border-left-color: #4A6B8A;
}

/* ── Bridge section — "What GovernanceRehearsal provides" ── */

.bridge-section {
    padding-top: 26px;
    padding-bottom: 36px;
}

.bridge-section .section-label {
    margin-bottom: 16px;
}

.bridge-list {
    margin: 0;
    padding: 0;
}

.bridge-list li {
    font-size: 1rem;
    color: #4A4F55;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* ── Simulation section ── */

.simulation-section {
    padding-top: 32px;
    padding-bottom: 64px;
}

/* ── CTA + simulator section ── */
.cta-sim-section {
    padding-top: 40px;
    padding-bottom: 64px;
}

.simulation-subheading {
    font-size: 1rem;
    color: #6f7a85;
    max-width: 700px;
    margin-top: 0;
    margin-bottom: 24px;
}

.simulation-caption {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #4A4F55;
    line-height: 1.65;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.simulation-cta {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.simulation-cta .btn-primary,
.simulation-cta .btn-secondary {
    margin-top: 0;
}

/* ── Simulator pre-explainer block ── */

.sim-explainer {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #E3E7EB;
}

.sim-explainer__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    padding: 0;
    border: none;
}

.sim-explainer__body {
    font-size: 0.9rem;
    color: #4A4F55;
    line-height: 1.65;
    margin-bottom: 10px;
}

.sim-explainer__body:last-of-type {
    margin-bottom: 16px;
}

/* ── Pre-simulator CTA block ── */

.pre-sim-cta__heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111111;
    letter-spacing: 0;
}

.pre-sim-cta__helper {
    font-size: 0.875rem;
    color: #4A4F55;
}

.sim-scenario {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 16px;
}

.sim-scenario__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A6B8A;
    white-space: nowrap;
}

.sim-scenario__text {
    font-size: 0.875rem;
    color: #4A4F55;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .sim-explainer {
        margin-top: 0;
        margin-bottom: 0;
    }

    .sim-scenario {
        flex-direction: column;
        gap: 4px;
    }
}

/* ── Simulation embed ── */

.simulation-embed {
    margin-top: 60px;
    margin-left: -200px;
    margin-right: -200px;
    border: 1px solid #c5ced8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.simulation-embed iframe {
    display: block;
}

/* ── Screenshot section ── */

.screenshot-breakout {
    margin-top: 32px;
    margin-left: -120px;
    margin-right: -120px;
}

.screenshot-breakout--wide {
    margin-left: -200px;
    margin-right: -200px;
}

.screenshot-container {
    position: relative;
    border: 1px solid #c5ced8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.screenshot-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Callout overlays — visible on desktop only */
.callout {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #c5ced8;
    border-radius: 3px;
    padding: 8px 12px;
    max-width: 185px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.callout--stability  { top: 27%; right: 2%; }
.callout--escalation { top: 41%; right: 2%; }
.callout--alignment  { bottom: 18%; right: 2%; }
.callout--controls   { bottom: 18%; left: 1.5%; }

.callout-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.callout-label--blue  { color: #4A6B8A; }
.callout-label--red   { color: #B94040; }
.callout-label--green { color: #3A7A4A; }
.callout-label--grey  { color: #4A4F55; }

.callout-text {
    font-size: 0.7rem;
    line-height: 1.45;
    color: #4A4F55;
}

/* Mobile callout cards grid — hidden on desktop */
.callout-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.callout-card {
    padding: 12px 14px;
    border: 1px solid #E3E7EB;
    border-radius: 3px;
    background: #F7F9FB;
}

/* ── How institutions start: two-column pilot summary ── */

.pilot-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .pilot-summary-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ── Use case grid ── */

.use-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 24px;
    border: 1px solid #E3E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.use-case {
    padding: 20px 22px;
    background: #FAFBFC;
    border: none;
}

.use-case h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 8px;
    border: none;
    padding: 0;
    letter-spacing: -0.01em;
}

.use-case p {
    font-size: 0.875rem;
    color: #4A4F55;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }
}

/* Screenshot caption */

.screenshot-caption {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #8C96A0;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Footer credibility line */

.footer-credibility {
    margin-top: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: #8C96A0;
}

/* ── Footer ── */

footer {
    padding: 24px 24px 64px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: #4A4F55;
    border-top: 1px solid #E3E7EB;
}

/* Responsive */

@media (max-width: 600px) {
    nav {
        padding: 24px 20px 0;
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero {
        padding: 48px 20px 40px;
    }

    .hero--compact {
        padding: 32px 20px 28px;
    }

    .screenshot-breakout--wide {
        margin-left: 0;
        margin-right: 0;
    }

    .simulation-embed {
        margin-left: 0;
        margin-right: 0;
    }

    .simulation-embed iframe {
        height: 560px;
    }

    main {
        padding: 0 20px 64px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.375rem;
    }

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

    .diagram-annotation {
        gap: 12px;
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .diagram-arrow {
        width: 1px;
        height: 20px;
        background-color: #E3E7EB;
    }

    .diagram-arrow::after {
        display: none;
    }

    footer {
        padding: 24px 20px 48px;
    }

    /* Screenshot: collapse breakout on mobile */
    .screenshot-breakout {
        margin-left: 0;
        margin-right: 0;
    }

    /* Hide overlay callouts, show card grid instead */
    .callout {
        display: none;
    }

    .callout-grid {
        display: grid;
    }
}

@media (min-width: 601px) and (max-width: 920px) {
    /* Reduce breakout on mid-size screens */
    .screenshot-breakout {
        margin-left: -40px;
        margin-right: -40px;
    }

    .screenshot-breakout--wide {
        margin-left: -60px;
        margin-right: -60px;
    }

    .simulation-embed {
        margin-left: -60px;
        margin-right: -60px;
    }

    /* Reduce callout sizes slightly */
    .callout {
        max-width: 145px;
        padding: 6px 9px;
    }

    .callout-text {
        font-size: 0.62rem;
    }
}

@media (min-width: 921px) and (max-width: 1200px) {
    .screenshot-breakout--wide {
        margin-left: -140px;
        margin-right: -140px;
    }

    .simulation-embed {
        margin-left: -140px;
        margin-right: -140px;
    }

    .app-preview-frame {
        margin-left: -140px;
        margin-right: -140px;
    }
}

/* ── App preview (live iframe) ── */

.app-preview-frame {
    margin-top: 32px;
    position: relative;
    border: 1px solid #E3E7EB;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    height: 560px;
}

.app-preview-link {
    display: block;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
}

.app-preview-iframe {
    width: 142.86%;
    height: 1600px;
    border: none;
    pointer-events: none;
    transform: scale(0.7);
    transform-origin: top left;
}

.app-preview-link .app-preview-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.85) 85%, rgba(255,255,255,0.98) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    transition: background 0.2s;
}

.app-preview-link:hover .app-preview-overlay {
    background: linear-gradient(180deg, rgba(74,107,138,0.03) 0%, rgba(255,255,255,0.9) 85%, rgba(255,255,255,0.98) 100%);
}

.app-preview-overlay-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A6B8A;
    padding: 10px 22px;
    border: 1px solid #4A6B8A;
    background: #ffffff;
    transition: background 0.15s, color 0.15s;
}

.app-preview-link:hover .app-preview-overlay-label {
    background: #4A6B8A;
    color: #ffffff;
}

/* ── Site footer (new) ── */

.site-footer {
    padding: 48px 24px 64px;
    border-top: 1px solid #E3E7EB;
    margin-top: 0;
}

.site-footer p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #5a6a7a;
}

.site-footer .footer-brand {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A4F55;
    margin-bottom: 12px;
}

.site-footer .footer-contact {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #8C96A0;
}

.site-footer .footer-contact a {
    color: #4A6B8A;
    text-decoration: none;
}

.site-footer .footer-contact a:hover {
    text-decoration: underline;
}

/* ── Use case "why it matters" lines ── */

.use-case-why {
    margin-top: 20px;
    font-style: italic;
    color: #5a6a7a;
}
