/* Feen? website · the landing page (brain/features/landing-page/, concept A "The pin between two", direction B "Horizon"; since 2026-11-12 the hero is the match's result, drop-the-pair).
   The rules for the website are design/web/README.md. Built only from design/system/tokens.css: a token, a calc of
   tokens, or a color-mix of tokens, never a hex. Loaded after tokens.css and components.css.
   Derived values (the web display scale, the Arabic web body, the web Rank, the card radius) are set once here
   and logged as System proposals in design/web/design-notes.md. 1px = 1dp.
   Layout keys off @container on .web-board (1440 desktop, 390 phone), never @media, so both widths render in one file;
   on the real site the same rules work on a page-width wrapper. */

/* ---------- The canvas (the design file only): artboards side by side ---------- */
.web-canvas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-4xl); padding: var(--space-4xl); background: var(--limestone-200); }

/* ---------- The artboard: one whole page at one width. Never .artboard (fixed at 360 for the app). ---------- */
.web-board {
  container: web / inline-size;
  position: relative; display: flex; flex-direction: column; flex: none; overflow: clip; /* clip, not hidden: hidden would stop the pinned screens sticking */
  background: var(--color-background); color: var(--color-ink);
  font-family: var(--font-text); font-weight: 400; font-size: 16px; line-height: 24px;
}
.web-board:lang(ar) { font-size: 18px; line-height: 32px; } /* Arabic web body: Plex Arabic 2px up (concept, Tokens) */
.web-desktop { width: 1440px; }
.web-phone { width: 390px; }
.web-desktop.web-first { min-height: 900px; } /* a first-viewport artboard: the hero to the end of its form, at least the fold; data-fold slices mark the fold */
.web-phone.web-first { min-height: 844px; } /* Arabic consent can sit under the 844 fold; the artboard shows it whole (review, 2026-10-08) */
.web-og { width: 1200px; height: 630px; }

/* The derived scale lives on the board's children, so a container query on the board can change it. Desktop first. */
.web-board > * {
  --web-gutter: 120px;                          /* 1440 - 2 x 120 = a 1200 content measure */
  --web-axis: 1000px;                           /* the match's and the form's column, centred on the page's axis */
  --web-space-5xl: calc(var(--space-3xl) * 2);  /* 64: the 4px scale's large end, doubled for a page */
  --web-space-6xl: calc(var(--space-4xl) * 2);  /* 96 */
  --web-space-7xl: calc(var(--space-3xl) * 4);  /* 128: between sections at 1440 */
  --web-display-size: calc(40px * 2);           /* 2 x displayLarge: 80/96, Arabic 80/112 */
  --web-display-line: calc(48px * 2);
  --web-display-line-ar: calc(56px * 2);
  --web-section-size: 56px;                     /* 1.4 x displayLarge: 56/64, Arabic 56/80 */
  --web-section-line: 64px;
  --web-section-line-ar: 80px;
  --web-score-size: 56px;                       /* 2 x the picker card's 28 */
  --web-score-line: 64px;
  --web-cross: 96px;                            /* how far rank 1's card rises into the band */
  --web-rank: 160px;                            /* the match's Rank at web scale: 4/3 x matchRankHero (120) */
  --web-rank-cut: calc(var(--web-rank) * 0.4333); /* the share above the card's edge: the app's 52 of 120 */
  --web-rank-w: calc(var(--web-rank) * 0.7333);  /* the numeral's box: the app's 88 of 120 */
  --web-card-radius: var(--shape-2xl);
  --web-card-pad: var(--space-2xl);
}
@container web (max-width: 599px) {
  .web-board > * {
    --web-gutter: var(--space-2xl);
    --web-axis: 100%;
    --web-space-5xl: var(--space-4xl);
    --web-space-6xl: var(--web-space-5xl);
    --web-space-7xl: calc(var(--space-3xl) * 2);
    --web-display-size: 48px; --web-display-line: 56px; --web-display-line-ar: 68px;
    --web-section-size: 40px; --web-section-line: 48px; --web-section-line-ar: 56px;
    --web-score-size: 28px; --web-score-line: 36px;
    --web-cross: 56px; /* the card's top 56px sit in the band */
    --web-rank: 88px; /* the card's numeral at 390, between the onboarding miniature's 72 and the app's 120 */
    --web-card-radius: var(--shape-xl);
    --web-card-pad: var(--space-m);
  }
}

/* ---------- Web type ---------- */
.web-display { font-family: var(--font-display); font-weight: 700; font-size: var(--web-display-size); line-height: var(--web-display-line); letter-spacing: -0.01em; text-wrap: balance; }
.web-display:lang(ar) { line-height: var(--web-display-line-ar); letter-spacing: 0; }
.web-section-title { font-family: var(--font-display); font-weight: 700; font-size: var(--web-section-size); line-height: var(--web-section-line); letter-spacing: -0.01em; text-wrap: balance; color: var(--color-surface-brand); }
.web-section-title:lang(ar) { line-height: var(--web-section-line-ar); letter-spacing: 0; }
.web-band .web-section-title { color: var(--color-on-brand); }
.web-promise { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 32px; text-wrap: balance; } /* headlineSmall's size, at 500 so the pull line keeps the weight */
.web-promise:lang(ar) { line-height: 40px; }
/* A lead line under an object or a section opener: titleLarge's size at 500, on the 4px grid (20/28, Arabic 20/36). */
.web-lead { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 28px; text-wrap: pretty; }
.web-lead:lang(ar) { line-height: 36px; }
.web-body { font-size: 16px; line-height: 24px; text-wrap: pretty; }
.web-body:lang(ar) { font-size: 18px; line-height: 32px; }
.web-muted { color: var(--color-ink-muted); }
.web-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container web (max-width: 599px) {
  .web-promise { font-family: var(--font-text); font-weight: 400; font-size: 16px; line-height: 24px; } /* bodyLarge at 390 */
  .web-promise:lang(ar) { font-size: 18px; line-height: 32px; }
  .web-lead { font-size: 18px; line-height: 24px; }
  .web-lead:lang(ar) { line-height: 32px; }
}

/* ---------- The band: the Nile 800 surface from the page's top edge; its lower edge is what rank 1's card crosses ---------- */
.web-band { position: relative; padding-inline: var(--web-gutter); background: var(--color-surface-brand); color: var(--color-on-brand); }
.web-top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.web-top-home { display: inline-flex; align-items: center; min-height: 44px; }
.web-top-wordmark { display: block; height: 32px; width: auto; }
.web-top-wordmark:lang(ar) { height: 44px; } /* the فين؟ lockup is near-square: the same optical weight as the 32px Latin wordmark */
.web-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-inline-end: calc(-1 * var(--space-m)); padding-inline: var(--space-m); border-radius: var(--shape-s); color: var(--color-on-brand); font-family: var(--font-text); font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; transition: background var(--duration-quick); }
.web-lang:lang(ar) { font-size: 17px; }
.web-lang:hover { background: var(--color-on-brand-fill); }
.web-lang:focus-visible { outline: 2px solid var(--color-on-brand); outline-offset: 2px; }
@container web (max-width: 599px) {
  .web-top { height: 48px; padding-block-start: var(--space-xs); }
  .web-top-wordmark { height: 28px; }
  .web-top-wordmark:lang(ar) { height: 38px; }
}

/* ---------- The hero's type: one monumental line, then the promise and the facts as one row (direction B) ---------- */
.web-hero-band { padding-block-end: calc(var(--space-2xl) + var(--web-rank-cut) + var(--web-cross)); } /* the numeral clears the promise by 24 */
.web-hero-type { display: flex; flex-direction: column; gap: var(--space-4xl); padding-block-start: var(--space-4xl); } /* 48: the rows' height comes out of the band's top (drop-the-pair) */
.web-hero-type .web-display { white-space: nowrap; }
.web-hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: var(--web-space-5xl); align-items: end; }
@container web (max-width: 599px) {
  .web-hero-band { padding-block-end: calc(var(--space-l) + var(--web-rank-cut) + var(--web-cross)); } /* air, the numeral above the card, the crossing */
  .web-hero-type { gap: var(--space-s); padding-block-start: var(--space-s); }
  .web-facts-ground { margin-block-start: var(--space-m); row-gap: var(--space-xs); }
  .web-facts-ground:lang(ar) { line-height: 24px; }
  .web-hero-type .web-display { white-space: normal; }
  .web-hero-sub { display: block; }
}

/* ---------- The facts: one line, separated by drawn 4px dots (never "·", which reads as an Arabic zero) ---------- */
.web-facts { display: flex; flex-wrap: wrap; align-items: center; row-gap: var(--space-s); list-style: none; font-family: var(--font-text); font-weight: 500; font-size: 15px; line-height: 20px; }
.web-facts:lang(ar) { font-size: 16px; line-height: 26px; }
/* Every item opens with its dot; the list is pulled back by one dot's span and clipped there, so the dot that would open
   a line (a wrap, or the first item) is cut away and no line starts or ends with a stray dot, in either direction. */
.web-dots { --dot-span: calc(4px + 2 * var(--space-m)); margin-inline-start: calc(-1 * var(--dot-span)); clip-path: inset(-8px -8px -8px var(--dot-span)); }
[dir="rtl"] .web-dots { clip-path: inset(-8px var(--dot-span) -8px -8px); }
.web-dots > *::before { content: ""; display: inline-block; flex: none; width: 4px; height: 4px; margin-inline: var(--space-m); vertical-align: middle; border-radius: var(--shape-full); background: currentColor; opacity: 0.6; }
.web-facts > li { display: inline-flex; align-items: center; }
.web-facts .city-plate { font-size: 15px; }
/* Taste round 1: the plate in the facts is flat, without the street sign's keyline (it read as a focused chip): Nile 600 on
   the band at 1440, a Nile 50 tint with Nile 800 ink on Limestone at 390, so it sits under the form's weight. */
.web-facts .city-plate::before { display: none; }
.web-facts-ground .city-plate { background: var(--nile-50); color: var(--color-surface-brand); }
/* At 390 the facts stand under the match's rows, on Limestone. The row keeps .web-dots' pull-back: it starts one dot span before
   the gutter, so the clip cuts the opening dot and the first word sits on the 24px gutter, like the label and the cards. */
.web-facts-ground { width: calc(100% - 2 * var(--web-gutter) + var(--dot-span)); margin-block: var(--space-2xl) 0; margin-inline: calc(var(--web-gutter) - var(--dot-span)) var(--web-gutter); color: var(--color-ink); }

/* ---------- The crossing (drop-the-pair, 2026-11-12): the match's result as one picture. Rank 1's card across the band's lower
   edge, its numeral across the card's top edge in two colours (onBrand on the band, Nile 800 on the card: the app's Rank),
   then ranks 2 and 3 as bare rows on the Limestone, their rank column centred under the numeral. Not a control. ---------- */
.web-match { position: relative; z-index: 1; width: min(var(--web-axis), calc(100% - 2 * var(--web-gutter))); margin: calc(-1 * var(--web-cross)) auto 0; }
/* The card: tag and area beside the numeral's foot, the name and Good for under them, the score and its raters at the end edge. */
.picker-card-web { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: var(--space-2xl); row-gap: var(--space-m); min-width: 0; padding: var(--web-card-pad); border: 1px solid var(--color-outline); border-radius: var(--web-card-radius); background: var(--color-surface); color: var(--color-ink); cursor: default; }
.picker-card-web .picker-name { font-size: 36px; line-height: 44px; letter-spacing: -0.01em; text-wrap: balance; }
.picker-card-web .picker-name:lang(ar) { line-height: 56px; letter-spacing: 0; }
.web-card-line { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; min-height: 28px; margin-inline-start: var(--web-card-indent); color: var(--color-ink-muted); font-size: 16px; line-height: 24px; }
.web-card-area { display: flex; align-items: center; } /* the tag keeps the dot rule's first item; area and distance follow on drawn dots */
.web-card-line .cat-tag { margin-inline-end: var(--space-m); }
.picker-card-web { --web-card-indent: calc(var(--web-rank-w) + var(--space-s) - var(--web-card-pad) / 2); } /* the column beside the numeral */
.web-card-body { grid-column: 1; display: flex; flex-direction: column; gap: var(--space-s); margin-inline-start: var(--web-card-indent); } /* at 1440 the name stands beside the numeral's foot, never under it */
.web-card-good { display: flex; gap: var(--space-m); color: var(--color-ink); }
.web-card-good > :first-child { color: var(--color-ink-muted); }
.web-score-row { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; color: var(--color-ink-muted); text-align: end; white-space: nowrap; }
.web-score { font-family: var(--font-display); font-weight: 700; font-size: var(--web-score-size); line-height: var(--web-score-line); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.web-rank { position: absolute; inset-block-start: calc(-1 * var(--web-rank-cut)); inset-inline-start: calc(var(--web-card-pad) / 2); width: var(--web-rank-w); height: var(--web-rank); font-family: var(--font-display); font-weight: 700; font-size: var(--web-rank); line-height: var(--web-rank); letter-spacing: -0.04em; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }
.web-rank > span { position: absolute; inset: 0; }
.web-rank-top { color: var(--color-on-brand); background: var(--color-surface-brand); clip-path: inset(0 0 calc(100% - var(--web-rank-cut)) 0); } /* its own Nile backing, as the app's */
.web-rank-foot { color: var(--color-surface-brand); clip-path: inset(var(--web-rank-cut) 0 0 0); }
.web-rows { display: flex; flex-direction: column; margin: var(--space-s) 0 0; padding: 0; list-style: none; }
.web-row { display: grid; grid-template-columns: var(--web-rank-w) auto minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--space-l); padding: var(--space-2xs) var(--web-card-pad) var(--space-2xs) calc(var(--web-card-pad) / 2); color: var(--color-surface-brand); }
.web-row-rank { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.web-row-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; }
.web-row-name:lang(ar) { line-height: 36px; }
.web-row-area { color: var(--color-ink-muted); font-size: 16px; line-height: 24px; }
.web-row-score { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 36px; font-variant-numeric: tabular-nums; }
@container web (max-width: 599px) {
  .picker-card-web { column-gap: var(--space-m); row-gap: var(--space-xs); }
  .picker-card-web .picker-name { font-size: 22px; line-height: 28px; letter-spacing: 0; }
  .picker-card-web .picker-name:lang(ar) { line-height: 36px; }
  .web-card-line { align-content: flex-start; min-height: calc(var(--web-rank) - var(--web-rank-cut) - var(--web-card-pad)); } /* at 390 the line holds the numeral's foot; the name runs under it, full width */
  .web-card-body { margin-inline-start: 0; }
  .web-score-row { font-size: 13px; line-height: 16px; }
  .web-score-row:lang(ar) { font-size: 14px; line-height: 20px; }
  .web-rows { margin-block-start: 0; }
  .web-row { column-gap: var(--space-s); padding-block: var(--space-xs); }
  .web-row-rank { font-size: 20px; line-height: 24px; }
  .web-row-name { font-size: 15px; line-height: 20px; }
  .web-row-name:lang(ar) { line-height: 24px; }
  .web-row-area { font-size: 13px; line-height: 16px; }
  .web-row-score { font-size: 17px; line-height: 22px; }
}
/* The lift (concept, web): once on first paint the card rises 16px out of the rows on easing.land; at rest it is drawn
   lifted, nothing hidden, fill-mode backwards (held low through the pause). The design file replays it on hovering an artboard; the og image is a still. */
.web-hero-card { animation: web-lift var(--duration-emphasized) var(--easing-land) var(--duration-standard) backwards; } /* backwards: held 16px low through the 250ms pause, so it never jumps down before rising (motion pass) */
@keyframes web-lift { from { transform: translateY(var(--space-l)); } }
.web-canvas .web-hero-card { animation-name: none; }
.web-canvas .web-board:not(.web-og):hover .web-hero-card { animation-name: web-lift; }
@media (prefers-reduced-motion: reduce) { .web-hero-card { animation: none !important; } }

/* ---------- The action column under the match: the form, the stub or the launch plate ---------- */
.web-action { width: min(var(--web-axis), calc(100% - 2 * var(--web-gutter))); margin: var(--space-2xl) auto 0; } /* 24 under the rows (drop-the-pair: the rows took the pair's 64) */
/* The stub has no label over it, so at 1440 it stands 8 under the rows (their own 4px foot), which keeps joined_next above the 900 fold in Arabic. */
.web-action-stub { margin-block-start: var(--space-s); }
@container web (max-width: 599px) { .web-action, .web-action-stub { margin-block-start: var(--space-m); } }

/* ---------- The waitlist form: label, then field, Just me / My crew and Join as one row (direction B), consent under ---------- */
.web-form { display: flex; flex-direction: column; gap: var(--space-m); }
.web-form-label { margin-block-end: calc(-1 * var(--space-xs)); font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 20px; color: var(--color-ink); } /* 8 to its field, as .field-group */
.web-form-label:lang(ar) { font-size: 16px; line-height: 26px; }
.web-form-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-m); }
.web-form-row > .web-form-note { flex-basis: 100%; order: 9; } /* the error sits under the row at 1440, straight under the field at 390 */
.web-field { flex: 1; min-width: 0; font-size: 16px; line-height: 24px; color: var(--color-ink-subtle); outline: none; transition: border-color var(--duration-quick); }
.web-field:lang(ar) { font-size: 17px; line-height: 26px; }
/* The value is an <input>'s one line, LTR in both languages: a long address shows its start and ends in an ellipsis, as
   an unfocused email input can; it never wraps. The whole address is printed on the stub. */
.web-field-value { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--color-ink); }
.web-field-value bdi { unicode-bidi: isolate; }
.web-field .field-caret { display: inline-block; height: 22px; margin: 0 0 0 var(--space-2xs); vertical-align: -5px; } /* inside the LTR run, so it ends the address in Arabic too */
.web-field.field-error { padding-inline: calc(var(--space-l) - 1px); }
.web-join { min-width: 160px; }
.web-join, .web-share { transition: background var(--duration-quick), opacity var(--duration-quick); } /* the hover tone on duration.quick, as the launch plate's */
.web-choice { flex: none; }
/* Taste round 1: on Limestone the track is a well (level -1, the 1.5px lip) and the labels are ink at 600, so the resting
   control reads "empty, choose one", not disabled (ink on the well about 14:1). The band keeps .segmented-brand. */
.web-choice:not(.segmented-brand) { background: var(--well); box-shadow: var(--well-lip); }
.web-choice:not(.segmented-brand) .segment:not(.segment-selected) { color: var(--color-ink); }
.web-choice .segment { padding-inline: var(--space-xl); font-size: 15px; line-height: 20px; }
.web-choice .segment:lang(ar) { line-height: 22px; }
/* Kept and read-only while sending (#sending): the chosen segment stays, nothing answers the pointer. The other steps back
   to inkMuted on the well (about 6:1), onBrand at 80% on the band (about 5.9:1, as components.css counts). */
.web-choice[aria-readonly="true"] .segment { cursor: default; }
.web-choice[aria-readonly="true"]:not(.segmented-brand) .segment:not(.segment-selected) { color: var(--color-ink-muted); }
.web-band .web-choice.segmented-brand[aria-readonly="true"] .segment:not(.segment-selected) { color: color-mix(in srgb, var(--color-on-brand) 80%, transparent); }
.web-consent { color: var(--color-ink-muted); font-size: 14px; line-height: 20px; text-wrap: pretty; }
.web-consent:lang(ar) { font-size: 15px; line-height: 24px; }
/* The inline Privacy policy link: a 44px hit area centred on its inline box (the font's ascent and descent, not the
   20/24 line), so it holds in both scripts without moving the line; the focus ring stays on the words. At 1440 it meets Join's edge (0px EN, 2px AR) without overlapping it. */
.web-consent .web-link { position: relative; }
.web-consent .web-link::after { content: ""; position: absolute; inset-inline: -4px; inset-block-start: calc(50% - 22px); block-size: 44px; }
.web-link { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; border-radius: var(--shape-xs); }
/* A line tied to the form: the error next to the field, or "nothing was sent" under the row. Icon + words, never colour alone. */
.web-form-note { display: flex; align-items: flex-start; gap: var(--space-s); font-size: 15px; line-height: 20px; color: var(--color-ink); }
.web-form-note:lang(ar) { font-size: 16px; line-height: 26px; }
.web-form-note .icon { font-size: 20px; flex: none; }
.web-form-note:lang(ar) .icon { margin-block-start: var(--space-2xs); }
.web-form-note-error { color: var(--color-error); font-weight: 500; }
.web-form-note-quiet .icon { color: var(--color-ink-muted); }
.web-form-note-failed .icon { color: var(--color-error); }
@container web (max-width: 599px) {
  /* At 390: label, the field full width, then Just me / My crew beside Join (fill, choose, send in reading order), consent. */
  .web-form-row > .web-form-note { order: 0; }
  .web-field { flex: 1 0 100%; }
  .web-choice { flex: 1; min-width: 0; }
  .web-choice .segment { padding-inline: var(--space-s); }
  .web-join { flex: none; min-width: 0; }
  .web-consent:lang(ar) { font-size: 14px; line-height: 22px; }
}

/* Hover and keyboard focus. The real rules, and the same declarations as static classes (.is-hover, .is-focus) so an
   artboard can draw the state: one focus ring from the tokens (2px primary, 2px off), onBrand on the Nile 800 band. */
.web-field:hover, .web-field.is-hover { border-color: var(--color-ink-muted); }
.web-field:focus-within, .web-field.is-focus,
.web-join:focus-visible, .web-join.is-focus,
.web-share:focus-visible, .web-share.is-focus,
.web-choice .segment:focus-visible, .web-choice .segment.is-focus,
.web-launch-plate:focus-visible, .web-launch-plate.is-focus,
.web-stub-caption:focus-visible, .web-stub-caption.is-focus,
.web-link:focus-visible, .web-footer a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* Share and the caption sit on the white stub, so they keep the primary ring on the band too. */
.web-band .web-field:focus-within, .web-band .web-field.is-focus, .web-band .web-join:focus-visible, .web-band .web-join.is-focus,
.web-band .web-choice .segment:focus-visible, .web-band .web-choice .segment.is-focus,
.web-band .web-launch-plate:focus-visible, .web-band .web-launch-plate.is-focus,
.web-band .web-link:focus-visible { outline-color: var(--color-on-brand); }
/* Join's hover: one step deeper Saffron (accent toward Saffron 500), never a glow; ink on it stays above 6:1. */
.web-join:hover:not(.btn-busy), .web-join.is-hover, .web-share:hover, .web-share.is-hover, .web-launch-plate:hover, .web-launch-plate.is-hover { background: color-mix(in srgb, var(--color-accent) 60%, var(--saffron-500)); }
.web-choice:not([aria-readonly="true"]) .segment:hover:not(.segment-selected) { background: color-mix(in srgb, var(--color-surface-raised) 50%, transparent); color: var(--color-ink); }
.web-link:hover { text-decoration-thickness: 2.5px; }

/* The form on the closing Nile 800 band: onBrand words, the brand segmented control, the same white field and Saffron Join. */
.web-band .web-form-label, .web-band .web-consent, .web-band .web-form-note { color: var(--color-on-brand); }
.web-band .web-link { color: var(--color-on-brand); }
.web-band .web-form-note-quiet .icon, .web-band .web-form-note-failed .icon { color: var(--color-on-brand); } /* error red is about 2.2:1 on Nile 800 */
.web-band .web-field:not(.field-error):not(:hover):not(.is-hover) { border-color: transparent; } /* the error border and the hover still show */
.web-band .web-choice.segmented-brand:not([aria-readonly="true"]) .segment:not(.segment-selected):hover { background: var(--color-on-brand-fill); color: var(--color-on-brand); }

/* ---------- The stub (#joined, #already): the ticket's tear-off stub alone, at the form's footprint ---------- */
/* .invite-ticket-stub's surface. At 1440 (taste round 1) the seam sits 24px under the top edge: two whole 16px half-circle
   notches cut the sides there, the perforation runs between them, and the caption starts 24px under it, so it reads as
   a ticket at page scale. At 390 the seam is the top edge (12px notches at the corners), which keeps the fold.
   It wears .invite-ticket-lift (the ticket's one tight shadow) so its cut edge reads on Limestone. */
.web-stub-wrap { display: flex; flex-direction: column; gap: var(--space-m); }
.web-stub { --notch: var(--space-l); --tear: var(--space-2xl); --perf-y: calc(var(--tear) - 1px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-2xl); row-gap: var(--space-l); padding: calc(var(--tear) + 1px + var(--space-2xl)) var(--space-3xl) var(--space-xl); border-radius: var(--shape-xs) var(--shape-xs) var(--shape-l) var(--shape-l); background: var(--color-surface); color: var(--color-ink);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--tear), transparent calc(var(--notch) - 0.5px), black var(--notch)), radial-gradient(circle var(--notch) at 100% var(--tear), transparent calc(var(--notch) - 0.5px), black var(--notch));
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 var(--tear), transparent calc(var(--notch) - 0.5px), black var(--notch)), radial-gradient(circle var(--notch) at 100% var(--tear), transparent calc(var(--notch) - 0.5px), black var(--notch));
  mask-composite: intersect; }
.web-stub-text { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.web-stub-caption { align-self: flex-start; margin-inline: calc(-1 * var(--space-xs)); padding-inline: var(--space-xs); border-radius: var(--shape-xs); display: flex; align-items: center; gap: var(--space-s); color: var(--color-primary); font-weight: 600; font-size: 15px; line-height: 20px; }
.web-stub-caption:lang(ar) { font-size: 16px; line-height: 26px; }
.web-stub-caption .icon { font-size: 20px; }
.web-stub-address { color: var(--color-surface-brand); font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.web-stub-address bdi { unicode-bidi: isolate; }
[dir="rtl"] .web-stub-address { text-align: right; } /* the address is dir=ltr; on the Arabic page it keeps the caption's edge */
.web-share { text-decoration: none; }
.web-share .icon { font-size: 20px; }
/* The tear: a perforation of 2px dots along the stub's top edge, between the notches. */
.web-stub { position: relative; }
.web-stub::before { content: ""; position: absolute; inset-block-start: var(--perf-y); inset-inline: calc(var(--notch) + var(--space-xs)); height: 2px; background: radial-gradient(circle at 1px 1px, var(--color-outline-control) 1px, transparent 1.5px) 0 0 / 8px 2px repeat-x; }
.web-stub-next { max-width: 720px; }
/* The landing (motion pass, motion.md, moment 3): when the answer comes back the stub takes the form's footprint and is
   set down once, from 16px above and tipped 1.5 degrees (its inline-end corner high), on duration.emphasized with
   easing.land, the shadow travelling with it. Transform only: frame 0 is the whole stub. On the site the result unhides
   the stub (display none to shown), which starts it; the design file replays it on hovering an artboard. */
.web-stub-wrap > .invite-ticket-lift { --tilt: -1; animation: web-stub-land var(--duration-emphasized) var(--easing-land); }
[dir="rtl"] .web-stub-wrap > .invite-ticket-lift { --tilt: 1; }
@keyframes web-stub-land { from { transform: translateY(calc(-1 * var(--space-l))) rotate(calc(var(--tilt) * 1.5deg)); } }
.web-canvas .web-stub-wrap > .invite-ticket-lift { animation-name: none; }
.web-canvas .web-board:hover .web-stub-wrap > .invite-ticket-lift { animation-name: web-stub-land; }
@media (prefers-reduced-motion: reduce) { .web-stub-wrap > .invite-ticket-lift { animation: none !important; } }
@container web (max-width: 599px) {
  .web-stub { --notch: var(--space-m); --tear: 0px; --perf-y: var(--space-xs); grid-template-columns: minmax(0, 1fr); row-gap: var(--space-m); padding: var(--space-xl) var(--space-l) var(--space-l); border-radius: 0 0 var(--shape-l) var(--shape-l); }
  .web-stub-address { font-size: 16px; line-height: 24px; letter-spacing: 0; } /* 16 so the long sample's name holds one line before the @ (302 of 310px) */
  .web-share { width: 100%; }
}

/* ---------- The launch plate (#launch): an accent plate holding the unaltered Google Play badge; the plate is the link ---------- */
/* The badge here is a stand-in at the official badge's proportions (black plate, the Play glyph, Google's words); the
   build swaps in Google's own artwork. Plate 72 at 1440 and 64 at 390, so the badge keeps a quarter of its height clear. */
.web-launch-row { display: flex; justify-content: center; }
.web-launch-plate { display: inline-flex; align-items: center; justify-content: center; min-height: 72px; padding: var(--space-m) var(--space-3xl); border-radius: var(--shape-l); background: var(--color-accent); text-decoration: none; transition: background var(--duration-quick); }
.web-play-badge { display: inline-flex; align-items: center; gap: var(--space-s); height: 48px; padding-inline: var(--space-m) var(--space-l); border: 1px solid var(--limestone-500); border-radius: var(--shape-s); background: var(--limestone-950); color: var(--color-surface); direction: ltr; }
.web-play-badge .icon { font-family: "Phosphor-Fill"; font-size: 30px; }
.web-play-words { display: flex; flex-direction: column; font-family: var(--font-text); }
.web-play-small { font-size: 10px; line-height: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.web-play-small:lang(ar) { text-transform: none; letter-spacing: 0; font-size: 11px; line-height: 14px; }
.web-play-big { font-size: 20px; line-height: 22px; font-weight: 500; letter-spacing: -0.01em; }
.web-band .web-launch-row { justify-content: flex-start; }
@container web (max-width: 599px) {
  .web-launch-plate { min-height: 64px; padding: var(--space-m) var(--space-2xl); }
  .web-play-badge { height: 40px; }
  .web-play-badge .icon { font-size: 26px; }
  .web-play-big { font-size: 17px; line-height: 20px; }
}

/* ---------- Sections below the hero ---------- */
.web-section { padding: var(--web-space-7xl) var(--web-gutter); }

/* How it works: three of the app's own objects, side by side at 1440 and stacked at 390, each over one line. */
.web-how-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--web-space-5xl); margin-block-start: var(--web-space-5xl); }
.web-how-item { display: flex; flex-direction: column; gap: var(--space-2xl); margin: 0; }
.web-how-stage { display: flex; align-items: flex-end; height: 216px; }
.web-how-stage > * { flex: 1; min-width: 0; }
.web-how-text { display: flex; flex-direction: column; gap: var(--space-s); color: var(--color-surface-brand); }
/* A small standing picker card (the keep and pick objects). */
.web-card-small { display: flex; flex-direction: column; gap: var(--space-s); padding: var(--space-xl); border: 1px solid var(--color-outline); border-radius: var(--shape-xl); background: var(--color-surface); color: var(--color-ink); }
.web-card-small .cat-tag { align-self: flex-start; }
.web-card-small .picker-name { font-size: 22px; line-height: 28px; }
.web-card-small .picker-name:lang(ar) { line-height: 36px; }
.web-card-small .web-score-row { flex-direction: row; align-items: baseline; justify-content: flex-start; text-align: start; gap: var(--space-s); margin-block-start: var(--space-xs); font-size: 14px; line-height: 20px; }
.web-card-small .web-score { font-size: 40px; line-height: 48px; }
/* Keep: the card on top of its list, two more sheets of it showing behind (the list, not more content). */
.web-keep { position: relative; padding-block-start: var(--space-xl); }
.web-keep-sheet { position: absolute; inset-inline: var(--space-2xl); inset-block-start: 0; height: 40px; border: 1px solid var(--color-outline); border-radius: var(--shape-xl) var(--shape-xl) 0 0; background: var(--color-surface); }
.web-keep-sheet + .web-keep-sheet { inset-inline: var(--space-m); inset-block-start: var(--space-s); }
.web-keep .web-card-small { position: relative; }
/* Pick: the match's hero at card scale, its numeral crossing the card's top edge (drop-the-pair, 2026-11-12); on the Limestone
   both halves are Nile 800, so the card's edge is what it crosses. */
.web-pick { --web-rank: 72px; --web-rank-cut: calc(var(--web-rank) * 0.4333); --web-rank-w: calc(var(--web-rank) * 0.7333); --web-card-pad: var(--space-xl); position: relative; }
.web-pick .web-rank { z-index: 1; inset-block-start: calc(-1 * var(--web-rank-cut)); }
.web-pick .web-rank-top { color: var(--color-surface-brand); background: none; }
.web-pick .web-card-small > .cat-tag { margin-inline-start: calc(var(--web-rank-w) + var(--space-s) - var(--web-card-pad) / 2); }
/* Crew: the invite link as it lands in a chat, a plain sent bubble (no WhatsApp chrome), its link preview on top. */
.web-bubble { display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-s) var(--space-s) var(--space-l); border: 1px solid var(--color-outline); border-radius: var(--shape-xl); border-end-end-radius: var(--shape-xs); background: var(--color-surface); color: var(--color-ink); }
.web-bubble-preview { display: flex; align-items: center; gap: var(--space-m); padding: var(--space-m); border-radius: var(--shape-m); background: var(--color-surface-brand); color: var(--color-on-brand); }
.web-bubble-preview .crest { width: 56px; height: 56px; color: var(--color-on-brand); transform: rotate(-8deg); }
.web-bubble-preview-text { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.web-bubble-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 24px; }
.web-bubble-title:lang(ar) { line-height: 30px; }
.web-bubble-line { font-size: 14px; line-height: 20px; }
.web-bubble-line:lang(ar) { line-height: 24px; }
.web-bubble-text { padding-inline: var(--space-s); font-size: 16px; line-height: 24px; text-wrap: pretty; }
.web-bubble-text:lang(ar) { font-size: 17px; line-height: 28px; }
.web-bubble-url { display: block; color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@container web (max-width: 599px) {
  .web-how-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4xl); margin-block-start: var(--space-3xl); }
  .web-how-stage { height: auto; }
}

/* What makes it different: a full-bleed Nile 50 tint band; the opener at the start, four points two by two, as type. */
.web-diff { background: var(--nile-50); }
.web-diff-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: var(--web-space-6xl); }
.web-diff-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--web-space-5xl); row-gap: var(--web-space-5xl); list-style: none; padding-block-start: var(--space-s); }
.web-diff-point { display: flex; flex-direction: column; gap: var(--space-s); }
.web-diff-point h3 { color: var(--color-surface-brand); }
@container web (max-width: 599px) {
  .web-diff-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3xl); }
  .web-diff-points { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3xl); padding: 0; }
}

/* Who it is for: three personas at equal size, each led by an object that means something in the app. */
.web-who-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--web-space-5xl); margin-block-start: var(--web-space-5xl); list-style: none; }
.web-who-item { display: flex; flex-direction: column; gap: var(--space-s); }
/* Taste round 1: the three objects are one height (--who-h) and stand on one floor line, the box's foot. The crest and
   the chair are cropped to their drawn extent (viewBox), so the Saffron arcs touch the floor and the tops align with the
   wells' top. The crest stands upright here: its arc is the floor. */
.web-who-row { --who-h: 120px; --who-well: 36px; --who-well-gap: var(--space-s); }
.web-who-object { display: flex; align-items: flex-end; height: var(--who-h); margin-block-end: var(--space-2xl); }
.web-who-crest { height: var(--who-h); width: auto; aspect-ratio: 30.5 / 33.25; color: var(--color-primary); }
.web-who-chair { height: var(--who-h); width: auto; aspect-ratio: 30.5 / 38.5; }
.web-who-wells { display: flex; flex-direction: column; justify-content: space-between; gap: var(--who-well-gap); height: var(--who-h); width: 176px; }
.web-who-wells > span { display: flex; align-items: center; height: var(--who-well); padding-inline: var(--space-s); border-radius: var(--shape-s); background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-muted); }
.web-who-wells .icon { font-size: 16px; } /* the add chip's plus: a hollow to fill, not a loading bar */
.web-who-item h3 { color: var(--color-surface-brand); }
.web-who-where { margin-block-start: var(--web-space-5xl); color: var(--color-surface-brand); }
@container web (max-width: 599px) {
  .web-who-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3xl); margin-block-start: var(--space-3xl); }
  .web-who-row { --who-h: 88px; --who-well: 24px; }
  .web-who-object { margin-block-end: var(--space-m); }
  .web-who-wells { width: 152px; }
}

/* The action, again: a full-bleed Nile 800 band holding the same form. */
.web-end-inner { display: flex; flex-direction: column; width: min(var(--web-axis), 100%); padding-block: var(--web-space-6xl); } /* on the page column's inline-start, like every section above (taste round 1) */
.web-end-line { max-width: 640px; margin-block-start: var(--space-l); color: var(--color-on-brand); }
.web-end-inner .web-form, .web-end-inner .web-stub-wrap, .web-end-inner .web-launch-row { margin-block-start: var(--space-4xl); }
.web-end-inner .web-stub-next { color: var(--color-on-brand); }
@container web (max-width: 599px) { .web-end-inner { padding-block: var(--space-4xl); } .web-end-inner .web-form, .web-end-inner .web-stub-wrap, .web-end-inner .web-launch-row { margin-block-start: var(--space-3xl); } }

/* Footer: one quiet row on Limestone at 1440, stacked at 390. No columns, no rules, no giant wordmark. */
.web-footer { display: flex; align-items: center; gap: var(--space-3xl); padding: var(--space-4xl) var(--web-gutter); color: var(--color-ink-muted); font-size: 14px; line-height: 20px; }
.web-footer:lang(ar) { font-size: 15px; line-height: 24px; }
.web-footer-wordmark { display: block; height: 24px; width: auto; }
.web-footer-wordmark:lang(ar) { height: 32px; }
.web-footer-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-2xl); }
.web-footer a { display: inline-flex; align-items: center; min-height: 44px; min-inline-size: 44px; /* 44px hit area both ways; the word stays on the gutter (review, 2026-10-08) */ color: var(--color-ink); text-decoration: none; border-radius: var(--shape-xs); }
.web-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.web-footer .web-lang { color: var(--color-ink); margin-inline-end: 0; }
.web-footer .web-lang:hover { background: var(--state-wash); text-decoration: none; }
.web-footer-end { display: flex; align-items: center; gap: var(--space-2xl); margin-inline-start: auto; }
@container web (max-width: 599px) {
  .web-footer { flex-direction: column; align-items: flex-start; gap: var(--space-l); padding-block: var(--space-3xl) var(--space-4xl); }
  .web-footer-links { column-gap: var(--space-xl); }
  .web-footer-end { margin-inline-start: 0; gap: var(--space-xl); }
  .web-footer .web-lang { margin-inline-start: calc(-1 * var(--space-m)); }
}

/* ---------- The link preview image (og:image), 1200 x 630: the band, rank 1's card crossing it, ranks 2 and 3 beside its foot ---------- */
/* Filled to thumbnail scale (taste round 1, kept): the card runs 64px from the start, the band's edge sits at half height, and the
   card's foot stands 64px over the bottom edge; the rows take the end column on the Limestone, foot-aligned with the card. */
.web-og > * { --og-band: 316px; --web-gutter: var(--web-space-5xl); --web-axis: calc(1200px - 2 * var(--web-gutter)); --web-cross: 196px; --web-rank: 200px; --web-rank-cut: calc(var(--web-rank) * 0.4333); --web-rank-w: calc(var(--web-rank) * 0.7333); --web-score-size: 112px; --web-score-line: 112px; --web-card-pad: var(--space-3xl); }
.web-og-band { height: var(--og-band); flex: none; }
.web-og .web-match { display: grid; grid-template-columns: minmax(0, 1fr) 304px; column-gap: var(--space-2xl); align-items: end; }
.web-og .picker-card-web { min-height: calc(630px - var(--web-space-5xl) - var(--og-band) + var(--web-cross)); }
.web-og .picker-card-web .picker-name { font-size: 48px; line-height: 56px; overflow-wrap: normal; }
.web-og .picker-card-web .picker-name:lang(ar) { line-height: 72px; }
.web-og .web-score-row { font-size: 24px; line-height: 32px; }
.web-og .web-score-row:lang(ar) { font-size: 24px; line-height: 36px; }
.web-og .web-rows { margin: 0; }
.web-og .web-row { --web-rank-w: 40px; padding-inline: 0; column-gap: var(--space-m); grid-template-columns: var(--web-rank-w) minmax(0, 1fr) auto; }
.web-og .web-row-area { display: none; } /* the end column holds rank, name and score at thumbnail scale; the label still says the area */

/* ---------- The Privacy policy page (src/privacy.py): a reading page on the viewport, not an artboard ---------- */
.doc { --web-gutter: 120px; --web-display-size: 80px; --web-display-line: 96px; --web-display-line-ar: 112px; margin: 0; background: var(--color-background); color: var(--color-ink); font-family: var(--font-text); font-size: 17px; line-height: 28px; }
.doc:lang(ar) { font-size: 18px; line-height: 32px; }
.doc-band { padding-block-end: calc(var(--space-4xl) * 2); }
.doc-hero { display: flex; flex-direction: column; align-items: flex-start; padding-block-start: var(--space-4xl); }
.doc-lead { max-width: 640px; margin: var(--space-2xl) 0 0; }
.doc-updated { margin: var(--space-2xl) 0 0; font-size: 15px; line-height: 24px; color: var(--nile-200); }
.doc-wrap { display: grid; grid-template-columns: 240px minmax(0, 760px); column-gap: 80px; padding: calc(var(--space-4xl) * 2) var(--web-gutter); }
.doc-toc { position: sticky; top: var(--space-3xl); align-self: start; }
.doc-toc-title { margin: 0 0 var(--space-s); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--color-ink-muted); }
.doc-toc ul { margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: flex; align-items: center; min-height: 44px; margin-inline: calc(-1 * var(--space-m)); padding-inline: var(--space-m); border-radius: var(--shape-s); color: var(--color-ink); font-size: 15px; line-height: 20px; text-decoration: none; }
.doc-toc a:hover { background: var(--state-wash); color: var(--color-primary); }
.doc-toc a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.doc-section { scroll-margin-top: var(--space-3xl); padding-block-end: calc(var(--space-4xl) + var(--space-l)); }
.doc-section:last-child { padding-block-end: 0; }
.doc-section h2 { margin: 0 0 var(--space-xl); font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; color: var(--color-surface-brand); }
.doc-section h2:lang(ar) { line-height: 44px; letter-spacing: 0; }
.doc-section p { max-width: 680px; margin: 0 0 var(--space-l); text-wrap: pretty; }
.doc-section p:last-child { margin-block-end: 0; }
.doc-section p.doc-short { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 34px; margin-block-end: var(--space-xl); text-wrap: balance; }
.doc-section p.doc-short:lang(ar) { line-height: 42px; }
.doc-dl { margin: 0; }
.doc-dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--space-3xl); padding-block: var(--space-l); }
.doc-dl > div:first-child { padding-block-start: 0; }
.doc-dl dt { font-weight: 600; color: var(--color-surface-brand); }
.doc-dl dd { margin: 0; max-width: 520px; text-wrap: pretty; }
@media (max-width: 720px) {
  .doc { --web-gutter: var(--space-2xl); font-size: 16px; line-height: 26px; }
  .doc:lang(ar) { font-size: 17px; line-height: 30px; }
  .doc-band { padding-block-end: var(--space-4xl); }
  .doc-hero { padding-block-start: var(--space-3xl); }
  .doc-title { font-size: 40px; line-height: 48px; }
  .doc-title:lang(ar) { line-height: 60px; }
  .doc-wrap { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-4xl); }
  .doc-toc { display: none; }
  .doc-section p.doc-short { font-size: 20px; line-height: 28px; }
  .doc-section p.doc-short:lang(ar) { line-height: 36px; }
  .doc-dl > div { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .doc .web-footer { flex-direction: column; align-items: flex-start; gap: var(--space-l); padding-block: var(--space-3xl) var(--space-4xl); }
  .doc .web-footer-links { column-gap: var(--space-xl); }
  .doc .web-footer-end { margin-inline-start: 0; }
}

/* ---------- Landing v2 (owner, 2026-11-08): Google Play live, the App Store coming, gymfactor.app's section order in
   Feen's brand. Nile and Saffron (ledger row 120): Nile 800 type, pins and edges; Saffron only on the decision tap and the rating. ---------- */
.lp-top { display: flex; align-items: center; justify-content: space-between; height: 72px; padding-inline: var(--web-gutter); }
.lp-lang { color: var(--color-ink); }
.lp-lang:hover { background: var(--state-wash); }
.lp-lang:focus-visible { outline-color: var(--color-primary); }
.lp-hero-type { display: flex; flex-direction: column; gap: var(--space-3xl); padding: var(--web-space-5xl) var(--web-gutter) 0; }
.lp-h1 { color: var(--color-surface-brand); } /* two sentences, inline when they fit, else one per line: .lp-line never breaks inside one */
.lp-hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--web-space-5xl); align-items: end; }
.lp-promise { max-width: 600px; color: var(--color-ink); }
.lp-promise b { font-weight: 700; color: var(--color-surface-brand); }
.lp-hero-act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); }
.lp-hero-act .web-facts { width: auto; margin-block: 0; margin-inline: calc(-1 * var(--dot-span)) 0; color: var(--color-ink-muted); }

.lp-stores { display: flex; flex-wrap: wrap; gap: var(--space-m); }
.lp-badge { display: inline-flex; align-items: center; gap: var(--space-s); height: 56px; padding-inline: var(--space-l) var(--space-xl); border-radius: var(--shape-m); text-decoration: none; direction: ltr; transition: background var(--duration-quick), color var(--duration-quick); }
.lp-badge .icon { font-size: 28px; }
.lp-badge-words { display: flex; flex-direction: column; font-family: var(--font-text); }
.lp-badge-small { font-size: 12px; line-height: 16px; font-weight: 500; }
.lp-badge-big { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.lp-badge-play { background: var(--limestone-950); color: var(--color-surface); }
.lp-badge-play:hover { background: var(--color-surface-brand); }
.lp-badge-soon { background: var(--well); box-shadow: var(--well-lip); color: var(--color-ink-muted); }
.lp-badge-soon:hover { color: var(--color-ink); }
.lp-badge:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.lp-section { padding: var(--web-space-7xl) var(--web-gutter) 0; }
.lp-h2 { max-width: 900px; }
.lp-h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; color: var(--color-ink); text-wrap: balance; }
.lp-h3:lang(ar) { line-height: 40px; letter-spacing: 0; }

.lp-step-tile { display: flex; justify-content: center; height: 380px; overflow: hidden; padding: var(--space-3xl) var(--space-2xl) 0; border-radius: var(--web-card-radius); background: var(--color-surface-brand-tint); }
.lp-step-shot { display: block; width: 100%; max-width: 220px; height: auto; align-self: flex-start; border: 1px solid color-mix(in srgb, var(--color-surface-brand) 14%, transparent); border-block-end: 0; border-radius: var(--shape-xl) var(--shape-xl) 0 0; }
.lp-step-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-m); row-gap: var(--space-xs); }
.lp-step-text > :not(.lp-step-n) { grid-column: 2; }
.lp-step-n { grid-row: 1 / 3; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 40px; color: var(--color-primary); font-variant-numeric: tabular-nums; }



.lp-ios { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--web-space-5xl); align-items: start; }
.lp-ios-head { display: flex; flex-direction: column; gap: var(--space-l); }
.lp-ios-mark { display: block; margin-block-end: var(--space-l); font-size: 48px; color: var(--color-surface-brand); }
.lp-ios-frame { padding: var(--space-3xl); border: 1px solid var(--color-outline); border-radius: var(--web-card-radius); background: var(--color-surface); }
.lp-ios-frame:has(.web-stub-wrap) { padding: 0; border: 0; background: none; }
.lp-part > .lp-ios { padding-block: var(--web-space-5xl); }

.lp-end { display: flex; flex-direction: column; gap: var(--space-l); padding-block-end: var(--web-space-6xl); }
.lp-end-title { color: var(--color-surface-brand); }
.lp-line { display: inline-block; } /* a long line wraps between its sentences, never inside one */
.lp-end .lp-stores { margin-block-start: var(--space-2xl); }

/* The pinned screen (gymfactor.app's scrolling showcase): the screen sticks while the steps pass; the step in the
   middle of the window lights and slides its screenshot in. Steps stay readable at rest. */
.lp-scrolly-body { display: grid; grid-template-columns: 440px minmax(0, 1fr); column-gap: var(--web-space-6xl); align-items: start; margin-block-start: var(--web-space-5xl); }
.lp-scrolly-flip .lp-scrolly-body { grid-template-columns: minmax(0, 1fr) 440px; }
.lp-scrolly-flip .lp-scrolly-stage { order: 2; }
.lp-scrolly-stage { position: sticky; inset-block-start: var(--space-3xl); display: flex; justify-content: center; padding-block: var(--space-3xl); border-radius: var(--web-card-radius); background: var(--color-surface-brand-tint); }
.lp-scrolly-screen { display: grid; width: 300px; aspect-ratio: 600 / 1301; overflow: hidden; border: 1px solid color-mix(in srgb, var(--color-surface-brand) 14%, transparent); border-radius: var(--shape-2xl); background: var(--color-surface); }
.lp-scrolly-shot { grid-area: 1 / 1; display: block; width: 100%; height: 100%; opacity: 0; transform: translateY(6%); transition: opacity var(--duration-standard) var(--easing-standard), transform var(--duration-emphasized) var(--easing-land); }
.lp-scrolly-shot.is-past { transform: translateY(-6%); }
.lp-scrolly-shot.is-on { opacity: 1; transform: none; }
.lp-scrolly-list { display: flex; flex-direction: column; list-style: none; }
.lp-scrolly-step { display: flex; align-items: center; min-height: 340px; }
.lp-scrolly-step:first-child { min-height: 0; padding-block: var(--space-3xl) 140px; } /* the first step opens level with the screen's top */
.lp-scrolly-tile { display: none; }
.lp-scrolly-step .lp-step-text { max-width: 520px; transition: color var(--duration-standard); color: var(--color-ink-muted); }
.lp-scrolly-step .lp-h3 { font-size: 32px; line-height: 40px; color: inherit; transition: color var(--duration-standard); }
.lp-scrolly-step .lp-h3:lang(ar) { line-height: 52px; }
.lp-scrolly-step .web-body { font-size: 18px; line-height: 28px; }
.lp-scrolly-step .web-body:lang(ar) { font-size: 20px; line-height: 34px; }
.lp-scrolly-step .lp-step-n { color: var(--color-ink-subtle); transition: color var(--duration-standard); }
.lp-scrolly-step.is-on .lp-step-text, .lp-scrolly-step.is-on .lp-h3 { color: var(--color-ink); }
.lp-scrolly-step.is-on .lp-step-n { color: var(--color-primary); }
@media (prefers-reduced-motion: reduce) { .lp-scrolly-shot { transition: none; transform: none; } }

/* The Rank (hero): one #1 card, its numeral standing out of the top edge and breaking the 2px border. */
.lp-rank-wrap, .lp-og { --rank-n: 200px; --rank-rise: 92px; --rank-col: 200px; }
.lp-rank-wrap { padding: calc(var(--space-3xl) + var(--rank-rise)) var(--web-gutter) var(--web-space-6xl); } /* 96 under the switch, then the steps' 128: the hero owns the 900 fold */
.lp-rank { display: flex; flex-direction: column; gap: var(--space-2xl); width: min(var(--web-axis), 100%); margin-inline: auto; }
.lp-rank-card { position: relative; padding-block: var(--space-3xl); padding-inline: var(--rank-col) var(--space-3xl); border: 2px solid var(--color-surface-brand); border-radius: var(--web-card-radius); background: var(--color-surface); }
.lp-rank-n { position: absolute; inset-block-start: calc(-1 * var(--rank-rise)); inset-inline-start: var(--space-3xl); font-family: var(--font-display); font-weight: 700; font-size: var(--rank-n); line-height: 1; color: var(--color-surface-brand); font-variant-numeric: tabular-nums; }
.lp-rank-n.land { animation: lp-rank-land var(--duration-emphasized) var(--easing-land); }
@keyframes lp-rank-land { 0% { transform: translateY(-14px); } 60% { transform: translateY(3px); } 100% { transform: none; } }
.lp-rank-slides { display: grid; }
.lp-rank-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta score" "name score" "fit raters"; column-gap: var(--space-3xl); row-gap: var(--space-s); align-items: end; opacity: 0; transform: translateY(12px); transition: opacity var(--duration-standard) var(--easing-standard), transform var(--duration-emphasized) var(--easing-land); }
.lp-rank-slide.is-on { opacity: 1; transform: none; }
.lp-rank-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; align-self: start; color: var(--color-ink-muted); font-size: 15px; line-height: 20px; }
.lp-rank-meta .cat-tag { margin-inline-end: var(--space-m); }
.lp-rank-where { display: inline-flex; align-items: center; }
.lp-rank-name { grid-area: name; font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 52px; letter-spacing: -0.01em; color: var(--color-surface-brand); text-wrap: balance; }
.lp-rank-name:lang(ar) { line-height: 64px; letter-spacing: 0; }
.lp-rank-score-row { display: contents; }
.lp-rank-score { grid-area: score; justify-self: end; font-family: var(--font-display); font-weight: 700; font-size: 88px; line-height: 88px; letter-spacing: -0.01em; color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.lp-rank-raters { grid-area: raters; justify-self: end; color: var(--color-ink-muted); font-size: 15px; line-height: 20px; white-space: nowrap; }
.lp-rank-fit { grid-area: fit; color: var(--color-ink); font-weight: 600; font-size: 15px; line-height: 20px; }
.lp-rank-for { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-m); }
.lp-rank-label { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; color: var(--color-ink); }
.lp-rank-who { display: inline-flex; }
.lp-rank-who .segment { padding-inline: var(--space-xl); cursor: pointer; }
.lp-rank-who .segment:hover:not(.segment-selected) { color: var(--color-ink); }
.lp-rank-who .segment:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.lp-og { display: flex; flex-direction: column; height: 100%; padding: 56px 80px; }
.lp-og-mark { align-self: flex-start; height: 40px; width: auto; }
.lp-og-mark:lang(ar) { height: 52px; }
.lp-og-title { margin-block: var(--space-2xl) auto; font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 76px; letter-spacing: -0.01em; color: var(--color-surface-brand); }
.lp-og-title:lang(ar) { line-height: 92px; letter-spacing: 0; }
.lp-og .lp-rank { width: 100%; }
@media (prefers-reduced-motion: reduce) { .lp-rank-slide, .lp-rank-n { transition: none; animation: none; } }
@container web (max-width: 599px) {
  .lp-rank-wrap { --rank-n: 112px; --rank-rise: 52px; --rank-col: 96px; }
  .lp-rank { gap: var(--space-l); }
  .lp-rank-wrap { padding-block: calc(var(--space-3xl) + var(--rank-rise)) var(--space-4xl); }
  .lp-rank-card { padding-block: var(--space-l); padding-inline: var(--rank-col) var(--space-l); border-radius: var(--shape-2xl); }
  .lp-rank-n { inset-inline-start: var(--space-l); }
  .lp-rank-slide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "name" "score" "raters" "fit"; row-gap: var(--space-xs); align-items: start; }
  .lp-rank-name { font-size: 24px; line-height: 30px; }
  .lp-rank-name:lang(ar) { line-height: 38px; }
  .lp-rank-score { justify-self: start; font-size: 48px; line-height: 52px; margin-block-start: var(--space-s); }
  .lp-rank-raters { justify-self: start; }
  .lp-rank-fit { margin-block-start: var(--space-s); }
  .lp-rank-meta { font-size: 13px; }
  .lp-rank-for { flex-direction: column; align-items: stretch; gap: var(--space-s); }
  .lp-rank-label { font-size: 16px; }
  .lp-rank-who .segment { flex: 1; min-width: 0; padding-inline: var(--space-xs); font-size: 14px; }
}

@container web (max-width: 599px) {
  .lp-top { height: 56px; }
  .lp-hero-type { gap: var(--space-l); padding-block-start: var(--space-2xl); }
  .lp-h1 { white-space: normal; font-size: 32px; line-height: 40px; } /* measured: "Every place that fits." is 360px at 35px, so 32px fits the 342 column on one line */
  .lp-h1:lang(ar) { font-size: 44px; line-height: 60px; }
  .lp-line { display: block; white-space: nowrap; }
  .lp-end-title { font-size: 34px; line-height: 42px; }
  .lp-end-title:lang(ar) { line-height: 52px; }
  .lp-h2 { font-size: 30px; line-height: 38px; } /* under the hero's 35, so the first line stays the biggest thing */
  .lp-h2:lang(ar) { line-height: 46px; }
  .lp-hero-sub { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .lp-stores { flex-wrap: nowrap; width: 100%; gap: var(--space-s); }
  .lp-badge { flex: 1 1 0; min-width: 0; height: 52px; padding-inline: var(--space-m); }
  .lp-badge .icon { font-size: 24px; }
  .lp-badge-big { font-size: 17px; line-height: 22px; }
  .lp-badge-small { font-size: 11px; line-height: 14px; }
  .lp-step-tile { flex: none; width: 148px; height: 220px; padding: var(--space-m) var(--space-m) 0; border-radius: var(--shape-xl); }
  .lp-step-shot { border-radius: var(--shape-m) var(--shape-m) 0 0; }
  .lp-step-text { column-gap: var(--space-s); }
  .lp-step-n { font-size: 28px; line-height: 32px; }
  .lp-h3 { font-size: 20px; line-height: 28px; }
  .lp-h3:lang(ar) { line-height: 34px; }
  .lp-scrolly-body, .lp-scrolly-flip .lp-scrolly-body { grid-template-columns: minmax(0, 1fr); margin-block-start: var(--space-3xl); }
  .lp-scrolly-stage { display: none; }
  .lp-scrolly-list { gap: var(--space-3xl); }
  .lp-scrolly-step, .lp-scrolly-step:first-child { align-items: flex-start; gap: var(--space-l); min-height: 0; padding: 0; }
  .lp-scrolly-tile { display: flex; flex: none; width: 148px; height: 220px; padding: var(--space-m) var(--space-m) 0; border-radius: var(--shape-xl); }
  .lp-scrolly-step .lp-step-text { color: var(--color-ink); column-gap: var(--space-s); }
  .lp-scrolly-step .lp-h3 { font-size: 20px; line-height: 28px; color: var(--color-ink); }
  .lp-scrolly-step .lp-h3:lang(ar) { line-height: 34px; }
  .lp-scrolly-step .web-body { font-size: 16px; line-height: 24px; color: var(--color-ink-muted); }
  .lp-scrolly-step .web-body:lang(ar) { font-size: 18px; line-height: 30px; }
  .lp-scrolly-step .lp-step-n { color: var(--color-primary); font-size: 28px; line-height: 32px; }
  .lp-ios { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3xl); }
  .lp-ios-mark { font-size: 36px; margin-block-end: var(--space-m); }
  .lp-ios-frame { padding: var(--space-l); border-radius: var(--shape-2xl); }
  .lp-end { padding-block-end: var(--space-4xl); }
}
