/* citizenshiptestquiz.com.au — Connor marketing site. Mobile first, no JavaScript needed. */

@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.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(8px); }
.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;
}
.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; }

/* 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-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; }

/* 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 switcher, top-right of the header: pills from 720px, a dropdown on phones. No JavaScript. */
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lang-switch { position: relative; flex: none; }
.lang-pills { display: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-pills a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 11px; border-radius: 999px; color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; line-height: 1; text-decoration: none; }
.lang-pills a:hover { background: var(--green-soft); color: var(--green-dark); }
.lang-pills a[aria-current] { background: var(--green); color: #fff; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-menu[open] summary { border-color: var(--green); }
.lang-menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lang-menu li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.lang-menu li a:hover { background: var(--green-soft); }
.lang-menu li a[aria-current] { color: var(--green-dark); font-weight: 750; }
.lang-menu li a[aria-current]::after { content: "✓"; }
.lang-icon { color: var(--ink-soft); flex: none; }
.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; }
}
@media (min-width: 720px) {
  .lang-pills { display: inline-flex; }
  .lang-menu { display: none; }
}

/* 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; }
