/* Radical Friends pages.

   Tokens, type roles and the base components (.page, .btn*, .field*, .input, .select, .segmented__*,
   .email-form, .callout, .note, .board, .skip, .sr-only) come from partner_onboarding/page.css, which is
   reused as it is. This file adds only what Friends needs: the header lockup, the landing page, the request
   page, the dashboard pieces and the fiscal dialog. The colours and type are tokens; the landing's own spacing
   is written in place (its two repeated rhythms as --rf-* properties on the page). Breakpoints are the system's
   576 / 768 / 992 / 1200. Light mode only. */

/* ───────── The Friends palette ─────────
   The mockup's colours over the kit's tokens (DESIGN.md), on every Friends page: the pages keep reading the tokens
   they always read. The fonts are the kit's already (Sora, Hanken Grotesk). Checked at AA: ink on the page 12.9:1,
   --link on white 6.7:1, --subtle-foreground on the page 5.2:1, white on --primary-strong 5.6:1, --pill-foreground
   on --pill 5.7:1. page.css defines
   these on :root only, so the body's values win for everything under it; the same block on the root element of a
   Friends page (where :has is supported) also paints the html ground the overscroll shows, and resolves the kit's
   :root tokens built from them (--shadow-primary) on the new blue. */
.rf,
:root:has(> body.rf) {
  --background: #F9FAFC; --foreground: #1F2F47; --navy: #1F2F47;
  --card: #FEFEFF; --info: #FEFEFF; --popover: #FEFEFF;
  --muted: #EEF2F8; --secondary: #EEF2F8; --accent: #EEF2F8; --input: #EEF2F8;
  --border: #DEE3EC; --border-soft: #E8ECF2;
  --primary: #2C80ED; --primary-strong: #1A64CC; --brand: #1A64CC; --brand-blue-800: #1F2F47;
  --link: #1758B8; --accent-foreground: #1758B8; --primary-active: rgba(44, 128, 237, .15);
  --ring: #BFD8F8;
  --accent-aqua: #32CCCC; --pill: #CFF3F3; --pill-foreground: #0E6474;
  --secondary-foreground: #4B5768; --muted-foreground: #4B5768; --subtle-foreground: #5F6B7B; --placeholder: #5F6B7B;
  --shadow-card: 0 12px 28px rgba(31, 47, 71, .14);
  --shadow-photo: 0 12px 28px rgba(31, 47, 71, .10), 0 3px 8px rgba(31, 47, 71, .06);
  --shadow-cta: 0 8px 20px rgba(31, 47, 71, .18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
body.rf { background: var(--background); color: var(--foreground); }

/* ───────── Focus ───────── */

/* The 4px --ring alone is 1.35:1 on white. Friends gives every control the same ring as the fields:
   a 2px blue edge and the pale halo (DESIGN.md, Accessibility). */
.rf .btn:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ring);
}
/* An invalid field that has the focus keeps its red ring and gets the halo: page.css paints one or the other. */
.rf .input[aria-invalid="true"]:focus-visible {
  border-color: var(--destructive);
  box-shadow: inset 0 0 0 1px var(--destructive), 0 0 0 6px var(--ring);
}

/* An error line: the text in the page's ink (--destructive is 4.32:1 on the page ground, under AA for 14.5px), the
   red kept in Lucide's circle-alert before it (a graphic: 3:1 is its bar), so the line still reads as an error
   without the colour alone. Every Friends form: activation, claim, profile, fiscal, the request page. */
.rf .field-error { color: var(--foreground); }
.rf .field-error::before {
  width: 16px;
  height: 16px;
  margin-top: 4px;               /* centred on label-sm's 23px line */
  border-radius: 0;
  background: var(--destructive);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ───────── Header: the Radical logo, "Friends", the page's actions, the language ───────── */

.rf-top { background: var(--background); }
/* The logo keeps its size; the nav's column takes what is left of the row, so a language menu beside the logo
   narrows (and truncates its name) instead of pushing into the logo. */
.rf-top__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "brand nav";
  align-items: center;
  gap: 8px 16px;
  max-width: calc(var(--column) + 2 * var(--gutter));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px var(--gutter);
}
@media (min-width: 768px) {
  .rf-top__in { max-width: calc(var(--column) + 96px); padding-inline: 0; }
}
.rf-brand { grid-area: brand; justify-self: start; }
.rf-top__nav { grid-area: nav; justify-self: end; min-width: 0; max-width: 100%; }
/* The middle row (base.html's `top_switch`): the shop switcher, the fee pill and the language menu, whatever the page
   puts there; its own row on a phone (the menu at its end), between the logo and the actions from 768px. */
.rf-top__switch { grid-area: switch; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rf-top__switch .rf-switch { flex: 1 1 auto; min-width: 0; }
.rf-top__in:has(.rf-top__switch) {
  grid-template-areas:
    "brand nav"
    "switch switch";
}
@media (min-width: 768px) {
  .rf-top__in:has(.rf-top__switch) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand switch nav"; }
  .rf-top__switch { justify-self: end; }
}

/* The lockup is a 44px target. Below 576px the logo is 100px wide and "Friends" a heading-md, so the lockup and
   "Log in" share a 320px row; the full size from 576px. */
.rf-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.rf-brand__logo { flex: none; width: 100px; height: auto; }
.rf-brand__sep { flex: none; width: 1px; height: 24px; background: var(--border); }
@media (min-width: 576px) { .rf-brand__logo { width: 121px; } }
.rf-brand__pill {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--pill);
  color: var(--pill-foreground);
  font: var(--label-sm);
  font-family: var(--font-display);
  white-space: nowrap;
}
/* Below 576px the lockup gives back about 18px so the longest "Log in" (Connexion, Zaloguj się, Conectare,
   Anmelden) still fits beside it on a 320px phone: a compact pill, tighter gaps in the lockup and the header row. */
@media (max-width: 575px) {
  .rf-brand { gap: 6px; }
  .rf-brand__pill { padding: 2px 7px; font: var(--label-xs); font-family: var(--font-display); }
  .rf-top__in { column-gap: 12px; }
}
/* The landing's section links: between the lockup and the nav from 768px, hidden below (on a phone the sections
   are a scroll away; at 576px the German, French and Greek links run into "Log in"). With the middle row (the
   landing has both): below 992px the links share the logo's row and the middle keeps its own row under it (at
   768px the fee pill beside them wraps to three lines); from 992px one row, the links after the lockup, the middle
   taking the rest. The grid needs :has(), so a browser without it keeps the links hidden, as on a phone. */
.rf-top__links { display: none; }
@supports selector(:has(a)) {
  @media (min-width: 768px) {
    .rf-top__links { display: flex; gap: 22px; min-width: 0; font: var(--label-md); grid-area: links; white-space: nowrap; }
    .rf-top__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary-foreground); text-decoration: none; }
    .rf-top__links a:hover { color: var(--foreground); }
    .rf-top__in:has(.rf-top__links) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand links nav"; }
    .rf-top__in:has(.rf-top__links):has(.rf-top__switch) {
      grid-template-columns: auto minmax(0, 1fr) auto;
      grid-template-areas:
        "brand links nav"
        "switch switch switch";
    }
  }
  @media (min-width: 992px) {
    .rf-top__in:has(.rf-top__links):has(.rf-top__switch) {
      grid-template-columns: auto auto minmax(0, 1fr) auto;
      grid-template-areas: "brand links switch nav";
    }
  }
}

.rf-top__nav { display: flex; align-items: center; gap: 8px; }
.rf-top__nav .btn { flex: none; white-space: nowrap; }
.rf-top__nav .btn--text,
.rf-top__switch .btn--text { margin-inline: 0; }
/* "Log out" (the dashboard, the request page signed in): the word from 576px. Below, where the language menu wears its
   face too, Lucide's log-out icon in a 48px circle, the word kept for screen readers as the button's name: the longest
   ones (Αποσύνδεση, Déconnexion, Deconectare, Wyloguj się) do not fit beside the logo on a 320px phone. */
.rf-logout__icon { display: none; }
@media (max-width: 575px) {
  .rf-logout { position: relative; min-width: 48px; padding: 0; justify-content: center; }
  .rf-logout__icon {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E") center / 20px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E") center / 20px no-repeat;
  }
  .rf-logout[aria-busy="true"] .rf-logout__icon { display: none; }   /* the spinner takes its place */
  .rf-logout__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}
/* The language menu (_langmenu.html: the website's locales, or the CMS landing's own languages): the locales named in
   themselves. 44px and 17px type at every width: iOS Safari, iPads included, zooms into a field under 16px. As wide
   as the chosen name where the browser sizes a field to its content (`field-sizing`), else as its longest one. */
.rf-langmenu { display: flex; flex: none; align-items: center; gap: 4px; min-width: 0; max-width: 100%; margin-left: auto; }
.rf-langmenu__field { position: relative; display: flex; min-width: 0; max-width: 100%; }
.rf-langmenu__select {
  field-sizing: content;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 40px 8px 16px;
  overflow: hidden;
  font: var(--body-lg);
  white-space: nowrap;
  text-overflow: ellipsis;
  background-position: right 12px center;
}
.rf-langmenu__face { display: none; }
/* Below 576px the menu wears its face, beside the logo or in the middle row alike: the onboarding's language pill
   (page.css's .lang__select) with Lucide's languages icon and the short label (EN, 简体), never wider than the label.
   The native select lies over it, transparent, at the face's full size: a tap opens the native picker of the names,
   and the face takes the focus ring while the select has the focus. */
@media (max-width: 575px) {
  .rf-langmenu__face {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--card);
    box-shadow: var(--shadow-xs);
    color: var(--secondary-foreground);
    font: var(--label-md);
    white-space: nowrap;
    transition: border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
  }
  .rf-langmenu__icon {
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 6 6'/%3E%3Cpath d='m4 14 6-6 2-3'/%3E%3Cpath d='M2 5h12'/%3E%3Cpath d='M7 2h1'/%3E%3Cpath d='m22 22-5-10-5 10'/%3E%3Cpath d='M14 18h6'/%3E%3C/svg%3E") center / 18px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 6 6'/%3E%3Cpath d='m4 14 6-6 2-3'/%3E%3Cpath d='M2 5h12'/%3E%3Cpath d='M7 2h1'/%3E%3Cpath d='m22 22-5-10-5 10'/%3E%3Cpath d='M14 18h6'/%3E%3C/svg%3E") center / 18px no-repeat;
  }
  .rf-langmenu__select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
  }
  .rf-langmenu__field:hover .rf-langmenu__face { border-color: var(--primary-strong); color: var(--foreground); }
  .rf-langmenu__field:focus-within .rf-langmenu__face {
    border-color: var(--primary-strong);
    color: var(--foreground);
    outline: 2px solid var(--primary-strong);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--ring);
  }
}
/* "Go" shows only without JavaScript (a <noscript> in the template). */
.rf-langmenu__go { flex: none; min-width: 44px; justify-content: center; margin-inline: 0; }
.rf-switch {
  width: 100%;
  min-height: 40px;
  padding: 8px 40px 8px 16px;
  font: var(--label-md);
}
@media (min-width: 768px) { .rf-switch { width: auto; max-width: 260px; } }

/* ───────── Page columns ─────────
   Activation, sign-in and claim keep the onboarding sheet (.page). The brand pages and the dashboard sit on
   the ground in the documents column (960px): a dashboard of cards inside a card would nest cards. */

.rf-page--brand,
.rf-page--wide {
  max-width: 1008px;              /* 960px + 2 × 24px gutters */
  margin: 0 auto;
  padding: 16px 24px 64px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.rf--brand .rf-top__in,
.rf--wide .rf-top__in { max-width: 1008px; padding: 12px 24px; }
@media (min-width: 768px) {
  .rf-page--brand,
  .rf-page--wide { padding-top: 24px; padding-bottom: 72px; }
}

/* ───────── Type roles ───────── */

.rf-h1 {
  margin: 0 0 16px;
  font: var(--display-sm);
  letter-spacing: var(--display-sm-ls);
  color: var(--foreground);
  text-wrap: balance;
}
.rf-h2 {
  margin: 0 0 16px;
  font: var(--heading-lg);
  letter-spacing: var(--heading-lg-ls);
  color: var(--foreground);
  text-wrap: balance;
}
.rf-lead {
  max-width: 65ch;
  margin: 0 0 24px;
  font: var(--body-lg);
  color: var(--secondary-foreground);
}
.rf-muted {
  margin: 0;
  font: var(--body-md);
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
}
.rf-form > .field:first-child,
.rf-fieldset > .field:first-child { margin-top: 0; }
/* The mobile number (`_phone_field.html`): the hint sits above the country select and the number, a step apart. */
.field__hint + .phone-input { margin-top: 8px; }
/* Captions: how to sign in next time under the create-account form; the representative's line at the foot of
   the activation page. */
.rf-caption { margin: 16px 0 0; font: var(--caption); color: var(--secondary-foreground); }
.rf-caption--foot { margin-top: 32px; }

/* "Continue as <email>": a long address wraps inside the pill instead of overflowing it. */
.rf-wrap { overflow-wrap: anywhere; }

/* A pair of calls to action (the landing, the activation and request forms, the profile card): stacked, the two share the full
   width; side by side from 576px, both content-sized pills of one height and padding (no 280px minimum on the
   primary, so the ghost button lines up with it). */
@media (min-width: 576px) {
  .rf-cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .rf-cta .btn--primary { min-width: 0; }
}

/* ───────── Brand pages: the numbered steps (the request page's done block) ───────── */

/* "How it works": a numbered list, the numbers leading. */
.rf-steps {
  display: grid;
  gap: 16px;
  max-width: 65ch;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.rf-steps li {
  position: relative;
  min-height: 32px;
  padding-left: 48px;
  font: var(--body-lg);
  color: var(--foreground);
  counter-increment: step;
}
.rf-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-active);
  color: var(--accent-foreground);
  font: var(--label-md);
  font-variant-numeric: tabular-nums;
}

/* ───────── Dashboard ───────── */

/* Staff read-only: the warning fill with the page's ink, never the orange as text. */
.rf-banner {
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--warning);
  color: var(--foreground);
  font: var(--label-md);
}
/* Fiscal information due: the selected-state tint, the sentence and one small primary. Stacked on a phone. */
.rf-banner--fiscal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--primary-active);
}
.rf-banner--fiscal[hidden] { display: none; }
.rf-banner__text { margin: 0; font: var(--label-md); color: var(--foreground); }
.rf-banner--fiscal .btn { white-space: nowrap; }
@media (min-width: 576px) {
  .rf-banner--fiscal { flex-direction: row; align-items: center; gap: 16px; }
  .rf-banner__text { flex: 1; }
}

.rf-shop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
}
.rf-shop .rf-h1 {
  margin: 0;
  font: var(--heading-2xl);
  letter-spacing: var(--heading-2xl-ls);
  overflow-wrap: anywhere;
}
.rf-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-active);
  color: var(--accent-foreground);
  font: var(--heading-md);
  letter-spacing: var(--heading-md-ls);
}
/* "Radical Friend since …" · "€1.00 per booking": every part opens with its "·" in a 24px left padding, and the line is
   moved 24px left and clipped there, so a part that starts a line (the first, or one that wrapped) never shows its dot. */
.rf-shop__meta {
  display: flex;
  flex-wrap: wrap;
  margin: 4px 0 0 -24px;
  clip-path: inset(0 0 0 24px);
  font: var(--caption);
  color: var(--muted-foreground);
}
.rf-shop__meta span:empty { display: none; }
.rf-shop__meta span { position: relative; padding-left: 24px; }   /* a part's own second line starts where its text does */
/* The dot is a separator, not words: empty alt text where supported, the plain dot where the syntax is not. */
.rf-shop__meta span::before { content: "·"; content: "·" / ""; position: absolute; top: 0; left: 0; width: 24px; text-align: center; }

.rf-dash__body { display: grid; gap: 16px; }
.rf-dash__main,
.rf-dash__side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 992px) {
  .rf-dash__body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
}

/* This month: the earned amount leads, the three counts follow in one row. One quiet band, no card. */
.rf-kpis {
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--muted);
}
.rf-kpi { min-width: 0; }
/* A word wider than its column (Conversion, Бронирования on a 320px phone) is hyphenated in the page's language
   (`<html lang>`), and so is a hint's (бронирований): never cut into letters. A browser without the language's
   hyphenation (Chrome has none for en-GB) breaks at the soft hyphens the tables carry: English's Conver-sion, and
   Danish, Swedish and Norwegian's Konver-tering. */
.rf-kpi__label { margin: 0; font: var(--label-sm); color: var(--secondary-foreground); -webkit-hyphens: auto; hyphens: auto; }
.rf-kpi__value {
  margin: 4px 0 0;
  font: var(--heading-2xl);
  letter-spacing: var(--heading-2xl-ls);
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.rf-kpi__value--lead { font: var(--display-sm); letter-spacing: var(--display-sm-ls); }
.rf-kpi__hint { margin: 4px 0 0; font: var(--caption); color: var(--secondary-foreground); -webkit-hyphens: auto; hyphens: auto; }   /* 13px on the band: the stronger grey */
.rf-kpi__hint:empty { display: none; }
/* The three counts share three rows (subgrid): the labels, the values, the hints. A label or a hint that wraps to more
   lines makes its row taller for all three, so the values always line up (Conver-sion on two lines, "bookings per
   100 scans" on four, on a 320px phone). */
.rf-kpi__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  row-gap: 0;
}
.rf-kpi__row .rf-kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
@media (min-width: 768px) {
  .rf-kpis { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; }
}
/* Loading: a value that has not arrived shows a quiet bar the width of a number, nothing spins. */
.rf-dash[aria-busy="true"] .rf-kpi__value:empty::before {
  content: "";
  display: block;
  width: 4ch;
  height: 0.8em;
  margin: 0.1em 0;
  border-radius: var(--radius-sm);
  background: var(--border);
}
.rf-dash[aria-busy="true"] .rf-bars:empty,
.rf-dash[aria-busy="true"] #year-title:empty {
  border-radius: var(--radius-sm);
  background: var(--muted);
}
.rf-dash[aria-busy="true"] #year-title:empty { width: 12ch; height: 24px; }

/* The cards. */
.rf-card { margin: 0; padding: 24px; }
.rf-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 16px;
}
.rf-card__head .rf-h2 { margin: 0; }

/* The year: twelve months, completed on upcoming; the year's total between the arrows. */
.rf-year { display: flex; align-items: center; gap: 4px; }
/* An arrow with no year to go to: no fill, the lighter grey (page.css gives disabled buttons the muted fill). */
.rf-year .btn--text:disabled { background: transparent; color: var(--muted-foreground); }
/* The tapped or focused month: its amounts in words, under the chart (a tooltip is no use on a phone). */
.rf-year__detail { min-height: 21px; margin: 8px 0 0; font: var(--caption); color: var(--secondary-foreground); }
.rf-year__total {
  min-width: 8ch;
  font: var(--label-sm);
  color: var(--secondary-foreground);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.rf-year__btn { min-width: 40px; padding: 0; margin: 0; justify-content: center; }
.rf-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rf-bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 160px;
}
.rf-bars::before {                /* the baseline, above the month letters */
  content: "";
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 576px) { .rf-bars { gap: 8px; } }
/* Each month is a button: a tap reads its amounts. */
.rf-bar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rf-bar__stack { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.rf-bar__upcoming { border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--link-border); }
.rf-bar__completed { border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--primary); }
.rf-bar__upcoming + .rf-bar__completed { border-radius: 0; }
/* The month under its bar, centred on it even when wider than the column (a flex line overflows on both sides). Below
   576px a column can be 15px wide (a 320px phone), narrower than "Mar" or "10月" at 13px: every other month is labelled,
   the current month's among them (friends.js marks the others `--alt`), so no two labels touch; every bar keeps its full
   month in its name and title, and the table has all twelve. */
.rf-bar__label {
  display: flex;
  justify-content: center;
  margin: 4px 0 0;
  font: var(--caption);
  color: var(--muted-foreground);
  white-space: nowrap;
}
@media (max-width: 575px) {
  .rf-bar__label--alt { visibility: hidden; }
}
.rf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0 0;
  font: var(--caption);
  color: var(--secondary-foreground);
}
.rf-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.rf-dot { flex: none; width: 12px; height: 12px; border-radius: var(--radius-sm); }
.rf-dot--completed { background: var(--primary); }
.rf-dot--upcoming { background: var(--link-border); }

/* The latest bookings: date, Radical point, bags and state, the fee. */
.rf-list { margin: 0; padding: 0; list-style: none; }
.rf-empty {
  max-width: 65ch;
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--muted);
  font: var(--body-md);
  color: var(--secondary-foreground);
}
/* 64px for the date: "10月19日" stays on one line. */
.rf-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.rf-row__body { display: grid; gap: 4px; min-width: 0; }
/* The Radical point and the fee share a line while the name keeps 5em (two short words; "1,00 €" still fits beside it
   on a 320px phone); when the fee's place holds a state too wide for that (a cancelled booking's "キャンセル済み" or
   "Ακυρωμένη"), the line wraps and the state goes under the name, at its start, rather than squeezing the name. */
.rf-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.rf-row:first-child { padding-top: 0; }
.rf-row:last-child { padding-bottom: 0; border-bottom: 0; }
.rf-row__date {
  font: var(--label-sm);
  color: var(--secondary-foreground);
  font-variant-numeric: tabular-nums;
}
.rf-row__what { flex: 1 1 5em; min-width: 0; font: var(--label-md); color: var(--foreground); overflow-wrap: anywhere; }
.rf-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font: var(--caption);
  color: var(--muted-foreground);
}
.rf-row__fee {
  flex: none;
  font: var(--label-md);
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rf-row__fee .rf-badge { vertical-align: middle; }

/* States: a tint and the word, never the colour alone. */
.rf-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font: var(--label-xs);
  white-space: nowrap;
}
.rf-badge--upcoming { background: var(--primary-active); color: var(--accent-foreground); }
.rf-badge--completed { background: var(--success); border-color: var(--success-border); color: var(--success-foreground); }
.rf-badge--cancelled { background: var(--muted); color: var(--secondary-foreground); }

/* The fiscal card: one sentence for the state, one button. The card never blocks anything. */
.rf-card--fiscal .rf-muted { color: var(--secondary-foreground); }
.rf-card--fiscal[data-state="due"] .rf-muted { color: var(--foreground); }
.rf-card--fiscal .actions { margin-top: 16px; }
.rf-card--fiscal .actions .btn--text { margin-inline: -8px 0; }

/* The profile card. */
.rf-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.rf-fieldset:disabled .input { color: var(--muted-foreground); }

/* The kits: the QR, the code, the files for the printer. */
.rf-kit {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas:
    "qr meta"
    "links links";
  gap: 8px 16px;
  align-items: start;
}
.rf-kit + .rf-kit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
/* The small QR is a button: it opens the full-screen one to show at the counter. */
.rf-kit__open {
  grid-area: qr;
  display: block;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}
.rf-kit__qr {
  width: 96px;
  height: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}
.rf-kit__meta { grid-area: meta; min-width: 0; }
.rf-kit__code { margin: 0; font: var(--label-lg); color: var(--foreground); font-variant-numeric: tabular-nums; }
.rf-kit__status { margin: 0; font: var(--caption); color: var(--muted-foreground); }
.rf-kit__what { margin: 8px 0 0; font: var(--caption); color: var(--secondary-foreground); }
/* Below the two-column layout the kit comes first: it is what the owner opens at the counter. */
@media (max-width: 991px) {
  .rf-dash__side .rf-card--kits { order: -1; }
}
.rf-kit__links { grid-area: links; display: flex; flex-wrap: wrap; gap: 0 8px; }
.rf-kit__links .btn--text { margin-inline: -8px 0; }
/* A disabled kit has no QR to print: the code, its status and what to do. */
.rf-kit--disabled {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "meta"
    "hint";
}
.rf-kit__hint { grid-area: hint; margin: 0; font: var(--body-sm); color: var(--secondary-foreground); }
/* "Your Radical contact: <name>", the card's footer under the kits; the name a WhatsApp link when the number is known. */
.rf-kit__contact { margin: 16px 0 0; font: var(--caption); color: var(--secondary-foreground); }

/* ───────── The fiscal dialog ───────── */

.rf-dialog {
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
  overflow: auto;                 /* the dialog scrolls, the page behind it does not */
}
.rf-dialog::backdrop { background: var(--backdrop); }
/* On a phone the dialog is a sheet from the bottom, the way the hand holds it. */
@media (max-width: 575px) {
  .rf-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}
.rf-fiscal { padding: 24px 24px 0; }
.rf-fiscal .rf-lead { margin-bottom: 16px; }
.rf-fiscal .segmented__row { margin: 0 0 8px; }
/* Two groups of fields, each under a small heading: who you are, your address. */
.rf-fiscal__group { margin: 32px 0 0; font: var(--heading-sm); letter-spacing: var(--heading-sm-ls); color: var(--foreground); }
.rf-fiscal__group + .field { margin-top: 16px; }

/* The full-screen QR: a white box centred on the backdrop, the symbol as large as the screen allows. */
.rf-dialog.rf-qr {
  position: static;
  inset: auto;
  width: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  border-radius: var(--radius-lg);
}
.rf-qr__in { display: grid; justify-items: center; gap: 16px; padding: 24px; }
.rf-qr__img { width: min(70vw, 70vh); height: min(70vw, 70vh); }
.rf-qr__code { margin: 0; font: var(--label-lg); color: var(--foreground); font-variant-numeric: tabular-nums; }
.rf-qr .actions { margin: 0; }
/* Save and Later stay in view: the actions stick to the bottom of the sheet while the fields scroll under them. */
.rf-fiscal .actions {
  position: sticky;
  bottom: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 24px -24px 0;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--card);
}
.rf-fiscal .actions .btn--primary { flex: 1 1 auto; width: auto; min-width: 0; }
.rf-fiscal .actions .btn--text { flex: none; align-self: center; margin: 0; }
.rf-fiscal[data-legal="business"] [data-legal-only="private"],
.rf-fiscal[data-legal="private"] [data-legal-only="business"] { display: none; }

/* ───────── The footer: the tagline and Terms, Privacy, Help; on every Friends page ─────────
   As wide as the header above it: the sheet's column, the documents column on the brand and wide pages. */
.rf-footer { margin-top: 64px; border-top: 1px solid var(--border-soft); }
.rf-footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter);
  font: var(--caption);
  color: var(--subtle-foreground);
}
@media (min-width: 768px) {
  .rf-footer__in { max-width: calc(var(--column) + 96px); padding-inline: 0; }
}
.rf--brand .rf-footer__in,
.rf--wide .rf-footer__in { max-width: 1008px; padding-inline: 24px; }
.rf-footer__links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.rf-footer__links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--subtle-foreground); text-underline-offset: 3px; }
.rf-footer__links a:hover { color: var(--foreground); }

/* ───────── Motion ───────── */
/* Buttons, fields and links transition in page.css (150ms, ease-out). On load only the landing's notification card
   moves (it rises in, its dot pulses twice); none of it under prefers-reduced-motion (the landing section). */
@media (prefers-reduced-motion: reduce) {
  .rf-brand,
  .rf-badge,
  .rf-langmenu__face { transition: none; }
}

/* ───────── The landing: the hero with the pins and the notification card, the tourist band, the steps on a
   route line, the deal board, the proof line, the FAQ, the navy panel. The copy comes from the CMS page; the
   chrome strings from the tables. One column to 992px, the mockup's two columns from there. The bands that run
   full-bleed on a phone step out of the brand page's 24px padding (.rf-page--brand), not the kit's --gutter. ───────── */

/* The landing's two rhythms: the space between sections (and inside the full-width bands), and the bands' inner
   padding and column gaps from 992px. */
.rf-page--landing {
  --rf-section-space: clamp(48px, 8vw, 120px);
  --rf-band-pad: clamp(32px, 5vw, 72px);
  padding-top: 0;
}
.rf-section__title { margin: 0; font: var(--display-sm); letter-spacing: var(--display-sm-ls); text-wrap: balance; }
.rf-section .rf-section__title { margin-bottom: 16px; }
.rf-section__text { margin: 16px 0 0; max-width: 52ch; font: var(--body-lg); color: var(--secondary-foreground); }

/* The fee pill (the header's middle from 768px, the hero on a phone). */
.rf-top__landing { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.rf-feepill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--pill);
  color: var(--pill-foreground);
  font: var(--label-sm);
}
.rf-feepill__amount { font: var(--label-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-feepill--top { display: none; }
.rf-feepill--hero { margin-bottom: 16px; }
@media (min-width: 768px) { .rf-feepill--top { display: inline-flex; } .rf-feepill--hero { display: none; } }

/* The hero. */
.rf-lhero { display: grid; gap: 32px; padding: 32px 0 48px; }
.rf-lhero__title { margin: 0; font: var(--display-xl); letter-spacing: var(--display-xl-ls); text-wrap: balance; }
.rf-lhero__lead { max-width: 54ch; margin: 24px 0 0; font: var(--body-lg); color: var(--secondary-foreground); }
.rf-lhero__actions { margin-top: 32px; }
.rf-lhero__cta { box-shadow: var(--shadow-cta); }
/* The two buttons side by side from 576px, wrapping when they do not fit; the kit's column on a phone. No 280px
   minimum on the primary (as .rf-cta): with it the pair is wider than the hero's copy column at 1440px and wraps. */
@media (min-width: 576px) {
  .rf-lhero__actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .rf-lhero__actions .btn--primary { min-width: 0; }
}
.rf-lhero__visual { position: relative; order: -1; }
.rf-lhero__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-xl);
  object-fit: cover;
  object-position: 60% 50%;
  box-shadow: var(--shadow-photo);
}
@media (min-width: 992px) {
  .rf-lhero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--rf-band-pad); padding: 56px 0 72px; }
  .rf-lhero--text { grid-template-columns: minmax(0, 1fr); }
  .rf-lhero__visual { order: 0; }
}

/* "Scan. Book. You earn.": the three-icon graphic and the line. */
.rf-scan { display: flex; align-items: center; gap: 16px; margin-top: 24px; color: var(--foreground); }
.rf-scan__art { flex: none; }
.rf-scan__route { stroke: var(--primary); }
.rf-scan__coin { fill: var(--pill); stroke: var(--pill-foreground); }
.rf-scan__coinmark { stroke: var(--pill-foreground); }
.rf-scan__text { font: var(--heading-md); letter-spacing: var(--heading-md-ls); }

/* The pins: three promises behind a pin-shaped dot (decorative: the text carries them). */
.rf-pins { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; list-style: none; font: var(--label-md); }
.rf-pins__item { display: flex; align-items: center; gap: 10px; }
.rf-pins__item::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary);
  transform: rotate(-45deg);
}

/* The notification card over the hero photo's bottom-left corner. Scoped to the hero: the dashboard's cards are
   .rf-card too. */
.rf-lhero__visual > .rf-card {
  position: absolute;
  left: -12px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  animation: rf-in 1.1s var(--ease-out) .9s both;
}
.rf-card__dot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--pill);
  color: var(--pill-foreground);
  animation: rf-pulse 2.4s var(--ease-out) 2s 2;
}
.rf-card__dot .rf-feeicon { width: 24px; height: 24px; }
.rf-card__dot .rf-feeicon__disc { fill: none; stroke: none; }
.rf-card__lines { display: flex; flex-direction: column; line-height: 1.35; }
.rf-card__kicker { font: var(--label-xs); color: var(--subtle-foreground); }
.rf-card__title { font: var(--heading-md); letter-spacing: var(--heading-md-ls); }
@keyframes rf-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rf-pulse { 0% { box-shadow: 0 0 0 0 rgba(50, 204, 204, .55); } 100% { box-shadow: 0 0 0 14px rgba(50, 204, 204, 0); } }
@media (min-width: 992px) { .rf-lhero__visual > .rf-card { left: clamp(-28px, -2vw, -12px); } }
@media (prefers-reduced-motion: reduce) { .rf-lhero__visual > .rf-card, .rf-card__dot { animation: none; } }

/* The pitch of an old page, or a section of another shape: the paragraphs at prose measure. */
.rf-pitch { max-width: 70ch; margin: 40px 0 0; }
.rf-pitch p { margin: 0 0 16px; font: var(--body-lg); color: var(--foreground); }
.rf-pitch h2, .rf-pitch h3 { margin: 32px 0 16px; font: var(--heading-lg); letter-spacing: var(--heading-lg-ls); color: var(--foreground); text-wrap: balance; }
.rf-pitch ul, .rf-pitch ol { margin: 24px 0; padding-left: 24px; font: var(--body-lg); }
.rf-pitch ul { list-style: disc; }       /* page.css resets every list's markers */
.rf-pitch ol { list-style: decimal; }
.rf-pitch a { color: var(--link); }

/* The tourist band: full-bleed muted ground, the photo and the copy with the quote card. */
.rf-tourist { margin: 48px -24px 0; padding: var(--rf-section-space) 24px; background: var(--muted); }
.rf-tourist__in { display: grid; gap: 32px; margin: 0 auto; }
.rf-tourist__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  object-fit: cover;
  object-position: 62% 50%;
}
.rf-quote {
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  font: var(--heading-md);
  letter-spacing: var(--heading-md-ls);
  line-height: 1.4;
  color: var(--foreground);
}
@media (min-width: 992px) {
  .rf-tourist { margin-inline: 0; padding-inline: var(--rf-band-pad); border-radius: var(--radius-xl); }
  .rf-tourist__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--rf-band-pad); }
}

/* The steps on a route line: pin-shaped numbers, the third in aqua. The dotted line runs through the pins' middles
   (23px down, under the pins: each pin's 8px ground ring cuts it). The pins are --primary-strong: white on --primary
   is 3.88:1, under AA for the 17px number; on --primary-strong 5.6:1. */
.rf-how { margin: var(--rf-section-space) 0 0; }
.rf-how .rf-section__title { max-width: 20ch; margin-bottom: 48px; }
.rf-route { position: relative; }
.rf-route::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; border-top: 2px dotted var(--border); display: none; }
.rf-route__list { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; position: relative; }
.rf-route__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary-strong);
  color: var(--primary-foreground);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 8px var(--background);
  font: var(--heading-md);
}
.rf-route__pin > span { transform: rotate(45deg); }
.rf-route__step:nth-child(3) .rf-route__pin { background: var(--accent-aqua); color: var(--foreground); }
.rf-route__lead { margin: 26px 0 8px; font: var(--heading-lg); letter-spacing: var(--heading-lg-ls); }
.rf-route__text { margin: 0; max-width: 34ch; font: var(--body-md); color: var(--secondary-foreground); }
.rf-how__photo { display: block; width: 100%; height: auto; margin-top: 24px; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); object-fit: cover; }
@media (min-width: 992px) {
  .rf-route::before { display: block; }
  .rf-route__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The deal board: a white band, hairlines, the rows with bold blue values. */
.rf-deal {
  margin: var(--rf-section-space) -24px 0;
  padding: var(--rf-section-space) 24px;
  background: var(--card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.rf-deal__in { display: grid; gap: 32px; margin: 0 auto; }
.rf-deal__copy .rf-section__text { max-width: 46ch; }
.rf-board { margin: 0; padding: 8px 0 0; }
.rf-board__row { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px dotted var(--border); }
.rf-board__row:last-child { border-bottom: 0; }
.rf-board__row dt { font: var(--label-md); }
.rf-board__row dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  font: var(--heading-md);
  letter-spacing: var(--heading-md-ls);
  color: var(--primary-strong);
  text-align: right;
}
.rf-board__row .rf-feeicon { width: 22px; height: 22px; color: var(--pill-foreground); }
.rf-feeicon__disc { fill: var(--pill); stroke: var(--pill-foreground); }
@media (min-width: 992px) {
  .rf-deal { margin-inline: 0; padding-inline: var(--rf-band-pad); border-radius: var(--radius-xl); border-inline: 1px solid var(--border-soft); }
  .rf-deal__in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: var(--rf-band-pad); }
}

/* The proof line: the heading and the sentence with the figures in bold. */
.rf-proof { display: grid; gap: 24px; margin: var(--rf-section-space) 0 0; }
.rf-proof .rf-section__title { max-width: 18ch; }
.rf-proof__text p { margin: 0; max-width: 52ch; font: var(--body-lg); color: var(--secondary-foreground); }
.rf-proof__text strong { color: var(--foreground); }
@media (min-width: 992px) { .rf-proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--rf-band-pad); } }

/* An old page's numbers table: a quiet list. */
.rf-numbers { margin: 48px 0 0; }
.rf-numbers__list { display: grid; gap: 16px; margin: 0; }
.rf-numbers__row { display: flex; flex-direction: column-reverse; gap: 4px; }
.rf-numbers__row dt { font: var(--label-sm); color: var(--secondary-foreground); }
.rf-numbers__row dd { margin: 0; font: var(--heading-xl); letter-spacing: var(--heading-xl-ls); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .rf-numbers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The FAQ: hairlines between the questions, each a full-width `summary` with a chevron that turns when open (the
   browser's own marker hidden). */
.rf-faq { margin: 48px 0 0; }
.rf-faq__item { border-top: 1px solid var(--border); }
.rf-faq__item:last-child { border-bottom: 1px solid var(--border); }
.rf-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 16px 0;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  list-style: none;
  cursor: pointer;
}
.rf-faq__q::-webkit-details-marker { display: none; }
.rf-faq__q:hover { color: var(--accent-foreground); }
.rf-faq__q:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ring); }
.rf-faq__title { margin: 0; font: var(--heading-sm); letter-spacing: var(--heading-sm-ls); }
.rf-faq__chev { flex: none; color: var(--accent-foreground); transition: transform var(--duration) var(--ease); }
.rf-faq__item[open] .rf-faq__chev { transform: rotate(180deg); }
.rf-faq__a { max-width: 70ch; padding: 0 0 16px; font: var(--body-md); color: var(--secondary-foreground); }
.rf-faq__a p { margin: 0 0 8px; }
.rf-faq__a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .rf-faq__chev { transition: none; } }

/* The navy panel: the last word, the white button and the sign-in link. */
.rf-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: var(--rf-section-space) 0 0;
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background: var(--navy);
  color: var(--primary-foreground);
}
.rf-panel__copy { max-width: 640px; }
.rf-panel__title { margin: 0; font: var(--display-sm); letter-spacing: var(--display-sm-ls); color: var(--primary-foreground); text-wrap: balance; }
.rf-panel__text { margin: 16px 0 0; font: var(--body-lg); color: var(--pill); }
.rf-panel__text p { margin: 0; }
.rf-panel__text p + p { margin-top: 8px; }
.rf-panel__text a { color: var(--primary-foreground); text-underline-offset: 3px; }
.rf-panel__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rf-panel__cta { background: var(--card); color: var(--primary-strong); border-color: var(--card); }
.rf-panel .rf-panel__cta:hover { background: var(--pill); }
.rf-panel__login { min-height: 44px; display: inline-flex; align-items: center; color: var(--primary-foreground); font: var(--label-md); }
.rf-panel__login:hover { color: var(--pill); }

/* ───────── The request page: the rail, the search listbox, the manual way, the assurance under the number, the
   chosen shop, the done block ───────── */

/* The rail: three stops. Below 576px each name sits under its dot and the three share the width (the Italian names
   do not fit beside the dots on a 320px phone); from 576px a row with a hairline between the stops. The current
   stop wears the button blue, the ones behind it the quiet tint; Done's dot is a check. */
.rf-rail { display: flex; justify-content: space-between; align-items: flex-start; margin: 0 0 32px; padding: 0; list-style: none; }
.rf-rail__stop {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font: var(--label-xs);
  color: var(--muted-foreground);
}
@media (min-width: 576px) {
  .rf-rail { justify-content: flex-start; align-items: center; gap: 8px; }
  .rf-rail__stop { flex: 1 1 0; flex-direction: row; gap: 8px; font: var(--label-sm); }
  .rf-rail__stop::after { content: ""; flex: 1 1 8px; height: 1px; background: var(--border); }
  .rf-rail__stop:last-child { flex: none; }
  .rf-rail__stop:last-child::after { display: none; }
}
.rf-rail__dot {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--card);
  font: var(--label-xs);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.rf-rail__check { width: 16px; height: 16px; }
.rf-rail__name { white-space: nowrap; }
.rf-rail__stop--now { color: var(--foreground); }
.rf-rail__stop--now .rf-rail__dot { border-color: var(--primary-strong); background: var(--primary-strong); color: var(--primary-foreground); }
.rf-rail__stop--done .rf-rail__dot { border-color: var(--accent); background: var(--accent); color: var(--accent-foreground); }

/* A placeholder longer than its field on a 320px phone ("Type the name of your shop", "Gib den Namen deines Geschäfts
   ein") ends in "…" rather than mid-word. */
.rf .input--search { text-overflow: ellipsis; }

/* The line under a search field ("Searching", "No shop found…", Google down): empty, it takes no room. */
.rf-status:empty { margin: 0; }

/* The suggestions: a list under the field, in the flow (on a phone an overlay would cover the manual way). */
.rf-results {
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--popover);
  box-shadow: var(--shadow-md);
}
.rf-results__item { display: grid; padding: 12px 16px; cursor: pointer; }
.rf-results__item:hover { background: var(--accent); }
/* The suggestion the arrows reached: the option is not focusable, so it draws the field's blue edge itself (the
   tint alone is about 1.1:1 on white). */
.rf-results__item[aria-selected="true"] { background: var(--accent); outline: 2px solid var(--primary-strong); outline-offset: -2px; }
.rf-results__name { font: var(--label-md); color: var(--foreground); overflow-wrap: anywhere; }
.rf-results__address { font: var(--caption); color: var(--secondary-foreground); }

/* "My shop is not on Google": a card-like button with the map pin; the chevron turns down while the block is open. */
.rf-way {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 24px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}
.rf-way:hover { border-color: var(--primary); }
.rf-way:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ring); }
.rf-way__pin { flex: none; color: var(--primary); }
.rf-way__text { display: grid; flex: 1 1 auto; min-width: 0; }
.rf-way__text strong { font: var(--label-md); }
.rf-way__text span { font: var(--caption); color: var(--secondary-foreground); }
.rf-way__chev { flex: none; color: var(--accent-foreground); transition: transform var(--duration) var(--ease); }
.rf-way[aria-expanded="true"] .rf-way__chev { transform: rotate(90deg); }

/* The manual way: the name and the address under a hairline. The address as Google resolved it on the success fill
   (the fields wear the quiet tint, so the line must not look like one more field): Lucide's check, "We'll use this
   address" in the teal (4.97:1 on the fill), the address in the ink. */
.rf-manual { margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); }
.rf-manual__line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  background: var(--success);
}
.rf-manual__check { flex: none; margin-top: 2px; color: var(--success-foreground); }
.rf-manual__text { display: grid; min-width: 0; }
.rf-manual__label { font: var(--label-sm); color: var(--success-foreground); }
.rf-manual__address { font: var(--label-md); color: var(--foreground); overflow-wrap: anywhere; }
.rf-manual .actions { margin-top: 24px; }

/* The chosen shop at the second stop: name and address, "Change" beside them. */
.rf-chosen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name change"
    "address change";
  align-items: center;
  column-gap: 16px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--accent);
}
.rf-chosen__name { grid-area: name; font: var(--label-lg); color: var(--foreground); overflow-wrap: anywhere; }
.rf-chosen__address { grid-area: address; font: var(--caption); color: var(--secondary-foreground); }
.rf-chosen__address:empty { display: none; }
.rf-chosen .btn { grid-area: change; margin: 0; }
@media (max-width: 767px) { .rf-chosen .btn { min-height: 44px; } }   /* a thumb target on the phone */

/* Under the number: who writes to it, the privacy policy (Lucide's shield-check in the brand blue). */
.rf-assure { margin: 12px 0 0; font: var(--body-sm); color: var(--secondary-foreground); }
.rf-assure__icon { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--primary); }
.rf-assure a { color: var(--accent-foreground); }

/* Done: the shop and the number, "Wrong number? Change it", the three steps (.rf-steps: the lead word a small
   heading, the text after it), the way back. */
.rf-done__text { margin-bottom: 8px; }
.rf-done__change { margin: 0 0 32px; }
.rf-done__change .btn--text { margin-inline: -8px 0; }
.rf-done__steps { margin: 0 0 32px; }
.rf-done__steps li { font: var(--body-md); color: var(--secondary-foreground); }
.rf-done__steps .rf-how__lead {
  display: flex;
  align-items: center;
  min-height: 32px;              /* the lead sits on the number's line */
  font: var(--heading-sm);
  letter-spacing: var(--heading-sm-ls);
  color: var(--foreground);
}
.rf-done__actions { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .rf-rail__dot,
  .rf-way,
  .rf-way__chev { transition: none; }
}

/* Forced colours (Windows High Contrast), last so it wins over the icon rules above: a mask paints its element's
   background, which the mode resets to Canvas, so an icon drawn that way vanishes. The icons that mean something on
   their own keep a system colour: "Log out" below 576px (an icon-only button), the language menu's face and an error
   line's alert. */
@media (forced-colors: active) {
  .rf-logout__icon { forced-color-adjust: none; background: ButtonText; }
  .rf-langmenu__icon,
  .rf .field-error::before { forced-color-adjust: none; background: CanvasText; }
}

/* ───────── Radical Affiliates (friends.views.affiliates): the signup sheet under the hero, the thanks page ───────── */

/* "Already an affiliate?" beside the small "Log in" button from 576px. */
.rf-aff-nav__hint { display: none; font: var(--body-sm); color: var(--secondary-foreground); white-space: nowrap; margin-right: 4px; }
@media (min-width: 576px) { .rf-aff-nav__hint { display: inline; } }
/* The fallback's proof line under the pins. */
.rf-aff-proof { margin: 24px 0 0; font: var(--label-sm); color: var(--muted-foreground); }

/* The sheet: the onboarding page's white card, holding only the form; a column as wide as the hero's copy. */
.rf-aff-signup { scroll-margin-top: 16px; padding: 8px 0 0; }
.rf-aff-sheet {
  max-width: 560px;
  margin: 0;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
@media (min-width: 576px) { .rf-aff-sheet { padding: 40px; } }
.rf-aff-sheet__title { margin: 0; font: var(--heading-2xl); letter-spacing: var(--heading-2xl-ls); color: var(--foreground); }
.rf-aff-sheet__lead { margin: 8px 0 0; font: var(--body-md); color: var(--secondary-foreground); text-wrap: pretty; }
.rf-aff-sheet__notice { margin: 24px 0 0; }
.rf-aff-sheet__actions { margin-top: 32px; }
.rf-aff-sheet__cta { width: 100%; }
.rf-aff-legal { margin: 16px 0 0; font: var(--caption); color: var(--muted-foreground); text-wrap: pretty; }
.rf-aff-legal a { color: var(--accent-foreground); text-underline-offset: 3px; }
.rf-aff-legal a:hover { color: var(--foreground); }
/* The honeypot: off screen for people and screen readers alike (aria-hidden, tabindex -1 in the markup). */
.rf-aff-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* The thanks page: the onboarding done view's pieces (page.css) on the Friends sheet. */
.rf-aff-thanks__lead { font: var(--body-lg); }
.rf-aff-thanks__actions { margin-top: 8px; }
.rf-aff-thanks__actions .btn--text { margin-inline: -8px 0; }
