/* Layout concept: one calm column on a warm white page. Navy for text and actions,
   soft gold for emphasis, blush for supporting panels. Cash to Win green, blue and gold
   appear only as small product markers. */
:root {
  --bg: #FFFBF6;
  --surface: #FFFFFF;
  --blush: #FBEDE8;
  --blush-edge: #F2D8CF;
  --ink: #14264A;
  --ink-2: #4A5675;
  --ink-3: #6B7590;
  --line: #EBDFD2;
  --gold: #C79A45;
  --gold-soft: #F7EBD0;
  --gold-ink: #7A5A16;
  --on-gold: #14264A;
  --btn-bg: #14264A;
  --btn-fg: #FFFBF6;
  --green: #1F8A4C;
  --green-soft: #E3F3E9;
  --blue: #1C3F8F;
  --blue-soft: #E7EDFA;
  --danger: #B3261E;
  --ring: #2F56B8;
  --shadow: 0 1px 2px rgba(20, 38, 74, .05), 0 10px 28px -14px rgba(20, 38, 74, .18);
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1630;
    --surface: #16213F;
    --blush: #2A2238;
    --blush-edge: #3C2F4A;
    --ink: #F3EEE6;
    --ink-2: #C4C9D8;
    --ink-3: #98A1B8;
    --line: #2C3858;
    --gold: #E0B565;
    --gold-soft: #3A3020;
    --gold-ink: #EBC77F;
    --btn-bg: #E0B565;
    --btn-fg: #14264A;
    --green: #5BCB86;
    --green-soft: #12301F;
    --blue: #8FB0F0;
    --blue-soft: #1A2850;
    --danger: #F08A82;
    --ring: #8FB0F0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1630;
  --surface: #16213F;
  --blush: #2A2238;
  --blush-edge: #3C2F4A;
  --ink: #F3EEE6;
  --ink-2: #C4C9D8;
  --ink-3: #98A1B8;
  --line: #2C3858;
  --gold: #E0B565;
  --gold-soft: #3A3020;
  --gold-ink: #EBC77F;
  --btn-bg: #E0B565;
  --btn-fg: #14264A;
  --green: #5BCB86;
  --green-soft: #12301F;
  --blue: #8FB0F0;
  --blue-soft: #1A2850;
  --danger: #F08A82;
  --ring: #8FB0F0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; }
.wrap-narrow { max-width: 520px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.3rem; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--blush); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .92rem; }
.linklike { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .88rem; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* legal footer, same on every page */
.legal { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 44px; color: var(--ink-3); font-size: .78rem; line-height: 1.6; }
.legal-inner { display: grid; gap: 12px; max-width: 760px; }
.legal .ctw-note { color: var(--ink-2); font-size: .85rem; background: var(--blush); border: 1px solid var(--blush-edge); border-radius: 12px; padding: 12px 14px; }
.legal .ctw-note strong { color: var(--ink); }
.legal a { color: var(--ink-2); }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 48px; width: 100%;
}
.field input:focus { border-color: var(--ring); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent); }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1.3em; }

/* shown over a tool page until the visitor has signed up */
.access-gate { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; padding: 24px; text-align: center; }
.access-gate .box { max-width: 420px; display: grid; gap: 14px; justify-items: center; }
.access-gate h2 { font-size: 1.5rem; }
.access-gate p { color: var(--ink-2); }

[hidden] { display: none !important; }
