:root {
  --navy: #1b2a4a;
  --navy-soft: #243558;
  --ink: #1b2a4a;
  --grey: #5b6577;
  --line: #d9dee8;
  --bg: #f5f7fb;
  --card: #ffffff;
  --accent: #1b2a4a;
  --focus: #2559c9;
  --install: #c026d3;
  --install-hover: #a21caf;
  --ok: #1d6b3a;
  --ok-bg: #e8f6ec;
  --err: #8a2b2b;
  --err-bg: #fdeeee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.08);
  --max: 760px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { line-height: 1.55; }
a { color: var(--focus); }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 24px 20px 56px; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

.lockup {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.lockup:hover { text-decoration: none; }
.lockup-emblem { position: relative; flex: 0 0 auto; line-height: 0; }
.lockup-emblem img {
  width: 56px; height: 56px; display: block; border-radius: 50%;
}
.lockup-emblem .tm {
  position: absolute; top: -4px; right: -10px;
  font-size: 0.7rem; font-weight: 700; color: var(--navy);
  line-height: 1;
}
.lockup-words {
  font-weight: 700; letter-spacing: 0.01em;
  font-size: 1.05rem; line-height: 1.2; color: var(--navy);
}
.lockup-words sup { font-size: 0.65em; }

.site-header, .site-footer { }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.site-header nav a { color: var(--grey); font-size: 0.92rem; text-decoration: none; }
/* 44x44 tap target (WCAG 2.5.5); negative margins cancel the padding so layout is unchanged. */
.site-header nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 10px; margin: -12px -10px;
  box-sizing: border-box;
}
.site-header nav a:hover { color: var(--navy); text-decoration: underline; }

.hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color: #fff; border-radius: 22px; padding: 32px 28px 28px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.hero .lockup-words { color: #fff; font-size: 1.35rem; }
.hero .lockup-emblem .tm { color: #fff; }
.hero .lockup { margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 12px; font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.2; font-weight: 700;
}
.hero p { margin: 0 0 12px; color: rgba(255,255,255,0.9); max-width: 40rem; }
.hero p:last-child { margin-bottom: 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.lede { color: var(--grey); margin: 0 0 18px; }
.after-form { margin-top: 16px; }

label { display: block; font-weight: 600; margin: 0 0 6px; font-size: 0.92rem; }
.field { margin-bottom: 16px; }
input[type="text"], input[type="email"], select {
  width: 100%; padding: 11px 12px; border: 1px solid #8a94a6;
  border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, button:focus, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: 0.92rem; line-height: 1.45;
}
.consent input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; }
.turnstile-wrap { margin: 8px 0 16px; min-height: 65px; }
button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 18px; font: inherit; font-weight: 650; cursor: pointer;
}
button[type="submit"]:hover { background: var(--navy-soft); }
button[type="submit"]:disabled { opacity: 0.65; cursor: not-allowed; }

.msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.err { background: var(--err-bg); color: var(--err); }
.msg:empty { padding: 0; margin: 0; }

.disclaimer {
  font-size: 0.9rem; color: var(--grey); line-height: 1.5; margin: 0;
}

.site-footer {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--grey); font-size: 0.88rem; line-height: 1.55;
}
.site-footer .entity { color: var(--navy); font-weight: 650; }
.site-footer .plain-vedge { font-weight: 400; color: var(--grey); }
.site-footer .lockup { margin-bottom: 12px; }
.site-footer .lockup-emblem img { width: 40px; height: 40px; }
.site-footer p { margin: 0 0 8px; }
.lang-line { margin-top: 10px; }

.prose h1 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose h2 { margin: 1.4em 0 0.5em; font-size: 1.15rem; }
.prose p { margin: 0 0 12px; }
/* Long bare URLs in prose links wrap on narrow screens. */
.prose a { overflow-wrap: anywhere; }
.placeholder-note {
  background: #fff8e8; border: 1px solid #f0e0b8; color: #6a531f;
  padding: 10px 12px; border-radius: 10px; font-size: 0.9rem;
}

@media (max-width: 560px) {
  .hero { padding: 24px 18px; }
  .lockup-words { font-size: 0.95rem; }
  .hero .lockup-words { font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .card { padding: 20px 14px; }
}
.turnstile-wrap { max-width: 100%; overflow-x: auto; }

/* Optional PWA install control — only shown when beforeinstallprompt fires. */
.install-app, .install-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; max-width: 100%;
  padding: 10px 18px;
  font: inherit; font-weight: 650; line-height: 1.2;
  color: #fff;
  background: var(--install);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(192, 38, 211, 0.28);
  cursor: pointer;
  white-space: normal; text-align: center;
}
.install-app { margin: 16px 0 0; }
.install-app:hover, .install-cta:hover { background: var(--install-hover); text-decoration: none; }
.install-app:focus-visible, .install-cta:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.install-app[hidden] { display: none; }

@media (display-mode: standalone) { .install-app { display: none !important; } }

/* Install page (/install/). iOS steps are static text. The CTA is shown by install.js. */
.install-cta { margin: 8px 0 0; padding: 12px 20px; }
.install-cta:disabled { opacity: 0.65; cursor: not-allowed; }
.install-cta[hidden] { display: none; }
.install-steps { margin: 0 0 16px; padding-left: 1.3em; }
.install-steps li { margin: 0 0 10px; }
.share-icon {
  display: inline-block;
  vertical-align: -0.2em;
  margin-left: 4px;
  width: 1.15em;
  height: 1.15em;
}
.install-standalone { display: none; }
@media (display-mode: standalone) {
  .install-standalone { display: block; }
  #install-instructions { display: none; }
}
.is-standalone .install-standalone { display: block; }
.is-standalone #install-instructions { display: none; }

.other-note { margin: 0 0 10px; font-size: 0.92rem; color: var(--grey); }
.nz-note { margin: 10px 0 0; font-size: 0.92rem; color: var(--grey); }
.nz-note[hidden] { display: none; }
/* v10 Option A: NZ paid-app CTA on the navy hero. Navy #1b2a4a on white = 14.4:1; hover #e8eefb; white focus ring on navy. Min 44px tap target. */
.btn { display: inline-block; min-height: 44px; padding: 11px 20px; border-radius: 10px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; line-height: 1.4; }
.btn:hover { background: #e8eefb; color: var(--navy); text-decoration: none; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#other-country-field[hidden], #name-field[hidden] { display: none; }

.hero-ctas .btn { margin: 0 8px 8px 0; }
.btn-alt { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-alt:hover { background: rgba(255,255,255,.12); color: #fff; }
