:root {
    --navy: #0f2742;
    --green: #5faf4e;
    --bg: #f6f8fa;
    --text: #223247;
    --muted: #6d7b8a;
    --line: #dde4ea;
    --white: #fff;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

a {
    color: inherit;
}

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

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(15px); border-bottom: 1px solid rgba(220,229,236,.8);
}

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

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.brand strong {
    color: var(--navy);
    letter-spacing: 0.08em;
}

.brand span {
    margin-top: 5px;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
}

.site-header .brand img,
.brand img {
    display: block;
    width: auto;
    height: clamp(38px, 7vw, 60px);
    max-width: 100%;
}

.nav {
    display: flex;
    align-items: center;

    gap: 26px;
    margin-left: auto;

    flex: 0 0 auto;
}

.nav a {
    display: inline-flex;
    align-items: center;

    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:not(.button):hover {
    color: var(--green);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: var(--green);
}

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

.hero {
    padding: 42px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(95, 175, 78, 0.16),
            transparent 35%
        ),
        linear-gradient(135deg, #f8fbfd, #fff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #4c8f3d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--navy);
    line-height: 1.18;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead {
    color: var(--muted);
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.microcopy {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.preview,
.card,
.form-shell {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15, 39, 66, 0.09);
}

.preview {
    overflow: hidden;
}

.preview-head {
    padding: 24px;
    color: #fff;
    background: var(--navy);
}

.preview-body {
    padding: 26px;
}

.big-score {
    color: var(--green);
    font-size: 3.6rem;
    font-weight: 800;
}

.score-grid,
.grid-4,
.grid-2 {
    display: grid;
    gap: 18px;
}

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

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

.score-card,
.card {
    padding: 22px;
}

.score-card {
    border: 1px solid var(--line);
    border-radius: 12px;
}

.score-card strong {
    display: block;
    color: var(--navy);
    font-size: 1.7rem;
}

.section {
    padding: 20px 0;
}

.section-soft {
    background: var(--bg);
}

.icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    color: #4c8f3d;
    background: #eef7eb;
    border-radius: 11px;
    font-weight: 800;
}

.steps {
    display: grid;
    gap: 16px;
    counter-reset: s;
}

.step {
    position: relative;
    padding-left: 58px;
    counter-increment: s;
}

.step::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    font-weight: 800;
    content: counter(s);
}

.trust {
    padding: 22px;
    background: #eef7eb;
    border-left: 4px solid var(--green);
    border-radius: 10px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px;
    color: #fff;
    background: var(--navy);
    border-radius: 20px;
}

.cta h2,
.cta p {
    color: #fff;
}

.page-hero {
    padding: 62px 0 38px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.page-main {
    padding: 52px 0 78px;
}

.tally-frame {
    width: 100%;
    min-height: 950px;
    border: 0;
}

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

.check {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    color: #4c8f3d;
    background: #eef7eb;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
}

.result-shell {
    display: none;
}

.result-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.result-index {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    background:
        radial-gradient(circle, #fff 56%, transparent 57%),
        conic-gradient(
            var(--green) var(--score-angle, 0deg),
            #e8edf1 0
        );
    border-radius: 50%;
}

.result-index strong {
    color: var(--navy);
    font-size: 2.8rem;
}

.dimension {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.dimension-head {
    display: flex;
    justify-content: space-between;
}

.dimension-score {
    font-size: 1.8rem;
    font-weight: 800;
}

.progress {
    height: 10px;
    overflow: hidden;
    background: #e9edf0;
    border-radius: 999px;
}

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

.recommendations {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.recommendations li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
}

.recommendations span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    font-weight: 800;
}

.loading,
.error-state {
    padding: 70px 20px;
    text-align: center;
}

.error-state {
    display: none;
}

.content-page {
    max-width: 860px;
}

/* ==================================================
   GLOBAL FOOTER
================================================== */

.site-footer {
    background: #0b2742;
    color: #ffffff;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer .container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}


/* ==================================================
   MAIN GRID
================================================== */

.footer-main {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.35fr)
        minmax(140px, 0.8fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(210px, 1.1fr);

    gap: 44px;
    padding-top: 64px;
    padding-bottom: 58px;
}


/* ==================================================
   BRAND
================================================== */

.footer-brand {
    min-width: 0;
    padding-right: 10px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 250px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-tagline {
    margin: 16px 0 0;
    color: #a8dd9d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-description {
    max-width: 290px;
    margin: 30px 0 0;
    color: #d6e0e9;
    font-size: 14px;
    line-height: 1.75;
}


/* ==================================================
   COLUMNS
================================================== */

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    position: relative;
    margin: 0 0 26px;
    padding-bottom: 13px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(
        90deg,
        #5faf4e,
        #65c9c2
    );
}

.footer-column nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column nav a,
.footer-contact a {
    color: #d5dfe8;
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-column nav a:hover,
.footer-column nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #8bd27e;
}

.footer-column nav a:hover {
    transform: translateX(3px);
}

.footer-column-healthcheck h3 {
    color: #ffffff;
}


/* ==================================================
   CONTACT
================================================== */

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 19px;
    color: #d5dfe8;
    font-size: 14px;
    line-height: 1.55;
}

.footer-contact-top {
    align-items: flex-start;
}

.footer-contact-item svg {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    fill: none;
    stroke: #8bc776;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==================================================
   ACKNOWLEDGEMENT
================================================== */

.footer-acknowledgement {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.018);
}

.acknowledgement-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 44px;
    min-height: 220px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.acknowledgement-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.acknowledgement-content h2 {
    margin: 0 0 18px;
    color: #80cc73;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.acknowledgement-content p {
    margin: 0;
    color: #d8e1e9;
    font-size: 14px;
    line-height: 1.75;
}

.acknowledgement-art {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.acknowledgement-art img {
    display: block;
    width: min(100%, 480px);
    max-height: 170px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
}


/* ==================================================
   LEGAL ROW
================================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
    min-height: 76px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer-copyright,
.footer-abn {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
}

.footer-abn {
    text-align: right;
    white-space: nowrap;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal a {
    position: relative;
    padding: 0 12px;
    color: #cbd6e0;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #8bd27e;
}


/* ==================================================
   TABLET — 980px
================================================== */

@media (max-width: 980px) {

    .site-footer .container {
        width: min(100% - 40px, 1180px);
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px 56px;
        padding-top: 54px;
        padding-bottom: 50px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 680px;
        padding-right: 0;
    }

    .footer-description {
        max-width: 540px;
        margin-top: 22px;
    }

    .acknowledgement-inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
    }

    .acknowledgement-art img {
        max-width: 300px;
    }

    .footer-bottom-inner {
        grid-template-columns: 1fr auto;
        gap: 16px 24px;
    }

    .footer-legal {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }

}


/* ==================================================
   MOBILE — 640px
================================================== */

@media (max-width: 640px) {

    .site-footer .container {
        width: calc(100% - 32px);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 46px;
        padding-bottom: 44px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-logo {
        max-width: 225px;
    }

    .footer-description {
        max-width: 100%;
        margin-top: 20px;
    }

    .footer-column {
        padding-top: 26px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-column h3 {
        margin-bottom: 19px;
    }

    .acknowledgement-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
        min-height: auto;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .acknowledgement-content {
        max-width: 100%;
    }

    .acknowledgement-art {
        width: 100%;
        justify-content: center;
    }

    .acknowledgement-art img {
        width: 100%;
        max-width: 420px;
        max-height: 180px;
    }

    .footer-bottom-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .footer-legal {
        justify-content: flex-start;
        gap: 10px 0;
    }

    .footer-legal a {
        padding-left: 0;
        padding-right: 14px;
        margin-right: 14px;
    }

    .footer-abn {
        text-align: left;
        white-space: normal;
    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 440px) {

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-legal a {
        padding: 0;
        margin: 0;
    }

    .footer-legal a::after {
        display: none;
    }

}

@media (max-width: 900px) {
    .hero-grid,
    .grid-4,
    .grid-2,
    .result-top {
        grid-template-columns: 1fr;
    }

    .nav a:not(.button) {
        display: none;
    }

    .result-index {
        margin: auto;
    }

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

@media (max-width: 600px) {
    .container {
        width: calc(100% - 22px);
    }

    .hero,
    .section {
        padding: 54px 0;
    }

    .tally-frame {
        min-height: 1100px;
    }
}