﻿:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #202020;
    background: #fff;
    font-synthesis: none;
    --green: #418f49;
    --border: #e4e4e4;
    --muted: #686868;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    padding: 28px 16px;
}

.portal {
    max-width: 740px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    overflow: hidden;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

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

.page { padding: 24px; }

.hero {
    text-align: center;
    padding: 10px 12px 26px;
}

.hero-icon {
    display: inline-flex;
    margin-bottom: 12px;
}

.hero-icon svg {
    width: 42px;
    height: 42px;
}

h1 {
    font-size: 26px;
    letter-spacing: -.65px;
    line-height: 1.25;
    margin: 10px 0;
}

h2 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 16px;
}

h3 {
    font-size: 15px;
    margin: 10px 0 7px;
}

p {
    font-size: 14px;
    line-height: 1.65;
    margin: 6px 0;
}

.hero p, .muted, .benefit p,
.option p, .option small {
    color: var(--muted);
}

svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

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

.benefit {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 17px;
}

.explanation {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

summary {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.explanation p { margin-top: 12px; }

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin: 12px 0;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s, background .18s;
}

.option > div { flex: 1; }
.option strong { font-size: 15px; }
.option p { margin: 3px 0; }
.option > span:first-child svg {
    width: 28px;
    height: 28px;
}

.option:hover {
    border-color: var(--green);
    background: #f7faf7;
}

.privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    color: var(--muted);
}

.privacy svg {
    width: 17px;
    height: 17px;
    stroke: var(--muted);
}

.privacy p {
    font-size: 12px;
    margin: 0;
}

footer {
    border-top: 1px solid var(--border);
    padding: 20px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

button, input { font: inherit; }

button {
    cursor: pointer;
    border-radius: 9px;
    min-height: 46px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
}

.primary {
    background: #367b3e;
    border: 1px solid #367b3e;
    color: white;
    margin-top: 16px;
}

.primary:hover { background: #286231; }

.secondary {
    background: white;
    border: 1px solid var(--border);
    color: #333;
    margin-top: 10px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 8px;
}

input {
    width: 100%;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    padding: 13px;
    background: white;
    color: #222;
    font-size: 16px;
}

input:focus, button:focus-visible,
a:focus-visible, summary:focus-visible {
    outline: 3px solid #a3cda7;
    outline-offset: 3px;
}

.declaration {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
}

.step {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.progress {
    height: 5px;
    border-radius: 10px;
    background: #e8eee8;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress i {
    display: block;
    width: 50%;
    height: 100%;
    background: var(--green);
}

.progress.complete i { width: 100%; }

.preview-notice {
    background: #f5f7f5;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 13px;
    font-size: 13px;
    line-height: 1.6;
    margin: 20px 0;
}

.error {
    color: #a52626;
    font-size: 13px;
}

.success { padding: 45px 10px; }

#splash {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: #418f49;
    color: white;
    pointer-events: none;
    animation: splash-exit .65s 2s forwards;
}

#splash img {
    width: 190px;
    max-height: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

#splash strong {
    display: block;
    font-size: 25px;
    letter-spacing: -.5px;
}

#splash small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.splash-divider {
    height: 70px;
    width: 1px;
    background: rgba(255,255,255,.65);
}

@keyframes splash-exit {
    to {
        transform: translateY(-100%);
        visibility: hidden;
    }
}

@media (max-width: 540px) {
    body { padding: 10px; }
    header { padding: 16px; font-size: 12px; }
    .page { padding: 16px; }
    h1 { font-size: 23px; }
    .benefit { padding: 13px; }
    .benefit h3 { font-size: 13px; }
    .benefit p { font-size: 12px; }
    .option { padding: 14px; gap: 10px; }
    .option strong { font-size: 14px; }
    #splash { gap: 15px; padding: 20px; }
    #splash img { width: 130px; }
    #splash strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    #splash { display: none; }
    * { transition: none !important; }
}

/* REFERENCE DESIGN REFINEMENT */

:root {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #171717;
    --green: #00802b;
    --border: #dedede;
    --muted: #626262;
    -webkit-font-smoothing: antialiased;
}

body {
    padding: 16px 12px;
}

.portal {
    max-width: 544px;
    border-radius: 16px;
    padding: 0 15px;
    box-shadow: none;
}

header {
    min-height: 62px;
    padding: 16px 0;
    font-size: 13px;
}

.brand {
    gap: 8px;
    font-size: 15px;
}

.brand strong {
    font-weight: 600;
}

.brand svg {
    width: 20px;
    height: 20px;
}

.page {
    padding: 0;
}

.hero {
    padding: 33px 10px 24px;
}

.hero-icon {
    margin-bottom: 8px;
}

.hero-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.2;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.55px;
    line-height: 1.3;
    margin: 6px 0 8px;
}

h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.25px;
    margin-bottom: 14px;
}

h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 6px;
}

p {
    font-size: 14px;
    line-height: 1.6;
}

.hero p {
    font-size: 15px;
    line-height: 1.75;
    margin: 8px auto 0;
    max-width: 470px;
}

.benefits {
    gap: 8px;
}

.benefit {
    padding: 12px;
    min-height: 106px;
    border-radius: 12px;
}

.benefit svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.benefit p {
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
}

.explanation {
    padding: 12px;
    margin-top: 14px;
}

summary {
    font-weight: 500;
    font-size: 13px;
}

.section-divider {
    margin: 20px 0 22px;
}

.option {
    min-height: 75px;
    padding: 12px;
    gap: 10px;
    margin: 12px 0;
    border-radius: 12px;
}

.option strong {
    font-size: 15px;
    font-weight: 600;
}

.option p {
    font-size: 13px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.option > span:first-child svg {
    width: 24px;
    height: 24px;
}

.option > span:last-child svg {
    width: 14px;
    height: 14px;
    stroke: #171717;
}

.option small {
    font-size: 11px;
}

.privacy {
    margin-top: 12px;
    gap: 8px;
}

.privacy p {
    font-size: 13px;
    line-height: 1.6;
}

.privacy svg {
    width: 15px;
    height: 15px;
}

footer {
    margin-top: 26px;
    padding: 20px 0;
    font-size: 13px;
}

#declarations,
#accuracy,
#success {
    padding-top: 22px;
}

.declaration {
    padding: 14px;
    margin: 16px 0;
}

.declaration h3 {
    margin-top: 0;
}

label {
    font-size: 13px;
    font-weight: 500;
}

input {
    font-size: 14px;
    min-height: 44px;
    padding: 11px 12px;
}

button {
    font-weight: 500;
}

.primary {
    background: #00802b;
    border-color: #00802b;
}

.primary:hover {
    background: #006b24;
}

.preview-notice {
    font-size: 12px;
    background: #f7f8f7;
}

#splash img {
    filter: none;
    width: 160px;
    max-height: 160px;
    object-fit: contain;
}

#splash {
    background: #418f49;
}

@media (max-width: 560px) {
    body {
        padding: 0;
    }

    .portal {
        width: 100%;
        min-height: 100vh;
        padding: 0 15px;
    }

    header {
        padding: 16px 0;
    }

    .page {
        padding-left: 0;
        padding-right: 0;
    }

    .benefit {
        padding: 12px;
    }

    .benefit h3 {
        font-size: 14px;
    }

    .option strong {
        font-size: 14px;
    }

    #splash img {
        width: 110px;
    }
}


/* SPLASH REFINEMENT */

#splash {
    background: #418f49;
    gap: 36px;
    align-items: center;
    justify-content: center;
}

#splash img {
    width: 180px;
    height: 180px;
    max-height: none;
    object-fit: contain;
    filter: grayscale(1) contrast(8);
    mix-blend-mode: screen;
}

#splash strong {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.6px;
}

#splash small {
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
}

.splash-divider {
    height: 84px;
    background: rgba(255,255,255,.65);
}

@media (max-width: 560px) {
    #splash {
        gap: 18px;
        padding: 24px;
    }

    #splash img {
        width: 110px;
        height: 110px;
    }

    #splash strong {
        font-size: 19px;
    }

    #splash small {
        font-size: 12px;
    }

    .splash-divider {
        height: 64px;
    }
}


/* ORIGINAL LOGO COLOR CORRECTION */

#splash {
    background: #8bc326;
}

#splash img {
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

#splash strong {
    font-size: 20px;
    font-weight: 500;
}

#splash small {
    font-size: 16px;
    font-weight: 400;
}


/* PREMIUM SPLASH BACKGROUND */

#splash {
    background: radial-gradient(
        ellipse at center,
        #edf4df 0%,
        #f7f9f3 48%,
        #ffffff 100%
    );
    color: #24451c;
    gap: 36px;
}

#splash img {
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
}

.splash-divider {
    background: #c3cfb8;
    width: 1px;
    height: 84px;
}

#splash::after {
    content: "";
    position: absolute;
    top: calc(50% + 130px);
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #8bc326 0%,
        #dce6d2 100%
    );
    animation: intro-progress 2s ease forwards;
}

@keyframes intro-progress {
    from { width: 0; opacity: 0; }
    to { width: 100px; opacity: 1; }
}

@media (max-width: 560px) {
    #splash {
        gap: 20px;
    }

    #splash img {
        width: 115px;
        height: 115px;
    }

    #splash::after {
        top: calc(50% + 90px);
    }
}


/* PRODUCTION SUBMISSION STATES */

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#submission-reference {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #f7faf5;
    overflow-wrap: anywhere;
    font-size: 13px;
}

#first-error:empty {
    display: none;
}

#first-error:not(:empty) {
    color: #b42318;
    padding: 10px 0;
    font-size: 13px;
}

