/* Self-hosted fonts (Montserrat, IBM Plex Mono; SIL Open Font Licence 1.1). No requests to Google. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/IBMPlexMono-400-latin-ext.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/IBMPlexMono-400-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/IBMPlexMono-500-latin-ext.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/IBMPlexMono-500-latin.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: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('assets/fonts/Montserrat-latin-ext.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: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('assets/fonts/Montserrat-latin.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; }
/* Actrand brand tokens (Brand Guideline v2, 2026) */
:root {
  --purple: #572961;
  --purple-dark: #3F1E46;
  --tint: #F5F2F6;
  --white: #FFFFFF;
  --black: #000000;
  --muted: #595959;
  --line: #D9D9D9;
  --blue: #6971E1;
  --coral: #E37373;
  --green: #95D07D;
  --yellow: #F5E855;
  --orchid: #C97AC0;

  --font: "Montserrat", Calibri, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --radius: 14px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--purple); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Orbit Field: the mark, oversized, white at 4.5% on dark, off-centre, never rotated */
.orbit-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orbit-field::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  right: -45%;
  top: -35%;
  background: var(--white);
  -webkit-mask: url("assets/favicon-t.png") center / contain no-repeat;
          mask: url("assets/favicon-t.png") center / contain no-repeat;
  opacity: .045;
  filter: blur(2px);
}

/* Hero */
.hero { position: relative; color: var(--white); background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); overflow: hidden; padding-bottom: 56px; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand img { display: block; width: 120px; }
.hero-body { position: relative; padding-top: 28px; max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; opacity: .85; margin: 0 0 14px; }
.eyebrow .mono { text-transform: none; letter-spacing: 0; }
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); overflow-wrap: anywhere; margin: 0; }

.mono { font-family: var(--mono); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: .82rem; line-height: 1.5; }
.opt { font-weight: 500; color: var(--muted); font-size: .8rem; }
a { color: var(--purple); }

.btn { display: inline-block; font-family: var(--font); font-weight: 600; text-decoration: none; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); }

/* Request page */
.main { max-width: 820px; padding-top: 0; padding-bottom: 56px; margin-top: -28px; position: relative; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: 28px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(63,30,70,.08); }
.panel > p:first-child { margin-top: 0; }
.panel > p:last-child { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.meta dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.meta dd { margin: 2px 0 0; font-weight: 600; }
.body { overflow-wrap: anywhere; }
.body a, .comment a { overflow-wrap: anywhere; }

.decide h2 { font-size: 1.25rem; color: var(--purple); margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: .88rem; font-weight: 600; color: var(--purple-dark); }
.field input, .field textarea { font: 500 1rem var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--black); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(87,41,97,.18); }
.decide-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.btn-approve { background: var(--purple); color: var(--white); min-width: 160px; }
.btn-approve:hover { background: var(--purple-dark); }
.btn-decline { background: var(--white); color: #8A1F1F; border: 1.5px solid var(--coral); min-width: 160px; }
.btn-decline:hover { background: #FCEDED; }

.outcome { border-left: 6px solid var(--line); }
.outcome-approved { border-left-color: var(--green); }
.outcome-declined { border-left-color: var(--coral); }
.outcome-expired, .outcome-cancelled { border-left-color: var(--muted); }
.outcome-title { font-size: 1.3rem; font-weight: 600; color: var(--purple-dark); margin: 0 0 6px; }
.comment { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--line); background: var(--tint); border-radius: 0 8px 8px 0; }
.error { background: var(--white); border-left: 4px solid var(--coral); padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; color: #8A1F1F; }

/* Privacy */
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 56px; }
.legal h2 { font-size: 1.3rem; color: var(--purple-dark); margin-top: 1.6em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--purple); }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer img { width: 90px; }

@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 20px; }
  .decide-buttons .btn { flex: 1 1 100%; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Captcha status (captcha.js) */
.captcha { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); max-width: 320px; }
.captcha-icon { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--purple); animation: captcha-spin .8s linear infinite; }
.captcha.is-done { color: var(--purple-dark); border-color: var(--green); }
.captcha.is-done .captcha-icon { animation: none; border: 0; background: var(--green); -webkit-mask: none; position: relative; }
.captcha.is-done .captcha-icon::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--purple-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.captcha.is-error { color: #8A1F1F; border-color: var(--coral); }
.captcha.is-error .captcha-icon { animation: none; border-color: var(--coral); }
button[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .captcha-icon { animation-duration: 3s; } }
