:root{--primary:#6CBFEA;--primary-deep:#1C6F9C;--primary-tint:#E6F4FC;--primary-tint-border:#9FD5F2;--on-primary:#0C3550;--page:#FFFFFF;--surface:#FFFFFF;--surface-muted:#F1F5F8;--strip:#F1F4F7;--surface-read:#F1F4F7;--fg:#22313F;--fg-muted:#5E6D7C;--placeholder:#C5D1DB;--border:#E8EEF3;--field-border:#C5D1DB;--outline:#C5D1DB;--focus-ring:#9FD5F2;--danger-ring:#F6B9B9;--disabled-bg:#EEF2F5;--disabled-text:#646D75;--disabled-fill:#EEF2F5;--disabled-ink:#646D75;--scrim:#12202E;--hero-line:rgba(255,255,255,0.18);--info:#C9D3DC;--info-bg:#F1F4F7;--info-text:#5E6D7C;--info-fill:#C9D3DC;--info-ink:#22313F;--info-soft:#F1F4F7;--info-line:#D8E2EA;--success:#3FB585;--success-bg:#E5F6EE;--success-text:#1E7A52;--warning:#7B6BE0;--warning-bg:#EEEBFE;--warning-text:#5847C9;--waiting:#7B6BE0;--waiting-bg:#EEEBFE;--waiting-text:#5847C9;--danger:#BC3438;--danger-bg:#FDECEC;--danger-text:#BC3438;--bg:#FFFFFF;--card:#FFFFFF;--band:#FFFFFF;--band-line:#DCEEF9;--hairline:#E8EEF3;--divider:#EEF3F7;--field:#F1F5F8;--field-focus:#2E93CA;--track:#EEF3F7;--track-sep:#D8E2EA;--timebox:#F1F4F7;--ink:#22313F;--ink-2:#38485A;--muted:#5E6D7C;--faint:#646D75;--chevron:#84898E;--tab-icon:#7C8A97;--choice-on:#F7FCFE;--sky-fill:#6CBFEA;--sky-ink:#0C3550;--sky-text:#1C6F9C;--sky-soft:#E6F4FC;--sky-line:#9FD5F2;--sky-deep:#3A9CD2;--sky-pressed:#4FAEE0;--ok-fill:#5CCB9C;--ok-ink:#0B3D2A;--ok-text:#1E7A52;--ok-soft:#E5F6EE;--ok-line:#9EDFC2;--ok-dot:#3FB585;--wait-fill:#B9B0F5;--wait-ink:#241A6B;--wait-text:#5847C9;--wait-soft:#EEEBFE;--wait-line:#D3CCFB;--wait-dot:#7B6BE0;--bad-fill:#F59A9A;--bad-ink:#5A1416;--bad-text:#BC3438;--bad-soft:#FDECEC;--bad-line:#F6B9B9;--bad-dot:#E5585C;--site-band:#1C6F9C;--on-site-band:#FFFFFF;--radius-card:0px;--radius-control:12px;--radius-field:0px;--radius-pill:999px;--radius-sheet:22px;--radius-dialog:22px;--radius-checkbox:6px;--radius-tile:12px;--radius-band:0px;--shadow-card-soft:0 1px 2px rgba(20,60,90,0.05), 0 4px 16px rgba(20,60,90,0.07);--shadow-raised:0 4px 20px rgba(20,60,90,0.12);--shadow-segmentActive:0 3px 10px rgba(30,120,170,0.28);--shadow-pill:0 3px 10px rgba(30,120,170,0.28);--shadow-btn:0 3px 10px rgba(30,120,170,0.22);--shadow-ok-btn:0 3px 10px rgba(35,133,92,0.22);--shadow-bar:0 4px 20px rgba(20,60,90,0.12);--shadow-plus:0 4px 12px rgba(0,0,0,0.18);--shadow-sheet:0 -8px 30px rgba(20,60,90,0.18);--shadow-back:0 1px 2px rgba(20,60,90,0.06), 0 2px 8px rgba(20,60,90,0.08);}
/*
 * The stylesheet of fmatch.app (R17a; design v2 since R43-S, D293). Mobile first, right to left: logical
 * properties only (no left / right). The colours, radii and shadows are the kit's tokens
 * (packages/ui/src/tokens.json) — 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 (Fredoka 400 / 500 / 600, the app's font, bundled: the CSP
 * allows fonts from the site only).
 *
 * The v2 language (docs/design/FMATCH_DESIGN_SPEC.md): a white page; square cards with a hairline and the soft
 * shadow; round controls; section titles with the sky edge bar; primary buttons sky with ink text; on a light
 * fill the text is dark; white text only on the deep sky of the header band.
 */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fredoka-400.9f146128c7.ttf') format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fredoka-500.8143bd54f5.ttf') format('truetype');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fredoka-600.021e30b2bb.ttf') format('truetype');
}

:root {
  /* the page's side gutter (spec 4.1: 32, 20 on a screen under 390) */
  --gutter: 20px;
}
@media (min-width: 390px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::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:
    'Fredoka',
    system-ui,
    -apple-system,
    'Segoe UI',
    Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

/* the header band: the white wordmark on the deep sky (white text reads at 5.5 : 1 on it; on the sky fill only 2) */
.band {
  background: var(--site-band);
}
.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-site-band);
}

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

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
}
/* a section's title (spec 5.4): the one title size, 500, and the 3-wide sky bar at the start edge, in the gutter */
h2 {
  position: relative;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}
main h2::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(-1 * var(--gutter));
  inset-block-start: 50%;
  inline-size: 3px;
  block-size: 32px;
  margin-block-start: -16px;
  background: var(--sky-deep);
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
a {
  color: var(--sky-text);
}
/* a focus ring of 3 : 1 at least on every light surface (the sky fill itself is 2 : 1 on white) */
:focus-visible {
  outline: 3px solid var(--primary-deep);
  outline-offset: 2px;
}

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

/* buttons (spec 7.4): 48 high, fully round, 500 — the full width of a phone */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  min-block-size: 48px;
  padding-block: 8px;
  padding-inline: 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
/* the primary button: the sky fill with the ink on it (6.3 : 1), the button shadow */
.primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-btn);
}
.primary:hover {
  background: var(--sky-pressed);
}
/* the secondary button: white, the sky text, the 1.5 sky line */
.secondary,
.store {
  background: var(--surface);
  color: var(--sky-text);
  border-color: var(--sky-line);
}
.secondary:hover,
.store:hover {
  background: var(--sky-soft);
}
.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(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-soft);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--fg-muted);
}
/* a status chip (spec 7.5): "מאומת" on the mint tint */
.badge {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  padding-block: 2px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 14px;
  font-weight: 500;
}
.status {
  min-block-size: 1.5em;
  color: var(--success-text);
  font-weight: 500;
}
/* R31 (QA5 W-5): "the app did not open" after a click that came back to the page — an info note on the slate tint */
.notice {
  padding: 12px 16px;
  background: var(--info-bg);
  color: var(--fg);
  border-radius: var(--radius-card);
}
.code code {
  display: inline-block;
  padding-block: 4px;
  padding-inline: 10px;
  border-radius: var(--radius-field);
  background: var(--field);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  user-select: all;
  overflow-wrap: anywhere;
}

/* R31 (QA5 W-3): the deletion page says what is deleted one sentence a line */
.what li + li {
  margin-block-start: 6px;
}

/* the legal pages: a reading layout — a calm measure, an open line, the sections apart with a divider */
.legal {
  display: flex;
  flex-direction: column;
  gap: 28px;
  line-height: 1.75;
}
.legal h1 {
  line-height: 1.25;
}
#legal-updated {
  margin-block-start: -16px;
  font-size: 14px;
}
.legal section {
  gap: 10px;
}
.legal section + section {
  padding-block-start: 28px;
  border-block-start: 1px solid var(--divider);
}
.legal ul {
  gap: 8px;
}

/* a link on a line of its own (a target of 44 at least): the sky text, 500, a chevron towards the page's end */
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  color: var(--sky-text);
  font-weight: 500;
}
.more::after {
  content: '';
  flex: none;
  inline-size: 7px;
  block-size: 7px;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: rotate(45deg);
}
[dir='rtl'] .more::after {
  transform: rotate(-45deg);
}

/* the links of every page */
.foot {
  border-block-start: 1px solid var(--hairline);
  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;
}
/* the language link: a chip on the band — white text on the deep sky; pressed, the deep sky on white */
.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-site-band);
  font-weight: 500;
  text-decoration: none;
}
.lang:hover {
  background: var(--surface);
  color: var(--site-band);
}
.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 chip, not a link — the slate tint and its muted text */
.soon {
  background: var(--surface-muted);
  color: var(--fg-muted);
  /* R38 (QA6-B-26): a tag that cannot be pressed — a small pill, never the size or the frame of a button */
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  font-weight: 400;
  font-size: 15px;
  inline-size: auto;
  min-block-size: 0;
  padding-block: 6px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.soon:hover {
  background: var(--surface-muted);
}
.stores .button.soon {
  flex: 0 0 auto;
}

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

/* the hero: the sky tint with dark text (white text on the v2 sky would read at 2 : 1) */
.hero {
  background: var(--sky-soft);
  color: var(--fg);
  padding-block: 28px 44px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eyebrow {
  color: var(--sky-text);
  font-weight: 500;
}
.hero h1 {
  text-wrap: balance;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
}
.hero .lead {
  color: var(--fg);
}
/* the store link of the hero is the page's one primary action: the sky fill and its ink */
.hero .store {
  white-space: nowrap;
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
  box-shadow: var(--shadow-btn);
}
.hero .store:hover {
  background: var(--sky-pressed);
}
/* R38 (QA6-B-26): "בקרוב ב-…" is a tag, not a button — a chip on the sky tint: white on the deep sky (5.5 : 1) */
.hero .soon {
  background: var(--site-band);
  color: var(--on-site-band);
  border-color: transparent;
  box-shadow: none;
}
.hero .soon:hover {
  background: var(--site-band);
}
.hero-note {
  text-wrap: balance;
  color: var(--fg-muted);
  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(--hairline);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}
/* 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(--strip);
}

.steps,
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
/* a square card (spec 4.3): the hairline and the soft shadow, no coloured side */
.step,
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-soft);
}
.step p,
.card p {
  color: var(--fg-muted);
}
/* the step's number: a sky circle with the ink on it */
.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: 600;
}

/* 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 24px;
  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: 500;
}

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

/* the contact's details and the about page's: square cards */
.contact,
.details {
  margin: 0;
  display: grid;
  gap: 12px;
}
.contact div,
.details div {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-soft);
}
.contact dt,
.details dt {
  color: var(--fg-muted);
  font-size: 14px;
}
.contact dd,
.details dd {
  margin: 0;
  font-weight: 500;
}
.contact a,
.details 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: 48px 64px;
  }
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .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: 28px;
  }
  .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%;
  /* white on the deep sky: 5.5 : 1 */
  color: var(--on-site-band);
  font-size: 13px;
  line-height: 1.4;
}
.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px; /* QA2-b-17: a 44 × 44 target at 360 / 390 too */
  color: var(--on-site-band);
  font-weight: 500;
  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;
}

@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);
  }
}

/*
 * R36: "עזרה ושאלות נפוצות" — each question a native disclosure (no script): the summary is the target.
 * Design v2 (spec 7.13): one square card per group, inset dividers, a sky chevron (down closed, up open), the open
 * question in 500, the answer muted with an open line.
 */
.faq {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card-soft);
}
/* the divider between two questions, inset 16 from both edges (a background line: no pseudo element on details) */
.faq details + details > summary {
  background: linear-gradient(var(--divider), var(--divider)) no-repeat center top /
    calc(100% - 32px) 1px;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: 52px;
  padding: 14px 16px;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.faq details[open] > summary {
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  margin-inline-start: auto;
  inline-size: 9px;
  block-size: 9px;
  border-inline-end: 2px solid var(--sky-text);
  border-block-end: 2px solid var(--sky-text);
  transform: translateY(-2px) rotate(45deg);
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
/* the two borders are the inline END and the block end: in a right-to-left page that corner is the other one */
[dir='rtl'] .faq summary::after {
  transform: translateY(-2px) rotate(-45deg);
}
[dir='rtl'] .faq details[open] summary::after {
  transform: translateY(2px) rotate(135deg);
}
.faq summary:focus-visible {
  outline-offset: -3px;
}
.faq details p {
  padding: 0 16px 16px;
  color: var(--fg-muted);
  line-height: 1.55;
}
