/*
 * The marketing site.
 *
 * Built on the same `--ridge-*` tokens the product uses, generated from `packages/ui`
 * by `npm run gen:theme`. A marketing site in a different black from the thing it is
 * selling is the first sign nobody is looking after either, so there is not one literal
 * colour in this file — a test enforces that.
 *
 * The direction: black and white. Ink on a faint warm-grey page, white cards, black
 * pills for the selected state, thin borders, soft shadows; the photographs carry the
 * warmth. Dark mode is the same system inverted, and arrives through the tokens: this
 * file has no `prefers-color-scheme` block of its own, so it cannot drift from the app.
 */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ridge-background);
  color: var(--ridge-text-primary);
  font-family: var(--ridge-font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.has-modal {
  overflow: hidden;
}

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

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

.skip:focus {
  left: var(--ridge-space-md);
  top: var(--ridge-space-md);
  z-index: 60;
  padding: var(--ridge-space-sm) var(--ridge-space-md);
  border-radius: var(--ridge-radius-sm);
  background: var(--ridge-brand);
  color: var(--ridge-text-on-brand);
}

/* A visible focus ring everywhere, because this site is navigated by keyboard too. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ridge-brand);
  outline-offset: 2px;
  border-radius: var(--ridge-radius-sm);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--ridge-space-lg);
}

.wrap--narrow {
  max-width: 46rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 var(--ridge-space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ridge-text-muted);
}

.muted {
  color: var(--ridge-text-muted);
}

.small {
  font-size: 0.875rem;
}

/* ----------------------------------- nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--ridge-space-xl);
  /* The same width as `.wrap`, so the logo sits on the hero's left edge rather than
     a step outside it. */
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--ridge-space-lg);
  background: var(--ridge-background);
  border-bottom: 1px solid var(--ridge-border);
}

/* The lockup from branding/source, as a file. No type is set here: the word is part
   of the logo, and setting it in Inter beside the mark was drawing a logo of our own. */
.nav__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.nav__brand img {
  display: block;
  height: 1.75rem;
  width: auto;
}

.footer__brand img {
  display: block;
  height: 2rem;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--ridge-space-xl);
  /* Room between the wordmark and the first link; they are not one word. */
  margin-left: var(--ridge-space-xl);
}

/* Links and the two menu summaries share one box, so they sit on one baseline. The
   summaries used to ride a couple of pixels low: their chevron pseudo-element made a
   taller line box than a bare anchor. */
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--ridge-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ridge-text-primary);
}

/* A disclosure, not a hover menu: this works with a keyboard and on a touch screen. */
.nav__menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__menu > summary {
  list-style: none;
  gap: 0.35rem;
}

.nav__menu > summary::-webkit-details-marker {
  display: none;
}

.nav__menu > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav__panel {
  position: absolute;
  top: calc(100% + var(--ridge-space-sm));
  left: 0;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  padding: var(--ridge-space-sm);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-md);
  background: var(--ridge-surface);
  box-shadow: var(--ridge-elevation-card);
}

.nav__panel a {
  padding: var(--ridge-space-xs) var(--ridge-space-sm);
  border-radius: var(--ridge-radius-sm);
  color: var(--ridge-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav__panel a:hover {
  background: var(--ridge-surface-muted);
  color: var(--ridge-text-primary);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--ridge-space-lg);
  margin-left: auto;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--ridge-space-sm);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-sm);
  background: var(--ridge-surface);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ridge-text-primary);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: var(--ridge-space-sm) var(--ridge-space-lg);
  border: 1px solid transparent;
  border-radius: var(--ridge-radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button--primary {
  background: var(--ridge-brand);
  color: var(--ridge-text-on-brand);
}

.button--primary:hover {
  /* A token, not a brightness filter: brightening white clips, brightening black
     does nothing, and the hover has to work on both. */
  background: var(--ridge-brand-hover);
}

.button--ghost {
  border-color: var(--ridge-border-strong);
  background: var(--ridge-surface);
  color: var(--ridge-text-primary);
}

.button--ghost:hover {
  background: var(--ridge-surface-muted);
}

.button--lg {
  padding: var(--ridge-space-md) var(--ridge-space-xl);
  font-size: 1.0625rem;
}

.cta-row {
  display: flex;
  gap: var(--ridge-space-sm);
  flex-wrap: wrap;
  margin: var(--ridge-space-lg) 0;
}

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

.hero {
  padding: var(--ridge-space-xxl) 0 var(--ridge-space-xl);
}

.hero--short {
  padding-bottom: var(--ridge-space-xl);
}

.hero--center {
  text-align: center;
}

.hero--center .hero__lede {
  margin-left: auto;
  margin-right: auto;
}

.hero__grid {
  display: grid;
  /* The photograph is the bigger half: the approved design gives it about three
     fifths of the width and lets it run off the edge of the viewport. */
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: var(--ridge-space-xl);
  align-items: center;
}

.hero {
  /* A bleeding photograph reaches past the page edge; clip rather than scroll. */
  overflow-x: clip;
}

.hero h1 {
  margin: 0 0 var(--ridge-space-md);
  font-size: clamp(2.125rem, 5.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  /* The headline is two lines on a wide screen and wraps on its own on a narrow one.
     Hard breaks in the markup made it six lines on a phone, one word to a line. */
  text-wrap: balance;
}

/* The second sentence, smaller and on its own line, as the approved design sets it. */
.hero__accent {
  display: block;
  margin-top: 0.22em;
  font-size: 0.62em;
  line-height: 1.1;
  color: var(--ridge-brand);
}

.underline {
  box-shadow: inset 0 -0.28em 0 var(--ridge-brand-subtle);
}

.hero__lede {
  margin: 0 0 var(--ridge-space-lg);
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--ridge-text-secondary);
}

/* ------------------------------ product shots ----------------------------- */

/*
 * Every photograph is 16:9, and the frame says so, so the box is reserved before the
 * file arrives and nothing below it moves when it does. `object-fit: cover` means a
 * future photograph at another ratio is cropped to the frame rather than stretching
 * it. The thin border keeps a white-backed shot from floating on a dark page.
 */
.shot {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-card);
  background: var(--ridge-surface-muted);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Until a screenshot is dropped in, the frame says what belongs there rather than
   showing a broken image or generic stock art pretending to be the product. */
.shot__placeholder {
  display: none;
}

.shot--missing img {
  display: none;
}

/*
 * The hero composition. Not a framed picture in a column: the photograph runs from
 * its column's left edge off the right edge of the viewport, and its left side fades
 * into the page so the devices appear to sit on the page rather than in a box. The
 * mask reveals whatever is behind it, so the fade is into the page colour in both
 * themes without a second rule.
 *
 * The right margin is the distance from the wrap's content edge to the viewport edge:
 * half of whatever the viewport exceeds the wrap by, plus the wrap's own padding.
 *
 * The mask gradients name `black`, not a token: a mask reads only alpha, so the colour
 * is meaningless, and a hex literal here would trip the rule that the stylesheet has
 * no palette of its own.
 */
.shot--bleed {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  margin-right: calc(-1 * ((max(100vw, 72rem) - 72rem) / 2 + var(--ridge-space-lg)));
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, black 14%, black 100%),
    linear-gradient(to bottom, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, black 14%, black 100%),
    linear-gradient(to bottom, transparent 0, black 6%, black 94%, transparent 100%);
  mask-composite: intersect;
}

.shot--bleed img {
  border-radius: 0;
}

.shot--missing {
  border-style: dashed;
  border-color: var(--ridge-border-strong);
}

.shot--missing .shot__placeholder {
  display: grid;
  place-items: center;
  gap: var(--ridge-space-xs);
  height: 100%;
  color: var(--ridge-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* What the photograph is meant to be, so the gap is legible rather than just empty. */
.shot__placeholder strong {
  max-width: 28ch;
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.shot__placeholder code {
  font-family: var(--ridge-font-mono);
  font-size: 0.75rem;
}

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

.section {
  padding: var(--ridge-space-xxl) 0;
}

.section--tight {
  padding-top: var(--ridge-space-md);
}

.section--muted {
  background: var(--ridge-surface-muted);
}

.section h2 {
  margin: 0 0 var(--ridge-space-sm);
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  font-weight: 800;
}

.section__lede {
  margin: 0 0 var(--ridge-space-xl);
  max-width: 54rem;
  font-size: 1.0625rem;
  color: var(--ridge-text-secondary);
}

/* ---------------------------- industry selector --------------------------- */

.industry-strip {
  border-top: 1px solid var(--ridge-border);
  border-bottom: 1px solid var(--ridge-border);
  background: var(--ridge-surface);
}

.industry-strip__scroll {
  display: flex;
  gap: var(--ridge-space-xs);
  overflow-x: auto;
  padding: var(--ridge-space-md) 0;
  scrollbar-width: none;
}

.industry-strip__scroll::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  padding: var(--ridge-space-sm) var(--ridge-space-md);
  border: 1px solid transparent;
  border-radius: var(--ridge-radius-pill);
  background: transparent;
  color: var(--ridge-text-secondary);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.pill:hover {
  background: var(--ridge-surface-muted);
}

.pill.is-active {
  background: var(--ridge-brand);
  border-color: var(--ridge-brand);
  color: var(--ridge-text-on-brand);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

/* The panels stack; only the selected one is shown. Without the script the first
   stays visible, which is a working page rather than an empty one. */
.showcase__panel {
  display: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: var(--ridge-space-xl);
  /* Top-aligned, not centred: the strip sits directly above, and centring the copy
     against a photograph taller than itself opened a gap under the strip with the
     eyebrow halfway down the page. */
  align-items: start;
  padding: var(--ridge-space-md) 0 var(--ridge-space-xl);
}

.showcase__copy {
  padding-top: var(--ridge-space-lg);
}

#showcase {
  overflow-x: clip;
}

.showcase__panel.is-active {
  display: grid;
}

/* ---------------------------------- cards --------------------------------- */

.cards {
  display: grid;
  gap: var(--ridge-space-md);
}

.cards--industry {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.cards--value,
.cards--feature {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  padding: var(--ridge-space-lg);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-card);
  background: var(--ridge-surface);
  box-shadow: var(--ridge-elevation-card);
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card--link:hover {
  border-color: var(--ridge-brand);
}

.card h3 {
  margin: 0 0 var(--ridge-space-xs);
  font-size: 1.0625rem;
}

.card p {
  margin: 0;
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--ridge-space-sm);
  border-radius: var(--ridge-radius-md);
  background: var(--ridge-brand-subtle);
  color: var(--ridge-brand-subtle-text);
}

.card__more {
  display: inline-block;
  margin-top: var(--ridge-space-sm);
  color: var(--ridge-brand);
  font-size: 0.875rem;
  font-weight: 600;
}

/* -------------------------------- features -------------------------------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--ridge-space-md);
  margin: 0 0 var(--ridge-space-lg);
  padding: 0;
  list-style: none;
}

.feature-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--ridge-space-lg);
}

.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.feature-list strong {
  font-size: 1rem;
}

.feature-list span {
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: var(--ridge-space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2px solid var(--ridge-text-primary);
  border-bottom: 2px solid var(--ridge-text-primary);
  transform: rotate(-45deg);
}

/* ------------------------------- keep / calc ------------------------------ */

.keep__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--ridge-space-xxl);
  align-items: start;
}

/* With the lifestyle photograph from the approved design: picture, copy, calculator. */
.keep__grid--photo {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--ridge-space-xl);
}

.keep__grid--photo .shot {
  aspect-ratio: 4 / 5;
  align-self: stretch;
}

.price-table {
  width: 100%;
  margin: var(--ridge-space-lg) 0;
  border-collapse: collapse;
  background: var(--ridge-surface);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-md);
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: var(--ridge-space-sm) var(--ridge-space-md);
  text-align: left;
  border-bottom: 1px solid var(--ridge-border);
  font-variant-numeric: tabular-nums;
}

.price-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ridge-text-muted);
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.calc {
  padding: var(--ridge-space-xl);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-card);
  background: var(--ridge-surface);
  box-shadow: var(--ridge-elevation-card);
}

.calc h3 {
  margin: 0 0 var(--ridge-space-md);
  font-size: 1.125rem;
}

.calc__field span {
  display: block;
  margin-bottom: var(--ridge-space-xs);
  font-size: 0.875rem;
  color: var(--ridge-text-secondary);
}

.calc__input {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: var(--ridge-space-sm) var(--ridge-space-md);
  border: 1px solid var(--ridge-border-strong);
  border-radius: var(--ridge-radius-md);
  background: var(--ridge-background);
  font-size: 1.25rem;
  font-weight: 600;
}

.calc__input input {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.calc__input input:focus {
  outline: none;
}

.calc__out {
  margin: var(--ridge-space-lg) 0 0;
}

.calc__out > div {
  display: flex;
  justify-content: space-between;
  gap: var(--ridge-space-md);
  padding: var(--ridge-space-sm) 0;
  border-bottom: 1px solid var(--ridge-border);
}

.calc__out dt {
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.calc__out dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc__total {
  border-bottom: 0 !important;
  font-size: 1.125rem;
}

.calc__total dd.is-good {
  color: var(--ridge-text-primary);
}

/* ---------------------------------- plans --------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--ridge-space-md);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ridge-space-sm);
  padding: var(--ridge-space-xl) var(--ridge-space-lg);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-card);
  background: var(--ridge-surface);
  box-shadow: var(--ridge-elevation-card);
}

.plan--popular {
  border-color: var(--ridge-brand);
  background: var(--ridge-surface-raised);
  box-shadow: 0 0 0 1px var(--ridge-brand), var(--ridge-elevation-card);
}

.plan__flag {
  position: absolute;
  top: calc(var(--ridge-space-sm) * -1);
  left: var(--ridge-space-lg);
  padding: 0.15rem var(--ridge-space-sm);
  border-radius: var(--ridge-radius-pill);
  background: var(--ridge-brand);
  color: var(--ridge-text-on-brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.plan h3 {
  margin: 0;
  font-size: 1.25rem;
}

.plan__range {
  margin: 0;
  color: var(--ridge-text-muted);
  font-size: 0.875rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: var(--ridge-space-sm) 0;
}

.plan__price strong {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--ridge-text-muted);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.plan .button {
  margin-top: auto;
}

.plan__note {
  margin: 0;
  color: var(--ridge-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.callout {
  display: flex;
  align-items: center;
  gap: var(--ridge-space-lg);
  flex-wrap: wrap;
  margin-top: var(--ridge-space-lg);
  padding: var(--ridge-space-lg);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-card);
  background: var(--ridge-surface);
}

.callout h3 {
  margin: 0 0 0.15rem;
  font-size: 1.0625rem;
}

.callout p {
  margin: 0;
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.callout .button {
  margin-left: auto;
}

/* ---------------------------------- faq ----------------------------------- */

.faq details {
  padding: var(--ridge-space-md) 0;
  border-bottom: 1px solid var(--ridge-border);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  margin: var(--ridge-space-sm) 0 0;
  color: var(--ridge-text-secondary);
}

/* --------------------------------- legal ---------------------------------- */

.legal {
  padding: var(--ridge-space-xxl) 0;
}

.legal h1 {
  margin: 0 0 var(--ridge-space-sm);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}

.legal__meta {
  color: var(--ridge-text-muted);
  font-size: 0.875rem;
}

.legal__intro {
  max-width: 62ch;
  margin: 0 0 var(--ridge-space-sm);
  color: var(--ridge-text-secondary);
  font-size: 1.0625rem;
}

/* A document inside a page, which may hold more than one. */
.legal__doc + .legal__doc {
  margin-top: var(--ridge-space-xxl);
  padding-top: var(--ridge-space-xl);
  border-top: 1px solid var(--ridge-border);
}

.legal__doc-title {
  margin: 0 0 var(--ridge-space-xs);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

/* Contents, shown only where a page carries more than one agreement. */
.legal__contents {
  padding: var(--ridge-space-md) var(--ridge-space-lg);
  margin: var(--ridge-space-lg) 0 var(--ridge-space-xl);
  border: 1px solid var(--ridge-border);
  border-radius: var(--ridge-radius-md);
  background: var(--ridge-surface-muted);
}

.legal__contents-title {
  margin: 0 0 var(--ridge-space-xs);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ridge-text-muted);
}

.legal__contents ol {
  margin: 0;
  padding-left: 1.25rem;
}

.legal__body h2,
.legal__body h3,
.legal__body h4 {
  /* So a deep link does not land a heading underneath the sticky header. */
  scroll-margin-top: var(--ridge-space-xxl);
  margin: var(--ridge-space-xl) 0 var(--ridge-space-sm);
  font-weight: 700;
}

.legal__body h2 {
  font-size: 1.375rem;
}

.legal__body h3 {
  font-size: 1.125rem;
}

.legal__body h4 {
  font-size: 1rem;
}

.legal__body p,
.legal__body li {
  color: var(--ridge-text-secondary);
}

.legal__body ul,
.legal__body ol {
  padding-left: 1.25rem;
}

.legal__body li + li {
  margin-top: var(--ridge-space-xs);
}

.legal__body blockquote {
  margin: var(--ridge-space-md) 0;
  padding: var(--ridge-space-sm) var(--ridge-space-md);
  border-left: 3px solid var(--ridge-brand);
  background: var(--ridge-surface-muted);
  color: var(--ridge-text-secondary);
}

.legal__body code {
  padding: 0.1em 0.35em;
  border-radius: var(--ridge-radius-sm);
  background: var(--ridge-surface-muted);
  font-family: var(--ridge-font-mono);
  font-size: 0.9em;
}

.legal__body hr {
  margin: var(--ridge-space-xl) 0;
  border: 0;
  border-top: 1px solid var(--ridge-border);
}

/* Version history, shown only where there is more than one version. */
.legal__history {
  margin-top: var(--ridge-space-xxl);
  padding-top: var(--ridge-space-lg);
  border-top: 1px solid var(--ridge-border);
}

.legal__history h2 {
  margin: 0 0 var(--ridge-space-sm);
  font-size: 1.125rem;
}

.legal__history ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

/* The /legal index. */
.legal__group {
  margin-top: var(--ridge-space-xl);
}

.legal__group h2 {
  margin: 0;
  font-size: 1.25rem;
}

.legal__group-lede {
  margin: var(--ridge-space-xs) 0 var(--ridge-space-md);
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.legal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ridge-border);
}

.legal__list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ridge-space-xs) var(--ridge-space-md);
  align-items: baseline;
  justify-content: space-between;
  padding: var(--ridge-space-sm) 0;
  border-bottom: 1px solid var(--ridge-border);
}

.legal__list a {
  font-weight: 600;
}

.legal-draft {
  padding: var(--ridge-space-md);
  margin-bottom: var(--ridge-space-lg);
  border: 1px solid var(--ridge-warning);
  border-radius: var(--ridge-radius-md);
  background: var(--ridge-warning-subtle);
  font-size: 0.9375rem;
}

.legal-table {
  width: 100%;
  margin: var(--ridge-space-md) 0;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: var(--ridge-space-sm);
  border: 1px solid var(--ridge-border);
  text-align: left;
}

.legal-note {
  padding: var(--ridge-space-md);
  border-left: 3px solid var(--ridge-brand);
  background: var(--ridge-surface-muted);
}

/* -------------------------------- cta band -------------------------------- */

.cta-band {
  padding: var(--ridge-space-xxl) 0;
  background: var(--ridge-brand);
  color: var(--ridge-text-on-brand);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 var(--ridge-space-sm);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

.cta-band p {
  margin: 0 auto var(--ridge-space-lg);
  max-width: 40rem;
  opacity: 0.85;
}

.cta-band .cta-row {
  justify-content: center;
  margin-bottom: 0;
}

.cta-band .button--primary {
  background: var(--ridge-surface);
  color: var(--ridge-brand);
}

.cta-band .button--ghost {
  border-color: var(--ridge-surface);
  background: transparent;
  color: var(--ridge-text-on-brand);
}

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

.footer {
  border-top: 1px solid var(--ridge-border);
  background: var(--ridge-surface);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: var(--ridge-space-xl);
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--ridge-space-xxl) var(--ridge-space-lg) var(--ridge-space-xl);
}

.footer__brand p {
  margin: var(--ridge-space-sm) 0 var(--ridge-space-md);
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.footer__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__group h2 {
  margin: 0 0 var(--ridge-space-xs);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ridge-text-muted);
}

.footer__group a {
  color: var(--ridge-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer__group a:hover {
  color: var(--ridge-text-primary);
}

.footer__legal {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--ridge-space-lg);
  border-top: 1px solid var(--ridge-border);
  color: var(--ridge-text-muted);
  font-size: 0.8125rem;
}

.footer__legal p {
  margin: 0 0 0.25rem;
}

.footer__note a {
  color: var(--ridge-text-secondary);
}

/* -------------------------------- the offer ------------------------------- */

.offer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: var(--ridge-space-lg);
  background: var(--ridge-scrim);
}

.offer__card {
  position: relative;
  width: min(30rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--ridge-space-xl);
  border-radius: var(--ridge-radius-card);
  background: var(--ridge-surface);
  box-shadow: var(--ridge-elevation-card);
  text-align: center;
}

.offer__card h2 {
  margin: 0 0 var(--ridge-space-sm);
  font-size: 1.875rem;
  font-weight: 800;
}

.offer__card > p {
  margin: 0 0 var(--ridge-space-md);
  color: var(--ridge-text-secondary);
}

.offer__hook {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ridge-brand) !important;
}

.offer__card .checks {
  display: inline-flex;
  margin-bottom: var(--ridge-space-lg);
  text-align: left;
}

.offer__card .button {
  width: 100%;
}

.offer__secondary {
  display: inline-block;
  margin-top: var(--ridge-space-md);
  color: var(--ridge-text-secondary);
  font-size: 0.9375rem;
}

.offer__close {
  position: absolute;
  top: var(--ridge-space-sm);
  right: var(--ridge-space-sm);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--ridge-radius-pill);
  background: var(--ridge-surface-muted);
  color: var(--ridge-text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 62rem) {
  .hero__grid,
  .showcase__panel.is-active,
  .keep__grid,
  .keep__grid--photo {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ridge-space-xl);
  }

  /* One column: the photograph runs edge to edge beneath the copy, fading top and
     bottom only, because there is no column edge left to fade into. */
  .shot--bleed {
    margin-inline: calc(-1 * var(--ridge-space-lg));
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black 8%, black 92%, transparent 100%);
  }

  .keep__grid--photo .shot {
    aspect-ratio: 16 / 9;
  }

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

@media (max-width: 52rem) {
  .nav {
    flex-wrap: wrap;
    gap: var(--ridge-space-sm);
  }

  .nav__toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .nav__right {
    order: 2;
    margin-left: auto;
  }

  .nav__signin {
    display: none;
  }

  /* Hidden until opened, then a full-width stack rather than a shrunken desktop bar. */
  .nav__links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: var(--ridge-space-sm);
    border-top: 1px solid var(--ridge-border);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links {
    margin-left: 0;
  }

  .nav__links > a,
  .nav__menu > summary {
    padding: var(--ridge-space-sm) 0;
  }

  .nav__panel {
    position: static;
    border: 0;
    box-shadow: none;
    padding-left: var(--ridge-space-md);
    background: transparent;
  }

  .hero {
    padding-top: var(--ridge-space-xl);
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ridge-space-lg);
  }

  .callout .button {
    margin-left: 0;
  }
}
