/* Front of Mind — landing page
 *
 * Rebuilt from the canvas artboard export as a responsive document. Every
 * color, typeface and shape below was measured off the deployed build so the
 * design is unchanged; what changed is that sizes are now real CSS pixels
 * instead of numbers inside a 1440px board that the browser scaled. In the old
 * build body text measured 16.9px on a 1280 laptop and 22.2px on a 1680
 * monitor. Here 16px is 16px.
 */

:root {
  /* Surfaces, darkest to lightest. */
  --ink: #0c1915; /* page */
  --panel: #12221d; /* cards on the page */
  --panel-2: #172923; /* cards on a card */
  --raised: #1e332b; /* nav pill, chips */
  --line: #2b4238; /* every border */

  /* Text. */
  --bone: #f2f1ec; /* primary */
  --sage: #a9b8b0; /* secondary */
  --sage-dim: #8fa39a; /* captions, legal */
  --amber: #f2b35a; /* the one accent */

  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;

  /* Type scale. Body 16, subheadings 20, as specified. */
  --fs-eyebrow: 0.75rem; /* 12 */
  --fs-small: 0.8125rem; /* 13 */
  --fs-body: 1rem; /* 16 */
  --fs-sub: 1.25rem; /* 20 */
  --fs-h2: clamp(2rem, 1.1rem + 3.4vw, 3.75rem); /* 32 → 60, as drawn */
  --fs-h1: clamp(2.75rem, 1.1rem + 6vw, 6rem); /* 44 → 96, as drawn */
  --fs-stat: clamp(3.25rem, 1.4rem + 6.4vw, 5rem); /* 52 → 80, as drawn */

  /* Vertical rhythm. One knob per breakpoint, not per section. */
  --section-y: clamp(2.75rem, 1.4rem + 4.2vw, 4.5rem);
  --gutter: clamp(1rem, 0.3rem + 2.4vw, 2.5rem);
  --measure: 68ch;
  --max: 1180px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

/* ---------- Shared primitives ---------- */

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

.section {
  padding-block: var(--section-y);
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.875rem;
}

.h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 22ch;
}

.h3 {
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lede {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--sage);
  max-width: 58ch;
}

.small {
  font-size: var(--fs-small);
  color: var(--sage-dim);
  line-height: 1.5;
}

.section-head {
  margin-bottom: clamp(1.5rem, 0.9rem + 2vw, 2.25rem);
}

.section-head .lede {
  margin-top: 0.875rem;
}

/* Buttons. Height carries the presence; the label stays quiet. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem; /* 15 */
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.btn:hover {
  background: #fff;
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 40px;
  padding: 0 1.125rem;
  font-size: 0.875rem; /* 14 */
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover {
  background: var(--raised);
  color: var(--bone);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--bone);
  color: var(--ink);
  border-radius: var(--r-sm);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 0.875rem;
  background: linear-gradient(var(--ink) 62%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: var(--raised);
  border-radius: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--bone);
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.375rem; /* 22 */
  line-height: 1;
  letter-spacing: -0.01em;
}

.nav__links {
  display: none;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.875rem; /* 14 */
  color: var(--sage);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--bone);
}

@media (min-width: 760px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .nav__links {
    display: flex;
  }

  .brand {
    justify-self: center;
  }

  .nav > .btn {
    justify-self: end;
  }
}

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

.hero {
  text-align: center;
  padding-block: clamp(3rem, 1rem + 7vw, 6rem) clamp(2.5rem, 1rem + 4vw, 4rem);
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.hero .h1 {
  max-width: 18ch;
}

.hero .lede {
  max-width: 52ch;
}

.hero__cta {
  display: grid;
  justify-items: center;
  gap: 0.875rem;
}

/* ---------- Product demo ---------- */

.demo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(2.75rem, 1.6rem + 4vw, 4.5rem) clamp(0.75rem, 0.3rem + 1.5vw, 1.25rem)
    clamp(0.75rem, 0.3rem + 1.5vw, 1.25rem);
}

.demo__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.demo__grid {
  position: relative;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .demo__grid {
    grid-template-columns: 320px 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
}

.card--flush {
  background: var(--panel-2);
}

.stamp {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dim);
}

/* The three briefs are tabs: picking one swaps the panel beside them. They stay
   buttons so keyboard and screen-reader users get the real tablist behavior. */
.queue {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.queue__item {
  display: grid;
  gap: 0.125rem;
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: relative;
  animation: fomfade 0.6s ease-out both;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.queue__item:nth-child(1) {
  animation-delay: 0.2s;
}
.queue__item:nth-child(2) {
  animation-delay: 0.45s;
}
.queue__item:nth-child(3) {
  animation-delay: 0.7s;
}

.queue__item:hover {
  border-color: var(--sage-dim);
}

.queue__item[aria-selected="true"] {
  border-color: var(--amber);
  background: var(--raised);
}

.queue__who {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bone);
  padding-right: 5.5rem; /* clear of the channel tag */
}

.queue__role {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.04em;
  color: var(--sage-dim);
}

.queue__why {
  font-size: var(--fs-small);
  color: var(--sage);
  margin-top: 0.25rem;
}

.queue__tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6875rem; /* 11 — a label, not copy */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dim);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.125rem 0.5rem;
}

.queue__item[aria-selected="true"] .queue__tag {
  color: var(--amber);
  border-color: var(--amber);
}

.queue__hint {
  margin-top: 0.875rem;
}

.demo__panels [role="tabpanel"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.demo__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.badge {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
}

.evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.evidence li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--raised);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--bone);
}

.evidence b {
  color: var(--amber);
  font-weight: 600;
}

.letter {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--sage);
  display: grid;
  gap: 0.75rem;
}

.letter p:first-child {
  color: var(--bone);
}

.letter__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@keyframes fomfade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  gap: clamp(1.5rem, 0.8rem + 2.4vw, 2.75rem);
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat__n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
}

/* Must not be `.stat p`: that is 0,1,1 and silently beat .stat__n at 0,1,0,
   rendering the 370K / 4% / 0 figures at 13px instead of 80px. */
.stat__n + p {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--sage);
  max-width: 34ch;
}

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

/* Three columns tell the story the section is making: the client's own data on
   the left, our proprietary layer in the middle, the output on the right. On a
   narrow screen they stack in that same order, so the argument survives. */
.how {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.5rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 1000px) {
  .how {
    grid-template-columns: 1fr 1.15fr 0.9fr;
  }
}

.how__col {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.how__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dim);
}

.sources {
  display: grid;
  gap: 0.625rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sources li {
  padding: 0.875rem 1.125rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.sources b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.sources span {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  color: var(--sage);
}

/* The middle column is the argument, so it is the only one that carries the
   accent border and the pulse. */
.judgment {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.875rem;
  height: 100%;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--amber);
  border-radius: var(--r-lg);
}

.judgment .small {
  max-width: 34ch;
}

.judgment__ring {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--raised);
  border: 1.5px solid var(--amber);
  position: relative;
}

.judgment__ring::before,
.judgment__ring::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  animation: fompulse 2.6s ease-out infinite;
}

.judgment__ring::after {
  animation-delay: 1.3s;
}

@keyframes fompulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .judgment__ring::before,
  .judgment__ring::after,
  .queue li {
    animation: none;
  }
}

.ours {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.ours li {
  padding: 0.625rem 0.875rem;
  background: var(--raised);
  border-radius: var(--r-sm);
}

.ours b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber);
}

.ours span {
  display: block;
  font-size: var(--fs-small);
  color: var(--sage);
}

.outcome {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.25rem, 0.8rem + 1.6vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.outcome p:last-child {
  font-size: var(--fs-small);
  color: var(--sage);
}

/* ---------- Comparison ---------- */

.compare {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare th,
.compare td {
  padding: clamp(0.875rem, 0.5rem + 1vw, 1.25rem);
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
}

.compare thead th {
  border-top: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dim);
  background: var(--panel);
}

.compare thead th:last-child {
  color: var(--amber);
}

.compare tbody th {
  color: var(--bone);
  font-weight: 600;
  width: 22%;
}

.compare td:first-of-type {
  color: var(--sage-dim);
}

.compare td:last-child {
  color: var(--bone);
  background: rgba(242, 179, 90, 0.04);
}

/* Cards collapse to stacked rows on a phone: a 3-column table cannot be read
   at 375px and horizontal scroll hides the whole point of the comparison. */
@media (max-width: 719px) {
  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }

  .compare thead {
    display: none;
  }

  .compare tr {
    border-top: 1px solid var(--line);
    padding: 0.5rem 0;
  }

  .compare tr:first-child {
    border-top: 0;
  }

  .compare th,
  .compare td {
    border-top: 0;
    padding-block: 0.375rem;
  }

  .compare td::before {
    display: block;
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-dim);
    margin-bottom: 0.25rem;
  }

  .compare td:first-of-type::before {
    content: "Generic AI sales tools";
  }

  .compare td:last-child::before {
    content: "Front of Mind";
    color: var(--amber);
  }
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 879px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid .card p {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--sage);
}

.step__n {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Apply ---------- */

.apply {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: clamp(1.5rem, 0.8rem + 3vw, 3rem);
}

.apply__head {
  max-width: 60ch;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.apply__head .lede {
  margin-top: 0.875rem;
}

/* Two fields and a button. Everything else is asked on the next step, once
   someone has actually committed. */
.form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  align-items: end;
}

@media (min-width: 760px) {
  .form {
    grid-template-columns: 1fr 1fr auto;
  }
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  font-size: var(--fs-small);
  color: var(--sage);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.875rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--bone);
}

.field input::placeholder {
  color: var(--sage-dim);
}

.field input:focus {
  border-color: var(--amber);
  outline: none;
}

.field input[aria-invalid="true"] {
  border-color: #e08a6d;
}

.form__note {
  margin-top: 1rem;
}

.form__status {
  margin-top: 1rem;
  font-size: var(--fs-small);
  min-height: 1.5em;
}

.form__status[data-state="error"] {
  color: #e08a6d;
}

.form__status[data-state="ok"] {
  color: var(--amber);
}

.apply__done {
  display: none;
}

.apply[data-submitted="true"] .apply__form-area {
  display: none;
}

.apply[data-submitted="true"] .apply__done {
  display: block;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-y);
  padding-block: 2rem 3rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  font-size: var(--fs-small);
  color: var(--sage);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--bone);
}

/* ---------- Step two: qualifying questions ---------- */

.qgrid {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 1.75rem);
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 720px) {
  .qgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.q {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0; /* fieldset defaults to min-content and breaks the grid */
}

.q legend {
  padding: 0;
  font-size: var(--fs-small);
  color: var(--sage);
  margin-bottom: 0.625rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips button {
  min-height: 40px;
  padding: 0 0.875rem;
  background: var(--ink);
  color: var(--sage);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.chips button:hover {
  color: var(--bone);
  border-color: var(--sage-dim);
}

.chips button[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

.q-free {
  margin-bottom: 1.5rem;
}

.q-free label {
  font-size: var(--fs-small);
  color: var(--sage);
}

[data-detail][hidden] {
  display: none;
}

/* Spam trap. Off-screen rather than display:none — some bots skip hidden
   fields but still fill ones they can "see" in the DOM. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Long-form pages ---------- */

.prose {
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose .h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.75rem);
  max-width: none;
}

.prose p {
  color: var(--sage);
}

.prose .lede {
  color: var(--sage);
}

.prose a {
  color: var(--amber);
}

/* ---------- Rollout strip ---------- */

/* Four short steps, sitting under the how-it-works diagram rather than owning a
   section of their own. Same content, one less scroll. */
.rollout {
  display: grid;
  gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.25rem);
  grid-template-columns: 1fr;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  padding-top: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .rollout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .rollout {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rollout__step b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.rollout__step span {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  color: var(--sage);
}

.rollout__step i {
  display: block;
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--amber);
  margin-bottom: 0.375rem;
}

/* ---------- Security row ---------- */

/* Four promises, read as a row rather than four boxes. The claims carry the
   weight; the cards were only adding height. */
.promises {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .promises {
    grid-template-columns: repeat(4, 1fr);
  }
}

.promise {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.promise b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.promise span {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--sage);
}

/* ---------- Narrow-screen corrections ---------- */

/* Nothing in a button or the wordmark should wrap: at 375px the nav was
   breaking "Front of Mind" and "Request access" across two lines each. */
.btn,
.brand__name {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .nav {
    padding-left: 0.875rem;
    gap: 0.5rem;
  }

  .brand__name {
    font-size: 1.125rem; /* 18 */
  }

  .btn--sm {
    padding: 0 0.875rem;
    font-size: 0.8125rem;
  }

  /* The channel tag stops floating over the name and sits under it, where
     there is room for it. */
  .queue__tag {
    position: static;
    justify-self: start;
    width: max-content;
    margin-top: 0.5rem;
  }

  .queue__who {
    padding-right: 0;
  }
}

/* Replaces inline style attributes, which the Content-Security-Policy blocks. */
.apply__done-lede {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.hero--centered {
  min-height: 70vh;
  align-content: center;
}

/* ---------- Value calculator ---------- */

.calc {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 2vw, 2rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 940px) {
  .calc {
    grid-template-columns: 1fr 1fr;
  }

  /* The result follows you while you change the inputs beside it. */
  .calc__out {
    position: sticky;
    top: 6rem;
  }
}

.calc__inputs {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 1.75rem);
}

.calc__group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 0.875rem;
}

.calc__group legend {
  padding: 0;
  margin-bottom: 0.25rem;
}

.field--row {
  grid-template-columns: 1fr 7.5rem;
  gap: 1rem;
  align-items: center;
}

/* Block, not grid: the unit hint has to stay on the same line as the label
   text, and a grid label pushes every inline child onto its own row. */
.field--row label {
  display: block;
  color: var(--bone);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.field--row label small {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  color: var(--sage-dim);
  line-height: 1.4;
}

.field--row .hint {
  color: var(--sage-dim);
  font-weight: 400;
}

.field--row input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calc__out {
  display: grid;
  gap: 0.875rem;
}

.result {
  padding: clamp(1.25rem, 0.8rem + 1.6vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  gap: 0.75rem;
}

.result--primary {
  border-color: var(--amber);
}

.result__n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.result__sub {
  font-size: var(--fs-small);
  color: var(--sage);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.result__sub b {
  color: var(--bone);
}

.rtable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.rtable th,
.rtable td {
  padding: 0.625rem 0.5rem;
  text-align: right;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 400;
}

.rtable thead th {
  border-top: 0;
  text-align: right;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dim);
  vertical-align: bottom;
}

.rtable thead th small {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sage-dim);
  font-size: 0.6875rem;
  margin-top: 0.125rem;
}

.rtable tbody th,
.rtable thead th:first-child {
  text-align: left;
  color: var(--sage);
}

.rtable__strong th,
.rtable__strong td {
  color: var(--bone);
  font-weight: 600;
  border-top-color: var(--sage-dim);
}

.rtable__strong td:last-child {
  color: var(--amber);
}

.calc__cta {
  width: 100%;
}

.formulas {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.formulas code {
  display: block;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--sage);
  overflow-x: auto;
}

.grid .card a {
  color: var(--amber);
}

.nav__links a[aria-current="page"] {
  color: var(--bone);
}

.field--row label em {
  font-style: normal;
  color: var(--bone);
}


/* ---------- Flow diagram ---------- */

/* One self-contained SVG at the artboard's own 1200x640 geometry, so it scales
   without JavaScript and without re-deriving the curves. Below 900px it is
   replaced by the list, which carries the same content in a readable form. */
.flow {
  margin-top: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}

.flow__svg {
  display: block;
  width: 100%;
  height: auto;
}

.flow__list {
  display: none;
}

@media (max-width: 899px) {
  .flow {
    display: none;
  }

  .flow__list {
    display: grid;
    gap: 0.625rem;
  }





  .flow__list .outcome {
    margin-top: 0.75rem;
  }
}

.fom-flow {
  stroke-dasharray: 3 9;
  animation: fomflow 1.8s linear infinite;
}

@keyframes fomflow {
  to {
    stroke-dashoffset: -24;
  }
}

.fom-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: fompulse 2.6s ease-out infinite;
}

.fom-pulse2 {
  animation-delay: 1.3s;
}

@media (prefers-reduced-motion: reduce) {
  .fom-flow,
  .fom-pulse {
    animation: none;
  }
}

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 820px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.quote blockquote {
  margin: 0;
  order: 2;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--sage);
}

.quote figcaption {
  order: 1;
  display: grid;
  gap: 0.25rem;
}

.quote figcaption b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-sub);
  color: var(--bone);
}

.quote figcaption span {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dim);
}

/* ---------- Founder ---------- */

.founder {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(20rem, 12rem + 22vw, 30rem);
  display: grid;
  place-items: center;
  text-align: center;
}

.founder__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__body {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.875rem;
  padding: var(--gutter);
}

.founder__body .h2 {
  max-width: 14ch;
}

.founder__play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(30, 51, 43, 0.75);
  border: 1.5px solid var(--bone);
  backdrop-filter: blur(4px);
  margin-bottom: 0.5rem;
}

.founder__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

