/* DrivePrep NZ site. Colours follow the iOS app: navy fills, lime accents.
   Every text pairing below meets WCAG AA in both light and dark mode. */
:root {
    --bg: #f6f7f4;
    --surface: #ffffff;
    --line: #dde3e0;
    --text: #0f1e2b;
    --muted: #4a5a68;
    --link: #0c3e60;
    --accent-text: #4b650c;
    --accent-soft: #eef4d8;
    --navy: #0c3e60;
    --navy-deep: #041a2c;
    --lime: #a3be30;
    --ink: #072a44;
    --hero-text: #ffffff;
    --hero-muted: #c9d6e2;
    --radius: 18px;
    --shadow: 0 1px 2px rgb(4 26 44 / 6%), 0 8px 24px rgb(4 26 44 / 6%);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #06121c;
        --surface: #0d2130;
        --line: #1d3547;
        --text: #e8eef3;
        --muted: #a9b8c4;
        --link: #8cbfeb;
        --accent-text: #c9de6a;
        --accent-soft: #1a2d1c;
        --shadow: none;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: "Poppins", "DM Sans", -apple-system, sans-serif;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; }

.container { width: min(100% - 32px, 960px); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { background: var(--navy-deep); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.05rem; }
.brand small { display: block; color: var(--hero-muted); font-size: 0.8rem; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }

/* Hero band */
.hero {
    background: linear-gradient(145deg, #041a2c 0%, #0c3e60 55%, #1f4a2a 100%);
    color: var(--hero-text);
    padding-block: 48px 56px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 8px 0 12px; }
.hero p { color: var(--hero-muted); max-width: 46ch; margin: 0; font-size: 1.1rem; }
.hero .eyebrow { color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.hero .updated { margin-top: 16px; font-size: 0.9rem; }
.hero__app { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__app img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgb(0 0 0 / 35%); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--lime); color: var(--ink);
    font-weight: 700; text-decoration: none;
    padding: 12px 20px; border-radius: 999px;
}
.btn:hover { background: #b5cf45; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgb(255 255 255 / 45%); }
.btn--ghost:hover { background: rgb(255 255 255 / 10%); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Content */
main { padding-block: 40px 64px; }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 4px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid .card h2, .grid .card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.grid .card p { margin: 0; color: var(--muted); }

.callout {
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}
.callout h2 { margin: 0 0 6px; font-size: 1.3rem; }
.callout .email { font-size: 1.2rem; font-weight: 700; word-break: break-all; }

.notice { margin-top: 32px; padding: 16px 20px; border-left: 4px solid var(--lime); background: var(--surface); border-radius: 8px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .site-header__inner { flex-direction: column; align-items: flex-start; }
    .hero { padding-block: 32px 40px; }
    .card, .callout { padding: 20px; }
}
