/* Quote Pilot website.
   The page borrows the app's own look: the Windows 95 palette from Win95Theme.swift,
   its pixel icons, and the little red plane. */

:root {
  color-scheme: light;

  /* The app's palette */
  --face: #C0C0C0;
  --hi: #FFFFFF;
  --light: #DFDFDF;
  --shadow: #808080;
  --dark: #000000;
  --navy: #000080;
  --teal: #008080;
  --tooltip: #FFFFE1;
  --overdue: #C00000;

  /* The page around it */
  --page: #F4F1EA;
  --ink: #111127;
  --muted: #4A4A5E;
  --red: #D0021B;
  --doc: #2E6B66;
  --focus: #000080;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-pixel: "Pixelify Sans", ui-monospace, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --nav-h: 3.75rem;

  /* Windows 95 bevels */
  --raised: inset -1px -1px 0 var(--dark), inset 1px 1px 0 var(--hi), inset -2px -2px 0 var(--shadow), inset 2px 2px 0 var(--light);
  --sunken: inset -1px -1px 0 var(--hi), inset 1px 1px 0 var(--shadow), inset -2px -2px 0 var(--light), inset 2px 2px 0 var(--dark);
  --window: inset -1px -1px 0 var(--dark), inset 1px 1px 0 var(--light), inset -2px -2px 0 var(--shadow), inset 2px 2px 0 var(--hi);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keeps anchors and focused controls clear of the sticky bar */
  scroll-padding-top: calc(var(--nav-h) + 1.25rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--page);
}

[hidden] { display: none !important; }

::selection { background: var(--navy); color: #fff; }

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

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  border: 2px solid #000;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.nowrap { white-space: nowrap; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.wrap--narrow { max-width: 50rem; }

/* ---------- Pixel icons ---------- */

.px {
  display: inline-block;
  flex: none;
  inline-size: var(--px, 1.23em);
  aspect-ratio: var(--ratio, 1);
  vertical-align: -0.22em;
}
.px[data-icon="plane"] { --ratio: 32 / 23; }
.px[data-icon="cloud"] { --ratio: 20 / 7; }
.px svg, .status svg, .progress svg, .w95 svg { display: block; width: 100%; height: 100%; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

h1 {
  font-size: clamp(2.75rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 1rem 0 0.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font: 500 1.0625rem/1.2 var(--font-pixel);
  letter-spacing: 0.02em;
  color: var(--eyebrow, #006161);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.4rem;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font: 700 1.125rem/1.1 var(--font-display);
  text-align: left;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
}
.btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 #000; }
.btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 #000; }
.btn small {
  display: block;
  margin-top: 0.25rem;
  font: 500 0.8125rem/1.2 var(--font-body);
}
.btn .px { --px: 1.75em; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #E3021E; }
.btn--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
  box-shadow: 4px 4px 0 rgb(0 0 0 / 0.35);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.12); box-shadow: 6px 6px 0 rgb(0 0 0 / 0.35); }
.btn--small {
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.975rem;
  box-shadow: 3px 3px 0 #000;
}
.btn--big { font-size: 1.375rem; padding: 1.1rem 1.8rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: translate 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.15s; }
}

/* A Windows 95 push button */
.w95 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 7em;
  min-height: 2.75em;
  padding: 0.5em 1.2em;
  border: 0;
  background: var(--face);
  color: #000;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--raised);
  cursor: pointer;
}
.w95 svg { width: 1.23em; height: 1.23em; flex: none; }
.w95--default { outline: 1px solid #000; }
.w95:active:not(:disabled) { box-shadow: var(--sunken); }
.w95:active:not(:disabled) > * { translate: 1px 1px; }
.w95:disabled { color: var(--shadow); text-shadow: 1px 1px 0 #fff; cursor: default; }
.w95:disabled svg { filter: grayscale(1) opacity(0.45); }
.w95:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- The bar across the top ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--face);
  border-bottom: 2px solid #000;
  box-shadow: inset 0 2px 0 #fff, inset 0 -2px 0 var(--shadow);
}
.nav__in {
  max-width: var(--wrap);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: #000;
  font: 800 1.3125rem/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { width: 2.25rem; height: 2.25rem; }
.nav .btn { white-space: nowrap; }
.nav__links { display: flex; gap: 0.15rem; }
.nav__links a {
  padding: 0.45rem 0.7rem;
  color: #000;
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__links a:hover { background: var(--navy); color: #fff; }

/* The plane that flies along under the bar as the page scrolls. Shown only where
   scroll-driven animations exist and motion is welcome (see the end of the file). */
.flight { position: absolute; inset: auto 0 0 0; height: 0; pointer-events: none; }
.flight__plane { display: none; position: absolute; left: 0; top: -0.55rem; --px: 1.9rem; }

@media (max-width: 58rem) {
  .nav__links { display: none; }
}
@media (max-width: 30rem) {
  .nav__mac { display: none; }
  .nav__in { gap: 0.75rem; }
}

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

.hero, .final {
  position: relative;
  overflow: clip;
  background: var(--teal);
  color: #fff;
  --focus: #FFFF00;
  --eyebrow: #fff;
}
.hero { padding-block: clamp(3.25rem, 7vw, 5.5rem); }

.sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; }
/* The hero's clouds stay in the empty bands above and below the content */
.cloud--1 { --px: clamp(5rem, 11vw, 10rem); top: 1rem; left: 44%; }
.cloud--2 { --px: clamp(6rem, 13vw, 12rem); bottom: 0.75rem; left: 30%; opacity: 0.85; }
.cloud--3 { --px: clamp(5rem, 9vw, 8rem); top: 1.75rem; right: -1.5rem; opacity: 0.7; }
.cloud--4 { --px: clamp(5rem, 12vw, 10rem); top: 0.9rem; left: 5%; }
.cloud--5 { --px: clamp(6rem, 15vw, 13rem); bottom: 0.9rem; right: 4%; opacity: 0.85; }

/* The first screen: who it is for, what it does and the button on the left, and one
   plain picture of the app on the right. */
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.hero h1 { margin-bottom: 1.1rem; font-size: clamp(2.25rem, 3.8vw, 3.2rem); }
.hero__cta { margin-bottom: 1.1rem; }

/* The five headlines share one grid cell, so the heading is always as tall as the tallest
   of them and nothing below moves when they change. */
.cycle { display: grid; }
.cycle__item { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.cycle__item.is-on { visibility: visible; opacity: 1; }

@media (max-width: 58rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__shot { max-width: 34rem; }
}
@media (max-width: 36rem) {
  .hero__cta { width: 100%; justify-content: center; }
  /* Too narrow for the first headline's own line break; let it wrap where it fits */
  .cycle br { display: none; }
  /* On a phone the headline reaches the right edge, where this cloud would sit behind it */
  .cloud--3 { display: none; }
}

.h1-tick {
  --px: 0.72em;
  margin-left: 0.14em;
  vertical-align: -0.04em;
  background: #fff;
  box-shadow: 0 0 0 0.05em #000, 0.11em 0.11em 0 0.05em rgb(0 0 0 / 0.35);
}

.lede {
  max-width: 31rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
}

.hero__small { margin: 0; font: 400 1rem/1.3 var(--font-pixel); }
:is(.hero__small, .final__small) a { color: inherit; text-underline-offset: 3px; }

.hero__shot { position: relative; min-width: 0; container: shot / inline-size; }

/* ---------- A Quote Pilot window ---------- */

.win {
  --focus: #000080;
  padding: 3px;
  background: var(--face);
  color: #000;
  font: 400 13px/1.3 var(--font-ui);
  text-align: left;
  box-shadow: var(--window), var(--drop, 0 0 0 transparent);
}
/* The hero's window is the Dashboard cut down to its four totals, two by two, with its
   text scaled to the room the window has */
.win--hero { --drop: 12px 12px 0 rgb(0 0 0 / 0.3); font-size: clamp(11px, 2.95cqi, 16px); }
.win--hero .dash { padding: 0.7em 0.8em 0.9em; }
.win--hero .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em 0.8em; }

.win__title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.15em;
  padding-inline: 0.6em;
  background: var(--navy);
  color: #fff;
  font-size: 1.077em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}
.win__title .px { --px: 1.15em; vertical-align: 0; }
.lights { display: inline-flex; gap: 0.55em; margin-inline-end: 0.5em; }
.lights i { width: 0.85em; height: 0.85em; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25); }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.15em;
  padding: 0.25em 0.3em;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px 0 #fff;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  min-width: 5.4em;
  padding: 0.35em 0.6em;
  white-space: nowrap;
}
.tool > .px { --px: 2.46em; }
.tool.is-off { color: var(--shadow); text-shadow: 1px 1px 0 #fff; }
.tool.is-off .px { filter: grayscale(1) opacity(0.45); }
.tool.is-hover { box-shadow: inset -1px -1px 0 var(--shadow), inset 1px 1px 0 #fff; }
.tool-sep {
  width: 2px;
  height: 3.8em;
  margin-inline: 0.3em;
  background: linear-gradient(90deg, var(--shadow) 50%, #fff 50%);
}
.tip {
  position: absolute;
  top: calc(100% + 0.45em);
  left: 45%;
  z-index: 2;
  width: max-content;
  max-width: 17em;
  padding: 0.25em 0.5em;
  background: var(--tooltip);
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgb(0 0 0 / 0.3);
  white-space: normal;
  text-align: left;
}

.win__body { display: flex; gap: 0.3em; padding: 0.3em; }

.tree {
  flex: none;
  width: 14.6em;
  padding: 0.5em;
  background: #fff;
  box-shadow: var(--sunken);
}
.tree__root { display: flex; align-items: center; gap: 0.35em; height: 1.75em; font-weight: 600; }
.tree__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4em;
  height: 1.75em;
  margin-left: 1.5em;
  padding-inline: 0.3em;
}
.tree__row::before, .tree__row::after {
  content: "";
  position: absolute;
  left: -0.85em;
}
.tree__row::before { top: 0; bottom: 0; border-left: 1px dotted var(--shadow); }
.tree__row:last-child::before { bottom: 50%; }
.tree__row::after { top: 50%; width: 0.75em; border-top: 1px dotted var(--shadow); }
.tree__row.is-on { background: var(--navy); color: #fff; }
.tree .px { vertical-align: 0; }

.dash { flex: 1; min-width: 0; display: grid; align-content: start; gap: 0.6em; padding: 0.6em; }

.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6em; }

/* A group box: an etched line with its title set into the top edge */
.group {
  position: relative;
  min-width: 0;
  margin-top: 0.7em;
  padding: 1.05em 0.6em 0.6em;
  border: 1px solid var(--shadow);
  box-shadow: 1px 1px 0 #fff, inset 1px 1px 0 #fff;
}
.group__label {
  position: absolute;
  top: -0.75em;
  left: 0.5em;
  max-width: calc(100% - 1em);
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding-inline: 0.3em;
  background: var(--face);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}
.group__label .px { vertical-align: 0; }

.readout { container-type: inline-size; }
.readout__value {
  padding: 0.12em 0.3em;
  background: #fff;
  box-shadow: var(--sunken);
  font-family: var(--font-mono);
  font-size: min(2.15em, 13.5cqi);
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
}
.readout__note {
  min-height: 2.5em;
  margin-top: 0.5em;
  font-size: 0.88em;
  line-height: 1.25;
}

.lists { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 0.6em; }

/* A details list: raised column headers over a sunken white field */
.dl {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 2px solid;
  border-color: var(--shadow) #fff #fff var(--shadow);
}
.dl th {
  padding-block: 0.2em;
  background: var(--face);
  box-shadow: inset -1px -1px 0 var(--shadow), inset 1px 1px 0 #fff;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.dl :is(th, td) { padding-inline: 0.4em; }
.dl td {
  padding-block: 0.22em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl .num { text-align: right; font-variant-numeric: tabular-nums; }
.dl td .px { margin-right: 0.3em; vertical-align: -0.2em; }
.dl tr.is-alert td { color: var(--overdue); }
.dl tr.is-on td { background: var(--navy); color: #fff; }

.bar { display: block; height: 1.1em; padding: 2px; background: #fff; box-shadow: inset 1px 1px 0 var(--shadow), inset -1px -1px 0 var(--light); }
.bar i {
  display: block;
  width: var(--fill);
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--navy) 0 0.5em, transparent 0.5em 0.65em);
}

.win__status { display: flex; gap: 2px; padding: 0.1em 0.15em 0.15em; }
.win__status > span {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.22em 0.6em;
  box-shadow: inset 1px 1px 0 var(--shadow), inset -1px -1px 0 #fff;
  white-space: nowrap;
  overflow: hidden;
}
.win__status > span:last-child { flex: 1; }
.win__status .is-alert { color: var(--overdue); }
.win__status .px { vertical-align: 0; }

/* Narrow windows: two readouts a row, one list a row */
@container (max-width: 40rem) {
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout .group__label { left: 0.2em; max-width: calc(100% - 0.4em); gap: 0.25em; padding-inline: 0.2em; }
  .lists { grid-template-columns: minmax(0, 1fr); }
  .dl :is(th, td):nth-child(3) { display: none; }
  .win__status > span:nth-child(n + 3) { display: none; }
  .win__status > span:nth-child(2) { flex: 1; }
}


/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-top: 0; }

.head { max-width: 46rem; margin: 0 0 clamp(2.25rem, 5vw, 3.75rem); }
.head > p:not(.eyebrow) { max-width: 39rem; margin: 0; font-size: 1.1875rem; color: var(--muted); }

.section--navy {
  background: var(--navy);
  color: #fff;
  --focus: #FFFF00;
  --eyebrow: #FFFF00;
}
.section--navy .head > p:not(.eyebrow) { color: #DCDCFF; }

.section--note {
  background: var(--tooltip);
  border-block: 2px solid #000;
}

.card, .faq details {
  background: #fff;
  border: 2px solid #000;
  box-shadow: 5px 5px 0 #000;
}

/* ---------- How it works: who does what ---------- */
/* Two desks side by side. Yours is a Quote Pilot window; your client's is plain email.
   One piece of paper passes between them, and a yellow frame marks whose move it is. */

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem minmax(0, 1fr);
  gap: 1rem;
  max-width: 64rem;
}
.lane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: #000;
  font: 400 1rem/1.45 var(--font-body);
  outline: 4px solid transparent;
  outline-offset: 5px;
}
.lane.win { --drop: 8px 8px 0 rgb(0 0 0 / 0.45); font: 400 1rem/1.45 var(--font-body); }
.lane .win__title { font-size: 0.9375rem; }
.lane--client { background: #fff; border: 2px solid #000; box-shadow: 8px 8px 0 rgb(0 0 0 / 0.45); }
.lane__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.15rem;
  padding-inline: 0.75rem;
  background: #ECECF1;
  border-bottom: 2px solid #000;
  font-size: 0.9375rem;
  font-weight: 700;
}
.job[data-turn="you"] .lane--you,
.job[data-turn="client"] .lane--client { outline-color: #FFFF00; }

.lane__who { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem 0; }
.lane__who .px { --px: 3.25rem; flex: none; }
.lane__who h3 { margin: 0; font: 800 1.5rem/1.1 var(--font-display); }
.lane__who p { margin: 0.15rem 0 0; font-size: 0.9375rem; color: #404040; }
.lane__turn {
  visibility: hidden;
  margin-left: auto;
  padding: 0.3rem 0.6rem;
  background: #FFFF00;
  border: 2px solid #000;
  font: 600 0.9375rem/1.2 var(--font-pixel);
  white-space: nowrap;
}
.job[data-turn="you"] .lane--you .lane__turn,
.job[data-turn="client"] .lane--client .lane__turn { visibility: visible; }

/* The desk keeps its height whether or not the paper is on it, so nothing jumps */
.lane__desk {
  display: grid;
  align-items: start;
  min-height: 13.25rem;
  margin: 1rem 1.1rem 0;
  padding: 0.8rem;
}
.lane--you .lane__desk { background: var(--shadow); box-shadow: var(--sunken); }
.lane--client .lane__desk { background: #F1F2F4; border: 2px dashed #9AA0AD; }
.lane__desk:not(:has(.doc))::before {
  content: attr(data-empty);
  place-self: center;
  font: 500 1rem/1.2 var(--font-pixel);
}
.lane--you .lane__desk::before { color: #fff; }
.lane--client .lane__desk::before { color: #5B6172; }

.lane__say { min-height: 3.1rem; margin: 0.9rem 1.1rem 1.1rem; font-size: 1.0625rem; line-height: 1.4; }
.lane--you .lane__say { margin-bottom: 0.9rem; }
#job-button { margin: auto 1.1rem 1.1rem; min-height: 3.25rem; font-size: 1.0625rem; }
.w95[aria-disabled="true"] { color: var(--shadow); text-shadow: 1px 1px 0 #fff; cursor: default; }
.w95[aria-disabled="true"] svg { filter: grayscale(1) opacity(0.45); }

/* The paper */
.doc {
  position: relative;
  padding: 0.9rem 1rem;
  background: #fff;
  color: #1D2233;
  font: 400 0.9375rem/1.4 var(--font-body);
  box-shadow: 3px 3px 0 rgb(0 0 0 / 0.35);
  view-transition-name: job-doc;
}
.doc header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #1D2233;
}
.doc__kind { font-weight: 700; color: var(--doc); }
.doc ul { list-style: none; margin: 0; padding: 0; }
.doc li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #E3E5EA;
}
.doc__plain li { grid-template-columns: minmax(0, 1fr) auto; }
.doc__box {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  background: #fff;
  border: 1.5px solid #1D2233;
}
.doc__box svg { display: block; width: 1.05rem; height: 1.05rem; }
.doc .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc__total { display: flex; justify-content: space-between; gap: 1rem; margin: 0.55rem 0 0; font-weight: 700; }
.doc__total { align-items: center; }
.doc__stamp {
  padding: 0 0.5rem;
  border: 3px solid #008000;
  color: #008000;
  font: 700 1.25rem/1.25 var(--font-pixel);
  text-transform: uppercase;
  rotate: -6deg;
}

/* What is crossing between the two, and which way */
.job__link {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  color: #FFFF00;
  font: 500 1rem/1.2 var(--font-pixel);
  text-align: center;
}
.job__arrow {
  width: 4.5rem;
  height: 1.75rem;
  background: currentColor;
  clip-path: polygon(0 34%, 66% 34%, 66% 0, 100% 50%, 66% 100%, 66% 66%, 0 66%);
}
.job[data-dir="to-you"] .job__arrow { rotate: 180deg; }
.job[data-dir="none"] .job__link { visibility: hidden; }

/* The same story as a list: who does which step */
.who {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  max-width: 64rem;
  margin: 2.75rem 0 0;
  padding: 0;
  color: #DCDCFF;
  font-size: 1rem;
  line-height: 1.35;
}
.who li { display: flex; align-items: center; gap: 0.7rem; padding-top: 0.85rem; border-top: 3px solid #4A4AB0; }
.who .px { --px: 2.1rem; flex: none; background: #fff; outline: 2px solid #000; }
.who b { display: block; color: #fff; }
.who .is-done { border-top-color: #fff; }
.who .is-now { border-top-color: #FFFF00; color: #fff; }
.who .is-now b { color: #FFFF00; }

@media (max-width: 54rem) {
  .job { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .job__link { grid-auto-flow: column; justify-content: center; align-items: center; min-height: 2rem; }
  .job__arrow { width: 3rem; height: 1.5rem; rotate: 90deg; }
  .job[data-dir="to-you"] .job__arrow { rotate: -90deg; }
  .job[data-dir="none"] .job__link { display: none; }
  .lane__desk { min-height: 12.75rem; }
  .who { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .who li { padding-block: 0.7rem; }
  .who b { display: inline; }
}

.demo-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 3rem;
  font-size: 1.25rem;
}
.demo-done p { margin: 0; }

/* ---------- Features ---------- */

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.card { padding: 1.5rem; }
.card ul { margin: 0; padding-left: 1.15rem; list-style: square; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.card li + li { margin-top: 0.4rem; }
.card li::marker { color: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: translate 0.15s ease-out, box-shadow 0.15s ease-out; }
  .card:hover { translate: -2px -2px; box-shadow: 7px 7px 0 #000; }
}

@media (max-width: 62rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .features { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem;
}
.dialog {
  --drop: 12px 12px 0 rgb(0 0 0 / 0.3);
  font-size: 0.9375rem;
}
.example { --drop: 10px 10px 0 rgb(0 0 0 / 0.3); margin-top: 2.5rem; font-size: 0.9375rem; }
.example__body { padding: 0.9em; }
.example__body p { margin: 0.9em 0.2em 0.2em; }
.example .dl :is(th, td) { padding-block: 0.4em; }

@media (max-width: 58rem) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .example { margin-top: 0; }
}
.dialog__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.6em;
  padding: 1.8em 1.8em 1.2em;
}
.price { margin: 0 0 1.1em; font-size: 1.3em; line-height: 1.3; }
.price strong { display: block; margin-bottom: 0.08em; font: 800 3.6em/0.9 var(--font-display); letter-spacing: -0.03em; }
.ticks { list-style: none; display: grid; gap: 0.45em; margin: 0 0 1.2em; padding: 0; font-size: 1.06em; }
.ticks li { display: flex; align-items: center; gap: 0.55em; }
.ticks .px { vertical-align: 0; }
.dialog__small { margin: 0; color: #404040; }
.dialog__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8em; padding: 0.6em 1.8em 1.5em; }
.dialog__buttons .w95 { min-width: 11.5em; min-height: 3em; }

@media (max-width: 34rem) {
  .dialog__body { grid-template-columns: minmax(0, 1fr); gap: 1em; padding: 1.4em 1.2em 1em; }
  .dialog__buttons .w95 { flex: 1; }
}

/* ---------- Questions ---------- */

.faq { display: grid; gap: 0.9rem; }
.faq details { box-shadow: 4px 4px 0 #000; }
.faq summary {
  /* Removes the default triangle; the one below can turn */
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.25rem;
  font: 700 1.1875rem/1.3 var(--font-display);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex-shrink: 0;
  inline-size: 0.7em;
  block-size: 0.7em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.faq details[open] > summary::before { rotate: 90deg; }
.faq summary:hover { background: var(--tooltip); }
.faq summary:focus-visible { outline-offset: -5px; }
.faq details p { margin: 0; padding: 0 1.25rem 1.3rem 2.9rem; color: var(--muted); }

.faq details::details-content {
  /* Lets block-size move to and from its natural size */
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq details:not([open])::details-content { block-size: 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate 0.2s; }
  .faq details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.28s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* ---------- The last call ---------- */

.final { padding-block: clamp(5rem, 11vw, 8.5rem); text-align: center; }
.final__in { position: relative; }
.final__plane { display: block; margin: 0 auto 1.75rem; --px: clamp(6.5rem, 15vw, 10.5rem); }
.final h2 { margin-bottom: 2.25rem; font-size: clamp(2.25rem, 5.4vw, 4rem); }
.final p { max-width: 34rem; margin: 0 auto 2.25rem; font-size: 1.25rem; line-height: 1.5; }
.final .final__small { margin: 2rem auto 0; font: 400 1rem/1.3 var(--font-pixel); }

.foot {
  background: var(--face);
  border-top: 2px solid #000;
  box-shadow: inset 0 2px 0 #fff;
  padding-block: 1.6rem;
  font-size: 0.95rem;
  color: #000;
}
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.foot p { max-width: 36rem; margin: 0; }
.foot__icon { display: inline-block; width: 1.75rem; height: 1.75rem; margin-right: 0.25rem; vertical-align: middle; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-weight: 600; }
.foot a { text-underline-offset: 3px; }

/* ---------- Terms and Privacy pages ---------- */
/* Long reading: one narrow column, plain headings, and nothing moving. */

.nav__links a[aria-current="page"] { background: var(--navy); color: #fff; }

.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.legal h1 { margin-bottom: 0.75rem; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.02; }
.legal h2 { margin: 2.75rem 0 0.75rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.legal h3 { margin: 2rem 0 0.75rem; font-size: 1.1875rem; line-height: 1.25; }
.legal :is(p, ul, dl) { max-width: 44rem; margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; list-style: square; }
.legal li + li { margin-top: 0.35rem; }
.legal li::marker { color: var(--teal); }
.legal a { text-underline-offset: 3px; }
.legal code { padding: 0.05em 0.3em; background: #fff; border: 1px solid #C9C9D2; font: 0.9em var(--font-mono); overflow-wrap: anywhere; }
.legal__meta { color: var(--muted); font-size: 1rem; }

.legal__short {
  max-width: 44rem;
  margin: 2rem 0 2.25rem;
  padding: 1.25rem 1.5rem 0.5rem;
  background: var(--tooltip);
  border: 2px solid #000;
  box-shadow: 5px 5px 0 #000;
}
.legal__short h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }

/* A term and what it means, one under the other */
.legal__terms dt { margin-top: 1rem; font-weight: 700; }
.legal__terms dd { margin: 0.2rem 0 0; }

/* A wide table scrolls inside its own box on a phone instead of pushing the page sideways */
.legal__table { margin: 0 0 1.25rem; overflow-x: auto; }
.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; background: #fff; font-size: 0.9688rem; line-height: 1.45; }
.legal :is(th, td) { padding: 0.65rem 0.8rem; border: 1px solid #000; text-align: left; vertical-align: top; }
.legal th { background: var(--face); font-weight: 700; }

/* Something the owner still has to supply. Loud on purpose, so it can't go live unnoticed. */
.todo { padding: 0.05em 0.35em; background: #FFFF00; color: #000; outline: 2px dashed var(--overdue); outline-offset: 1px; font-weight: 600; }

/* ---------- Motion ---------- */
/* Everything below is decoration: the page reads the same without it, so each piece is
   switched on only where motion is welcome, and the scroll-linked parts only where the
   browser has scroll-driven animations. */

/* The paper crossing from one desk to the other (a view transition, started in main.js) */
::view-transition-group(job-doc) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* The outgoing headline fades and sinks a little; the incoming one rises into place */
  .cycle__item { translate: 0 0.3em; transition: opacity 0.3s ease-in, translate 0.3s ease-in, visibility 0s 0.3s; }
  .cycle__item.is-on { translate: 0 0; transition: opacity 0.45s ease-out 0.2s, translate 0.45s ease-out 0.2s, visibility 0s; }

  .lane { transition: outline-color 0.25s ease-out; }
  .doc__box.is-new svg { animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1); }

  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .flight__plane {
      display: block;
      animation: fly linear both;
      animation-timeline: scroll(root block);
    }

    .cloud {
      animation: drift linear both;
      animation-timeline: view();
    }

    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes fly {
  from { translate: -110% 0; }
  to { translate: calc(100vw - 110%) 0; }
}
@keyframes pop {
  from { scale: 0.2; opacity: 0; }
  to { scale: 1; opacity: 1; }
}
@keyframes drift {
  from { translate: 3.5rem 0; }
  to { translate: -3.5rem 0; }
}
@keyframes rise {
  from { opacity: 0; translate: 0 1.75rem; }
  to { opacity: 1; translate: 0 0; }
}
