@charset "UTF-8";

/*
 * Dar Ritual — darritual.com
 *
 * The palette, the type scale and the pattern rules are the app's, taken from
 * src/theme.ts and BRAND.md so the site and the product cannot drift apart.
 *
 * Two rules from the brand book constrain what is below and are worth naming:
 * the logo is never stretched, recoloured or put inside a container shape of
 * our own; and olive is the only brand colour, kept rare, so everything that is
 * not a primary action or a selected state is neutral.
 */

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

/*
 * Inter Display is not on Google Fonts — these two weights come from the
 * official Inter release and are served from here. Inter itself is, and is
 * linked in the document head.
 */
@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f1;
  --surface: #ffffff;
  --surface-alt: #ececE7;
  --border: #e2e2dc;
  --border-strong: #cbcbc2;

  --text: #22251e;
  --muted: #6a6e63;
  --faint: #9a9e92;
  --on-dark: #ffffff;

  /* Deep Olive. The only brand colour, and deliberately rare. */
  --ink: #4a5638;
  --ink-pressed: #3c462d;
  --accent-soft: #eef1e6;
  --accent-border: #cbd6b2;
  --accent-text: #3c462d;

  /* The artwork's own ground, sampled from the tile. */
  --artwork-ground: #505b3f;
  --pattern: url('../brand/pattern-slab.jpg');

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shell: 1140px;
  --gutter: clamp(20px, 5vw, 48px);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 1px 2px rgba(34, 37, 30, 0.04), 0 8px 24px rgba(34, 37, 30, 0.06);
  --shadow-lift: 0 2px 6px rgba(34, 37, 30, 0.06), 0 18px 48px rgba(34, 37, 30, 0.1);
}

/*
 * The women's side, in deep fuchsia.
 *
 * Only the roles that carry identity move — the primary action, the accent and
 * the artwork. Surfaces, text and the neutrals stay exactly as they are,
 * because the two sides are one brand and a wholesale repaint would make them
 * look like two companies.
 *
 * The pattern swaps to its own colourway rather than being tinted: the artwork
 * is opaque line-work on a solid ground, so a colour overlay would either hide
 * the lines or muddy the olive toward brown. `pattern-slab-fuchsia.jpg` is
 * derived from the same master by `scripts/recolour-pattern.py`, line for line.
 */
:root[data-audience='women'] {
  --ink: #9c1458;
  --ink-pressed: #7c0f45;
  --accent-soft: #fceaf2;
  --accent-border: #efbed5;
  --accent-text: #84104a;
  --artwork-ground: #9c1458;
  --pattern: url('../brand/pattern-slab-fuchsia.jpg');
}

/* ------------------------------------------------------------------- reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  transition: background-color 0.3s ease;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ layout */

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

section {
  padding-block: clamp(56px, 9vw, 108px);
}

.band {
  background: var(--bg-alt);
}

.eyebrow {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Arabic has no case, so the tracking and uppercasing read as damage. */
[dir='rtl'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(28px, 4.4vw, 44px);
}

.section-head p {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  margin-top: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--on-dark);
}
.btn-primary:hover {
  background: var(--ink-pressed);
}

.btn-light {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent-border);
}
.btn-light:hover {
  /* Derived from the token, not a fixed olive tint that would survive the skin. */
  background: color-mix(in srgb, var(--accent-soft) 88%, var(--ink));
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-solid-light {
  background: #ffffff;
  color: var(--ink);
}
.btn-solid-light:hover {
  background: #f2f2ee;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

/*
 * The wordmark, at its own aspect ratio. Height is set and width follows —
 * never the other way round, and never inside a shape of our own.
 */
.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 20px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  /* Tightens as the window narrows rather than forcing the links to wrap. */
  gap: clamp(16px, 2.2vw, 30px);
  margin-inline-start: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.18s ease;
  /*
   * A nav item is one phrase. Without this, "How it works" broke over three
   * lines the moment the header ran short of room, which pushed the bar to
   * three times its height and made the whole thing look broken.
   */
  white-space: nowrap;
}

/*
 * The call to action inside the nav belongs to the mobile menu only.
 *
 * On desktop the same button already sits in `.header-actions`, so showing
 * both put two identical "Get the app" buttons side by side in the header.
 * The pair is deliberate — one for each layout — but exactly one may ever be
 * visible, and this is the half that hides above the menu breakpoint.
 */
.site-nav > .btn {
  display: none;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn {
  padding: 11px 22px;
  font-size: 14px;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.lang-toggle:hover {
  border-color: var(--text);
  color: var(--text);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92svh, 820px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(72px, 12vw, 132px);
  background: var(--artwork-ground);
  overflow: hidden;
}

/*
 * The pattern as one covering slab, never a repeat.
 *
 * The kit ships no seamless tile — the file it calls "Pattern_Tile" is
 * byte-identical to the olive colourway — so anything that repeats it puts a
 * hard edge on screen wherever the arches fail to meet.
 */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--pattern);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(20, 22, 18, 0.5) 0%,
    rgba(20, 22, 18, 0.18) 42%,
    rgba(20, 22, 18, 0.9) 100%
  );
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  color: var(--on-dark);
  font-size: clamp(38px, 7.4vw, 76px);
  line-height: 1.02;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  margin-top: 22px;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
  margin-bottom: 22px;
}

.step-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-figure::after {
  content: counter(step);
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 20px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 12px rgba(20, 22, 18, 0.45);
  line-height: 1;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------------- services */

.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 34px;
}

.tab {
  border: none;
  background: none;
  border-radius: var(--radius-pill);
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tab[aria-selected='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.service:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.service h3 {
  font-size: 19px;
}

.service p {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
}

/*
 * No price, no duration on these cards.
 *
 * Every professional sets their own, so a single figure here is either a
 * fiction or an average — and a customer who reads one number on the website
 * and a different one at checkout has been misled by the website. The card
 * says what the service is; the app says what it costs, per person.
 */

.services-note {
  color: var(--faint);
  font-size: 13.5px;
  margin-top: 24px;
  max-width: 62ch;
}

/* ------------------------------------------------------------------ pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
}

.pillar h3 {
  font-size: 19px;
  margin-bottom: 10px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.pillar p {
  color: var(--muted);
  font-size: 15px;
}

/* -------------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split-body h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.split-body p {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  margin-top: 18px;
}

.split-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.split-list li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--text);
  font-size: 15.5px;
}

/* A tick drawn in CSS — no icon font, no emoji. */
.split-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 8px;
  width: 11px;
  height: 6px;
  border-inline-start: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

[dir='rtl'] .split-list li::before {
  border-inline-start: none;
  border-inline-end: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.split-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}

.split-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------- pro invite */

.invite {
  position: relative;
  isolation: isolate;
  background: var(--artwork-ground);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px);
  color: var(--on-dark);
}

.invite::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--pattern);
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.invite::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(20, 22, 18, 0.82), rgba(20, 22, 18, 0.5));
}

.invite h2 {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 20ch;
}

.invite p {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.6vw, 18px);
  margin-top: 18px;
  max-width: 56ch;
}

.invite-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.invite-path {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(6px);
}

.invite-path h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.invite-path p {
  font-size: 14.5px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

.faq {
  max-width: 780px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  position: relative;
}

[dir='rtl'] .faq summary {
  padding: 24px 0 24px 40px;
}

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

/* A plus that becomes a minus. Drawn, not a glyph. */
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.faq summary::before {
  width: 14px;
  height: 2px;
  transform: translateY(-50%);
}

.faq summary::after {
  width: 2px;
  height: 14px;
  transform: translateY(-50%) translateX(6px);
  inset-inline-end: 14px;
}

.faq details[open] summary::after {
  opacity: 0;
  transform: translateY(-50%) translateX(6px) rotate(90deg);
}

.faq details p {
  color: var(--muted);
  font-size: 15.5px;
  padding-bottom: 26px;
  max-width: 66ch;
}

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

.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(52px, 7vw, 84px) 36px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand img {
  height: 22px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 34ch;
  line-height: 1.65;
}

.footer-col h4 {
  color: var(--on-dark);
  font-size: 13px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

[dir='rtl'] .footer-col h4 {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-legal {
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal p {
  max-width: 68ch;
}

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

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

.legal-shell {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(30px, 4.6vw, 46px);
}

.legal-lede {
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
}

.legal-updated {
  color: var(--faint);
  font-size: 13.5px;
  margin-top: 10px;
}

.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.legal-switch a {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
}

.legal-switch a[aria-current='page'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.legal-doc h2 {
  font-size: clamp(20px, 2.6vw, 25px);
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-doc ul {
  margin: 0 0 18px;
  padding-inline-start: 22px;
  color: var(--text);
}

.legal-doc li {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 8px;
}

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

@media (max-width: 1024px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    /*
     * Absolute against the header, not fixed against the viewport.
     *
     * `top: 100%` then means "directly below the header" whatever height the
     * header happens to be, where the previous `fixed` panel hung from a
     * hardcoded 72px — the header's *minimum* height, not its actual one — and
     * so overlapped its own bar at any width where the bar grew.
     * `.site-header` is `position: sticky`, which is a positioned element, so
     * it is the containing block for this.
     */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 28px;
    box-shadow: var(--shadow-lift);
    /*
     * Collapsed by height rather than removed, so the transition has something
     * to animate and the links stay in the accessibility tree for the toggle
     * to describe.
     */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
      max-height 0.28s ease,
      visibility 0.28s;
  }

  .site-nav.is-open {
    max-height: 70svh;
    overflow-y: auto;
    visibility: visible;
  }

  .site-nav a {
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }

  /* The menu is open vertically now, so this is the visible call to action. */
  .site-nav > .btn {
    display: inline-flex;
    margin-top: 20px;
    padding: 15px 28px;
    font-size: 15px;
    border-bottom: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-figure {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split-figure {
    order: -1;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    padding-block: 96px 56px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tabs {
    display: flex;
    width: 100%;
  }

  .tab {
    flex: 1;
    padding-inline: 12px;
  }

  .service {
    padding: 24px;
  }
}

/* A phone in landscape, and small tablets held sideways. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 84px 48px;
  }
}
