/*
 * The stylesheet of the root page and the business page: a STATIC COPY
 * (2026-10-24, rentionwebsite, branch feat/fidelitate) of what
 * FidelitateHomePage and FidelitateBusinessPage render with: the website's
 * global src/index.css and src/App.css, then its src/pages/FidelitatePage.css,
 * with the font URLs pointed at fonts/. Only the last section is this copy's
 * own. Regenerate with the pages; never edit the copied sections by hand.
 */

/* --- src/index.css ------------------------------------------------------ */

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

/* --- src/App.css -------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #111827;
  background-color: #ffffff;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Global utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* --- src/pages/FidelitatePage.css --------------------------------------- */

/*
 * Fidelitate page family. Every colour is a token on .fidelitate-site, with a
 * dark-mode override, so no rule below hard-codes a colour. Values are the
 * apps' own semantic tokens and cobalt palette (packages/theme/src/
 * tokens.ts and primitives.ts in the loyalty monorepo) — copy them from there
 * when the apps' palette changes, never invent new ones here.
 */

/* The apps' fonts (SIL Open Font License), from the monorepo's assets/fonts,
   converted losslessly from TTF to WOFF2 (less than half the size). Browsers
   download a face only when a page uses it. */
@font-face {
  font-family: 'Fidelitate Display';
  src: url('/assets/BricolageGrotesque-ExtraBold-1d7946772ff6.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Fidelitate Body';
  src: url('/assets/DMSans-Regular-639139fd92b2.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Fidelitate Body';
  src: url('/assets/DMSans-Bold-6be62912724d.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

.fidelitate-site {
  --fd-bg: #f2f5f9; /* backgroundPrimary */
  --fd-surface: #fcfdfe; /* surfaceCard */
  --fd-surface-alt: #e6ecf4; /* backgroundSecondary */
  --fd-text: #1e2a3b; /* textPrimary */
  --fd-text-muted: #586576; /* textSecondary */
  --fd-border: #dbe2ec; /* borderSubtle */
  /* actionPrimary (cobalt 600), which is also textAccent: about 6:1 or better
     for links and small button text on every background here (5.99:1 on
     surface-alt, the lowest; WCAG AA asks 4.5:1). */
  --fd-primary: #2855a7;
  --fd-on-primary: #fcfdfe; /* actionPrimaryText */
  /* actionStrong (the action sage, deeper in light): the apps' primary button
     and stamps, here the primary buttons, the nav's call to action, the step
     numbers and the mock-up's stamps and action. 5.78:1 under near-white
     text; the hover, darker still, 7.13:1. */
  --fd-action: #4f6b56;
  --fd-action-hover: #435d46;
  --fd-on-action: #fcfdfe; /* actionStrongText */
  /* The primary buttons on the hero, the simple hero and the closing call to
     action, which stay dark in both themes: there the light pair would sink
     into the gradient, so they take the dark theme's pair — the owner's sage
     #88A28B with navy text (5.88:1), and its lighter hover (7.32:1). Declared
     once, for both themes, and aliased onto those buttons alone below. */
  --fd-hero-action: #88a28b;
  --fd-hero-on-action: #142036;
  --fd-hero-action-hover: #9cb49f;
  --fd-accent: #a4c2f8; /* cobalt 300 */
  --fd-success: #4e7c49; /* success */
  --fd-success-subtle: #e1ebdc; /* successSubtle */
  --fd-hero-bg: linear-gradient(135deg, #1e2a3b 0%, #243b60 60%, #2855a7 140%);
  --fd-hero-text: #fcfdfe;
  --fd-hero-muted: #dbe2ec;
  --fd-phone-bg: #1e2a3b;
  --fd-phone-screen: #fcfdfe;
  --fd-qr-ink: #1e2a3b;
  /* The QR's ground stays light in both themes, like a real code on screen:
     no dark-mode override. */
  --fd-qr-bg: #fcfdfe;
  --fd-phone-notch: #243b60; /* cobalt 800 */
  --fd-shadow: 0 18px 40px rgba(30, 42, 59, 0.14);
  --fd-radius-sm: 8px;
  --fd-radius-md: 12px;
  --fd-radius-lg: 20px;
  --fd-font-display:
    'Fidelitate Display', 'Fidelitate Body', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  --fd-font-body:
    'Fidelitate Body', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Room an in-page link leaves above its target for the sticky nav: one row
     of links here, two where they wrap (≤900px), none once the nav stops
     sticking (≤640px). */
  --fd-anchor-offset: 80px;

  min-height: 100vh;
  background: var(--fd-bg);
  color: var(--fd-text);
  font-family: var(--fd-font-body);
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  .fidelitate-site {
    --fd-bg: #141a24;
    --fd-surface: #202a39;
    --fd-surface-alt: #232e3f;
    --fd-text: #eef3fa;
    --fd-text-muted: #b1bed0;
    --fd-border: #344259;
    --fd-primary: #90b3f2;
    --fd-on-primary: #142036;
    --fd-action: #88a28b;
    --fd-action-hover: #9cb49f;
    --fd-on-action: #142036;
    --fd-success: #93be8a;
    --fd-success-subtle: #26311f;
    --fd-hero-bg: linear-gradient(135deg, #0d1219 0%, #1c2638 60%, #1f3a6b 140%);
    --fd-phone-bg: #000000;
    --fd-phone-screen: #202a39;
    --fd-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

.fidelitate-site h1,
.fidelitate-site h2,
.fidelitate-site h3,
.fidelitate-nav-brand,
.fidelitate-step-number {
  font-family: var(--fd-font-display);
  font-weight: 800;
}

.fidelitate-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.fidelitate-site a {
  color: var(--fd-primary);
}

.fidelitate-site [id] {
  scroll-margin-top: var(--fd-anchor-offset);
}

.fidelitate-site h1,
.fidelitate-site h2,
.fidelitate-site h3 {
  letter-spacing: 0;
}

/* --- Nav ---------------------------------------------------------------- */

.fidelitate-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface);
  padding: 10px max(16px, calc((100vw - 1120px) / 2));
}

.fidelitate-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fd-text) !important;
  font-weight: 800;
  text-decoration: none;
}

.fidelitate-nav-brand img {
  border-radius: var(--fd-radius-sm);
}

.fidelitate-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.fidelitate-nav-links a,
.fidelitate-nav-links button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 0;
  border-radius: var(--fd-radius-sm);
  background: transparent;
  color: var(--fd-text-muted);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0 10px;
  text-decoration: none;
  cursor: pointer;
}

.fidelitate-nav-links a:hover,
.fidelitate-nav-links button:hover,
.fidelitate-nav-links a[aria-current='page'] {
  background: var(--fd-surface-alt);
  color: var(--fd-text);
}

.fidelitate-nav-links .fidelitate-nav-cta {
  background: var(--fd-action);
  color: var(--fd-on-action);
}

.fidelitate-nav-links .fidelitate-nav-cta:hover {
  background: var(--fd-action-hover);
  color: var(--fd-on-action);
}

.fidelitate-language-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: var(--fd-surface-alt);
  border-bottom: 1px solid var(--fd-border);
  padding: 8px 16px;
  font-size: 0.94rem;
}

.fidelitate-language-banner a {
  font-weight: 700;
}

.fidelitate-language-banner button {
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: var(--fd-radius-sm);
  background: transparent;
  color: var(--fd-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- Buttons ------------------------------------------------------------ */

.fidelitate-primary-button,
.fidelitate-secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--fd-radius-md);
  font-weight: 800;
  padding: 0 22px;
  text-decoration: none;
}

.fidelitate-site .fidelitate-primary-button {
  background: var(--fd-action);
  color: var(--fd-on-action);
}

.fidelitate-site .fidelitate-primary-button:hover {
  background: var(--fd-action-hover);
}

/* On the dark bands, in both themes, the dark theme's pair (see
   --fd-hero-action). On the buttons alone: the hero's phone mock-up keeps the
   page's own theme. */
.fidelitate-hero .fidelitate-primary-button,
.fidelitate-simple-hero .fidelitate-primary-button,
.fidelitate-cta .fidelitate-primary-button {
  --fd-action: var(--fd-hero-action);
  --fd-on-action: var(--fd-hero-on-action);
  --fd-action-hover: var(--fd-hero-action-hover);
}

.fidelitate-site .fidelitate-secondary-button {
  border: 1px solid var(--fd-border);
  background: var(--fd-surface);
  color: var(--fd-text);
}

.fidelitate-hero .fidelitate-secondary-button,
.fidelitate-cta .fidelitate-secondary-button {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--fd-hero-text);
}

/* --- Heroes ------------------------------------------------------------- */

.fidelitate-hero,
.fidelitate-simple-hero,
.fidelitate-cta {
  background: var(--fd-hero-bg);
  color: var(--fd-hero-text);
}

.fidelitate-hero {
  padding: 64px 0;
}

.fidelitate-simple-hero {
  padding: 56px 0;
}

.fidelitate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.fidelitate-eyebrow {
  display: inline-block;
  color: var(--fd-accent);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* The light accent is for the dark heroes; on a light section it is ~2:1. */
.fidelitate-section .fidelitate-eyebrow {
  color: var(--fd-primary);
}

.fidelitate-hero h1,
.fidelitate-simple-hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  font-weight: 850;
}

.fidelitate-hero p,
.fidelitate-simple-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--fd-hero-muted);
  font-size: 1.12rem;
}

.fidelitate-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fidelitate-cta .fidelitate-hero-actions {
  justify-content: center;
}

.fidelitate-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fd-hero-muted);
  font-weight: 700;
}

.fidelitate-hero-points li::before {
  content: '✓ ';
  color: var(--fd-accent);
}

.fidelitate-link-hero {
  text-align: center;
}

.fidelitate-link-hero h1,
.fidelitate-link-hero p {
  margin-left: auto;
  margin-right: auto;
}

.fidelitate-link-hero .fidelitate-hero-actions {
  justify-content: center;
}

.fidelitate-link-icon {
  border-radius: var(--fd-radius-lg);
  box-shadow: var(--fd-shadow);
}

/* --- Sections ----------------------------------------------------------- */

.fidelitate-section {
  padding: 64px 0;
}

.fidelitate-section-alt {
  background: var(--fd-surface-alt);
}

.fidelitate-section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
}

.fidelitate-section-heading.center {
  text-align: center;
}

.fidelitate-section-heading.left {
  margin-left: 0;
}

.fidelitate-section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  text-wrap: balance;
}

.fidelitate-section-heading p {
  margin: 0;
  color: var(--fd-text-muted);
  font-size: 1.05rem;
}

.fidelitate-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.fidelitate-split .fidelitate-section-heading {
  margin-bottom: 0;
}

/* Column count comes from CardGrid (--fd-columns): 4 when the items fill rows
   of four, otherwise 3, so a grid never ends on a lonely pair. */
.fidelitate-card-grid {
  display: grid;
  grid-template-columns: repeat(var(--fd-columns, 3), minmax(0, 1fr));
  gap: 16px;
}

.fidelitate-card {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface);
  padding: 22px;
}

.fidelitate-card h2,
.fidelitate-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.fidelitate-card p,
.fidelitate-card li {
  margin: 0;
  color: var(--fd-text-muted);
}

.fidelitate-card ul {
  margin: 0;
  padding-left: 20px;
}

.fidelitate-card li + li {
  margin-top: 6px;
}

.fidelitate-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.fidelitate-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fidelitate-steps li {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface);
  padding: 22px;
}

.fidelitate-step-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fd-action);
  color: var(--fd-on-action);
  font-weight: 800;
}

.fidelitate-steps h3 {
  margin: 14px 0 6px;
  font-size: 1.1rem;
}

.fidelitate-steps p {
  margin: 0;
  color: var(--fd-text-muted);
}

.fidelitate-cta {
  padding: 56px 0;
  text-align: center;
}

.fidelitate-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.fidelitate-cta p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--fd-hero-muted);
}

/* --- Plans -------------------------------------------------------------- */

.fidelitate-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.fidelitate-plan {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-lg);
  background: var(--fd-surface);
  padding: 24px;
}

.fidelitate-plan h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.fidelitate-plan p {
  margin: 0 0 14px;
  color: var(--fd-text-muted);
}

.fidelitate-plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fidelitate-plan li {
  padding: 6px 0;
  border-top: 1px solid var(--fd-border);
}

.fidelitate-plan-notes {
  max-width: 760px;
  margin: 24px auto 0;
  padding-left: 1.4em;
  color: var(--fd-text-muted);
  font-size: 0.95rem;
}

.fidelitate-plan-notes li + li {
  margin-top: 6px;
}

/* --- FAQ ---------------------------------------------------------------- */

.fidelitate-faq {
  max-width: 820px;
  margin: 0 auto;
}

.fidelitate-faq-group + .fidelitate-faq-group {
  margin-top: 40px;
}

.fidelitate-faq-group h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.fidelitate-faq-item {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface);
  padding: 0 18px;
}

.fidelitate-faq-item + .fidelitate-faq-item {
  margin-top: 10px;
}

/* display: flex drops the summary's own marker, so draw one: + closed, − open. */
.fidelitate-faq-item summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.fidelitate-faq-item summary::-webkit-details-marker {
  display: none;
}

.fidelitate-faq-item summary::after {
  flex: none;
  color: var(--fd-primary);
  font-size: 1.4rem;
  line-height: 1;
  content: '+';
  content: '+' / '';
}

.fidelitate-faq-item[open] summary::after {
  content: '−';
  content: '−' / '';
}

.fidelitate-faq-item p {
  margin: 0 0 16px;
  color: var(--fd-text-muted);
}

/* --- Legal -------------------------------------------------------------- */

.fidelitate-legal {
  max-width: 820px;
}

.fidelitate-legal h2 {
  margin: 32px 0 10px;
  font-size: 1.3rem;
}

.fidelitate-legal > h2:first-child {
  margin-top: 0;
}

.fidelitate-legal p,
.fidelitate-legal li {
  color: var(--fd-text-muted);
}

/* App.css resets every margin and padding, so paragraphs and lists get theirs
   back here, with the markers inside the text column. */
.fidelitate-legal p,
.fidelitate-legal ul,
.fidelitate-legal ol {
  margin: 0 0 12px;
}

.fidelitate-legal ul,
.fidelitate-legal ol {
  padding-left: 1.4em;
}

.fidelitate-legal li + li {
  margin-top: 6px;
}

.fidelitate-legal-toc {
  margin: 28px 0;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface);
  padding: 4px 22px 14px;
}

.fidelitate-legal-toc h2 {
  margin-top: 14px;
  font-size: 1rem;
}

.fidelitate-form-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* Same size whichever is picked: both are the secondary button, border
   included. */
.fidelitate-form-switch button {
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* The picked app is a selection, not an action: filled in cobalt, as the
   dashboard mock-up's selected period and every selection in the apps — the
   action colour is for what a button does. */
.fidelitate-form-switch .fidelitate-secondary-button.is-active {
  border-color: var(--fd-primary);
  background: var(--fd-primary);
  color: var(--fd-on-primary);
}

.fidelitate-delete-frame {
  width: 100%;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface);
}

/* --- Download ----------------------------------------------------------- */

.fidelitate-download {
  padding: 56px 0;
  border-top: 1px solid var(--fd-border);
  background: var(--fd-surface);
}

.fidelitate-download h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.fidelitate-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.fidelitate-download-app {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-lg);
  background: var(--fd-bg);
  padding: 22px;
}

.fidelitate-download-app-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.fidelitate-download-app-heading img {
  flex: none;
  border-radius: var(--fd-radius-md);
}

.fidelitate-download-app-heading h3 {
  margin: 0;
}

.fidelitate-download-app-heading p {
  margin: 2px 0 0;
  color: var(--fd-text-muted);
}

.fidelitate-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.fidelitate-badge {
  position: relative;
  display: inline-flex;
}

.fidelitate-badge img {
  height: 48px;
  width: auto;
}

.fidelitate-badge.is-soon {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fidelitate-badge.is-soon img {
  opacity: 0.4;
  filter: grayscale(1);
}

.fidelitate-badge.is-soon > span {
  color: var(--fd-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- Footer ------------------------------------------------------------- */

.fidelitate-footer {
  border-top: 1px solid var(--fd-border);
  background: var(--fd-bg);
  padding: 40px 0 24px;
  font-size: 0.95rem;
}

.fidelitate-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}

.fidelitate-footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fidelitate-footer-grid p {
  margin: 0;
  color: var(--fd-text-muted);
}

.fidelitate-footer-grid h2 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--fd-text-muted);
}

.fidelitate-footer-grid a {
  text-decoration: none;
}

.fidelitate-footer-bottom {
  margin-top: 28px;
  border-top: 1px solid var(--fd-border);
  padding-top: 18px;
  color: var(--fd-text-muted);
}

/* --- Analytics (business page) ------------------------------------------ */

.fidelitate-analytics {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}

.fidelitate-analytics-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fidelitate-analytics-note {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--fd-text-muted);
  font-size: 0.95rem;
}

/* A sample of the admin app's Analytics tab (decorative). */
.fidelitate-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-lg);
  background: var(--fd-surface);
  box-shadow: var(--fd-shadow);
  padding: 20px;
}

.fidelitate-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.fidelitate-dashboard-head strong {
  font-family: var(--fd-font-display);
  font-size: 1.25rem;
}

.fidelitate-dashboard-periods {
  display: flex;
  gap: 6px;
}

.fidelitate-dashboard-periods span {
  border: 1px solid var(--fd-border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--fd-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.fidelitate-dashboard-periods span.is-active {
  border-color: var(--fd-primary);
  background: var(--fd-primary);
  color: var(--fd-on-primary);
}

.fidelitate-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fidelitate-dashboard-kpis div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-bg);
  padding: 12px;
}

.fidelitate-dashboard-kpis span {
  color: var(--fd-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.fidelitate-dashboard-kpis strong {
  font-family: var(--fd-font-display);
  font-size: 1.6rem;
  line-height: 1.15;
}

.fidelitate-dashboard-kpis small {
  color: var(--fd-success);
  font-size: 0.8rem;
  font-weight: 700;
}

.fidelitate-dashboard-chart > span {
  color: var(--fd-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.fidelitate-dashboard-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 110px;
  margin-top: 8px;
  border-bottom: 1px solid var(--fd-border);
}

.fidelitate-dashboard-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--fd-primary);
}

.fidelitate-dashboard-insight {
  border-radius: var(--fd-radius-md);
  background: var(--fd-success-subtle);
  color: var(--fd-success);
  padding: 10px 12px;
  font-weight: 700;
}

/* --- Phone mockups (decorative) ----------------------------------------- */

.fidelitate-phone {
  width: min(300px, 100%);
  margin: 0 auto;
  border-radius: 40px;
  background: var(--fd-phone-bg);
  padding: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.fidelitate-phone-notch {
  width: 90px;
  height: 18px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: var(--fd-phone-notch);
}

.fidelitate-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 28px;
  background: var(--fd-phone-screen);
  color: var(--fd-text);
  padding: 18px;
}

.fidelitate-phone-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fd-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

/* The QR stays dark-on-light in both themes, like a real code on screen. */
.fidelitate-qr {
  width: 150px;
  height: 150px;
  fill: var(--fd-qr-ink);
}

.fidelitate-qr-bg {
  fill: var(--fd-qr-bg);
}

.fidelitate-phone-title {
  font-weight: 800;
}

.fidelitate-phone-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-bg);
  padding: 12px;
}

.fidelitate-phone-card span,
.fidelitate-phone-card small {
  color: var(--fd-text-muted);
}

.fidelitate-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 6px 0;
}

.fidelitate-stamps span {
  aspect-ratio: 1;
  border: 2px dashed var(--fd-border);
  border-radius: 50%;
}

.fidelitate-stamps span.is-filled {
  border: 0;
  background: var(--fd-action);
}

.fidelitate-phone-action,
.fidelitate-phone-reward {
  border-radius: var(--fd-radius-md);
  padding: 10px 12px;
  text-align: center;
  font-weight: 800;
}

.fidelitate-phone-action {
  background: var(--fd-action);
  color: var(--fd-on-action);
}

.fidelitate-phone-reward {
  background: var(--fd-surface-alt);
  color: var(--fd-success);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .fidelitate-site {
    --fd-anchor-offset: 120px;
  }

  .fidelitate-hero-grid {
    grid-template-columns: 1fr;
  }

  .fidelitate-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fidelitate-analytics {
    grid-template-columns: 1fr;
  }

  .fidelitate-dashboard {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .fidelitate-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .fidelitate-site {
    --fd-anchor-offset: 16px;
  }

  /* Stacked, the nav is three rows tall: sticky, it would cover a quarter of
     a phone screen and every heading an in-page link scrolls to. */
  .fidelitate-nav {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .fidelitate-nav-links {
    justify-content: flex-start;
  }

  .fidelitate-hero {
    padding: 44px 0;
  }

  .fidelitate-section {
    padding: 44px 0;
  }

  .fidelitate-footer-grid {
    grid-template-columns: 1fr;
  }

  .fidelitate-card-grid,
  .fidelitate-analytics-items {
    grid-template-columns: 1fr;
  }

  .fidelitate-dashboard {
    padding: 16px;
  }

  .fidelitate-dashboard-kpis strong {
    font-size: 1.35rem;
  }
}

/* --- This copy's own ----------------------------------------------------- */

/* CardGrid sets --fd-columns in a style attribute, which this site's Content
   Security Policy does not allow: the generator turned it into a class. */
.fidelitate-card-grid.fd-columns-3 {
  --fd-columns: 3;
}

/* AnalyticsPreview sets each bar's height in a style attribute too: classes. */
.fidelitate-dashboard-bars i.fd-bar-38 {
  height: 38%;
}

.fidelitate-dashboard-bars i.fd-bar-40 {
  height: 40%;
}

.fidelitate-dashboard-bars i.fd-bar-42 {
  height: 42%;
}

.fidelitate-dashboard-bars i.fd-bar-45 {
  height: 45%;
}

.fidelitate-dashboard-bars i.fd-bar-46 {
  height: 46%;
}

.fidelitate-dashboard-bars i.fd-bar-49 {
  height: 49%;
}

.fidelitate-dashboard-bars i.fd-bar-55 {
  height: 55%;
}

.fidelitate-dashboard-bars i.fd-bar-58 {
  height: 58%;
}

.fidelitate-dashboard-bars i.fd-bar-60 {
  height: 60%;
}

.fidelitate-dashboard-bars i.fd-bar-64 {
  height: 64%;
}

.fidelitate-dashboard-bars i.fd-bar-71 {
  height: 71%;
}

.fidelitate-dashboard-bars i.fd-bar-77 {
  height: 77%;
}

.fidelitate-dashboard-bars i.fd-bar-92 {
  height: 92%;
}

.fidelitate-dashboard-bars i.fd-bar-97 {
  height: 97%;
}

/* Both languages are in the page. src/home.ts sets <html lang> before the body
   is drawn, and that picks the copy; without JavaScript, English. */
.fidelitate-site[lang='ro'] {
  display: none;
}

html[lang='ro'] .fidelitate-site[lang='ro'] {
  display: block;
}

html[lang='ro'] .fidelitate-site[lang='en'] {
  display: none;
}

/* The nav's language switch is the script's: without it, no dead button. */
html:not(.js) .fidelitate-nav-links button[lang] {
  display: none;
}
