/* THE BRAND TOKENS of the website: the only place for colours, font families and font files. Palette (owner decision 2026-11-02, option A):
   navy, gold and cream, as on the company vehicles, bags and jackets; terracotta is retired on the website. A brand change is a change of the
   values and files in src/brand/ (see brand.mjs), never of the layout in src/styles/site.css. The font addresses (__FONT_*__) are filled
   by the build with the hashed file names. test/accessibility.test.mjs checks every text/background pair of both themes against WCAG AA. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/display-600.9f03c0fe70.ttf') format('truetype');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/display-400-italic.fd6128a21a.ttf') format('truetype');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/body-400.393fb5b878.ttf') format('truetype');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/body-600.bd2550fce2.ttf') format('truetype');
}

:root {
  color-scheme: light dark;
  /* The brand colours, the same in both themes (navy and gold measured from the owner's reference image, 2026-11-02). The stronger gold is
     the mark on light backgrounds (3:1 on cream, WCAG 1.4.11); --accent is the deep gold for text on light backgrounds (4.5:1). */
  --brand-navy: #12224F;
  --brand-gold: #CBA765;
  --brand-gold-strong: #A8843F;
  --brand-cream: #F7F3EE;
  --bg: #F7F3EE;
  --surface: #FFFDF9;
  --ink: #12224F;
  --muted: #4A5372;
  --accent: #7D5E1F;
  --accent-fill: #CBA765;
  --on-accent: #12224F;
  --band: #12224F;
  --on-band: #F7F3EE;
  --band-muted: #B9C0D4;
  --highlight: #CBA765;
  --wordmark: #12224F;
  --on-photo: #F7F3EE;
  --shade-strong: rgba(11, 22, 51, 0.88);
  --shade-soft: rgba(11, 22, 51, 0.2);
  --header-bg: rgba(247, 243, 238, 0.94);
  --line: rgba(18, 34, 79, 0.14);
  --band-line: rgba(247, 243, 238, 0.16);
  --shadow: rgba(18, 34, 79, 0.16);
  --focus: #12224F;
  --band-focus: #CBA765;
  --font-brand: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --radius: 1.25rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-height: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1633;
    --surface: #14254F;
    --ink: #F7F3EE;
    --muted: #B9C0D4;
    --accent: #CBA765;
    --accent-fill: #CBA765;
    --on-accent: #12224F;
    --band: #12224F;
    --on-band: #F7F3EE;
    --band-muted: #B9C0D4;
    --highlight: #CBA765;
    --wordmark: #F7F3EE;
    --header-bg: rgba(11, 22, 51, 0.94);
    --line: rgba(247, 243, 238, 0.14);
    --shadow: rgba(0, 0, 0, 0.45);
    --focus: #CBA765;
  }
}

/* Arabic and Hindi use the device's own fonts for their scripts (owner decision 2026-11-02); Latin words keep the brand fonts. */
:lang(ar) {
  --font-display: 'Fraunces', 'Segoe UI', 'Geeza Pro', 'Noto Naskh Arabic', 'Noto Sans Arabic', Tahoma, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', 'Geeza Pro', 'Noto Sans Arabic', Tahoma, sans-serif;
}

:lang(hi) {
  --font-display: 'Fraunces', 'Nirmala UI', 'Kohinoor Devanagari', 'Noto Sans Devanagari', Mangal, serif;
  --font-body: 'Source Sans 3', 'Nirmala UI', 'Kohinoor Devanagari', 'Noto Sans Devanagari', Mangal, sans-serif;
}

/* The layout of the website. It uses only the tokens of src/brand/tokens.css (no colour value and no font name here, test/brand.test.mjs),
   so a brand change touches no line of this file. Layout uses logical properties only (inline/block), so the Arabic pages mirror without a
   separate stylesheet (test/rtl.test.mjs). Motion is transitions only, and none of it runs when the device asks for reduced motion.
   Widths: phone below 40rem, tablet 40rem to 60rem, desktop from 60rem. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

:lang(ar) body,
:lang(hi) body {
  line-height: 1.8;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
}

img {
  block-size: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

/* On the navy bands and on the photo the outline is gold. */
.band :focus-visible,
.page-head :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--band-focus);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-block: 0 0.6em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

:lang(ar) :is(h1, h2, h3),
:lang(hi) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw + 0.6rem, 4.75rem);
}

h2 {
  font-size: clamp(1.9rem, 2.8vw + 0.8rem, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 0.8vw + 1rem, 1.55rem);
}

p {
  margin-block: 0 1em;
  text-wrap: pretty;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -10rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 0.5rem;
}

.skip-link:focus {
  inset-block-start: 0.75rem;
}

/* ---- Header: sticky; the links in the bar from 60rem, one menu below ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: var(--header-bg);
  border-block-end: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-block-size: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-end: auto;
  color: var(--wordmark);
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand img {
  inline-size: 2.25rem;
  block-size: 2.25rem;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.menu-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding-inline: 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--accent);
  background: var(--surface);
}

.lang,
.menu {
  position: relative;
}

.lang summary,
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  transition: border-color 160ms ease;
}

.lang summary:hover,
.menu summary:hover {
  border-color: var(--ink);
}

.lang summary::-webkit-details-marker,
.menu summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.lang summary::after {
  content: '';
  inline-size: 0.45rem;
  block-size: 0.45rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg);
  margin-block-start: -0.2rem;
}

/* The menu button: three bars that become a cross when the menu is open. */
.menu summary::before {
  content: '';
  inline-size: 1.1rem;
  block-size: 0.75rem;
  background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.menu[open] summary::before {
  block-size: 1.1rem;
  background: linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
}

.lang ul,
.menu-panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
  z-index: 25;
  margin: 0;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem var(--shadow);
}

.lang ul {
  min-inline-size: 11rem;
  list-style: none;
}

.lang a,
.menu-langs a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.lang a:hover,
.menu-langs a:hover,
.menu-links a:hover {
  background: var(--bg);
}

.lang a[aria-current='true'],
.menu-langs a[aria-current='true'],
.menu-links a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
}

.menu-panel {
  inline-size: min(22rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.75rem;
}

.menu-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-links a {
  display: flex;
  border-radius: 0.6rem;
  font-size: 1.1rem;
}

.menu-title {
  margin: 0.75rem 0.85rem 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.site-nav,
.lang {
  display: none;
}

@media (min-width: 60rem) {
  .site-nav,
  .lang {
    display: block;
  }

  .menu {
    display: none;
  }
}

/* ---- Common blocks --------------------------------------------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  inline-size: 2.25rem;
  block-size: 2px;
  background: var(--highlight);
}

:lang(ar) :is(.eyebrow, .audience-label, .menu-title, .footer-title),
:lang(hi) :is(.eyebrow, .audience-label, .menu-title, .footer-title) {
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 3.25rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--accent-fill);
  background: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: 0 0.5rem 1.5rem var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.9rem 2rem var(--shadow);
}

.button--on-photo {
  background: transparent;
  color: var(--on-photo);
  border-color: var(--on-photo);
  box-shadow: none;
}

.button--on-photo:hover {
  background: var(--on-photo);
  color: var(--brand-navy);
}

.button--small {
  min-block-size: 2.9rem;
  padding: 0.6rem 1.3rem;
  font-size: 1rem;
  box-shadow: none;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-inline-size: 46rem;
  margin-block-end: clamp(2.25rem, 4vw, 3.5rem);
}

.section-lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  max-inline-size: 40rem;
  margin: 0;
}

/* ---- Home: hero, a full-width photo under a navy shade ------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-block-size: min(92svh, 52rem);
  padding-block: 7rem clamp(3rem, 7vw, 5.5rem);
  color: var(--on-photo);
  overflow: hidden;
  background: var(--brand-navy);
}

.hero-media,
.hero-media picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

/* The customer photo has no writing in it, so it is mirrored in right-to-left pages: the open side stays on the side the text starts. */
[dir='rtl'] .hero-media img {
  transform: scaleX(-1);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--shade-strong) 0%, var(--shade-strong) 55%, var(--shade-soft) 100%);
}

.hero-inner {
  position: relative;
}

.hero h1 {
  max-inline-size: 15ch;
  margin-block-end: 1.25rem;
  color: var(--on-photo);
}

:lang(ar) .hero h1,
:lang(hi) .hero h1 {
  max-inline-size: 20ch;
}

.hero-lead {
  max-inline-size: 36rem;
  font-size: clamp(1.15rem, 0.7vw + 1rem, 1.4rem);
  color: var(--on-photo);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-start: 2rem;
}

.apps-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2rem 0 0;
  font-weight: 600;
  color: var(--on-photo);
}

.apps-soon::before {
  content: '';
  flex: none;
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 0.3rem var(--shade-soft);
}

@media (min-width: 60rem) {
  .hero {
    align-items: center;
  }

  .hero::before {
    background: linear-gradient(to right, var(--shade-strong) 0%, var(--shade-strong) 38%, var(--shade-soft) 80%);
  }

  [dir='rtl'] .hero::before {
    background: linear-gradient(to left, var(--shade-strong) 0%, var(--shade-strong) 38%, var(--shade-soft) 80%);
  }

  .hero-inner > * {
    max-inline-size: 38rem;
  }
}

/* The hero text rises into place once, when the page opens (no animation rule: a transition from the starting style). */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    transition: opacity 700ms ease, translate 700ms ease;
  }

  .hero-inner > :nth-child(2) {
    transition-delay: 90ms;
  }

  .hero-inner > :nth-child(3) {
    transition-delay: 180ms;
  }

  .hero-inner > :nth-child(4) {
    transition-delay: 270ms;
  }

  @starting-style {
    .hero-inner > * {
      opacity: 0;
      translate: 0 1rem;
    }
  }
}

/* ---- Home: the three audiences, large photo cards ------------------------------------------------------------------------------- */
.audiences {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.audience {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1rem 2.5rem var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.audience:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 3.25rem var(--shadow);
}

.audience-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--band);
}

.audience-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.audience:hover .audience-media img {
  transform: scale(1.04);
}

.audience-media--customer img {
  object-position: 62% 60%;
}

.audience-media--restaurant img {
  object-position: 50% 62%;
}

.audience-media--courier img {
  object-position: 62% 45%;
}

.audience-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.audience-label {
  margin-block-end: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audience-body > p:not(.audience-label) {
  color: var(--muted);
  margin-block-end: 1.5rem;
}

.audience-body .button {
  margin-block-start: auto;
}

@media (min-width: 40rem) and (max-width: 59.99rem) {
  .audience {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  /* The text sets the height of the card; the photo fills it (a portrait photo would otherwise stretch the card). */
  .audience-media {
    position: relative;
    aspect-ratio: auto;
    min-block-size: 16rem;
  }

  .audience-media picture {
    position: absolute;
    inset: 0;
  }
}

@media (min-width: 60rem) {
  .audiences {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audience {
    grid-template-rows: auto 1fr;
  }

  .audience-media {
    aspect-ratio: 4 / 5;
  }
}

/* ---- Home: how it works --------------------------------------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding-block-start: 1.5rem;
  border-block-start: 2px solid var(--highlight);
}

.step-number {
  display: block;
  margin-block-end: 0.75rem;
  font-family: var(--font-brand);
  font-style: italic;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}

.steps p {
  color: var(--muted);
  margin: 0;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Home: why TownEat, a navy band ------------------------------------------------------------------------------------------- */
.band {
  background: var(--band);
  color: var(--on-band);
}

.band .eyebrow {
  color: var(--highlight);
}

.band h2 {
  color: var(--on-band);
}

.facts-grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--band-line);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts-grid li {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--band);
}

.fact-icon {
  inline-size: 2.25rem;
  block-size: 2.25rem;
  margin-block-end: 1.25rem;
  color: var(--highlight);
}

.facts-grid h3 {
  color: var(--on-band);
}

.facts-grid p {
  color: var(--band-muted);
  margin: 0;
}

@media (min-width: 40rem) {
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Home: questions and answers ---------------------------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 2rem;
}

.faq-list {
  border-block-start: 1px solid var(--line);
}

.faq-item {
  border-block-end: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
}

/* A plus that turns into a minus. */
.faq-item summary::after {
  content: '';
  flex: none;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(var(--accent), var(--accent)) center / 0.85rem 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 0.85rem no-repeat;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
  background: linear-gradient(var(--accent), var(--accent)) center / 0.85rem 2px no-repeat;
}

.faq-item summary:hover h3 {
  color: var(--accent);
}

.faq-item p {
  max-inline-size: 44rem;
  margin: 0;
  padding-block-end: 1.5rem;
  color: var(--muted);
}

@media (min-width: 60rem) {
  .faq {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 4rem;
    align-items: start;
  }

  .faq .section-head {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 2rem);
  }
}

/* ---- Inner pages ---------------------------------------------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--band);
  color: var(--on-band);
}

.page-head h1 {
  max-inline-size: 22ch;
  color: var(--on-band);
}

.page-head p {
  max-inline-size: 40rem;
  color: var(--band-muted);
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
}

.page-head a {
  color: var(--highlight);
}

.page-head .updated {
  font-size: 1rem;
  font-weight: 600;
}

.prose {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5.5rem);
}

/* The text column starts at the same edge as the page heading and keeps a reading measure. */
.prose > * {
  max-inline-size: 46rem;
}

.prose h2 {
  font-size: clamp(1.45rem, 1.2vw + 1rem, 1.95rem);
  margin-block-start: 2.75rem;
}

.prose ul {
  padding-inline-start: 1.25rem;
}

.prose li {
  margin-block-end: 0.5rem;
}

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

.prevail {
  margin-block-start: 3rem;
  padding: 1.25rem 1.5rem;
  border-inline-start: 3px solid var(--highlight);
  background: var(--surface);
  border-start-end-radius: 0.75rem;
  border-end-end-radius: 0.75rem;
}

.prevail p:last-child {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--highlight);
  border-radius: var(--radius);
  box-shadow: 0 0.75rem 2rem var(--shadow);
}

.card h2 {
  font-size: 1.45rem;
}

.card p {
  color: var(--muted);
}

.card .button {
  margin-block-start: auto;
}

.facts {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) 1fr;
  gap: 0.75rem 2rem;
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

address {
  font-style: normal;
}

/* ---- Footer: a navy band in both themes ----------------------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  background: var(--band);
  color: var(--band-muted);
  font-size: 0.975rem;
}

.site-footer .brand {
  color: var(--on-band);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block-end: 2.5rem;
  border-block-end: 1px solid var(--band-line);
}

.footer-brand p {
  max-inline-size: 22rem;
  margin: 1.25rem 0 0;
}

.footer-soon {
  color: var(--highlight);
  font-weight: 600;
}

.footer-cols {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-title {
  margin-block-end: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
}

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

.footer-col a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--on-band);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--highlight);
  text-decoration: underline;
}

.footer-col a[aria-current='true'] {
  color: var(--highlight);
}

.disclosure {
  padding-block-start: 2rem;
  max-inline-size: 60rem;
}

.disclosure p {
  margin-block-end: 0.35rem;
}

.disclosure strong {
  color: var(--on-band);
}

.disclosure a {
  color: var(--highlight);
}

@media (min-width: 40rem) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 4rem;
  }

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

@media (max-width: 39.99rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .facts dd {
    margin-block-end: 0.75rem;
  }

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

/* The language arrow keeps pointing down in right-to-left pages. */
[dir='rtl'] .lang summary::after {
  transform: rotate(-45deg);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .audience:hover,
  .button:hover,
  .audience:hover .audience-media img {
    transform: none;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-media,
  .hero::before {
    display: none;
  }

  .hero,
  .hero h1,
  .hero-lead,
  .apps-soon {
    color: var(--ink);
    background: none;
  }
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
