/*
  fieldhouse.ltd in FieldHouse Yellow. The design brief in MASTER-PLAN.md is
  the authority and docs/design/yellow/source/site.html the approved mockup.

  Persuade mode inside the same world as the app: white and near-white
  surfaces, ink type, grey help text, thin grey lines, and one brand yellow for
  the single thing to do in each view. The hero alone carries the soft wash.
  The site is plain static files, so it cannot import the parts kit; the
  tokens below repeat the kit's values under the kit's names, and the site's
  test fails if one drifts from packages/ui/src/yellow.css.

  No inline styles anywhere: the hosting's content policy allows only this
  file (style-src 'self').
*/

/* ------------------------------------------------------------------ fonts */

/* Geist for words, Geist Mono for figures, served from the site itself.
   swap shows the words in the fallback face straight away, then swaps. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/geist-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/geist-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/geist-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/geist-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/geist-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/geist-mono-latin-500-normal.woff2') format('woff2');
}

/* ----------------------------------------------------------------- tokens */

:root {
  color-scheme: light;

  --yellow: #ffd60a;
  --yellow-edge: #e6bf00;
  --yellow-hover: #f5cc00;
  --yellow-tint: #fff6cc;
  --hero-wash: #fffbea;
  --on-yellow: #171717;

  --ink: #171717;
  --grey-strong: #404040;
  --grey: #525252;
  --grey-light: #737373;
  --field-edge: #8f8f8f;
  --button-edge: #d4d4d4;
  --quiet-edge: #e5e5e5;
  --card-edge: #ebebeb;
  --hairline: #f0f0f0;
  --row-line: #f5f5f5;
  --quiet-fill: #f5f5f5;
  --page: #fafafa;
  --surface: #ffffff;
  --on-ink: #ffffff;

  --done: #15803d;
  --waiting: #c2410c;
  --waiting-fill: #fff7ed;
  --waiting-strong: #9a3412;
  --waiting-edge: #fed7aa;
  --urgent: #b91c1c;
  --urgent-fill: #fef2f2;
  --urgent-edge: #fecaca;
  --neutral: #404040;
  --neutral-fill: #f5f5f5;

  --focus: #171717;

  --font-sans:
    'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', sans-serif;
  --font-mono:
    'Geist Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --radius-control: 8px;
  --radius-phone: 10px;
  --radius-card: 14px;
  --radius-card-large: 16px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);

  --motion-quick: 120ms;
  --ease: ease-out;

  /* The site's own measures: the column the app shares, the side gutter and
     the sticky header's height, which anchor jumps clear. */
  --main-max: 1200px;
  --gutter: 32px;
  --top-height: 64px;
}

/* ------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-height) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--field-edge);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--motion-quick) var(--ease);
}

a:hover {
  text-decoration-color: currentColor;
}

::selection {
  background: var(--yellow-tint);
  color: var(--ink);
}

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

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

svg {
  display: block;
}

/* Figures line up: times, counts, money and web addresses. */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1px solid var(--button-edge);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

/* Line icons on a 24 grid with 2px strokes, the kit's icon set. */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

/* -------------------------------------------------------------- the Gable */

.mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.mark--small {
  width: 20px;
  height: 20px;
}

.mark__plate {
  fill: var(--yellow);
}

.mark__roof,
.mark__row {
  fill: none;
  stroke: #171717;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.mark__roof {
  stroke-width: 7.5;
}

.mark__row {
  stroke-width: 7;
}

/* ---------------------------------------------------------------- buttons */

/* Secondary by default: white with the button edge. The primary is the one
   yellow in a view, always with ink words and the yellow edge. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--button-edge);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--motion-quick) var(--ease),
    border-color var(--motion-quick) var(--ease);
}

.btn:hover {
  background: var(--page);
  border-color: var(--field-edge);
}

.btn--primary,
.top__cta.is-yellow {
  background: var(--yellow);
  border-color: var(--yellow-edge);
  color: var(--on-yellow);
  font-weight: 600;
}

.btn--primary:hover,
.top__cta.is-yellow:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-edge);
}

.btn--large {
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-phone);
  font-size: 16px;
}

/* ------------------------------------------------------------- the header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.top__inner {
  max-width: var(--main-max);
  height: var(--top-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-control);
}

.brand__word {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.top__nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.top__nav a,
.top__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: var(--grey-strong);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.top__nav a:hover,
.top__link:hover {
  color: var(--ink);
  background: var(--page);
}

.top__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.top__nav + .top__end {
  margin-left: 0;
}

.top__cta-short {
  display: none;
}

/* ---------------------------------------------------------------- the hero */

.hero {
  background: linear-gradient(180deg, var(--hero-wash) 0%, var(--surface) 100%);
}

.hero__inner {
  max-width: var(--main-max);
  margin: 0 auto;
  padding: 80px var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1 {
  font-size: 56px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 540px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--grey-strong);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.hero__note {
  font-size: 13px;
  color: var(--grey-light);
}

/* ------------------------------------------------- samples of the product */

/* Every picture of the product is a real Yellow screen drawn with the
   fictional company, and says so under it. */
.sample {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sample__caption {
  font-size: 12px;
  color: var(--grey-light);
  text-align: right;
}

.card {
  background: var(--surface);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* A browser window at the sample company's own address. No traffic-light
   dots: the address is what tells the story. */
.browser {
  container-type: inline-size;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card-large);
  box-shadow: var(--shadow-card);
}

.browser__bar {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: var(--page);
  border-bottom: 1px solid var(--hairline);
}

.browser__address {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-light);
}

.app {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
}

.app__menu {
  padding: 14px 10px;
  border-right: 1px solid var(--hairline);
}

.app__brand {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 4px 14px;
}

.app__brand-words {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.app__brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app__brand-company {
  overflow: hidden;
  font-size: 12px;
  color: var(--grey-light);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app__items {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}

.app__item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-strong);
}

.app__item .icon {
  width: 14px;
  height: 14px;
  color: var(--grey);
}

.app__item.is-current {
  background: var(--yellow-tint);
  color: var(--ink);
  font-weight: 600;
}

.app__item.is-current .icon {
  color: var(--ink);
}

.app__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--waiting);
}

.app__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  background: var(--page);
}

.app__context {
  font-size: 12px;
  color: var(--grey-light);
}

.app__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.metric__label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--grey);
}

.metric__figure {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

/* The one figure that needs a person takes the strong waiting style, and no
   shadow, as on the real Today. */
.metric--waiting {
  background: var(--waiting-fill);
  border-color: var(--waiting-edge);
  box-shadow: none;
}

.metric--waiting .metric__label,
.metric--waiting .metric__figure {
  color: var(--waiting-strong);
}

.list {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.list__title {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
}

.list__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--row-line);
}

.list__title + .list__row {
  border-top: 0;
}

.list__words {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.list__line {
  font-size: 13px;
  font-weight: 500;
}

.list__meta {
  font-size: 12px;
  color: var(--grey-light);
}

/* Status is a dot and a word. Neutral is a plain word for a time. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge--urgent {
  background: var(--urgent-fill);
  color: var(--urgent);
}

.badge--waiting {
  background: var(--waiting-fill);
  color: var(--waiting);
}

.badge--neutral {
  background: var(--neutral-fill);
  color: var(--neutral);
}

.dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.dot--done {
  width: 8px;
  height: 8px;
  background: var(--done);
}

/* A narrow window drops the side menu, as the app does on a phone. */
@container (max-width: 500px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .app__menu {
    display: none;
  }

  .app__main {
    padding: 14px;
  }
}

/* The setup checklist and the ServiceTitan card, as on Today. */
.sample__stack {
  display: grid;
  gap: 14px;
}

.checklist {
  padding: 20px;
}

.checklist__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.checklist__title {
  font-size: 16px;
  font-weight: 600;
}

.checklist__count {
  font-size: 13px;
  color: var(--grey);
}

.progress {
  height: 6px;
  margin: 14px 0 6px;
  background: var(--hairline);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* 5 of 11 settled. */
.progress__fill {
  display: block;
  width: 45.45%;
  height: 100%;
  background: var(--yellow);
  border-radius: var(--radius-full);
}

.checklist__rows {
  list-style: none;
  padding: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  font-size: 14px;
  color: var(--grey-strong);
}

.check__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--button-edge);
  border-radius: var(--radius-full);
}

.check.is-done {
  color: var(--grey-light);
}

.check.is-done .check__mark {
  background: var(--done);
  border-color: var(--done);
}

.check__mark svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--on-ink);
  stroke-width: 2.5;
}

.check.is-next {
  color: var(--ink);
  font-weight: 600;
}

.check.is-next .check__mark {
  background: var(--yellow-tint);
  border-color: var(--yellow-edge);
}

.check__help {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--field-edge);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.connection {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
}

.connection__title {
  font-size: 16px;
  font-weight: 600;
}

.connection__state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.connection__line {
  font-size: 13px;
  color: var(--grey);
}

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

.section {
  padding: 104px 0;
}

.section--page {
  background: var(--page);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section--story {
  padding-top: 88px;
}

.section--page + .section {
  border-top: 0;
}

h2 {
  font-size: 36px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* A section's words on the left and its substance on the right, so the page
   reads down one line of headings instead of a stack of centred blocks. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.split--even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.split__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#modules .split__head,
#own .split__head {
  position: sticky;
  top: calc(var(--top-height) + 40px);
}

.section__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey-strong);
}

.section__note {
  font-size: 14px;
  color: var(--grey);
}

.section__link {
  font-size: 15px;
  font-weight: 600;
}

/* The five modules: one list, one row each. */
.jobs {
  list-style: none;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card-large);
  box-shadow: var(--shadow-card);
}

.job {
  display: grid;
  grid-template-columns: 40px 148px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 24px 28px;
  border-top: 1px solid var(--row-line);
}

.job:first-child {
  border-top: 0;
}

.job__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-phone);
  background: var(--page);
}

.job__name {
  padding-top: 8px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.job__line {
  padding-top: 8px;
  font-size: 15px;
  color: var(--grey);
}

/* Setup: three numbered steps, then what to have ready. */
.steps {
  list-style: none;
  padding: 8px 0 0;
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
}

.step__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--button-edge);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.step__name {
  padding-top: 2px;
  font-size: 16px;
  font-weight: 600;
}

.step p {
  color: var(--grey);
}

.needs {
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  background: var(--surface);
}

.needs__title {
  font-size: 15px;
  font-weight: 600;
}

.needs__list {
  margin-top: 8px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--grey-strong);
}

.needs__list li::marker {
  color: var(--grey-light);
}

.sample--setup {
  padding-top: 8px;
}

/* Your data: four plain facts. */
.facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 40px;
}

.fact {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--card-edge);
}

.fact .icon {
  color: var(--ink);
}

.fact__name {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fact p {
  color: var(--grey);
}

/* The story reads at the lead size, in two short paragraphs. */
.story {
  display: grid;
  gap: 18px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--grey-strong);
}

/* ------------------------------------------------------------------ forms */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.form__send,
.form__error,
.form__sent {
  grid-column: 1 / -1;
}

.form__send {
  width: 100%;
  margin-top: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--field-edge);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-size: 15px;
}

.field input::placeholder {
  color: var(--grey-light);
}

.field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.field [aria-invalid='true'] {
  border-color: var(--urgent);
}

.field__hint {
  font-size: 13px;
  color: var(--grey);
}

/* A fixed end on a field, such as .fieldhouse.ltd. The ring goes round the
   pair, so it reads as one field. */
.affix {
  display: flex;
  height: 44px;
  border: 1px solid var(--field-edge);
  border-radius: var(--radius-control);
  background: var(--surface);
  overflow: hidden;
}

.affix:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.affix:has([aria-invalid='true']) {
  border-color: var(--urgent);
}

.field .affix input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  font-size: 15px;
}

.field .affix input:focus-visible {
  outline: none;
}

.affix__suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--quiet-edge);
  background: var(--page);
  font-size: 14px;
  color: var(--grey);
  white-space: nowrap;
}

.form__error {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--urgent);
}

.form__error::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
  transform: translateY(-2px);
}

.form__error[hidden],
.form__sent:empty {
  display: none;
}

.form__sent {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--page);
  font-size: 14px;
  color: var(--ink);
}

/* ------------------------------------------------------------- the footer */

.foot {
  border-top: 1px solid var(--hairline);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--grey-light);
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--grey);
}

/* ------------------------------------------- single-purpose pages (quiet) */

.page-quiet {
  background: var(--page);
}

.solo {
  padding: 72px 20px 96px;
}

.solo__card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 16px;
}

.solo__title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.solo__lead {
  color: var(--grey-strong);
}

.solo__form {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.solo__go {
  width: 100%;
}

.solo__actions {
  padding-top: 4px;
}

.solo__note {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--grey);
}

/* ------------------------------------------------------------ the layouts */

/* A tablet and a small laptop: the hero stacks so the headline keeps its
   size, and the picture sits under it at a readable width. */
@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 64px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .sample--hero {
    max-width: 760px;
  }

  /* Phones and tablets get 44px targets. */
  .top__nav a,
  .top__link,
  .top__cta {
    height: 44px;
  }

  .split {
    gap: 48px;
  }

  .job {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 4px;
  }

  .job__line {
    grid-column: 2;
    padding-top: 0;
  }
}

@media (max-width: 960px) {
  .top__nav {
    display: none;
  }

  .top__end {
    margin-left: auto;
  }

  .top__nav + .top__end {
    margin-left: auto;
  }

  .split,
  .split--even {
    grid-template-columns: minmax(0, 1fr);
  }

  #modules .split__head,
  #own .split__head {
    position: static;
  }

  .split__head {
    max-width: 640px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --top-height: 60px;
  }

  .top__inner {
    gap: 8px;
  }

  .brand__word {
    font-size: 17px;
  }

  .mark {
    width: 28px;
    height: 28px;
  }

  .mark--small {
    width: 20px;
    height: 20px;
  }

  .top__link {
    padding: 0 8px;
  }

  .top__cta {
    padding: 0 12px;
  }

  .hero__inner {
    padding: 48px var(--gutter) 64px;
    gap: 40px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  h2 {
    font-size: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .split {
    gap: 32px;
  }

  .job {
    padding: 20px;
    column-gap: 16px;
  }

  .job__line {
    grid-column: 1 / -1;
    padding-top: 8px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .story {
    font-size: 17px;
  }

  .form {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .checklist {
    padding: 18px;
  }

  .solo {
    padding: 32px 16px 64px;
  }

  .solo__card {
    padding: 24px 20px;
  }

  .solo__title {
    font-size: 24px;
  }

  .foot__links a {
    min-height: 44px;
  }
}

/* The header's action keeps its full words while they fit. */
@media (max-width: 480px) {
  .top__cta-long {
    display: none;
  }

  .top__cta-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
