/* Global Job CV — "paper CV" design language */

@font-face {
  font-family: "Archivo";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/archivo-900.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --paper: #f7f6f2;
  --paper-dim: #efeee8;
  --ink: #16150f;
  --ink-body: rgb(22 21 15 / 85%);
  --ink-faint: rgb(22 21 15 / 55%);
  --stamp-red: #be1e2d;
  --rule: rgb(22 21 15 / 14%);

  --font-display: "Archivo", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --measure: 40rem;
  --gutter: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

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

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* Keep focus visible everywhere — never suppress this. */
:focus-visible {
  outline: 2px solid var(--stamp-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* letter-spacing (used throughout for the "stamped mono" aesthetic, plus a
   negative tracking value on .display headings) breaks complex-script
   shaping: it disconnects Arabic-script cursive joining, and -- less
   obviously -- it can shove adjacent letters/words in scripts that combine
   marks or reorder glyphs (Devanagari, Bengali, Thai, ...) close enough
   together to visually collide (e.g. Hindi "हर उस" misread as "हरु" under
   .display's -0.01em tracking). text-transform:uppercase elsewhere is a
   harmless no-op on scripts without case, so it's untouched. letter-spacing
   is an inherited property, so this one rule covers every descendant
   regardless of which element set it. Extend this list as complex-script
   locales ship -- see DevDocs/landing-localization-plan.md §11. */
:lang(ar),
:lang(fa),
:lang(ur),
:lang(hi),
:lang(th),
:lang(bn),
:lang(pa) {
  letter-spacing: normal !important;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.display--hero {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
}

.display--section {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stamp-red);
  margin: 0 0 0.75rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 6vw, 5rem);
}

.hero__sub {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-body);
}

.hero__demo {
  margin: 2.5rem 0 0;
  max-width: 60rem;
}

.hero__demo-still,
.hero__demo-video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgb(22 21 15 / 6%);
  background: #fff;
}

.hero__demo-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__demo-video {
    display: none;
  }

  .hero__demo-still {
    display: block;
  }
}

/* First-paint reveal, staggered top to bottom -- same rise-and-settle
   language as the .stamp keyframe below, just softer since it's the very
   first thing a visitor sees. */
@media (prefers-reduced-motion: no-preference) {
  .hero .display--hero,
  .hero__sub,
  .hero .cta,
  .hero__demo {
    animation: hero-rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__sub {
    animation-delay: 90ms;
  }

  .hero .cta {
    animation-delay: 180ms;
  }

  .hero__demo {
    animation-delay: 260ms;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Proof section ---------- */

.proof__intro {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

/* Click a country tab, watch the same CV reformat -- radio inputs + :has()
   drive it, no JS. See Proof.tsx for the markup this pairs with. */
.proof__tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.proof__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.proof__tab-label {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.proof__tab-label:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.proof__tab-input:focus-visible + .proof__tab-label {
  outline: 2px solid var(--stamp-red);
  outline-offset: 2px;
}

.proof__interactive:has(#proof-tab-0:checked) label[for="proof-tab-0"],
.proof__interactive:has(#proof-tab-1:checked) label[for="proof-tab-1"],
.proof__interactive:has(#proof-tab-2:checked) label[for="proof-tab-2"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

/* Every panel shares one grid cell, so the stack's height tracks whichever
   card is tallest without a hardcoded min-height. */
.proof__stack {
  position: relative;
  display: grid;
  max-width: 24rem;
}

/* A couple of faint sheets peeking out behind the active card -- the same
   "paper" motif as the stamp elsewhere, hinting there's more underneath to
   flip through. */
.proof__stack::before,
.proof__stack::after {
  content: "";
  grid-area: 1 / 1;
  background: #fff;
  border: 1px solid var(--rule);
}

.proof__stack::before {
  transform: rotate(-2.5deg) translateY(3px);
  z-index: 0;
}

.proof__stack::after {
  transform: rotate(2deg) translateY(5px);
  z-index: 0;
}

.cv-mockup {
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgb(22 21 15 / 6%);
  padding: 1.5rem;
  position: relative;
}

.proof__panel {
  grid-area: 1 / 1;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.proof__panel:first-child {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

.proof__interactive:has(#proof-tab-1:checked) #proof-panel-0,
.proof__interactive:has(#proof-tab-2:checked) #proof-panel-0 {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  z-index: 1;
}

.proof__interactive:has(#proof-tab-0:checked) #proof-panel-0 {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

.proof__interactive:has(#proof-tab-1:checked) #proof-panel-1 {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

.proof__interactive:has(#proof-tab-2:checked) #proof-panel-2 {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .proof__panel {
    transition: opacity 260ms ease;
    transform: none;
  }
}

.cv-mockup__country {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stamp-red);
}

.cv-mockup__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.15rem;
}

.cv-mockup__role {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

.cv-mockup__photo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--paper-dim);
  border: 1px solid var(--rule);
  margin-bottom: 0.75rem;
}

.cv-mockup__block {
  border-top: 1px dashed var(--rule);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

.cv-mockup__block-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 0 0 0.3rem;
}

.cv-mockup__line {
  height: 0.5rem;
  background: var(--paper-dim);
  border-radius: 1px;
  margin-bottom: 0.4rem;
  width: 100%;
}

.cv-mockup__line--short {
  width: 60%;
}

.annotation {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--stamp-red);
  background: rgb(190 30 45 / 8%);
  border: 1px solid rgb(190 30 45 / 25%);
}

/* ---------- How it works ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.checklist__item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.checklist__item:last-child {
  border-bottom: 1px solid var(--rule);
}

.checklist__box {
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--ink);
  margin-top: 0.3rem;
}

.checklist__text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-body);
}

/* ---------- Waitlist form ---------- */

.waitlist {
  max-width: 30rem;
}

.waitlist__panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.field {
  margin-bottom: 1.1rem;
}

.field__label {
  display: block;
  margin-bottom: 0.4rem;
}

.field__input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
}

.field__error {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stamp-red);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  background: var(--stamp-red);
  border-color: var(--stamp-red);
}

/* ---------- Direct CTA (hero + get-started section) ---------- */

.cta {
  margin-top: 1.75rem;
}

.btn--cta {
  display: inline-block;
  width: auto;
  padding: 0.95rem 2rem;
  text-decoration: none;
}

.cta__note {
  margin-top: 0.75rem;
}

.field__hint {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
}

/* ---------- Stamp motif — used in exactly two places ---------- */

.stamp-result {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 6vw, 3rem) 1rem;
}

.stamp {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 3px solid var(--stamp-red);
  color: var(--stamp-red);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
  position: relative;
  filter: url(#ink-bleed);
}

.stamp::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--stamp-red);
  opacity: 0.4;
}

@media (prefers-reduced-motion: no-preference) {
  .stamp {
    animation: stamp-in 480ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stamp {
    animation: none;
  }
}

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: rotate(-6deg) scale(2.2);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(-6deg) scale(1);
  }
}

.stamp-result__note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
}

.footer__text {
  max-width: var(--measure);
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0;
}

.footer__geo {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0.5rem 0 0;
}

.footer__privacy-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.country-picker {
  margin-bottom: 1.75rem;
}

.country-picker__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.country-picker__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.country-picker__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}

.country-picker__card:hover {
  border-color: var(--stamp-red);
}

.country-picker__card--active {
  border-color: var(--stamp-red);
  box-shadow: inset 0 0 0 1px var(--stamp-red);
}

.country-picker__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink);
}

.country-picker__doc {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

@media (max-width: 36rem) {
  .country-picker__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Header / nav ---------- */

.topbar {
  padding-block: 1.25rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.wordmark__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: block;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch__toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.lang-switch__toggle::-webkit-details-marker {
  display: none;
}

.lang-switch__toggle::after {
  content: "▾";
  font-size: 0.6rem;
}

.lang-switch[open] .lang-switch__toggle,
.lang-switch__toggle:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.lang-switch[open] .lang-switch__toggle::after {
  content: "▴";
}

.lang-switch__panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.15rem 1rem;
  width: max-content;
  max-width: min(24rem, calc(100vw - 2 * var(--gutter)));
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgb(22 21 15 / 12%);
}

.lang-switch__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-decoration: none;
  padding: 0.3rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switch__link:hover {
  color: var(--ink);
}

.lang-switch__link--active {
  color: var(--stamp-red);
}

/* ---------- Country guides ---------- */

.guide__h1 {
  max-width: 44rem;
}

.guide__intro {
  max-width: var(--measure);
  font-size: 1.1rem;
  color: var(--ink-body);
  margin: 1.25rem 0 0;
}

.guide__intro + .guide__intro {
  margin-top: 0.9rem;
}

.guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.guide__meta strong {
  color: var(--ink);
  font-weight: 500;
}

.guide__section-title {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.guide__table-wrap {
  overflow-x: auto;
}

.guide__table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guide__table th {
  text-align: start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink-faint);
  padding-block: 0 0.6rem;
  padding-inline-end: 0.75rem;
  border-bottom: 1.5px solid var(--ink);
}

.guide__table td {
  padding-block: 0.75rem;
  padding-inline-end: 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.guide__table-field {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.guide__chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem;
  border-radius: 2px;
  white-space: nowrap;
}

.guide__chip--required {
  background: var(--ink);
  color: var(--paper);
}

.guide__chip--expected {
  border: 1.3px solid var(--ink);
  color: var(--ink);
}

.guide__chip--optional {
  border: 1.3px solid rgb(22 21 15 / 28%);
  color: var(--ink-body);
}

.guide__chip--omit {
  border: 1.3px dashed rgb(22 21 15 / 28%);
  color: var(--ink-faint);
}

.guide__chip--illegal {
  background: var(--stamp-red);
  color: var(--paper);
}

.guide__notes {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.guide__notes li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.guide__notes li:last-child {
  border-bottom: 1px solid var(--rule);
}

.guide__source {
  margin-top: 2rem;
}

.guide__source-text {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.guide__source-text a {
  color: var(--ink-faint);
  text-decoration: underline;
}

.guide__cta {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.guide__related {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.guide__related-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide__related-list a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

