/* Aussie Learn - one stylesheet for the whole site. Colours and spacing are tokens on :root. */
:root {
  --navy: #0f2547; --navy-2: #17335f; --ink: #1c2b45; --muted: #5b6b84; --line: #e3e8f0; --bg: #f5f7fb; --card: #ffffff;
  --teal: #0f9d8d; --teal-d: #0b7d70; --teal-l: #e3f6f3; --amber: #f5a524; --amber-l: #fff4dc; --red: #c0392b; --red-l: #fdeceb; --green: #1e8e4e; --green-l: #e6f6ec;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,37,71,.06), 0 8px 24px rgba(15,37,71,.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; padding: 9px 13px; border-radius: 10px; font-weight: 550; font-size: .97rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--teal-l); color: var(--teal-d); }
.nav-links form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--navy); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; margin: 0; gap: 2px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(15,157,141,.28); }
.btn-primary:hover { background: var(--teal-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #efc4c0; }
.btn-danger:hover { background: var(--red-l); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(15,157,141,.22), transparent 60%), linear-gradient(180deg, #0f2547 0%, #14305a 100%); color: #dbe6f7; padding: 76px 0 70px; overflow: hidden; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: 1.2rem; max-width: 36em; color: #c3d3ea; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.eyebrow { display: inline-block; background: rgba(245,165,36,.16); color: #ffd48a; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-note { font-size: .9rem; color: #9db3d3; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 52px 0; } }

/* sample report card in the hero */
.report { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.report .tag { float: right; font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.report h3 { margin-bottom: 14px; font-size: 1.05rem; }
.row-bar { display: grid; grid-template-columns: 138px 1fr 44px; gap: 10px; align-items: center; margin: 9px 0; font-size: .9rem; }
.track { height: 10px; border-radius: 999px; background: #e9eef6; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
.fill.weak { background: #e0644f; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--red-l); color: var(--red); margin-left: 6px; vertical-align: 1px; }
.pill-good { background: var(--green-l); color: var(--green); }
.pill-info { background: var(--amber-l); color: #9a6200; }

/* sections */
section.block { padding: 72px 0; }
section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g3, .g4, .g2 { grid-template-columns: 1fr; } section.block { padding: 52px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 34px; }
.fact b { display: block; color: #fff; font-size: 1.6rem; letter-spacing: -.02em; }
.fact span { color: #9db3d3; font-size: .9rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.t { border-collapse: collapse; width: 100%; font-size: .97rem; }
table.t th, table.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { background: #f0f4fa; color: var(--navy); font-weight: 700; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: center; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 650; color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-d); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); }

/* CTA band, footer */
.band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dbe6f7; border-radius: 22px; padding: 46px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 6px; }
.site-footer { background: var(--navy); color: #a9bbd6; padding: 52px 0 34px; margin-top: 40px; font-size: .94rem; }
.site-footer a { color: #cfe0f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 28px; }
.foot-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .84rem; color: #8ea4c6; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--navy); font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cfd8e6; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,157,141,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-size: .96rem; }
.alert-error { background: var(--red-l); color: #8e2a20; border: 1px solid #f0c7c2; }
.alert-ok { background: var(--green-l); color: #17653a; border: 1px solid #bfe3cd; }
.alert-info { background: var(--amber-l); color: #7a4f00; border: 1px solid #f3dca4; }
.page-head { padding: 54px 0 30px; }
.page-head p.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }

/* practice */
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.q-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; margin-bottom: 8px; flex-wrap: wrap; }
.progress { height: 8px; background: #e9eef6; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--teal); transition: width .3s; }
.q-stem { font-size: 1.12rem; line-height: 1.6; margin: 8px 0 14px; }
.q-pic { text-align: center; margin: 12px 0; }
.q-pic svg { max-width: 100%; height: auto; background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; }
.passage { background: #fffdf6; border: 1px solid #efe6c8; border-radius: 14px; padding: 18px 22px; margin-bottom: 18px; max-height: 340px; overflow: auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; line-height: 1.7; }
.passage h3 { font-family: var(--font); }
.opts { display: grid; gap: 10px; margin: 16px 0; }
.opt { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px; font: inherit; color: var(--ink); cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: border-color .12s, background .12s; }
.opt:hover:not([disabled]) { border-color: var(--teal); background: var(--teal-l); }
.opt .L { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #eef2f8; display: grid; place-items: center; font-weight: 700; color: var(--navy); font-size: .9rem; }
.opt.right { border-color: var(--green); background: var(--green-l); }
.opt.right .L { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-l); }
.opt.wrong .L { background: var(--red); color: #fff; }
.feedback { border-radius: 12px; padding: 16px 18px; margin-top: 4px; }
.feedback.ok { background: var(--green-l); border: 1px solid #bfe3cd; }
.feedback.no { background: #fff8ef; border: 1px solid #f3dca4; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cat-list li:last-child { border-bottom: 0; }
.stat { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .nav-toggle, .btn { display: none !important; } body { background: #fff; } }

/* sign-up steps */
.steps { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; }
.steps span { flex: 1; height: 6px; border-radius: 999px; background: #e9eef6; }
.steps span.on { background: var(--teal); }
.steps em { font-style: normal; font-size: .8rem; color: var(--muted); }
fieldset.step { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.step[hidden] { display: none; }
fieldset.step legend { font-weight: 700; font-size: 1.2rem; padding: 0; margin: 8px 0 4px; }
.step-nav { margin-top: 22px; display: flex; gap: 10px; }
#signupForm:not(.js) .steps { display: none; }
#signupForm:not(.js) [data-next], #signupForm:not(.js) [data-back] { display: none; }
