/**
 * styles.css - Wunder Management careers site.
 *
 * MONOCHROME ON PURPOSE. Black, white and grey only - no brand hue anywhere.
 * Selection is shown by a filled black card, not by a colour, and errors by
 * weight, a heavier border and a "!" marker rather than red. Colour is therefore
 * never the only signal for anything, which is also what accessibility wants.
 *
 * The layout follows a quiz funnel: one question per screen, a large centred
 * question, and full-width option cards big enough to hit with a thumb. Almost
 * all traffic is Meta ad traffic on a phone, so every screen is designed at
 * 375px first and simply gets more air on a desktop.
 *
 * No webfont on purpose. Applicants are in the Philippines on mixed connections,
 * and a blocking font request is the slowest thing on a page like this. The
 * system stack renders as Inter on newer Windows and as SF/Segoe/Roboto
 * elsewhere, all of which look right.
 */

:root {
  --ink: #0B0B0C;
  --ink-2: #34343A;
  --paper: #FFFFFF;
  --surface: #F6F6F4;
  --surface-2: #EFEFEC;
  --line: #E2E2DE;
  --line-strong: #C9C9C3;
  --muted: #6C6C72;
  --muted-2: #8A8A90;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 11, 12, .05);
  --shadow: 0 6px 20px -6px rgba(11, 11, 12, .12), 0 1px 2px rgba(11, 11, 12, .04);
  --shadow-lg: 0 24px 60px -24px rgba(11, 11, 12, .22), 0 4px 14px rgba(11, 11, 12, .05);

  --wrap: 1160px;
  --quiz: 560px;          /* one question never needs more width than this */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--muted); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.18; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--quiz { max-width: var(--quiz); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================== header ==============================
 * A solid black bar with a curved bottom edge, which is what gives the
 * funnel its "app screen" feel rather than "web page".
 */
.site-header {
  background: var(--ink); color: #fff;
  border-bottom-left-radius: 26px; border-bottom-right-radius: 26px;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; letter-spacing: -.04em;
}
/* Must not wrap: two lines here pushes the header to 90px and the curve looks
 * broken. The link beside it shrinks instead. */
.brand-text { font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { color: rgba(255, 255, 255, .62); font-weight: 500; }
.header-link {
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: #fff; padding: 9px 16px;
  border: 1.5px solid rgba(255, 255, 255, .5); border-radius: var(--r-pill);
}
.header-link:hover { color: var(--ink); background: #fff; border-color: #fff; }

/* ============================== buttons ============================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: var(--r-pill); border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.btn:hover { color: #fff; background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ink); background: var(--surface); }
.btn[disabled] { opacity: .38; cursor: not-allowed; }
.btn--block { width: 100%; }

/* ============================== hero ============================== */

.hero { padding: 34px 0 26px; text-align: center; }
.hero__eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(30px, 7vw, 44px); text-transform: uppercase;
  max-width: 18ch; margin: 0 auto; letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: var(--muted-2); }
.hero__lede {
  margin: 14px auto 0; font-size: 17px; color: var(--muted); max-width: 42ch;
}
.hero__lede b { color: var(--ink-2); font-weight: 700; }
.hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; margin-top: 22px;
}
.stat__n { font-size: 20px; font-weight: 800; letter-spacing: -.03em; display: block; }
.stat__l { font-size: 12.5px; color: var(--muted); }

/* ============================== filters ============================== */

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 26px 0 4px;
}
.chip {
  padding: 9px 17px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================== role cards ==============================
 * Modelled on a job-board listing row: team and a NEW flag on top, the title
 * large, then the one-line remote fact, then pay against hours on a baseline.
 */
.roles { display: grid; gap: 12px; padding: 18px 0 60px; max-width: var(--quiz); margin: 0 auto; }
.role {
  display: block; text-align: left; width: 100%;
  padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer;
  font: inherit; color: var(--ink); text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.role:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--ink); }
.role:active { transform: scale(.995); }
.role__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.badge {
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.badge--new {
  color: var(--ink); background: var(--surface-2);
  padding: 4px 9px; border-radius: var(--r-pill); letter-spacing: .07em;
}
.role h2 { font-size: 20px; letter-spacing: -.025em; }
.role__remote { font-size: 13.5px; color: var(--muted); margin: 5px 0 0; }
.role__summary { color: var(--muted); font-size: 14.5px; margin: 9px 0 0; }
.role__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line);
}
.role__pay { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.role__hours { font-size: 13px; color: var(--muted); text-align: right; }

/* ============================== role intro screen ============================== */

.intro { padding: 28px 0 40px; }
.back-link {
  display: inline-block; font-size: 13.5px; font-weight: 700;
  text-decoration: none; color: var(--muted); margin-bottom: 16px;
}
.back-link:hover { color: var(--ink); }
.intro h1 { font-size: clamp(26px, 6vw, 36px); letter-spacing: -.03em; }
.intro__summary { margin-top: 12px; font-size: 16.5px; color: var(--muted); }

/* the five facts as one hairline strip, never five floating boxes */
.meta-grid {
  display: grid; gap: 1px; margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.meta { padding: 11px 14px; background: var(--paper); }
.meta__k {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.meta__v { font-size: 14.5px; font-weight: 700; margin-top: 2px; }

/* The full ad is 230+ words. It cannot sit on a quiz screen, and it is not ours
 * to delete, so it collapses instead. Closed by default: the applicant came to
 * apply, and anyone who wants the detail is one tap away. */
.details { margin-top: 18px; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; }
.details > summary {
  padding: 15px 18px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700; background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.details > summary::-webkit-details-marker { display: none; }
.details > summary::after { content: "+"; font-size: 20px; font-weight: 700; color: var(--muted); }
.details[open] > summary::after { content: "\2212"; }
.details > summary:hover { background: var(--surface-2); }
.details__body { padding: 18px; border-top: 1.5px solid var(--line); }

/* job ad body */
.ad { font-size: 15.5px; line-height: 1.6; }
.ad h3 { font-size: 16px; margin: 22px 0 9px; }
.ad > h3:first-child { margin-top: 0; }
.ad p { color: var(--ink-2); margin-bottom: .8em; }
.ad ul, .ad ol { margin: 0 0 .8em; padding-left: 20px; color: var(--ink-2); }
.ad li { margin-bottom: 5px; }
.ad ul { list-style: none; padding-left: 0; }
.ad ul li { position: relative; padding-left: 18px; }
.ad ul li::before {
  content: ""; position: absolute; left: 3px; top: .66em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2);
}
.ad strong { font-weight: 700; color: var(--ink); }
.ad a { word-break: break-word; }

.intro__cta { margin-top: 22px; }
.intro__note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ============================== quiz ==============================
 * One question per screen. The counter is a plain "3 / 17" because a bar alone
 * hides how much is left, and an honest number is what stops people quitting
 * in the middle.
 */
.quiz { padding: 18px 0 40px; }
.quiz__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.quiz__back {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--paper);
  font: inherit; font-size: 17px; color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.quiz__back:hover { background: var(--surface); }
.quiz__back[hidden] { display: none; }
.progress { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.progress__fill { height: 100%; background: var(--ink); border-radius: var(--r-pill); transition: width .28s ease; }
.step-count { font-size: 13px; font-weight: 800; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }

.screen { display: none; }
.screen[data-active="true"] { display: block; animation: rise .22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.screen__eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 10px;
}
.field__label {
  display: block; font-size: clamp(21px, 4.6vw, 26px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.22; text-align: center; margin-bottom: 10px;
}
.req { display: none; }                 /* every question states its own need */
.opt { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.field__help { font-size: 14.5px; color: var(--muted); margin: 0 auto 20px; text-align: center; max-width: 40ch; }
.field__help a { word-break: break-word; }
.howto { margin: 14px auto 0; max-width: 44ch; font-size: 14.5px; color: var(--ink-2); }
.howto summary { cursor: pointer; text-align: center; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.howto ol { margin: 10px 0 0; padding: 14px 14px 14px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; line-height: 1.5; }
.howto li + li { margin-top: 6px; }
.field { margin: 0; }

/* option cards - the whole card is the hit target */
.choices { display: grid; gap: 10px; margin-top: 22px; }
.choice {
  display: flex; align-items: center; gap: 13px;
  padding: 17px 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r);
  cursor: pointer; font-size: 16px; font-weight: 600; background: var(--paper);
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.choice:hover { border-color: var(--ink); background: var(--surface); }
/* The native control is hidden: the card itself shows state, and a visible
 * radio next to a filled black card reads as two competing indicators. */
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { flex: 1; }
.choice__tick { flex: none; font-size: 17px; font-weight: 800; opacity: 0; }
.choice:has(input:checked) {
  background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700;
}
.choice:has(input:checked) .choice__tick { opacity: 1; }

/* text inputs */
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], textarea, select {
  width: 100%; padding: 16px 17px; margin-top: 22px;
  font: inherit; font-size: 16.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color .14s ease, box-shadow .14s ease;
}
input:hover, textarea:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--surface-2);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
/* Monochrome error state: a near-black heavy border plus the message below.
 * Never colour alone. */
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--ink); border-width: 2px; background: var(--surface);
}
.char-count { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 9px; text-align: right; }

/* file input */
.file-drop {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  padding: 18px; border: 2px dashed var(--line-strong);
  border-radius: var(--r); background: var(--surface); cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.file-drop:hover { border-color: var(--ink); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop__icon {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: var(--paper); border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 17px;
}
.file-drop__text { font-size: 14px; }
.file-drop__text b { display: block; font-size: 15px; word-break: break-word; }
.file-drop__text span { color: var(--muted); }
.file-drop[data-has-file="true"] { border-style: solid; border-color: var(--ink); background: var(--paper); }

.error { display: none; margin-top: 11px; font-size: 14px; font-weight: 700; color: var(--ink); }
.error[data-show="true"] { display: flex; gap: 8px; align-items: flex-start; }
.error::before {
  content: "!"; flex: none; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}

/* the sticky action bar - one primary action, always in reach of a thumb */
.quiz__foot {
  position: sticky; bottom: 0; z-index: 20;
  padding: 14px 0 18px; margin-top: 26px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--paper) 34%);
}
.quiz__foot .btn { width: 100%; }
.quiz__foot[hidden] { display: none; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; text-align: center; }

.banner {
  display: none; margin: 0 0 18px; padding: 14px 16px;
  border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
}
.banner[data-show="true"] { display: block; }
.banner--warn { border-style: dashed; }

/* ============================== interstitial ============================== */

.pause { text-align: center; padding: 26px 0 10px; }
.pause__n { font-size: clamp(38px, 11vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pause h2 { font-size: clamp(21px, 4.6vw, 26px); margin-top: 14px; letter-spacing: -.025em; }
.pause p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ============================== success ============================== */

.done { display: none; padding: 40px 0; text-align: center; }
.done[data-show="true"] { display: block; }
.done__mark {
  width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 29px; font-weight: 800;
}
.done h2 { font-size: 25px; margin-bottom: 12px; }
.done p { color: var(--muted); font-size: 16px; }
.done__role { color: var(--ink) !important; font-weight: 600; margin-bottom: 8px; }

/* The steps are the one part that must not be centred - a centred ordered list
   has no common left edge, so the eye cannot scan it. Centre the BOX, left-align
   the text inside it. */
.done__next {
  margin: 30px auto 0; max-width: 420px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px;
}
.done__next h3 {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.done__next ol { margin: 0 0 0 18px; padding: 0; }
.done__next li {
  color: var(--ink); font-size: 15.5px; line-height: 1.5; margin-bottom: 10px;
}
.done__next li:last-child { margin-bottom: 0; }
.done__note {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px !important; line-height: 1.5;
}
.done__note strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
/* Interim Workstyle notice: same box as the steps, filled so it reads as the
   one new thing on this screen. */
.done__soon {
  margin: 26px auto 0; max-width: 420px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 18px 22px;
}
.done__soon h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.done__soon p { font-size: 15px !important; line-height: 1.5; color: var(--ink-2) !important; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================== footer ============================== */

.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 28px 0; font-size: 13.5px; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================== empty state ============================== */

.empty {
  padding: 60px 20px; text-align: center; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.empty h2 { color: var(--ink); font-size: 20px; margin-bottom: 10px; }

@media (max-width: 430px) {
  /* "Wunder Management Careers" wraps to three lines on a 375px phone. */
  .brand-text { font-size: 14px; }
  .brand-sub { display: none; }
  .header-link { font-size: 12px; padding: 8px 13px; }
}

@media (max-width: 560px) {
  /* Two columns leaves about 160px per cell, too narrow for values like
   * "$2/hour + 3% commission" - they wrapped and dragged the row band taller. */
  .meta-grid { grid-template-columns: 1fr; }
  .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
  .meta__k { flex: none; }
  .meta__v { margin-top: 0; text-align: right; }
}
