/* Genesys Technologies: holding page.
   Self-hosted type, no scripts, no third-party requests. */

@font-face {
  font-family: "GT Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/overpass-latin-wght-normal.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: "GT Overpass Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/overpass-mono-latin-wght-normal.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;
}

:root {
  /* After hours: the hero */
  --night: #15193A;
  --on-night: #EEF0FA;
  --on-night-muted: #AEB3D6;

  /* The message slip */
  --pink: #F7C5D2;
  --crimson: #9E1240;
  --carbon: #1F2F9C;

  /* Daytime: everything below the hero */
  --day: #F4F6FB;
  --ink: #191C38;
  --ink-muted: #4B5072;
  --rule: rgba(25, 28, 56, 0.16);
  --step-number: var(--crimson);

  --sans: "GT Overpass", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "GT Overpass Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --day: #0E1130;
    --ink: #E8EAF6;
    --ink-muted: #A9AECB;
    --rule: rgba(232, 234, 246, 0.16);
    --step-number: var(--pink);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--day);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, ol, ul { margin: 0; }

::selection { background: var(--pink); color: var(--night); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Masthead + hero: after hours ---------- */

.masthead,
.hero {
  background: var(--night);
  color: var(--on-night);
}

.masthead { padding-block: 1.5rem 0; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 760;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  line-height: 1;
}

.wordmark-tile {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
}

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4.5rem, 10vw, 8.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.35rem + 4.9vw, 5rem);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 13ch;
  text-wrap: balance;
}

.lede {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  max-width: var(--measure);
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  line-height: 1.55;
}

.status {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--on-night-muted);
  font-size: 1rem;
}

/* ---------- The message slip ---------- */

.slip-figure {
  justify-self: center;
  width: min(100%, 25rem);
}

.slip {
  position: relative;
  background: var(--pink);
  color: var(--crimson);
  border-radius: 3px;
  padding: 2rem clamp(1.1rem, 4vw, 1.6rem) clamp(1.2rem, 4vw, 1.6rem);
  transform: rotate(-2deg);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.3),
    0 26px 44px -22px rgba(0, 0, 0, 0.75);
}

/* the perforated edge it was torn from */
.slip::before {
  content: "";
  position: absolute;
  inset: 0.7rem 0.8rem auto;
  height: 6px;
  background: radial-gradient(circle at 3px 3px, var(--night) 2.1px, transparent 2.6px) 0 0 / 10px 6px repeat-x;
}

.slip-title {
  font-weight: 860;
  font-size: clamp(1.375rem, 1.1rem + 1.3vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--crimson);
  margin-bottom: 0.85rem;
}

.slip-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.9rem;
}

.field {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.label {
  flex: none;
  font-size: 0.8125rem;
  font-weight: 680;
}

.line {
  display: block;
  flex: 1;
  min-width: 0;
  min-height: 1.75rem;
  padding-inline: 0.2rem;
  border-bottom: 1px solid rgba(158, 18, 64, 0.5);
}

.typed {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-weight: 560;
  font-size: clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
  line-height: 1.75rem;
  color: var(--carbon);
}

.checks {
  list-style: none;
  padding: 0;
  margin-block: 1rem 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 680;
  line-height: 1.2;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.box {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--crimson);
}

.box .typed {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

.field.message {
  display: block;
  margin-top: 0.75rem;
}

.field.message .label { display: block; line-height: 1.5; }

.field.taken { margin-top: 0.9rem; }

.slip-figure figcaption {
  margin-top: 1.6rem;
  color: var(--on-night-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* The one moment of motion: the agent fills in the slip.
   Fill mode is "backwards" on purpose: each entry is hidden until its turn,
   then falls back to its natural width, so it can never end up cut short. */
@media (prefers-reduced-motion: no-preference) {
  .typed {
    animation: type calc(var(--n) * 34ms) steps(var(--n), end) var(--d) backwards;
  }
  .t1 { --n: 3;  --d: 0.6s; }
  .t2 { --n: 11; --d: 0.84s; }
  .t3 { --n: 9;  --d: 1.35s; }
  .t4 { --n: 14; --d: 1.8s; }
  .t5 { --n: 1;  --d: 2.42s; }
  .t6 { --n: 1;  --d: 2.6s; }
  .t7 { --n: 20; --d: 2.78s; }
  .t8 { --n: 14; --d: 3.56s; }
  .t9 { --n: 20; --d: 4.14s; }
  .t10 { --n: 13; --d: 5s; }
}

@keyframes type {
  from { width: 0; }
  to { width: calc(var(--n) * 1ch + 1px); }
}

/* ---------- Daytime sections ---------- */

.offers,
.process { padding-block: clamp(4rem, 9vw, 7.5rem); }

.process { padding-top: 0; }

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 790;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 730;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.split {
  display: grid;
  gap: 2rem;
}

.offer-grid {
  display: grid;
  gap: 2.25rem 2.5rem;
}

.offer {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.offer p,
.steps p {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  counter-reset: step;
  display: grid;
  gap: 2rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -0.1rem;
  left: 0;
  font-weight: 830;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--step-number);
  font-variant-numeric: lining-nums;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 2.5rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 3rem;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .steps li {
    padding-left: 0;
    padding-top: 3.5rem;
  }

  /* the steps read left to right, joined by a line */
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1rem;
    left: 2.6rem;
    right: -1.5rem;
    height: 2px;
    background: var(--rule);
  }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  background: var(--night);
  color: var(--on-night);
}

a.wordmark { color: inherit; text-decoration: none; }

.notfound main { padding-block: clamp(4rem, 12vw, 9rem); }

.notfound h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 830;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-wrap: balance;
}

.notfound p {
  margin-top: 1.25rem;
  max-width: var(--measure);
  font-size: 1.25rem;
}

.notfound p a {
  color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

@media print {
  .masthead, .hero { background: none; color: #000; }
  .slip { box-shadow: none; transform: none; }
}
