@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Anonymous Pro"; src: url("fonts/anonpro.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anonymous Pro"; src: url("fonts/anonpro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --magenta: #D4145A;   /* page: tabloid magenta */
  --magenta-deep: #A80D46;
  --ink: #231942;       /* form ink, indigo not black */
  --paper: #FFFFFF;
  --mint: #DCEEDC;      /* payslip security paper */
  --mint-line: #B9D8BE;
  --stamp: #C8102E;
  --yellow: #FFE45C;    /* highlighter, used for focus + referral */
  --display: "Anton", "Impact", "Haettenschweiler", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Anonymous Pro", ui-monospace, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--magenta);
  color: #fff;
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1:focus, .result:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- masthead + hero ---------- */
.masthead { padding: 18px 20px 0; max-width: 760px; margin: 0 auto; }
.wordmark {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: .01em;
  text-decoration: none; color: #fff;
}
.hero { max-width: 760px; margin: 0 auto; padding: 28px 20px 36px; }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 7.5rem);
  line-height: .88; letter-spacing: -.01em;
  text-transform: uppercase; margin: 0 0 28px;
  text-shadow: 4px 4px 0 var(--ink);
}
.quote { margin: 0 0 20px; padding: 0 0 0 16px; border-left: 4px solid #fff; }
.quote p { margin: 0; font-size: 1.25rem; line-height: 1.4; font-style: italic; font-weight: 500; max-width: 34ch; }
.lede { margin: 0; max-width: 46ch; font-size: 1.0625rem; }
.referral {
  display: inline-block; margin: 0 0 22px; padding: 8px 12px;
  background: var(--yellow); color: var(--ink); font-weight: 600; border-radius: 3px;
  transform: rotate(-1deg);
}

/* ---------- claim form sheet ---------- */
.sheet {
  max-width: 720px; margin: 0 auto 48px; background: var(--paper); color: var(--ink);
  border-radius: 6px; box-shadow: 0 2px 0 var(--magenta-deep), 0 18px 40px -18px rgba(35,25,66,.55);
  padding: 8px 0 24px;
}
@media (min-width: 760px) { .sheet { margin-bottom: 64px; } }
.sheet-head { padding: 22px 22px 18px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap-reverse; }
.sheet-title { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.05; margin: 0; }
.form-id { margin: 0; font-family: var(--mono); font-size: .95rem; border: 1.5px solid var(--ink); padding: 1px 8px; border-radius: 3px; }

.step { border: 0; margin: 0; padding: 26px 22px 6px; border-bottom: 1.5px dashed rgba(35,25,66,.35); min-width: 0; }
.step:last-of-type { border-bottom: 0; }
.step legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; display: flex; align-items: center; gap: 12px; }
.step legend + * { clear: both; }
.num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; font-family: var(--body); font-weight: 700; font-size: 1rem;
}
.hint { margin: 0 0 16px; color: rgba(35,25,66,.75); font-size: .95rem; max-width: 60ch; }
.sub { font-family: var(--body); font-weight: 700; font-size: 1.05rem; margin: 22px 0 4px; }

/* partner steppers */
.partners { display: grid; column-gap: 32px; margin-bottom: 18px; }
@media (min-width: 700px) { .partners { grid-template-columns: 1fr 1fr; } .partner:nth-child(2) { border-top: 0; } }
.partner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(35,25,66,.12); }
.partner:first-child { border-top: 0; }
.partner label { display: block; font-weight: 600; line-height: 1.25; }
.partner label small { display: block; font-weight: 400; font-size: .85rem; color: rgba(35,25,66,.6); }
.partner.on label { color: var(--magenta); }
.stepper { flex: none; display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink);
  font: 600 1.35rem/1 var(--body); cursor: pointer; touch-action: manipulation;
}
.stepper button:active { background: rgba(35,25,66,.1); }
.stepper input {
  width: 38px; height: 40px; border: 0; text-align: center; font: 700 1.05rem var(--body); color: var(--ink);
  background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* property rows */
.properties { display: grid; gap: 14px; margin-bottom: 8px; }
.prop { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px; border: 1.5px solid rgba(35,25,66,.25); border-radius: 6px; }
.prop-head { display: flex; justify-content: space-between; align-items: baseline; }
.prop-title { font-weight: 700; font-size: .95rem; }
.prop-remove { border: 0; background: none; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 4px; }
.prop-fields { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .prop-fields { grid-template-columns: 1.4fr 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 3px; }
select, input[type="text"] {
  width: 100%; height: 46px; padding: 0 12px; font: 500 1rem var(--body); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 4px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 18px center, right 12px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
input[type="text"] { text-transform: uppercase; }
input[type="text"]::placeholder { text-transform: none; color: rgba(35,25,66,.4); }
input:disabled { background: #F1EEF5; color: rgba(35,25,66,.5); }
.abroad { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; margin-top: 6px; cursor: pointer; }
.field-error { color: var(--stamp); font-size: .85rem; font-weight: 600; margin: 4px 0 0; }
.invalid { border-color: var(--stamp) !important; }
.prop-value { font-family: var(--mono); font-size: .95rem; margin: 0; color: rgba(35,25,66,.75); }

.btn-text {
  border: 0; background: none; padding: 8px 0; font: 700 1rem var(--body); color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.btn-text-light { color: #fff; }

/* extras chips */
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; user-select: none;
}
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

/* submit */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; cursor: pointer; font-weight: 600; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent small { display: block; font-weight: 400; font-size: .85rem; color: rgba(35,25,66,.7); margin-top: 2px; }
.turnstile:empty { display: none; }
.turnstile { margin-bottom: 14px; }
.error { color: var(--stamp); font-weight: 600; margin: 0 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.btn-big { width: 100%; min-height: 60px; font-size: 1.15rem; margin-bottom: 16px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #33275F; }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- result: the payslip ---------- */
.result { max-width: 640px; margin: 0 auto 56px; padding: 0 16px; outline: none; }
.slot { height: 14px; margin: 0 -6px; background: var(--ink); border-radius: 8px; box-shadow: inset 0 -5px 0 #120B2A; position: relative; z-index: 2; }
.payslip {
  position: relative; color: var(--ink); font-family: var(--mono); font-size: 1rem; line-height: 1.45;
  margin: -7px 6px 0; padding: 30px 22px 26px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(185,216,190,.55) 27px 28px),
    repeating-radial-gradient(circle at 120% -20%, transparent 0 14px, rgba(185,216,190,.35) 14px 15px),
    var(--mint);
  /* perforated bottom edge */
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
  transform-origin: top center;
}
.result.printing .payslip { animation: print 1.1s cubic-bezier(.3,.7,.3,1) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-40px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.ps-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.ps-head p { margin: 0; }
.ps-co { font-weight: 700; font-size: 1.05rem; }
.ps-doc { font-weight: 700; font-size: 1.05rem; text-align: right; letter-spacing: .3em; }
.ps-right { text-align: right; }
.ps-small { font-size: .85rem; opacity: .8; margin: 0; }
.ps-people { margin: 0 0 14px; display: grid; gap: 4px; }
.ps-people div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.ps-people dt { opacity: .75; }
.ps-people dd { margin: 0; font-weight: 700; }
.ps-grade { position: relative; border: 2px solid var(--ink); padding: 12px 14px 14px; margin: 40px 0 14px; background: rgba(255,255,255,.45); }
.ps-tier { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: .95; margin: 4px 0 10px; letter-spacing: 0; }
.ps-blurb { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.45; max-width: 44ch; }
.ps-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .95rem; }
.ps-table th, .ps-table td { padding: 5px 0; text-align: left; font-weight: 400; vertical-align: top; border-bottom: 1px dashed rgba(35,25,66,.3); }
.ps-table td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 10px; }
.ps-table tr.key th, .ps-table tr.key td { font-weight: 700; font-size: 1.1rem; border-bottom: 2px solid var(--ink); }
.ps-area { font-family: var(--body); background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 3px; margin-bottom: 14px; }
.ps-area .verdict { font-family: var(--display); font-size: 1.5rem; line-height: 1.05; margin: 0 0 6px; }
.ps-area p { margin: 0; font-size: .95rem; }
.ps-area .note { opacity: .7; font-size: .82rem; margin-top: 6px; }
.ps-foot { font-size: .8rem; opacity: .7; margin: 0; }

.stamp {
  position: absolute; right: -6px; top: -34px; z-index: 3;
  font-family: var(--display); color: var(--stamp); font-size: 1.3rem; line-height: 1; text-align: center;
  padding: 7px 10px 5px; border: 4px solid var(--stamp); border-radius: 6px; max-width: 170px;
  transform: rotate(-11deg); mix-blend-mode: multiply; opacity: .88; pointer-events: none;
  -webkit-mask: repeating-radial-gradient(circle at 30% 40%, #000 0 2px, rgba(0,0,0,.75) 2px 3px);
          mask: repeating-radial-gradient(circle at 30% 40%, #000 0 2px, rgba(0,0,0,.75) 2px 3px);
}
.result.printing .stamp { animation: thud .35s cubic-bezier(.2,1.6,.4,1) 1.15s both; }
@keyframes thud { from { opacity: 0; transform: rotate(-11deg) scale(2.2); } to { opacity: .88; transform: rotate(-11deg) scale(1); } }

.share { text-align: center; margin-top: 26px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.share-note { min-height: 1.5em; margin: 4px 0; font-weight: 600; }

/* ---------- league ---------- */
.league { max-width: 720px; margin: 0 auto 56px; padding: 0 20px; }
.league h2 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin: 0 0 8px; text-transform: uppercase; }
.league-sub { margin: 0 0 18px; max-width: 52ch; }
.league-cols { display: grid; gap: 16px; }
@media (min-width: 640px) { .league-cols { grid-template-columns: 1fr 1fr; } }
.league-cols > div { background: #fff; color: var(--ink); border-radius: 6px; padding: 16px 18px; }
.league h3 { margin: 0 0 8px; font-size: 1.05rem; }
.league ol { margin: 0; padding: 0 0 0 1.4em; }
.league li { padding: 6px 0; border-top: 1px solid rgba(35,25,66,.12); }
.league li:first-child { border-top: 0; }
.league li b { display: block; }
.league li span { font-size: .88rem; color: rgba(35,25,66,.7); }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; z-index: 50; background: var(--magenta); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.gate-card { background: #fff; color: var(--ink); border-radius: 8px; padding: 28px 24px; max-width: 420px; width: 100%; }
.gate-mark { font-family: var(--display); font-size: 4.5rem; line-height: .9; margin: 0 0 6px; color: var(--magenta); }
.gate-card h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 8px; }
.gate-card p { margin: 0 0 20px; }
.gate-actions { display: grid; gap: 10px; }

/* ---------- footer ---------- */
.footer { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; font-size: .88rem; opacity: .9; }
.footer p { margin: 0 0 6px; }

/* ---------- privacy page ---------- */
.doc { max-width: 680px; margin: 0 auto 56px; background: #fff; color: var(--ink); border-radius: 6px; padding: 28px 24px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin: 0 0 16px; text-transform: uppercase; }
.doc h2 { font-size: 1.15rem; margin: 26px 0 6px; }
.doc p, .doc li { max-width: 62ch; }

@media (prefers-reduced-motion: reduce) {
  .result.printing .payslip, .result.printing .stamp { animation: none; }
  html { scroll-behavior: auto; }
}
