/* REALE marketing site. One stylesheet, no JavaScript.
   Sections, top to bottom: tokens, base, header, buttons, hero, problem,
   workflow, engagement, value, closing, footer, prose pages, motion. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.3100e775e8.woff2") format("woff2");
}

:root {
  --green: #15cc17;
  --green-ink: #0a7a2c; /* green text on light surfaces (5.3:1 on paper) */
  --green-soft: #e4f5e5;
  --green-on-dark: #7df089;
  --ink: #0e1511;
  --ink-line: #27322a;
  --text: #121a15;
  --muted: #566259;
  --muted-on-dark: #a8b5ab;
  --paper: #f6f8f3;
  --white: #ffffff;
  --line: #dce3d9;
  --amber: #f5a524;
  --red: #f0604f;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-lg: 0 32px 64px -24px rgba(14, 33, 19, 0.3), 0 12px 24px -14px rgba(14, 33, 19, 0.14);
  --shadow-md: 0 18px 40px -18px rgba(14, 33, 19, 0.22);
  --focus: var(--ink);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

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

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: #bdf2c0;
  color: var(--ink);
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Read by screen readers, not shown: "(opens in a new tab)" on links that do. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

/* The link is fixed, so it can stand over paper or over a dark section:
   a white ring against its own ink, and an ink ring outside that, so one of
   the two shows on any ground (green on the header's paper was 2.0:1). */
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--white);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--ink);
}

.eyebrow,
.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--green-ink);
}

/* On the first line's middle, also when the label wraps (1.4 line-height). */
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 3px;
  margin-top: calc(0.7em - 1.5px);
  border-radius: 3px;
  background: var(--green);
}

.nowrap {
  white-space: nowrap;
}

.eyebrow-light {
  color: var(--green-on-dark);
}

.kicker {
  color: var(--muted-on-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 243, 0.86);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(220, 227, 217, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  width: 79px;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 15px;
  font-weight: 650;
}

.nav-link {
  padding-block: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--green-ink);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(180deg, #33e33f 0%, #15cc17 100%);
  color: #05130a;
  box-shadow:
    0 12px 26px -10px rgba(21, 204, 23, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button-primary:hover {
  box-shadow:
    0 16px 30px -10px rgba(21, 204, 23, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: #1c2a20;
}

/* The edge at 0.42 is 3:1 or more on ink and over the closing section's
   green glow (WCAG 1.4.11); 0.3 was 2.7:1 on ink. */
.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(21, 204, 23, 0.55);
  text-underline-offset: 6px;
  transition: text-decoration-color 0.15s ease;
}

.text-link:hover {
  text-decoration-color: var(--green);
}

.text-link svg {
  color: var(--green-ink);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

/* The glow and the faint grid span the whole section, so nothing is cut at
   the content width. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(52% 62% at 78% 42%, rgba(21, 204, 23, 0.17), rgba(21, 204, 23, 0) 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(21, 204, 23, 0.06), rgba(21, 204, 23, 0) 70%);
}

.hero::after {
  background-image:
    linear-gradient(rgba(10, 122, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 122, 44, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(60% 70% at 76% 44%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60% 70% at 76% 44%, #000 0%, transparent 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(56px, 8vw, 104px) clamp(88px, 9vw, 128px);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.3vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-subhead {
  margin-top: 24px;
  max-width: 30ch;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hero-lede {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.hero-signup {
  display: none;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.hero-signup a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero-outcome {
  position: relative;
  margin-top: 30px;
  max-width: 46ch;
  padding-left: 30px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.hero-outcome::before,
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft);
}

.hero-outcome::after,
.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.14em + 4.5px);
  width: 6px;
  height: 10px;
  border: solid var(--green-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hero-visual {
  position: relative;
}

.browser {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(14, 21, 17, 0.1);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: #eef1ec;
  border-bottom: 1px solid var(--line);
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdd5cb;
}

.browser img {
  width: 100%;
}

.shot {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(14, 21, 17, 0.1);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.shot img {
  width: 100%;
}

.phone {
  padding: 6px;
  background: #0d130f;
  border-radius: 30px;
  box-shadow:
    inset 0 0 0 1px #313c34,
    0 30px 50px -22px rgba(10, 24, 14, 0.55),
    0 10px 20px -12px rgba(10, 24, 14, 0.3);
}

.phone img {
  width: 100%;
  border-radius: 24px;
}

/* The dashboard keeps to the content width at every size. The phone sits
   over its right-hand columns (status and actions), so the addresses and the
   feedback bars stay readable; the note sits over its lower left. */
.hero-visual .phone {
  position: absolute;
  right: -3%;
  bottom: -14%;
  width: 28%;
}

.signal-note {
  position: absolute;
  left: -4%;
  bottom: -13%;
  display: grid;
  gap: 2px;
  max-width: 250px;
  padding: 14px 18px 14px 44px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.signal-note strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.pulse-dot {
  position: absolute;
  left: 18px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(21, 204, 23, 0.14);
}

/* ---------- Problem ---------- */

.problem {
  --focus: var(--green);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: var(--section);
  background: var(--ink);
  color: var(--white);
}

.problem::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 60% at 100% 0%, rgba(21, 204, 23, 0.1), rgba(21, 204, 23, 0) 70%);
  pointer-events: none;
}

.problem h2 {
  margin-top: 22px;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

/* Each sentence is its own block, so the two never share a line; the first
   one steps back so the second lands. */
.problem h2 span {
  display: block;
}

.problem h2 span:first-child {
  color: #8d9c92;
}

.problem-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px clamp(24px, 4vw, 56px);
  max-width: 920px;
  margin-top: clamp(24px, 3vw, 36px);
  color: #c9d3cc;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.timeline {
  margin-top: clamp(56px, 8vw, 104px);
}

.timeline-caption {
  color: var(--muted-on-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  padding-top: 36px;
}

/* One line under the four dots, cooling green to red as the delay grows. */
.timeline-track::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 0%, #c6c81f 36%, var(--amber) 64%, var(--red) 100%);
}

.timeline-track li {
  --step: var(--green);
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-right: 28px;
  color: var(--muted-on-dark);
  font-size: 15px;
  line-height: 1.45;
}

.timeline-track li:nth-child(2) {
  --step: #c6c81f;
}

.timeline-track li:nth-child(3) {
  --step: var(--amber);
}

.timeline-track li:nth-child(4) {
  --step: var(--red);
}

.timeline-track li::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--step);
  border-radius: 50%;
  background: var(--ink);
}

.timeline-num {
  color: var(--step);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.timeline-track strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- Section intros ---------- */

.section-intro {
  max-width: 800px;
}

.section-intro h2,
.engagement-copy h2,
.closing h2 {
  margin-top: 20px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-intro > p:last-child:not(.eyebrow) {
  margin-top: 22px;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}

/* ---------- Workflow ---------- */

.workflow {
  padding-block: var(--section) clamp(24px, 4vw, 48px);
}

.workflow .section-intro {
  margin-bottom: 24px;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(40px, 5vw, 64px);
}

.step + .step {
  border-top: 1px solid var(--line);
}

.step-flip {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.step-flip .step-media {
  order: -1;
}

.step-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.step-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.step-copy h3 {
  margin-top: 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.step-copy > p:not(.step-kicker) {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.6;
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  font-weight: 650;
  line-height: 1.4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.step-link {
  margin-top: 20px;
}

.chips li,
.loop span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

/* A soft stage behind phones and the report. */
.stage {
  position: relative;
  padding: clamp(24px, 4.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(21, 204, 23, 0.13), rgba(21, 204, 23, 0) 70%),
    linear-gradient(160deg, #eff3ed 0%, #e3eae1 100%);
}

.stage-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 24px);
}

.stage-pair figure {
  flex: 1 1 0;
  min-width: 0;
  max-width: 250px;
}

.stage figcaption {
  margin-top: 20px;
  color: #075f22;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.stage-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-ink);
  box-shadow: var(--shadow-md);
}

.stage-offset {
  align-items: flex-start;
}

.stage-offset figure:last-child {
  margin-top: clamp(24px, 5vw, 56px);
}

/* The report's top half (the estimate, where prices clustered, the expected
   range), fading out; the link opens the whole page. The fade masks the
   image, not the link: a mask on the link clipped its focus ring away. The
   stops are the link's 78% to 100% of its 520 rows, in the image's 883. */
.stage-report {
  padding-bottom: 0;
  overflow: hidden;
}

.stage-report a {
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 681 / 520;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

/* The stage clips at the link's foot (`overflow: hidden`, no bottom pad), so
   the ring is drawn inside the link, where all four sides show. */
.stage-report a:focus-visible {
  outline-offset: -3px;
}

.stage-report img {
  width: 100%;
  -webkit-mask-image: linear-gradient(#000 45.93%, transparent 58.89%);
  mask-image: linear-gradient(#000 45.93%, transparent 58.89%);
}

/* ---------- Engagement ---------- */

.engagement {
  padding-block: var(--section);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.engagement-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.engagement-copy > p:not(.eyebrow) {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.6;
}

/* The loop reads top to bottom, a short arrow between two steps. */
.loop {
  display: grid;
  justify-items: start;
  margin-top: 28px;
}

.loop li {
  display: grid;
  justify-items: start;
}

.loop li + li::before {
  content: "";
  width: 12px;
  height: 16px;
  margin: 7px 0 7px 22px;
  /* The arrow in the ink green: the bright green is 2.2:1 on the card (WCAG 1.4.11). */
  background: var(--green-ink);
  clip-path: polygon(42% 0, 58% 0, 58% 62%, 92% 62%, 50% 100%, 8% 62%, 42% 62%);
}

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

.value {
  padding-block: var(--section);
  background: linear-gradient(180deg, #eaf4e9 0%, #e3f0e2 100%);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(36px, 5vw, 64px);
}

.value-card {
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--white);
  border: 1px solid #d3e2d2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(14, 33, 19, 0.04);
}

.value-icon {
  display: block;
  color: var(--green-ink);
}

.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-for {
  margin-top: 20px;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.value-card h3 {
  margin-top: 10px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.value-card h3 + p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Closing ---------- */

.closing {
  --focus: var(--green);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: var(--section);
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(48% 46% at 50% 66%, rgba(21, 204, 23, 0.2), rgba(21, 204, 23, 0) 72%);
  pointer-events: none;
}

.closing-inner {
  display: grid;
  justify-items: center;
}

.closing .eyebrow::before {
  display: none;
}

.closing h2 {
  max-width: 18ch;
}

.closing-inner > p:not(.eyebrow):not(.closing-signin) {
  margin-top: 22px;
  max-width: 58ch;
  color: #c9d3cc;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.closing-signin {
  margin-top: 22px;
  color: var(--muted-on-dark);
  font-size: 15px;
}

.closing-signin a {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 4px;
}

.closing-signin a:hover {
  color: var(--green-on-dark);
}

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

.site-footer {
  --focus: var(--green);
  padding-block: clamp(32px, 4vw, 48px) 32px;
  background: var(--ink);
  color: var(--muted-on-dark);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 28ch;
}

.footer-col {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
}

.footer-col h2 {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  padding-block: 2px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover,
.social a:hover {
  color: var(--white);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  font-size: 14px;
}

.social {
  display: flex;
  gap: 6px;
  margin-inline: -11px;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* ---------- Prose pages (privacy policy, press) ---------- */

.page {
  padding-block: clamp(48px, 7vw, 88px) var(--section);
}

.page-head {
  max-width: 760px;
}

.page-head h1 {
  margin-top: 18px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-head .page-meta {
  margin-top: 16px;
  color: var(--muted);
}

/* A long address (an email) breaks rather than overflow a narrow screen. */
.prose {
  max-width: 720px;
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li::marker {
  color: var(--green-ink);
}

.prose a {
  color: var(--green-ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin-inline: 0;
  padding-left: 20px;
  border-left: 3px solid var(--green);
  color: var(--text);
}

.prose address {
  font-style: normal;
}

.prose .fine {
  color: var(--muted);
  font-size: 15px;
}

/* The sample report: the page image at no more than its own width, so it
   stays sharp; the text under it carries everything it shows. */
.report-figure {
  max-width: 681px;
  margin-top: clamp(28px, 4vw, 44px);
}

.report-figure img {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.notfound {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-block: clamp(72px, 12vw, 160px);
}

.notfound h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.notfound p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 19px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .hero-inner,
  .step,
  .step-flip,
  .engagement-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    gap: 56px;
  }

  .hero-copy {
    max-width: 680px;
  }

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

  .hero-visual .phone {
    right: 4%;
    width: 27%;
  }

  .signal-note {
    left: 4%;
  }

  .step-flip .step-media {
    order: 0;
  }

  .step-media,
  .engagement-grid > .stage {
    max-width: 680px;
  }

  .value-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-page,
  .nav-divider,
  .nav-signup {
    display: none;
  }

  .hero-signup {
    display: block;
  }

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

  .timeline-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 0;
    padding-left: 34px;
  }

  .timeline-track::before {
    top: 6px;
    bottom: 6px;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--green) 0%, #c6c81f 36%, var(--amber) 64%, var(--red) 100%);
  }

  .timeline-track li {
    padding-right: 0;
  }

  .timeline-track li::before {
    top: 2px;
    left: -34px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    height: 60px;
  }

  .brand img {
    width: 67px;
    height: 34px;
  }

  /* At 320px with wider text spacing (WCAG 1.4.12) the label may wrap
     rather than push the page sideways; at normal spacing it fits. */
  .site-nav .button-small {
    white-space: normal;
    text-align: center;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-outcome {
    display: none;
  }

  .signal-note {
    display: none;
  }

  .hero-visual .phone {
    right: 3%;
    bottom: -18%;
    width: 30%;
    padding: 4px;
    border-radius: 20px;
  }

  .hero-visual .phone img {
    border-radius: 16px;
  }

  .stage-pair .phone {
    padding: 4px;
    border-radius: 22px;
  }

  .stage-pair .phone img {
    border-radius: 18px;
  }

  .stage-arrow {
    display: none;
  }

  .closing-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Motion ---------- */

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

  .hero-copy > *,
  .hero-visual {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.05s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.1s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.15s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.2s;
  }

  .hero-copy > :nth-child(6) {
    animation-delay: 0.25s;
  }

  .hero-visual {
    animation-delay: 0.15s;
  }

  /* Two beats, 4.4s, then still: WCAG 2.2.2 lets nothing move unasked past 5s. */
  .pulse-dot {
    animation: pulse 2.2s ease-out 2;
  }

  /* Sections settle into place as they enter the viewport, where the browser
     can tie an animation to scroll position; elsewhere they are simply there.
     It moves and never hides: were a timeline to stall (a full-page capture,
     a browser's bug), the section would sit a few pixels low, still readable. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* Reduced motion: nothing animates, transitions included, and nothing moves
   on hover. The entry and scroll animations above already apply only under
   no-preference; this catches the rest and anything added later. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .button:hover,
  .button:active {
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    transform: translateY(28px);
  }

  to {
    transform: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 204, 23, 0.4);
  }

  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(21, 204, 23, 0);
  }
}

@media print {
  .site-header,
  .skip-link {
    position: static;
  }

  .reveal,
  .hero-copy > *,
  .hero-visual {
    animation: none;
  }
}
