/* WaveBank test site — shared styles.
   Direction: a traditional bank. White, black and gold; one clean sans-serif (Libre Franklin) for everything,
   a Franklin Gothic body, square corners, a utility bar and a full footer with small print. One committed light look. */
/* Fonts are served from this site (no Google request), under the SIL Open Font License (see fonts/). */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/libre-franklin-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/jetbrains-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/jetbrains-mono-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/libre-franklin-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --gold: #a8812f;        /* accent text and lines on white (AA on white) */
  --gold-bright: #c9a24a; /* fills, highlights */
  --gold-soft: #efe4c6;   /* chart bars, tints */
  --black: #0c0c0d;       /* type, buttons, the one dark band */
  --ink: #0c0c0d;
  --ink-soft: #5c5a55;
  --line: #e9e6df;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f6f2;
  --paper: #fbf6e8;       /* receipts */
  /* aliases used by page styles */
  --tide: var(--gold); --tide-deep: var(--black); --current: var(--gold-bright); --foam: var(--gold-soft);
  --ok: #1f6b4a; --ok-bg: #e6f2ec;
  --warn: #7a5600; --warn-bg: #f8efd6;
  --bad: #9b2c25; --bad-bg: #f8e4e1;
  --dc-bg: #1e1f22; --dc-panel: #2b2d31; --dc-text: #dbdee1; --dc-soft: #949ba4; --dc-btn: #4e5058; --dc-blurple: #5865f2; --dc-green: #248046;
  --font-display: "Libre Franklin", "Franklin Gothic Book", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Libre Franklin", "Franklin Gothic Book", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.03rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--gold-bright); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font: 700 1.08rem/1.35 var(--font-body); margin: 0; }
h1 em, h2 em { font-style: normal; color: inherit; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: .88em; }
.eyebrow { font: 700 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-soft); }

.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.stack { display: grid; gap: 18px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.utility { background: var(--black); color: #d9d4c7; font-size: .8rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.utility nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.utility a { color: #d9d4c7; text-decoration: none; white-space: nowrap; }
.utility a:hover { color: #fff; }
.utility .signin-link { color: var(--gold-bright); font-weight: 700; flex: none; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); border-bottom: 3px solid var(--gold-bright); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.4rem/1 var(--font-display); letter-spacing: -.02em; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 6px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold-bright); }
.header-cta { flex: none; }
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 16px; padding-block: 12px; }
  .nav { order: 3; flex-basis: 100%; gap: 20px; }
  .header-cta { margin-left: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent; font: 700 .95rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #2a2a2c; }
.btn-gold { background: var(--gold-bright); color: var(--black); }
.btn-gold:hover { background: #d8b45e; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: 10px 18px; font-size: .9rem; }

/* The one dark band */
.band { background: var(--black); color: #f4f1ea; }
.band .eyebrow { color: var(--gold-bright); }
.band .muted, .band .lede { color: #a9a49a; }
.band a { color: #f4f1ea; }

/* Grids and quiet cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.icon-chip { width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); }
.icon-chip svg { width: 24px; height: 24px; }

/* Pills (status: colour + word) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius); font: 600 .74rem/1.6 var(--font-body); letter-spacing: .02em; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-info { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }

/* Discord product shot, set on black with a thin gold edge */
.dc { background: var(--dc-bg); color: var(--dc-text); border-radius: 10px; padding: 18px; font: 400 .92rem/1.45 "gg sans", var(--font-body); box-shadow: 0 0 0 1px rgb(201 162 74 / .45), 0 40px 80px -30px rgb(12 12 13 / .45); }
.dc-msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--black); box-shadow: inset 0 0 0 1px var(--gold-bright); display: grid; place-items: center; }
.dc-avatar svg { width: 24px; height: 24px; }
.dc-name { font-weight: 600; color: #fff; }
.dc-tag { font-size: .65rem; background: var(--dc-blurple); color: #fff; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; font-weight: 600; }
.dc-time { color: var(--dc-soft); font-size: .75rem; margin-left: 6px; }
.dc-eph { color: var(--dc-soft); font-size: .75rem; margin-top: 8px; }
.dc-box { margin-top: 6px; background: var(--dc-panel); border-left: 4px solid var(--gold-bright); border-radius: 6px; padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.dc-box h4 { margin: 0; font: 700 1.1rem/1.3 "gg sans", var(--font-body); color: #fff; }
.dc-sub { color: var(--dc-soft); font-size: .8rem; }
.dc-sep { border: 0; border-top: 1px solid #3f4147; margin: 2px 0; }
.dc-section { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-section b { color: #fff; }
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { border: 0; border-radius: 6px; padding: 6px 12px; font: 500 .84rem/1.3 "gg sans", var(--font-body); color: #fff; background: var(--dc-btn); white-space: nowrap; }
.dc-btn.blurple { background: var(--dc-blurple); }
.dc-btn.green { background: var(--dc-green); }
.dc .num { font-family: var(--font-mono); font-size: .78rem; background: #1e1f22; padding: 1px 5px; border-radius: 4px; }

/* Receipt */
.receipt { background: var(--paper); color: #3a2f14; padding: 22px 24px 30px; font: 400 .86rem/1.6 var(--font-mono); box-shadow: 0 20px 40px -20px rgb(12 12 13 / .35);
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-total { border-top: 1px dashed #c9a24a; padding-top: 8px; margin-top: 8px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 3px solid var(--gold-bright); }
.footer-cols { padding-block: 48px 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h4 { margin: 0 0 12px; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.fine-print { border-top: 1px solid var(--line); padding-block: 24px 40px; display: grid; gap: 10px; font-size: .78rem; line-height: 1.6; color: var(--ink-soft); }
.fine-print p { max-width: 110ch; }
.test-note { font-size: .88rem; color: var(--ink-soft); max-width: 40ch; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-cols > :first-child { grid-column: 1 / -1; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--black); color: #fff; padding: 13px 20px; border-radius: var(--radius); border-top: 3px solid var(--gold-bright); font-weight: 500; font-size: .95rem; z-index: 20; max-width: calc(100% - 40px); box-shadow: 0 0 0 1px rgb(201 162 74 / .5); }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .7rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Legal pages (Terms, Privacy) */
.legal { max-width: 76ch; padding-bottom: 96px; display: grid; gap: 14px; }
.legal h2 { font-size: 1.45rem; margin-top: 22px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--ink); text-decoration-color: var(--gold-bright); text-underline-offset: 3px; }
.legal-note { border-left: 3px solid var(--gold-bright); background: var(--surface-2); padding: 12px 16px; font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); min-width: 10rem; }
.legal-table th { border-bottom-color: var(--ink); }

/* Skip link: hidden until it gets keyboard focus */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--black); color: #fff; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Cookie notice */
.consent { position: fixed; z-index: 90; }
.consent-bar { left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; pointer-events: none; }
.consent-box { pointer-events: auto; background: var(--surface); border-top: 3px solid var(--gold-bright); box-shadow: 0 18px 40px -16px rgb(12 12 13 / .5); padding: 20px 22px; width: min(560px, 100%); display: grid; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; }
.consent-box h2 { font-size: 1.2rem; margin: 0; }
.consent-box p { margin: 0; font-size: .95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-opts { display: grid; gap: 8px; }
.consent-opts .check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); cursor: pointer; }
.consent-opts .check.off { opacity: .6; cursor: default; }
.consent-opts .check input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--ink); }
.consent-opts .check span { display: grid; gap: 2px; min-width: 0; }
.consent-opts .check small { color: var(--ink-soft); font-size: .85rem; }
@media (max-width: 420px) { .consent-actions .btn { flex: 1 1 auto; } }
.legal-related { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; }
.legal-related h2 { font-size: 1.05rem; }

/* Phones: the header scrolls away instead of covering a third of the screen, and tap targets get a little more room */
@media (max-width: 640px) {
  .site-header { position: static; }
  .nav a { padding-block: 6px; }
  .legal h2 { scroll-margin-top: 12px; }
}
