/* LYFE design tokens
   Sourced from the Figma app design.
   ──────────────────────────────────────────── */

:root {
  /* Brand colors (Figma) */
  --ink:        #0a0a0a;
  --ink-soft:   #1c1c1c;
  --paper:      #ffffff;
  --paper-warm: #ffffff;          /* unified white */
  --paper-card: #ffffff;          /* unified white */
  --gold:       #d0a657;          /* rgb(208,166,87) */
  --gold-deep:  #b8902f;
  --gold-soft:  #e8d4a5;
  --purple:     #8155a2;          /* rgb(129,85,162) */
  --purple-deep:#7c4e9f;
  --navy:       #253e86;          /* rgb(37,62,134) */
  --muted:      rgba(10,10,10,0.55);
  --muted-2:    rgba(10,10,10,0.38);
  --line:       rgba(10,10,10,0.08);
  --line-soft:  rgba(10,10,10,0.04);

  /* Gold→purple wash (from the Mode Invité button in the app) */
  --wash: linear-gradient(135deg, #dec489 0%, #c7aeb5 100%);

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-script:  'Reenie Beanie', cursive;

  /* Radii */
  --r-pill: 999px;
  --r-card: 22px;
  --r-card-lg: 28px;
  --r-tile: 16px;
}

/* Brand selection color */
::selection      { background: #d0a657; color: #ffffff; }
::-moz-selection { background: #d0a657; color: #ffffff; }

* { box-sizing: border-box; }

/* Smooth in-page anchor scrolling */
html { scroll-behavior: smooth; }

/* ─── Accessibility: keyboard focus ─────────────────────────
   Visible only for keyboard users (focus-visible), never on mouse click. */
a, button, input, select, textarea, [tabindex] { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Respect reduced-motion preference ─────────────────────
   Heuristic: user control. Collapse non-essential motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Responsive — mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  .lyfe-container { padding: 0 20px !important; }
  .lyfe-section { padding: 80px 0 !important; }
  .lyfe-section--tight { padding: 60px 0 !important; }
  .lyfe-h1 { font-size: clamp(40px, 11vw, 80px) !important; }
  .lyfe-h2 { font-size: clamp(30px, 8vw, 56px) !important; }
  .lyfe-h3 { font-size: 22px !important; }
  .lyfe-lead { font-size: 16px !important; }
  .lyfe-btn { padding: 14px 22px !important; font-size: 14px !important; }
}

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Reusable */
.lyfe-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.lyfe-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-1px);
}

.lyfe-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.lyfe-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.lyfe-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.lyfe-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

/* Buttons */
.lyfe-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  min-height: 44px;            /* a11y: comfortable touch target */
  border-radius: var(--r-pill);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease;
}
.lyfe-btn:hover { transform: translateY(-1px); }
.lyfe-btn--ink  { background: var(--ink); color: var(--paper); }
.lyfe-btn--ink:hover { background: #1a1a1a; }
.lyfe-btn--gold { background: var(--gold); color: #fff; }
.lyfe-btn--gold:hover { background: var(--gold-deep); }
.lyfe-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.lyfe-btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }

/* Container */
.lyfe-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}
@media (max-width: 768px) {
  .lyfe-container { padding: 0 24px; }
}

/* Sections */
.lyfe-section { padding: 120px 0; }
.lyfe-section--tight { padding: 80px 0; }

/* Section divider — gold thread */
.lyfe-divider {
  width: 80px; height: 2px; background: var(--gold);
  margin-bottom: 28px;
}

/* Tags / chips */
.lyfe-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(208,166,87,0.12);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Numeric small caps */
.lyfe-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* Subtle paper grain (CSS only) */
.lyfe-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.025) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.025) 0, transparent 40%);
}
