/* CitizenOz website. The app's "Southern Night" tokens (src/constants/theme.ts, docs/design.md): a night
   sky with the Southern Cross for the brand moments, Southern blue for actions, wattle gold for wins,
   Bricolage Grotesque for display and Instrument Sans for reading. */

@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/BricolageGrotesque-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/BricolageGrotesque-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/assets/fonts/InstrumentSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/assets/fonts/InstrumentSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/assets/fonts/InstrumentSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-muted: #e8ecf6;
  --stroke: rgba(13, 22, 48, 0.1);
  --stroke-strong: rgba(13, 22, 48, 0.18);
  --text: #0d1630;
  --text-2: #525c7a;
  --text-3: #636c8a;
  --accent: #2450db;
  --accent-text: #2450db;
  --accent-soft: rgba(36, 80, 219, 0.1);
  --on-accent: #ffffff;
  --gold: #f5b800;
  --gold-text: #8a6200;
  --gold-soft: rgba(245, 184, 0, 0.16);
  --success: #0b7a4b;
  --night-top: #2a5be8;
  --night: #0a2a8f;
  --night-deep: #061a63;
  --night-gold: #ffc629;
  --night-ink: #ffffff;
  --night-muted: rgba(255, 255, 255, 0.76);
  --shadow: 0 6px 22px rgba(13, 27, 77, 0.07);
  --phone-shadow: 0 30px 60px -20px rgba(10, 42, 143, 0.45);

  --display: 'Bricolage', 'Instrument', system-ui, sans-serif;
  --sans: 'Instrument', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 24px;
  --r-panel: 22px;
  --r-button: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 20px;
  --max: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b19;
    --surface: #111830;
    --surface-muted: #182040;
    --stroke: rgba(237, 241, 255, 0.08);
    --stroke-strong: rgba(237, 241, 255, 0.16);
    --text: #edf1ff;
    --text-2: #a3adcb;
    --text-3: #7c86a6;
    --accent: #6a8eff;
    --accent-text: #86a3ff;
    --accent-soft: rgba(106, 142, 255, 0.16);
    --on-accent: #060b1e;
    --gold: #ffc83d;
    --gold-text: #ffd36b;
    --gold-soft: rgba(255, 200, 61, 0.16);
    --success: #3bd68f;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: var(--r-button); font: 600 16px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform 0.12s var(--ease-out), filter 0.12s; }
.button:active { transform: scale(0.97); }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.gold { background: var(--night-gold); color: #14213d; box-shadow: 0 10px 24px rgba(255, 198, 41, 0.28); }
.button.secondary { background: var(--accent-soft); color: var(--accent-text); }
.button.night { background: rgba(255, 255, 255, 0.14); color: #fff; }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: var(--r-button); background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 600; }
.doc .soon { background: var(--accent-soft); color: var(--accent-text); }
/* Beside a live store button: outlined and muted, so it can't be mistaken for a second button. */
.soon.later { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.78); }
.doc .soon.later { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent-soft); color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.scrolled { border-bottom-color: var(--stroke); }
.home .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.scrolled) .brand, .home .site-header:not(.scrolled) .nav-links a { color: #fff; }
.nav { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { flex: none; width: 34px; height: 34px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(4, 14, 56, 0.28); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .button { margin-left: auto; } }

/* Night sky (hero and bands). Stars are layered radial gradients, so there is nothing to load. */
.night { position: relative; color: var(--night-ink); background: linear-gradient(160deg, var(--night-top) 0%, var(--night) 55%, var(--night-deep) 100%); overflow: hidden; isolation: isolate; }
.night::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 64%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 37% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 46% 78%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 58% 30%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 67% 88%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 81% 52%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 93% 20%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 14% 90%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 74% 8%, #fff 50%, transparent 52%); }
.cross { position: absolute; z-index: -1; pointer-events: none; }
.cross polygon { fill: #fff; opacity: 0; animation: star-in 0.6s var(--ease-out) forwards; }
.cross polygon:nth-child(2) { animation-delay: 0.15s; } .cross polygon:nth-child(3) { animation-delay: 0.3s; }
.cross polygon:nth-child(4) { animation-delay: 0.45s; } .cross polygon:nth-child(5) { animation-delay: 0.6s; }
@keyframes star-in { to { opacity: 0.9; } }

/* Hero */
.hero { padding: 120px 0 0; margin-top: -64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--sans); color: var(--night-gold); }
.eyebrow img { border-radius: 2px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 20px 0; }
.hero .lede { font-size: 19px; color: var(--night-muted); max-width: 34em; margin-bottom: 28px; }
.hero .cta { margin-bottom: 18px; }
.hero .fine { color: var(--night-muted); font-size: 14px; }
.hero-phone { justify-self: center; width: min(340px, 80vw); }
.phone { border-radius: 44px; padding: 10px; background: #0b1230; box-shadow: var(--phone-shadow); }
.phone img { border-radius: 34px; width: 100%; height: auto; }
.hero-phone .phone { border-radius: 44px 44px 0 0; padding-bottom: 0; }
.hero-phone .phone img { border-radius: 34px 34px 0 0; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy { padding-bottom: 32px; } .hero { padding-top: 100px; } .hero .cross { width: 120px; height: 146px; top: 72px !important; opacity: 0.5; } }

/* Sections */
.section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 18px; }

/* The test in one line, and the two keys */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.fact { background: var(--surface); border-radius: var(--r-panel); padding: 20px; box-shadow: var(--shadow); }
.fact b { display: block; font: 800 40px/1 var(--display); letter-spacing: -0.03em; margin-bottom: 6px; }
.fact span { color: var(--text-2); font-size: 15px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.key { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--r-panel); padding: 22px; border: 1.5px solid var(--stroke); }
.key .disc { flex: none; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.key.values .disc { background: var(--gold-soft); color: var(--gold-text); }
.key h3 { font-size: 20px; margin-bottom: 4px; }
.key p { color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .keys { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; max-width: 980px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 16px; max-width: 34em; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; gap: 28px; } }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.screens figure { margin: 0; }
.screens figcaption { margin-top: 14px; text-align: center; color: var(--text-2); font-size: 15px; }
.screens .phone img { aspect-ratio: 390 / 844; object-fit: cover; }
@media (max-width: 760px) { .screens { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--surface); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; border: 2px solid transparent; }
.plan.best { border-color: var(--gold); }
.plan .price { font: 800 40px/1 var(--display); letter-spacing: -0.03em; }
.plan .price small { font: 500 16px/1 var(--sans); color: var(--text-2); letter-spacing: 0; }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.plan li { display: flex; gap: 8px; }
.plan li .icon { color: var(--success); margin-top: 3px; }
.tag { font: 600 14px/1 var(--sans); color: var(--gold-text); margin-left: 6px; white-space: nowrap; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.2s var(--ease-out); color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-2); }

/* Closing band */
.band { padding: 80px 0; text-align: center; }
.band h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 14px; }
.band p { color: var(--night-muted); margin-bottom: 28px; font-size: 18px; }
.band .cta { justify-content: center; }

/* Guides and documents */
.page { padding: 48px 0 88px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px, 5vw, 50px); margin: 10px 0 12px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.crumbs { font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.updated { color: var(--text-3); font-size: 15px; margin-bottom: 24px !important; }
.answer-box, .summary-box { background: var(--accent-soft); border-radius: var(--r-panel); padding: 20px 22px; margin: 0 0 28px; }
.answer-box p:last-child, .summary-box p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--stroke); }
thead th { font-weight: 600; color: var(--text-2); background: var(--surface-muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.src { color: var(--text-3); white-space: nowrap; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 8px 60px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--night); color: #fff; font: 800 18px/1 var(--display); }
.steps h2 { margin-top: 0; font-size: 22px; padding-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.guide-cta { margin: 40px 0 24px; padding: 26px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 16px; }
.fine { color: var(--text-3); font-size: 14px; }

/* Practice questions */
.practice { display: grid; gap: 16px; }
.pq { background: var(--surface); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); }
.pq-meta { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 8px !important; }
.pq-stem { font: 600 20px/1.35 var(--sans) !important; letter-spacing: 0 !important; margin: 0 0 14px !important; }
.pq-choices { list-style: none; padding: 0 !important; display: grid; gap: 8px; margin: 0 0 12px !important; }
.pq-choices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); margin: 0 !important; }
.pq-key { flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-muted); color: var(--text-2); font-weight: 600; font-size: 14px; }
.pq-answer summary { cursor: pointer; font-weight: 600; color: var(--accent-text); }
.pq-answer[open] summary { margin-bottom: 10px; }
.pq-correct { color: var(--success); }
.pq-source { color: var(--text-3); font-size: 14px; }

/* Support and account deletion */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 24px; }
.card { background: var(--surface); border-radius: var(--r-panel); padding: 22px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0 !important; font-size: 20px; }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke); padding: 48px 0 32px; color: var(--text-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { margin-top: 12px; max-width: 30em; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-fine { display: grid; gap: 10px; font-size: 13px; color: var(--text-3); }
.footer-fine a { color: var(--text-3); }
.made { display: inline-flex; align-items: center; gap: 8px; }
.made img { border-radius: 2px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .soon, .cta .button { font-size: 15px; padding-inline: 16px; } }
