:root{--primary:#1670BF;--primary-deep:#0C5A9E;--primary-tint:#E3F0FB;--primary-tint-border:#BBD9F2;--on-primary:#FFFFFF;--page:#F3F6FA;--surface:#FFFFFF;--surface-muted:#F3F6FA;--strip:#F6F9FC;--surface-read:#EBF0F5;--fg:#10243E;--fg-muted:#4A5D75;--placeholder:#5A6C83;--border:#DCE4ED;--field-border:#7C8FA6;--outline:#C4D1DF;--focus-ring:#CFE4F6;--danger-ring:#F7D5D0;--disabled-bg:#E9EEF4;--disabled-text:#4A5D75;--scrim:#5B6A7E;--hero-line:rgba(255,255,255,0.18);--info:#1670BF;--info-bg:#E3F0FB;--info-text:#0C5A9E;--success:#167A4D;--success-bg:#E2F4EA;--success-text:#136B43;--warning:#E89B00;--warning-bg:#FFF2D1;--warning-text:#7A4B00;--waiting:#56708F;--waiting-bg:#E9EEF4;--waiting-text:#3F546D;--danger:#C2362B;--danger-bg:#FCE9E6;--danger-text:#B42F25;--radius-card:16px;--radius-control:12px;--radius-field:12px;--radius-pill:999px;--radius-sheet:24px;--radius-dialog:20px;--radius-checkbox:7px;}
/*
 * The stylesheet of fmatch.app (R17a). Mobile first, right to left: logical properties only (no left / right).
 * The colours are the kit's tokens — the build puts them in front of this file as custom properties
 * (src/tokens.ts) and fills in the names of the hashed font files.
 */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/heebo-400.0e104baeec.ttf') format('truetype');
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/heebo-700.121107da8a.ttf') format('truetype');
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--fg);
  font-family:
    'Heebo',
    system-ui,
    -apple-system,
    'Segoe UI',
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wrap {
  inline-size: 100%;
  max-inline-size: 560px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* the blue band with the wordmark */
.band {
  background: var(--primary);
}
.band .wrap {
  display: flex;
  align-items: center;
  min-block-size: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-block-size: 48px;
  min-inline-size: 48px;
  border-radius: 8px;
}
.brand img {
  display: block;
}
.band :focus-visible {
  outline-color: var(--on-primary);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 28px 36px;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}
h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
a {
  color: var(--primary-deep);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.lead {
  font-size: 18px;
}
.muted {
  color: var(--fg-muted);
}
.pitch,
.stack,
section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* buttons: 52 high (the kit's primary button), the full width of a phone */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  min-block-size: 52px;
  padding-block: 8px;
  padding-inline: 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary {
  background: var(--primary);
  color: var(--on-primary);
}
.secondary {
  background: var(--surface);
  color: var(--primary-deep);
  border-color: var(--primary);
}
.store {
  background: var(--fg);
  color: var(--surface);
}
.stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mail {
  font-size: 18px;
}

/* the invitation */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--fg-muted);
}
.badge {
  padding-block: 2px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 14px;
  font-weight: 700;
}
.status {
  min-block-size: 1.5em;
  color: var(--success-text);
  font-weight: 700;
}
.code code {
  display: inline-block;
  padding-block: 4px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  user-select: all;
  overflow-wrap: anywhere;
}

/* the legal pages */
.legal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.legal section {
  gap: 8px;
}

/* a link on a line of its own (a target of 44 at least) */
.more {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

/* the links of every page */
.foot {
  border-block-start: 1px solid var(--border);
  background: var(--surface);
}
.foot ul {
  list-style: none;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 20px;
  padding-block: 8px;
  padding-inline: 0;
}
.foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px;
}

@media (min-width: 600px) {
  .stores {
    flex-direction: row;
  }
  .stores .button {
    flex: 1;
  }
}

/* ---------- R22: the frame of every page — the band with the language link, the footer with the operator ---------- */
.wrap.wide {
  max-inline-size: 1120px;
}
.band .wrap {
  justify-content: space-between;
  gap: 16px;
}
.lang {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 14px;
  border: 1.5px solid var(--primary-tint-border);
  border-radius: var(--radius-pill);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}
.lang:hover {
  background: var(--primary-deep);
}
.foot .wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 8px 20px;
}
.foot ul {
  padding-block: 0;
}
.copy {
  color: var(--fg-muted);
  font-size: 14px;
}

/* a store the app is not in yet: a badge, not a link */
.soon {
  background: var(--surface-muted);
  color: var(--fg-muted);
  border-color: var(--border);
  cursor: default;
}

/* ---------- R22: the home pages (/ and /en) ---------- */
main.home {
  display: block;
  padding: 0;
}
.home h2 {
  font-size: 26px;
}
.home h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.hero {
  background: var(--primary);
  color: var(--on-primary);
  padding-block: 20px 44px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eyebrow {
  color: var(--primary-tint-border);
  font-weight: 700;
}
.hero h1 {
  text-wrap: balance;
  font-size: 34px;
  line-height: 1.2;
}
.hero .lead {
  color: var(--primary-tint);
}
.hero .store {
  white-space: nowrap;
  background: var(--surface);
  color: var(--primary-deep);
}
.hero .soon {
  background: transparent;
  color: var(--on-primary);
  border-color: var(--primary-tint-border);
}
.hero-note {
  text-wrap: balance;
  color: var(--primary-tint);
  font-size: 15px;
}
.hero-shot {
  justify-self: center;
  inline-size: 100%;
  max-inline-size: 280px;
}
.phone img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(16, 36, 62, 0.22);
}
/* on a phone the hero shows the top of the screen */
.hero-shot img {
  aspect-ratio: 600 / 900;
  object-fit: cover;
  object-position: top;
}

.part {
  padding-block: 48px;
}
.part > .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.part.tint {
  background: var(--surface);
}

.steps,
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.step,
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.tint .card {
  background: var(--page);
}
.step p,
.card p {
  color: var(--fg-muted);
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

/* the screenshots: a row to swipe on a phone, three columns on a wide screen */
.grid.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 4px 20px;
  padding-inline: 4px;
}
.shots figure {
  flex: 0 0 68%;
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shots figcaption {
  text-align: center;
  font-weight: 700;
}

#about p {
  max-inline-size: 760px;
}

.contact {
  margin: 0;
  display: grid;
  gap: 12px;
}
.contact div {
  padding: 16px 20px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.contact dt {
  color: var(--fg-muted);
  font-size: 14px;
}
.contact dd {
  margin: 0;
  font-weight: 700;
}
.contact a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

@media (min-width: 600px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .shots figure {
    flex-basis: 40%;
  }
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .hero {
    padding-block: 40px 64px;
  }
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero .lead {
    font-size: 20px;
  }
  .hero-shot {
    max-inline-size: 320px;
  }
  .hero-shot img {
    aspect-ratio: auto;
  }
  .hero .stores {
    max-inline-size: 640px;
  }
  .part {
    padding-block: 72px;
  }
  .home h2 {
    font-size: 32px;
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid.three,
  .contact {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 280px));
    justify-content: center;
    gap: 40px;
    overflow: visible;
  }
}

/* ---------- R26s: the company behind FMatch (Apple's organisation enrollment) ---------- */
/* the band: the logo, the about link and the language link on one row; the company line wraps below on a phone */
.band .wrap {
  flex-wrap: wrap;
  gap: 0 12px;
  padding-block-end: 8px;
}
.brand {
  margin-inline-end: auto;
}
.company {
  order: 3;
  flex-basis: 100%;
  color: var(--primary-tint);
  font-size: 13px;
  line-height: 1.4;
}
.about-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}
.about-link:hover {
  text-decoration: underline;
}
/* a phone: the short label shows, the full one is read by a screen reader only */
.about-link .long {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-company {
  color: var(--primary-tint);
  font-size: 15px;
  font-weight: 700;
}

/* the about page: the company's details */
.details {
  margin: 0;
  display: grid;
  gap: 12px;
}
.details div {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.details dt {
  color: var(--fg-muted);
  font-size: 14px;
}
.details dd {
  margin: 0;
  font-weight: 700;
}
.details a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

@media (min-width: 900px) {
  .band .wrap {
    flex-wrap: nowrap;
    gap: 16px;
    padding-block-end: 0;
  }
  .brand {
    margin-inline-end: 0;
  }
  .about-link .long {
    position: static;
    inline-size: auto;
    block-size: auto;
    overflow: visible;
    clip-path: none;
  }
  .about-link .short {
    display: none;
  }
  .company {
    order: 0;
    flex-basis: auto;
    margin-inline-end: auto;
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--primary-tint-border);
  }
}
