/* Criteriawise — tokens follow ~/au-prototype/saas.html (Public Sans, 16px, clay accent).
   Light only: AU public-sector sites are light-only, and forcing color-scheme keeps inputs
   from turning black under an OS dark theme. No blue or teal anywhere (reads as gov.au). */

@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url(/assets/fonts/public-sans-500.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(/assets/fonts/public-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(/assets/fonts/public-sans-700.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #fff; --panel: #FAFAFA; --raise: #fff; --bd: #E7E7EA; --bd-2: #EFEFF1;
  --fg: #09090B; --fg-2: #52525B; --fg-3: #63636C;
  --acc: #A8431E; --acc-hover: #8F3717; --acc-bg: #FBEFE9; --acc-bd: #EFCDBC;
  --ok: #0F6B3E; --ok-bg: #E9F6EF; --ok-bd: #C4E6D3;
  --warn: #9A6100; --warn-bg: #FDF4E3; --warn-bd: #F0DCB4;
  --dang: #9F1239; --dang-bg: #FDF0F4; --dang-bd: #F5CCD9;
  --sh: 0 1px 2px rgba(16,18,24,.04), 0 1px 1px rgba(16,18,24,.03);
  --r: 6px;
  --w: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -.006em; -webkit-font-smoothing: antialiased;
  /* Long emails, order ids, URLs and file names wrap instead of widening the page (QA A1). */
  overflow-wrap: anywhere;
}
a { color: var(--acc); text-underline-offset: 2px; }
a:hover { color: var(--acc-hover); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--fg-3); font-size: 14.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { border-bottom: 1px solid var(--bd); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { color: var(--fg); }
.brand .mark { width: 26px; height: 26px; border-radius: 5px; background: var(--fg); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--acc); background: var(--acc-bg); border: 1px solid var(--acc-bd); border-radius: 99px; padding: 1px 8px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top nav a:not(.btn) { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--fg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none;
  padding: 11px 18px; min-height: 44px; border-radius: var(--r);
  border: 1px solid var(--acc); background: var(--acc); color: #fff; cursor: pointer;
  transition: background .12s, border-color .12s; box-shadow: var(--sh);
}
.btn:hover { background: var(--acc-hover); border-color: var(--acc-hover); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.sec { background: var(--raise); color: var(--fg); border-color: var(--bd); }
.btn.sec:hover { background: var(--panel); color: var(--fg); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 14.5px; }
.btn.block { width: 100%; }

/* hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--bd); }
.hero .eyebrow { font-size: 14px; font-weight: 600; color: var(--acc); margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; max-width: 20ch; }
.hero .lede { font-size: 18.5px; color: var(--fg-2); margin-top: 18px; max-width: 58ch; line-height: 1.55; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 30px; }
.hero .cta .muted { max-width: 34ch; }

/* sections */
section.s { padding: 60px 0; border-bottom: 1px solid var(--bd); }
section.s:last-of-type { border-bottom: 0; }
.s h2 { font-size: 27px; letter-spacing: -.025em; line-height: 1.25; font-weight: 700; max-width: 30ch; }
.s .intro { color: var(--fg-2); margin-top: 10px; max-width: 62ch; font-size: 17px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; counter-reset: s; }
.steps li { border: 1px solid var(--bd); border-radius: var(--r); padding: 18px; background: var(--raise); box-shadow: var(--sh); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--acc-bg); color: var(--acc); border: 1px solid var(--acc-bd); font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.steps b { display: block; font-size: 16.5px; line-height: 1.35; margin-bottom: 6px; }
.steps span { color: var(--fg-2); font-size: 15px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.box { border: 1px solid var(--bd); border-radius: var(--r); padding: 20px 22px; background: var(--raise); box-shadow: var(--sh); }
.box h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -.015em; }
.box ul { list-style: none; display: grid; gap: 9px; }
.box li { padding-left: 24px; position: relative; color: var(--fg-2); font-size: 15.5px; }
.box li b { color: var(--fg); font-weight: 600; }
.box.yes li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.box.no li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 11px; height: 2px; background: var(--fg-3); }

.quote { margin-top: 24px; border-left: 3px solid var(--acc); padding: 4px 0 4px 18px; max-width: 64ch; }
.quote p { font-size: 17.5px; line-height: 1.55; }
.quote cite { display: block; font-style: normal; color: var(--fg-3); font-size: 14.5px; margin-top: 8px; }

/* price */
.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-top: 26px; border: 1px solid var(--bd); border-radius: var(--r); padding: 28px; background: var(--panel); }
.price .amt { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.price .per { color: var(--fg-2); margin-top: 6px; }
.price .amt-note { display: block; margin-top: 6px; line-height: 1.35; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--fg-2); }
.price-inline { color: var(--fg); font-weight: 600; }
.price ul { list-style: none; margin-top: 16px; display: grid; gap: 6px; color: var(--fg-2); font-size: 15.5px; }
.price .side { display: grid; gap: 10px; }
.price .fine { font-size: 14.5px; color: var(--fg-2); }

/* faq */
.faq { margin-top: 22px; border-top: 1px solid var(--bd); }
.faq details { border-bottom: 1px solid var(--bd); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--fg-2); max-width: 70ch; }
.faq .a p + p { margin-top: 8px; }

/* footer */
footer { border-top: 1px solid var(--bd); background: var(--panel); padding: 28px 0 36px; margin-top: 0; }
footer .wrap { display: grid; gap: 12px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; }
footer .links a { color: var(--fg-2); }
footer .disc { font-size: 14px; color: var(--fg-2); max-width: 80ch; }

/* forms (apply) */
.page { padding: 44px 0 72px; }
.page h1 { font-size: 30px; letter-spacing: -.028em; line-height: 1.2; }
.page .sub { color: var(--fg-2); margin-top: 8px; max-width: 62ch; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 28px; align-items: start; }
.card { min-width: 0; border: 1px solid var(--bd); border-radius: var(--r); background: var(--raise); box-shadow: var(--sh); }
.card + .card { margin-top: 16px; }
.card .hd { padding: 14px 18px; border-bottom: 1px solid var(--bd-2); display: flex; align-items: center; gap: 10px; }
.card .hd .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--panel); border: 1px solid var(--bd); color: var(--fg-2); flex: none; }
.card.on .hd .n { background: var(--acc); border-color: var(--acc); color: #fff; }
.card.done .hd .n { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok); }
.card .hd h2 { font-size: 17px; letter-spacing: -.015em; }
.card .hd .st { margin-left: auto; font-size: 13.5px; color: var(--fg-3); }
.card .bd { padding: 18px; }
.card.locked .bd { display: none; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .lb { font-weight: 600; font-size: 15.5px; }
.field .hint { font-size: 14px; color: var(--fg-3); margin-top: -2px; }
.req { color: var(--acc); font-weight: 600; }
input[type=email], input[type=url], input[type=text], input[type=date], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg);
  border: 1px solid #CFCFD6; border-radius: 5px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 16%, transparent); }
input[aria-invalid=true] { border-color: var(--dang); }

.drop { border: 1px dashed #CFCFD6; border-radius: var(--r); padding: 14px; background: var(--panel); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.drop.has { border-style: solid; border-color: var(--ok-bd); background: var(--ok-bg); }
.drop.err { border-color: var(--dang-bd); background: var(--dang-bg); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .fn { font-size: 15px; color: var(--fg-2); min-width: 0; overflow-wrap: anywhere; flex: 1; }
.drop.has .fn { color: var(--fg); }
.or { font-size: 13.5px; color: var(--fg-3); text-align: center; margin: 8px 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--acc); flex: none; }

.msg { overflow-wrap: anywhere; border-radius: var(--r); padding: 11px 14px; font-size: 15px; margin-top: 14px; border: 1px solid var(--bd); background: var(--panel); color: var(--fg-2); }
.msg:empty { display: none; }
.msg.err { background: var(--dang-bg); border-color: var(--dang-bd); color: var(--dang); }
.msg.ok { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok); }
.msg.warn { background: var(--warn-bg); border-color: var(--warn-bd); color: #6F4600; }

.summary { position: sticky; top: 80px; }
.summary .bd { display: grid; gap: 10px; font-size: 15px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; }
.summary .tot { font-weight: 700; font-size: 17px; border-top: 1px solid var(--bd-2); padding-top: 10px; }
.summary ul { list-style: none; display: grid; gap: 6px; color: var(--fg-2); font-size: 14.5px; }

.paybox { margin-top: 16px; min-height: 50px; }
.stmt { font-size: 15px; color: var(--fg); background: var(--panel); border: 1px solid var(--bd); border-left: 3px solid var(--acc); border-radius: 4px; padding: 9px 12px; margin-top: 14px; }
.paybox .stmt { margin: 0 0 12px; }
.mockpay { border: 1px dashed var(--warn-bd); background: var(--warn-bg); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.mockpay p { font-size: 14px; color: #6F4600; }

/* legal */
.legal { padding: 44px 0 72px; }
.legal .doc { max-width: 72ch; }
.legal h1 { font-size: 32px; letter-spacing: -.028em; margin-bottom: 14px; }
.legal h2 { font-size: 21px; letter-spacing: -.02em; margin: 30px 0 10px; }
.legal p, .legal li { color: #27272A; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--bd); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--panel); }
mark.ph { background: #FFE9A8; color: #5A3B00; border: 1px dashed #C99A1A; border-radius: 3px; padding: 0 3px; font-weight: 600; }
.draftbar { background: #FFF6D6; border-bottom: 1px solid #F0DCB4; color: #5A3B00; font-size: 14.5px; }
.draftbar .wrap { padding-top: 10px; padding-bottom: 10px; }

/* thanks */
.done-hero { padding: 64px 0 72px; max-width: 64ch; }
.done-hero .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--ok-bg); border: 1px solid var(--ok-bd); display: grid; place-items: center; margin-bottom: 18px; }
.done-hero h1 { font-size: 32px; letter-spacing: -.028em; line-height: 1.2; }
.done-hero ol { margin: 22px 0 0 20px; display: grid; gap: 10px; color: var(--fg-2); }
.done-hero ol b { color: var(--fg); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; order: -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top nav a.hide-sm { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero .lede { font-size: 17px; }
  .hero .cta .btn { width: 100%; }
  .steps, .two, .price { grid-template-columns: 1fr; }
  .price { padding: 20px; }
  section.s { padding: 44px 0; }
  .s h2 { font-size: 24px; }
}
