/* AUReferralCodes.com */

:root {
  --ink: #171C2B;
  --paper: #FFFFFF;
  --surface: #F3F6FA;
  --surface-2: #E8EEF7;
  --line: #DCE3EC;
  --muted: #5C6A80;

  --brand: #2E5BD8;
  --brand-dark: #1E43A8;
  --live: #0B7A57;
  --live-soft: #E3F4EC;
  --pill: #FFE066;
  --pill-ink: #4A3900;
  --alert: #B54708;
  --alert-soft: #FDF3E8;

  --measure: 68ch;
  --radius: 14px;
}

*, *::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: "Source Serif 4", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4, .ui {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

p, ul, ol, dl { max-width: var(--measure); }
p { margin: 0 0 1.1rem; }
li { margin-bottom: 0.55rem; }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 64rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* ---------- masthead ---------- */

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }

.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}

.wordmark {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--brand); }

.masthead nav { margin-left: auto; font-family: Archivo, sans-serif; font-size: 0.92rem; font-weight: 500; }
.masthead nav a { color: var(--muted); text-decoration: none; margin-left: 1.15rem; }
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- honesty strip ---------- */

.strip {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: Archivo, sans-serif;
  font-size: 0.88rem;
}
.strip .wrap { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.strip p { margin: 0; max-width: none; color: var(--muted); }
.strip strong { color: var(--ink); }

/* ---------- pills ---------- */

.pill {
  display: inline-block;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: var(--pill);
  color: var(--pill-ink);
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.pill-live { background: var(--live-soft); color: var(--live); }

/* ---------- hero ---------- */

.hero { padding-block: 2.75rem 1rem; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- code card ---------- */

.codecard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(23,28,43,.05), 0 8px 24px rgba(23,28,43,.06);
  padding: 1.6rem;
  margin: 1.75rem 0;
}

.codecard .bignum {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 0.3rem;
}

.codecard .bigsub { color: var(--muted); margin: 0 0 1.25rem; max-width: 48ch; }

.codebar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }

.codebox {
  flex: 1 1 14rem;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  display: flex; align-items: center;
}

.codebox code {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.6rem);
  letter-spacing: 0.1em;
  color: var(--ink);
}

.copybtn {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 0.95rem;
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  padding: 0.85rem 1.4rem; cursor: pointer; white-space: nowrap;
}
.copybtn:hover { background: var(--brand-dark); }
.copybtn[data-copied="true"] { background: var(--live); }

.codemeta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center;
  margin-top: 1.1rem; font-family: Archivo, sans-serif; font-size: 0.88rem; color: var(--muted);
}

.check { color: var(--live); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }

.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--live); flex: none; }

.cta {
  display: inline-block; font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.02rem;
  background: var(--live); color: #fff; text-decoration: none;
  padding: 0.9rem 1.6rem; border-radius: 10px; margin-top: 1.25rem;
}
.cta:hover { background: #095F44; color: #fff; }

.cta-note { font-size: 0.92rem; color: var(--muted); margin: 0.75rem 0 0; max-width: 52ch; }

/* ---------- stat grid ---------- */

.statgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: 1.5rem 0 0; max-width: none;
}

.statgrid div { background: var(--paper); padding: 1.1rem 1.2rem; }
.statgrid dt { font-family: Archivo, sans-serif; font-size: 0.76rem; color: var(--muted); margin: 0 0 0.3rem; }
.statgrid dd { font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0; }

/* ---------- sections ---------- */

main { padding-bottom: 4rem; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.75rem 0; margin: 3rem 0; }
.band h2 { margin-top: 0; }

table { border-collapse: collapse; width: 100%; max-width: 46rem; margin: 1.25rem 0 1.5rem; font-family: Archivo, sans-serif; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.75rem 1.25rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); width: 34%; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; max-width: var(--measure); }
ol.steps li { counter-increment: step; padding-left: 3rem; position: relative; margin-bottom: 1.1rem; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 0.9rem;
  width: 2rem; height: 2rem; background: var(--brand); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
}

.split { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 54rem; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: var(--paper); }
.panel h3 { margin-top: 0; }
.panel ul { padding-left: 1.1rem; margin-bottom: 0; }
.panel-good { border-left: 4px solid var(--live); }
.panel-bad { border-left: 4px solid var(--alert); }

.callout { background: var(--alert-soft); border-left: 4px solid var(--alert); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin: 1.5rem 0; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }

.faq { max-width: var(--measure); }
.faq dt { font-family: Archivo, sans-serif; font-weight: 700; margin: 1.6rem 0 0.4rem; }
.faq dd { margin: 0; }

/* ---------- code history ---------- */

.history { list-style: none; padding: 0; max-width: 42rem; }
.history li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-family: Archivo, sans-serif; font-size: 0.95rem; }
.history code { font-family: "JetBrains Mono", monospace; font-weight: 700; letter-spacing: 0.06em; }
.history .tag { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.tag-live { background: var(--live-soft); color: var(--live); }
.tag-dead { background: var(--surface-2); color: var(--muted); }
.history .when { color: var(--muted); margin-left: auto; }

/* ---------- card list (home) ---------- */

.codegrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); margin: 1.5rem 0; }

.minicard { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: var(--paper); display: flex; flex-direction: column; }
.minicard h3 { margin: 0.4rem 0 0.3rem; }
.minicard h3 a { color: var(--ink); text-decoration: none; }
.minicard h3 a:hover { color: var(--brand); text-decoration: underline; }
.minicard p { font-size: 0.97rem; color: var(--muted); margin-bottom: 1rem; }
.minicard .codebar { margin-top: auto; }
.minicard .codebox { flex: 1 1 8rem; padding: 0.6rem 0.8rem; }
.minicard .codebox code { font-size: 1.05rem; }
.minicard .copybtn { padding: 0.6rem 1rem; font-size: 0.88rem; }

.soon { border-style: dashed; background: var(--surface); }
.soon p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.5rem 0 3.5rem; font-size: 0.92rem; color: var(--muted); }
footer p { max-width: 72ch; }
footer a { color: var(--muted); }
footer .footnav { font-family: Archivo, sans-serif; font-weight: 600; margin-top: 1.25rem; }
footer .footnav a { color: var(--ink); text-decoration: none; margin-right: 1.25rem; }
footer .footnav a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* pills must not stretch inside flex-column cards */
.minicard .pill { align-self: flex-start; }

/* ---------- breadcrumb + jump nav ---------- */

.crumbs {
  font-family: Archivo, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { margin: 0 0.5rem; color: var(--line); }

.jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.jumpnav a {
  font-family: Archivo, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.jumpnav a:hover { background: var(--surface-2); border-color: var(--muted); }

/* shown only when the verification date is more than ~3 months old */
.stale {
  background: var(--alert-soft);
  color: var(--alert);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
