/* citizenshiptestquiz.com.au — Connor marketing site. Mobile first; only /practice-test/ uses JavaScript. */

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/sourcesans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17221d;
  --ink-soft: #44534b;
  --paper: #f7f9f7;
  --card: #ffffff;
  --line: #dfe7e2;
  --green: #0b6e4f;
  --green-dark: #085540;
  --green-deep: #06392b;
  --green-soft: #e6f3ed;
  --gold: #c9a227;
  --gold-soft: #fbf3dc;
  --red: #b3261e;
  --red-soft: #fdecea;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(8, 85, 64, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 650; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* Independence notice: always first on every page */
.notice {
  margin: 0;
  padding: 9px 16px;
  background: var(--green-deep);
  color: #eef6f2;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
}
.notice a { color: #fff; font-weight: 700; }

.site-header { background: rgba(247, 249, 247, 0.98); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.1; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--green); transition: background 0.15s, transform 0.15s;
  font-family: inherit; font-size: inherit; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-small { min-height: 40px; padding: 6px 16px; font-size: 0.95rem; }

.play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.play-badge img { width: 200px; height: auto; }
.play-soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 8px 18px; border-radius: 10px; border: 2px dashed #9fb3a9; background: #fff; color: var(--ink); text-decoration: none; line-height: 1.2; }
.play-soon small { color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; }
.play-soon span { font-weight: 750; }
.play-soon:hover { border-color: var(--green); color: var(--green-dark); }

/* Hero */
.hero { padding: 36px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: 0.88rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.3rem, 3.8vw, 1.75rem); font-weight: 600; line-height: 1.25; color: var(--green-dark); margin: -0.1em 0 0.7em; max-width: 24em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 14px; }
.hero-facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.hero-facts li::before { content: "✓ "; color: var(--green); }
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  border-radius: 34px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.phone img { border-radius: 26px; width: 100%; }
.hero-caption { margin-top: 12px; text-align: center; font-size: 0.9rem; color: var(--ink-soft); }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.alt { background: #fff; border-block: 1px solid var(--line); }

.rule-card {
  display: grid; gap: 14px; padding: 22px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid #ecdcae;
}
.rule-card strong { color: var(--green-deep); }
.rule-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 14px; border-radius: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); }
.pill-bad { background: var(--red-soft); border-color: #f2c4bf; color: var(--red); }
.pill-ok { background: var(--green-soft); border-color: #bfe0d1; color: var(--green-dark); }

.grid { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); }
.card-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 10px; }

/* Screens gallery: swipe on phones, grid on wide screens */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 16px; box-shadow: 0 8px 24px rgba(8, 85, 64, 0.12); }
.gallery figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }

/* Ask Connor */
.tutor { display: grid; gap: 24px; align-items: center; }
.chat { display: grid; gap: 10px; max-width: 460px; }
.bubble { padding: 12px 16px; border-radius: 18px; font-size: 0.98rem; line-height: 1.45; }
.bubble-me { justify-self: end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; max-width: 85%; }
.bubble-connor { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; max-width: 92%; }
.bubble-connor b { color: var(--green-dark); }
.chat-note { font-size: 0.85rem; color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--green); font-weight: 800; }
.crosses li::before { content: "✕"; color: var(--red); }

/* Pricing */
.price-grid { display: grid; gap: 16px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.price-tag { font-family: var(--serif); font-size: 2.6rem; font-weight: 650; color: var(--green-deep); line-height: 1; margin: 6px 0 4px; }
.price-tag span { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.price-card .ticks { margin-top: 16px; flex: 1; }
.price-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 14px; }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 0.98rem; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--green-soft); color: var(--green-deep); }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); }

.cta-band { background: var(--green-deep); color: #eef6f2; border-radius: 24px; padding: 32px 24px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe4da; }

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.btn-light { background: #fff; color: var(--green-deep); border-color: #fff; }
.btn-light:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-deep); }

/* Free practice test (/practice-test/): the page's only script is /js/practice-test.js */
.practice .wrap { max-width: 760px; }
.practice-intro h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.practice-rule { background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; font-size: 0.98rem; }
.quiz { margin: 22px 0 18px; scroll-margin-top: 80px; }
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; }
.quiz-card h2 { font-size: 1.5rem; outline: none; }
.quiz-start p { color: var(--ink-soft); }
.quiz-noscript { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--ink); }
.quiz-bar { height: 6px; border-radius: 99px; background: var(--green-soft); overflow: hidden; margin-bottom: 14px; }
.quiz-bar span { display: block; height: 100%; background: var(--green); transition: width 0.25s; }
.quiz-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-soft); font-weight: 700; font-size: 0.92rem; }
.quiz-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 0.85rem; font-weight: 700; }
.quiz-tag.values { background: var(--gold-soft); color: #7a5c00; }
.quiz-card .quiz-stem { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin-bottom: 16px; }
.quiz .tr { display: block; margin-top: 4px; font-weight: 500; color: var(--ink-soft); font-size: 0.92em; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.quiz-option:hover:not(:disabled) { border-color: var(--green); background: #fbfdfc; }
.quiz-option:disabled { cursor: default; color: var(--ink); }
.quiz-letter { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 0.9rem; }
.quiz-option-text { padding-top: 2px; }
.quiz-option.is-correct { border-color: var(--green); background: var(--green-soft); }
.quiz-option.is-correct .quiz-letter { background: var(--green); color: #fff; }
.quiz-option.is-wrong { border-color: var(--red); background: var(--red-soft); }
.quiz-option.is-wrong .quiz-letter { background: var(--red); color: #fff; }
.quiz-feedback:empty { display: none; }
.quiz-feedback { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.quiz-verdict { margin-bottom: 8px; font-size: 1.05rem; }
.quiz-verdict.ok strong { color: var(--green-dark); }
.quiz-verdict.bad strong { color: var(--red); }
.quiz-expl { color: var(--ink); margin-bottom: 8px; }
.quiz-after { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.quiz-source { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.quiz-report { font-size: 0.9rem; font-weight: 700; }
.quiz-report::before { content: "⚑ "; }
.quiz-next { width: 100%; }
.quiz-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.quiz-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); }
.quiz-tile strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; }
.quiz-tile-label { font-weight: 700; font-size: 0.92rem; }
.quiz-tile-note { color: var(--ink-soft); font-size: 0.85rem; }
.quiz-tile.ok { border-color: var(--green); background: var(--green-soft); }
.quiz-tile.ok strong { color: var(--green-dark); }
.quiz-tile.bad { border-color: var(--red); background: var(--red-soft); }
.quiz-tile.bad strong { color: var(--red); }
.quiz-small { color: var(--ink-soft); font-size: 0.92rem; }
.quiz-review h3 { margin-top: 18px; }
.quiz-review ol { padding-left: 1.3em; margin: 0; }
.quiz-review li { margin-bottom: 14px; }
.quiz-review li > * { display: block; }
.quiz-review-stem { font-weight: 700; }
.quiz-review-answer { color: var(--green-dark); }
.quiz-review .quiz-tag { display: inline-block; margin: 4px 0; }
.quiz-actions { margin-top: 14px; }
.quiz-cta { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--green-soft); }
.quiz-cta-text { font-size: 1.05rem; }
.quiz-cta .hero-actions { margin: 12px 0 0; }
.practice-note { color: var(--ink-soft); font-size: 0.9rem; }
@media (min-width: 720px) {
  .quiz-card { padding: 28px 30px; }
  .quiz-next { width: auto; }
}

/* Plain pages: privacy, terms, support */
.page { padding: 40px 0 64px; }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.updated { color: var(--ink-soft); font-size: 0.95rem; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: 0.95rem; color: var(--ink-soft); }
.footer-grid { display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.disclaimer { font-size: 0.88rem; max-width: 60em; }
.copyright { font-weight: 700; color: var(--ink); }

/* Coming soon / 404 */
.solo { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.solo img.mark { width: 84px; height: 84px; margin: 0 auto 18px; }
.solo .lead { margin-inline: auto; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .phone { width: 330px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .tutor { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .rule-card { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
  section { padding: 80px 0; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.flush { margin: 0; }
.flush-top { margin-top: 0; }
figure.phone { margin: 0; }

/* Language dropdown: one <details>, no JavaScript (the CSP blocks scripts). */
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lang-switch { position: relative; flex: none; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 10px 0 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; font-size: 0.92rem; line-height: 1; white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ""; }
.lang-switch summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 1px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.lang-switch summary:hover { border-color: var(--green); }
.lang-switch[open] summary { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.lang-switch[open] summary::after { transform: translateY(1px) rotate(-135deg); }
/* While open, a see-through layer covers the page. It belongs to <summary>, so tapping outside the panel closes it. */
.lang-switch[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 40; cursor: default; }
.lang-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 41; min-width: 176px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 30, 25, 0.16), 0 2px 6px rgba(20, 30, 25, 0.06); }
.lang-panel a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-panel a:hover, .lang-panel a:focus-visible { background: var(--green-soft); color: var(--green-dark); }
.lang-panel a[aria-current] { color: var(--green-dark); font-weight: 750; }
.lang-panel a[aria-current]::after { content: "✓"; margin-inline-start: auto; padding-inline-start: 12px; }
.flag { flex: none; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14); }
@media (max-width: 719px) {
  .lang-switch summary { min-height: 44px; }
}
.header-bar .btn-small, .brand span { white-space: nowrap; }
@media (min-width: 720px) and (max-width: 959px) {
  .nav { gap: 14px; }
  .nav a { font-size: 0.92rem; }
}
@media (max-width: 419px) {
  .brand small { display: none; }
  .header-bar .btn-small { padding: 6px 13px; font-size: 0.9rem; }
}

/* Chinese and Hindi pages: the bundled fonts are Latin only, so fall back to system fonts for the script */
html:lang(zh) { --sans: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif; --serif: var(--sans); }
html:lang(hi) { --sans: "Source Sans 3", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Mangal", system-ui, sans-serif; --serif: var(--sans); }
html:lang(zh) body, html:lang(hi) body { line-height: 1.75; }
html:lang(zh) :is(h1, h2, h3), html:lang(hi) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
