/* MO4 Requests. Taken from mo4network.com: black, white, Poppins only, #171717 / #2A2A2A panels,
   5px buttons with a "+", ghost words behind titles, round disc pickers, "+" marks and dot clusters.
   The swapped-letter headline (bold / thin italic / pixel) recreates the site's hero lettering in CSS. */
:root {
  --ink: #000000;
  --panel: #171717;
  --disc: #2a2a2a;
  --ghost: #1e1e1e;
  --line: #262626;
  --paper: #ffffff;
  --soft: #d4d4d4;
  --mute: #a3a3a3;
  --signal: #0189db;
  --alert: #ff8a8a;
  --radius: 5px;
  --font: "Poppins", system-ui, sans-serif;
  --pixel: "Silkscreen", "Poppins", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
/* The page area receives focus when the screen changes (for screen readers); it should never show a frame. */
main:focus, main:focus-visible { outline: none; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; background: var(--paper); color: var(--ink); border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 12px; }
.mute { color: var(--mute); }

/* ---------- Header (like the site: logo left, small links right) ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
  max-width: 1040px; width: 100%; margin: 0 auto;
}
.brand { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; }
.brand-logo { width: clamp(104px, 12vw, 150px); height: auto; }
.brand-tag {
  font-size: 12px; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
  padding-bottom: 4px; border-left: 1px solid var(--disc); padding-left: 14px; line-height: 1.2;
}
.who { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.who-name { color: var(--mute); }
.nav-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 400 14px var(--font); color: var(--paper);
}
.nav-link:hover { color: var(--mute); }

main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 96px); outline: none; }
.view-center { text-align: center; padding-top: 80px; }
.view-narrow { max-width: 600px; margin: 0 auto; text-align: center; }
.view-form { max-width: 760px; margin: 0 auto; }

/* ---------- Sign-in hero: the signature lettering ---------- */
.view-login { max-width: 760px; margin: 0 auto; text-align: center; }
.hero { position: relative; padding: clamp(24px, 6vw, 64px) 0 clamp(28px, 5vw, 48px); }
.hero-kicker {
  display: inline-flex; gap: 14px; align-items: center; margin: 0 0 18px;
  font-size: 12px; font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft);
}
.plus { font-weight: 300; color: var(--paper); }
.mega {
  margin: 0; font-weight: 800; text-transform: uppercase; line-height: 0.9;
  font-size: clamp(54px, 13.5vw, 150px); letter-spacing: -0.02em; white-space: nowrap;
}
.mega b { font-weight: 800; }
.mega i { font-style: italic; font-weight: 200; letter-spacing: -0.04em; }
.mega s { text-decoration: none; font-family: var(--pixel); font-weight: 700; font-size: 1.16em; line-height: 0; letter-spacing: -0.02em; }
.mega b, .mega i, .mega s { display: inline-block; animation: rise 0.7s var(--ease) both; }
.mega span > :nth-child(2) { animation-delay: 0.04s; } .mega span > :nth-child(3) { animation-delay: 0.08s; }
.mega span > :nth-child(4) { animation-delay: 0.12s; } .mega span > :nth-child(5) { animation-delay: 0.16s; }
.mega span > :nth-child(6) { animation-delay: 0.2s; }  .mega span > :nth-child(7) { animation-delay: 0.24s; }
.mega span > :nth-child(8) { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.18em); } to { opacity: 1; transform: none; } }
.hero-sub { margin: 22px auto 0; max-width: 460px; color: var(--soft); font-size: 15px; font-weight: 300; }

.mark { position: absolute; font-size: 34px; font-weight: 300; line-height: 1; color: var(--paper); }
.mark-a { left: -4%; top: 8%; }
.mark-b { right: 2%; bottom: 14%; font-size: 26px; }
.dots { position: absolute; width: 110px; fill: var(--paper); }
.dots-a { right: -6%; top: 6%; }

/* ---------- Titles with a ghost word behind (the site's .title-inner) ---------- */
/* Extra room above/below: the ghost word is ~2x the title's height and must not sit over the next element. */
.title-ghost { position: relative; text-align: center; margin: clamp(28px, 5vw, 48px) 0 clamp(44px, 8vw, 80px); isolation: isolate; }
.title-ghost .title { position: relative; z-index: 1; }
.ghost {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1;
  font-weight: 700; font-size: clamp(72px, 17vw, 170px); line-height: 0.82; color: var(--ghost);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.title-ghost-left { text-align: left; margin: 0; }
/* Left version (home): ghost sits behind the greeting line, not behind the small department line above it. */
.title-ghost-left .ghost { left: 0; top: auto; bottom: -0.12em; transform: none; font-size: clamp(64px, 14vw, 150px); }
.title-ghost-left .eyebrow { margin-bottom: clamp(22px, 4vw, 40px); }
.title { margin: 0; font-weight: 700; line-height: 0.95; letter-spacing: -0.01em; font-size: clamp(38px, 7.5vw, 76px); }
.eyebrow { position: relative; z-index: 1; margin: 0 0 10px; font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.lead { margin: 0 0 22px; color: var(--soft); font-size: 16px; font-weight: 300; }
.steps { display: inline-block; text-align: left; color: var(--soft); padding-left: 18px; margin: 0 0 26px; font-weight: 300; }
.steps li::marker { content: "+  "; color: var(--paper); }

/* ---------- Panels, fields, buttons ---------- */
.panel { background: var(--panel); border-radius: var(--radius); padding: clamp(18px, 4vw, 28px); }
.login-panel { max-width: 520px; margin: 0 auto; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; flex: 1; min-width: 0; }
.label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.label-center { display: block; width: 100%; text-align: center; margin-bottom: 18px; }
input, textarea {
  width: 100%; font: 400 15px var(--font); color: var(--paper);
  background: var(--ink); border: 1px solid var(--disc); border-radius: var(--radius); padding: 12px 14px;
  transition: border-color 0.2s;
}
input::placeholder, textarea::placeholder { color: #6b6b6b; }
input:hover, textarea:hover { border-color: #3a3a3a; }
input:focus, textarea:focus { border-color: var(--paper); outline: none; }
input[type="date"], input[type="time"] { color-scheme: dark; }
input[type="file"] { padding: 10px; font-size: 13px; }
input[type="file"]::file-selector-button { font: 500 13px var(--font); background: var(--disc); color: var(--paper); border: 0; border-radius: var(--radius); padding: 7px 12px; margin-right: 12px; cursor: pointer; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--alert); }
.error { color: var(--alert); font-size: 13px; }
.error:empty { display: none; }
.error-center { display: block; text-align: center; margin-top: 12px; }
.hint { margin: 12px 0 0; color: var(--mute); font-size: 13px; font-weight: 300; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > .field { min-width: 200px; }

/* Buttons: the site's 5px pills, white on black, with "+" */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px var(--font); color: var(--ink); background: var(--paper);
  border: 0; border-radius: var(--radius); padding: 11px 18px; cursor: pointer;
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.button:hover { background: #e6e6e6; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.55; cursor: progress; }
.button-plus::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; }
.button-block { width: 100%; padding: 14px 18px; }

.banner { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px; font-size: 14px; background: #2a1414; color: var(--alert); }
.banner.ok { background: var(--disc); color: var(--paper); }
.toast { border-radius: var(--radius); padding: 13px 16px; margin: 0 0 20px; font-size: 14px; background: var(--paper); color: var(--ink); font-weight: 500; }
.toast::before { content: "+ "; }
.info { margin: -4px 0 20px; font-size: 14px; color: var(--soft); font-weight: 300; padding: 12px 14px; background: var(--ink); border-radius: var(--radius); border: 1px dashed var(--disc); }
.info-warn { border-style: solid; border-color: #4a3a12; color: #f3d38a; }

/* ---------- Home ---------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: clamp(12px, 3vw, 32px) 0 32px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.stat-label { font-size: 11px; font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); line-height: 1.5; }
.section-title { margin: 48px 0 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.empty { color: var(--mute); font-weight: 300; padding: 28px; border: 1px dashed var(--disc); border-radius: var(--radius); text-align: center; margin: 0; }

.requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; transition: background-color 0.3s; }
.req:hover { background: #1c1c1c; }
.req-type { font-weight: 600; font-size: 16px; }
.req-summary { color: var(--soft); font-size: 14px; font-weight: 300; grid-column: 1 / 2; }
.req-meta { color: var(--mute); font-size: 12px; font-weight: 300; grid-column: 1 / -1; margin-top: 4px; }

/* Status: monochrome like the site. Approved/Paid = solid white, Pending = outline, Declined = dark + muted. */
.chip { align-self: start; justify-self: end; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: var(--radius); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.pending { color: var(--paper); box-shadow: inset 0 0 0 1px #555; }
.chip.approved, .chip.paid { color: var(--ink); background: var(--paper); }
.chip.declined { color: var(--alert); background: #2a1414; }

/* ---------- Request type discs (the site's Join page) ---------- */
.types { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.discs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 18px); max-width: 520px; margin: 0 auto; }
.disc-option { position: relative; }
.disc-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; border-radius: 50%; }
.disc {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: clamp(104px, 27vw, 150px); aspect-ratio: 1; border-radius: 50%;
  padding: 14px; background: var(--disc); color: var(--paper);
  font-size: clamp(13px, 3.2vw, 16px); font-weight: 600; line-height: 1.25;
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}
.disc-option:nth-child(even) .disc { background: var(--panel); }
.disc-option input:hover + .disc { transform: scale(1.05); }
.disc-option input:checked + .disc { background: var(--paper); color: var(--ink); transform: scale(1.05); }
.disc-option input:focus-visible + .disc { outline: 2px solid var(--signal); outline-offset: 4px; }

.form-panel { margin-top: 8px; }
.type-blurb { color: var(--soft); font-size: 14px; font-weight: 300; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--disc); }
.type-blurb::before { content: "+ "; color: var(--paper); font-weight: 400; }
.back { margin-bottom: 8px; color: var(--mute); }
.back:hover { color: var(--paper); }

/* ---------- Footer (centered logo, like the site) ---------- */
.foot { padding: 40px var(--gutter) 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; border-top: 1px solid var(--ghost); }
.foot-logo { width: 110px; opacity: 0.9; }
.foot-links { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 300; color: var(--mute); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--paper); }
.dot { font-size: 8px; }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .stat-num { order: 2; }
  .home-head .button { width: 100%; }
  .who-name { display: none; }
  .mark-a { left: 0; top: 0; }
  .dots-a { right: 0; top: -2%; width: 84px; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
