:root {
    --brand: #087693;
    --brand-dark: #07566e;
    --brand-soft: #e7f5f8;
    --ink: #173341;
    --muted: #60737c;
    --line: #d8e4e8;
    --surface: #ffffff;
    --canvas: #f3f7f8;
    --success: #167a5b;
    --success-soft: #e5f6ef;
    --warning: #9a6514;
    --warning-soft: #fff4d9;
    --danger: #a63a45;
    --danger-soft: #fcecef;
    --shadow: 0 20px 55px rgba(25, 69, 83, 0.1);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 90% 5%, rgba(8, 118, 147, 0.1), transparent 28rem),
        var(--canvas);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-dark);
}
button,
input {
    font: inherit;
}

.site-header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 102px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(8, 118, 147, 0.16);
    background: #fff;
    padding: 0.5em;
    border-radius: 0 0 var(--radius) var(--radius);
}

.brand {
    display: inline-flex;
    align-items: center;
}
.brand img {
    width: 270px;
    height: auto;
    display: block;
}
.service-name {
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.88rem;
}
.footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.footer-link {
    color: var(--brand-dark);
}
.contact-link {
    padding: 0;
    color: var(--brand-dark);
    background: none;
    border: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

h1,
h2,
p {
    margin-top: 0;
}
h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}
h2 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
}
p {
    color: var(--muted);
    line-height: 1.65;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.welcome-grid {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.intro-card,
.side-card,
.panel,
.registration-card {
    background: var(--surface);
    border: 1px solid rgba(8, 118, 147, 0.13);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.accent-card {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 7vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accent-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, var(--brand), #42a9bd);
}

.accent-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -130px;
    top: -130px;
    border: 44px solid var(--brand-soft);
    border-radius: 50%;
}

.lead {
    max-width: 660px;
    font-size: 1.08rem;
}
.side-card {
    padding: 38px;
    align-self: center;
}
.signal-dot {
    display: block;
    width: 34px;
    height: 7px;
    margin-bottom: 28px;
    border-radius: 99px;
    background: var(--brand);
}
.signed-in,
.support-note {
    margin: 18px 0 0;
    font-size: 0.87rem;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 720;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}
.button:hover {
    transform: translateY(-1px);
}
.button:focus-visible,
input:focus-visible,
summary:focus-visible,
.menu-button:focus-visible,
.contact-link:focus-visible,
.footer-link:focus-visible {
    outline: 3px solid rgba(8, 118, 147, 0.22);
    outline-offset: 2px;
}
.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.button-primary {
    color: white;
    background: var(--brand);
    box-shadow: 0 8px 20px rgba(8, 118, 147, 0.2);
}
.button-primary:hover {
    background: var(--brand-dark);
}
.privacy-page {
    width: min(880px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 52px);
}
.privacy-page > header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.privacy-page > header h1 {
    max-width: 760px;
    margin-bottom: 0;
}
.privacy-content {
    max-width: 74ch;
}
.privacy-content section {
    margin-top: 34px;
}
.privacy-content h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 1.35rem;
}
.privacy-content p {
    margin-bottom: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}


/* Landing-page additions to the registration app's shared visual style. */
body { display: flex; flex-direction: column; }
.page-shell { flex: 1; }
.brand img { max-width: 100%; }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; }
.skip-link:focus { top: 16px; padding: 12px 18px; background: white; }
.accent-card > * { position: relative; z-index: 1; }
.lab-focus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.lab-focus h2 { font-size: 1rem; }
.lab-focus p { margin-bottom: 0; font-size: 0.9rem; }
@media (max-width: 900px) {
    .welcome-grid { grid-template-columns: 1fr; min-height: auto; }
    .side-card { align-self: stretch; }
}
@media (max-width: 620px) {
    .site-header, .page-shell, .site-footer { width: calc(100% - 24px); }
    .site-header { min-height: 84px; }
    .brand img { width: 205px; }
    .service-name { display: none; }
    .page-shell { padding: 28px 0 40px; }
    .accent-card, .side-card, .privacy-page { padding: 28px 24px; }
    .lab-focus { grid-template-columns: 1fr; gap: 20px; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; }
    .footer-actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
