/* ============================================================
   BEINN DESIGN SYSTEM — COMPONENTS
   ============================================================
   Requires tokens.css to be loaded first.
   All components are RTL-safe (uses logical properties).
   Visual language: organic, warm, calm — sand/paper/blue/peach.
   ============================================================ */

/* ============================================================
   0. RESET + BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  margin: 0;
}
p  { margin: 0; }
a  { color: inherit; }
button { font-family: var(--body); }

/* ============================================================
   1. UTILITIES
   ============================================================ */

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--muted  { color: var(--text-muted); }
.eyebrow--blue   { color: var(--blue-deep); letter-spacing: var(--tracking-wider); }
.eyebrow--script {
  font-family: var(--font-script);
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--gold);
  font-weight: var(--weight-medium);
}

.heading-hero {
  font-family: var(--display);
  font-size: var(--text-hero);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}
.heading-hero em {
  font-style: italic;
  color: var(--color-gold);
}

.heading-section {
  font-family: var(--display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.heading-card {
  font-family: var(--body);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.body-lg { font-size: clamp(16px, 1.8vw, 18px); line-height: var(--leading-relaxed); }
.body-md { font-size: var(--text-md);            line-height: var(--leading-relaxed); }
.body-sm { font-size: var(--text-base);          line-height: var(--leading-normal); }
.body-xs { font-size: var(--text-sm);            line-height: var(--leading-normal); }

.quote {
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: var(--weight-regular);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: var(--space-4);
  margin: 0;
}
.quote cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--gold);
}

.timestamp {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   3. BEINN LOGO MARK — LOTUS SVG
   ============================================================ */

/*
  The Beinn logo is a lotus flower SVG: five overlapping
  petal paths drawn in stroke-only white (on blue) or
  gold (on light). Use the .beinn-mark wrapper + inline SVG.
*/
.beinn-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.beinn-mark--sm  { width: 28px;  height: 18px; }
.beinn-mark--md  { width: 44px;  height: 28px; }
.beinn-mark--lg  { width: 64px;  height: 40px; }
.beinn-mark--xl  { width: 90px;  height: 56px; }
.beinn-mark--hero{ width: 120px; height: 76px; }

/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-pill);   /* pill shape from mockup */
  padding: 15px var(--space-6);
  transition:
    background   var(--duration-base) var(--ease-in-out),
    color        var(--duration-base) var(--ease-in-out),
    transform    var(--duration-fast) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-in-out);
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:active { transform: scale(.98); }

/* Primary — peach, matches mockup CTA */
.btn--primary {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-peach);
}
.btn--primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 14px 32px rgba(210,160,110,.36);
}

/* Secondary — outline on light */
.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--line);
}
.btn--secondary:hover {
  background: var(--color-paper-warm);
  border-color: var(--text-muted);
}

/* Ghost on dark surface */
.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-on-dark);
}
.btn--ghost:hover {
  background: rgba(240,237,230,.08);
  border-color: rgba(240,237,230,.3);
}

/* Blue — header / brand action */
.btn--blue {
  background: var(--blue);
  color: var(--color-choice-text);
  box-shadow: 0 6px 18px rgba(109,170,210,.28);
}
.btn--blue:hover {
  background: var(--blue-deep);
}

/* Danger */
.btn--danger {
  background: transparent;
  color: #C0392B;
  border: 1px solid rgba(192,57,43,.25);
}
.btn--danger:hover {
  background: rgba(192,57,43,.06);
  border-color: rgba(192,57,43,.5);
}

/* Social login (on card) */
.btn--social {
  background: var(--color-paper-warm);
  color: var(--text-primary);
  border: 1px solid var(--line);
  width: 100%;
  justify-content: flex-start;
  padding-inline-start: var(--space-5);
}
.btn--social:hover {
  background: var(--color-paper);
  border-color: var(--text-muted);
}
.btn--social .btn-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* Sizes */
.btn--sm { font-size: var(--text-sm); padding: 10px 18px; }
.btn--lg { font-size: var(--text-md); padding: 17px 32px; }
.btn--full { width: 100%; }

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   5. FORM ELEMENTS
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  letter-spacing: var(--tracking-wide);
}

/* Text input — light surface */
.input {
  font-family: var(--body);
  font-size: var(--text-md);
  background: var(--color-paper);
  border: 1.5px solid var(--line);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 13px var(--space-4);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
  width: 100%;
}
.input::placeholder { color: var(--text-hint); }
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--color-blue-mute);
}
.input:invalid:not(:placeholder-shown) {
  border-color: rgba(192,57,43,.5);
}

/* Dark surface variant */
.input--dark {
  background: rgba(240,237,230,.07);
  border-color: var(--line-on-dark);
  color: var(--text-on-dark);
}
.input--dark::placeholder { color: var(--text-on-dark-mute); }
.input--dark:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--color-blue-mute);
}

/* ── Option button (radio-style choice) ───────────────────
   Unselected: light border on paper bg
   Selected:   blue fill (#ADCCE6) with dark text — matches mockup
   ──────────────────────────────────────────────────────── */
.option-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  font-family: var(--body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  background: var(--color-paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 13px var(--space-5);
  cursor: pointer;
  text-align: start;
  transition: background var(--duration-base), border-color var(--duration-base);
  min-height: 52px;
}
.option-btn:hover {
  background: var(--color-paper-warm);
  border-color: var(--blue);
}
.option-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.option-btn[aria-pressed="true"],
.option-btn[aria-checked="true"] {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-choice-text);
}

/* Dot indicator */
.option-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--line);
  transition: background var(--duration-base);
}
.option-btn[aria-pressed="true"]  .option-dot,
.option-btn[aria-checked="true"]  .option-dot { background: #FFFFFF; }

/* ── Multi-select chip ─────────────────────────────────── */
.chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  background: var(--color-paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px var(--space-5);
  cursor: pointer;
  width: 100%;
  text-align: start;
  min-height: 52px;
  transition: background var(--duration-base), border-color var(--duration-base);
}
.chip:hover {
  background: var(--color-paper-warm);
  border-color: var(--blue);
}
.chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.chip--selected {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-choice-text);
}

/* Checkmark box */
.chip-check {
  flex: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-base), border-color var(--duration-base);
  background: transparent;
}
.chip--selected .chip-check {
  background: rgba(255,255,255,.85);
  border-color: transparent;
  color: var(--color-choice-text);
}

/* Checkbox row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; flex: none;
  accent-color: var(--blue);
  margin-top: 2px;
}
.checkbox-row a { color: var(--gold); }

/* Inline form row (email + CTA) */
.form-inline {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.form-inline .input { flex: 1 1 210px; }

/* Field messages */
.field-error {
  font-size: var(--text-xs);
  color: #C0392B;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.field-success {
  font-size: var(--text-base);
  color: var(--gold);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: var(--space-3);
  line-height: var(--leading-normal);
}

/* ============================================================
   6. CARDS
   ============================================================ */

/* Base card — paper on sand */
.card {
  background: var(--color-paper);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.5vw, 28px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Dark card */
.card--dark {
  background: var(--bg-panel);
  border-color: var(--line-on-dark);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-card);
}

/* Lift on hover */
.card--lift {
  transition:
    box-shadow var(--duration-base) var(--ease-in-out),
    transform  var(--duration-base) var(--ease-in-out);
}
.card--lift:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Glass card (on sand bg) */
.card--glass {
  background: rgba(251,248,241,.55);
  border: 1px solid rgba(255,255,255,.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 46px rgba(81,91,79,.07), inset 0 1px 0 rgba(255,255,255,.86);
}

/* ── State cards ──────────────────────────────────────── */
.state-card {
  background: var(--color-paper);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.5vw, 28px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}
.state-card::before {
  content: '';
  position: absolute;
  inset-inline-end: 0; top: 0;
  width: 4px; height: 100%;
  background: transparent;
  transition: background var(--duration-base);
}
.state-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.state-card--anxious::before { background: linear-gradient(180deg, var(--state-anxious), transparent); }
.state-card--heavy::before   { background: linear-gradient(180deg, var(--state-heavy),   transparent); }
.state-card--auto::before    { background: linear-gradient(180deg, var(--state-auto),     transparent); }
.state-card--open::before    { background: linear-gradient(180deg, var(--state-open),     transparent); }

.state-card__name-primary {
  font-family: var(--body);
  font-size: 18px;
  font-weight: var(--weight-semibold);
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}
.state-card__name-secondary {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--mono);
}
.state-card__desc {
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Plan / pricing card ──────────────────────────────── */
.plan-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 32px);
  background: var(--color-paper);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-soft);
}
.plan-card--featured {
  border-color: var(--color-peach);
  background: var(--color-paper);
  box-shadow: var(--shadow-peach);
}
.plan-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
}
.plan-card__price {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: var(--weight-regular);
  line-height: 1;
  color: var(--text-primary);
}
.plan-card__price small {
  font-family: var(--body);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--text-muted);
  margin-inline-start: var(--space-2);
}
.plan-card__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}

/* ── Package chip ─────────────────────────────────────── */
.package-chip {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  background: var(--color-paper);
  cursor: pointer;
  transition: background var(--duration-base), border-color var(--duration-base), box-shadow var(--duration-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.package-chip:hover {
  background: var(--color-paper-warm);
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
}
.package-chip--highlighted {
  border-color: var(--color-peach);
  background: rgba(242,201,166,.12);
}
.package-chip__name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  line-height: var(--leading-snug);
}
.package-chip__tag {
  font-size: 10px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
  background: var(--color-gold-mute);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
.package-chip__price {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── In-app message card ──────────────────────────────── */
.msg-card {
  background: var(--color-paper);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-card);
}
.msg-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.msg-card__icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--color-blue);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.msg-card__title {
  font-family: var(--display);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  letter-spacing: var(--tracking-wide);
}
.msg-card__subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.msg-card__body p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.msg-card__body p + p { margin-top: var(--space-3); }
.msg-card__body strong { color: var(--text-primary); font-weight: var(--weight-semibold); }
.msg-card__footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.msg-card__pill {
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--color-peach-mute);
  color: var(--gold);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* ============================================================
   7. NOTIFICATION / PUSH MOCKUP
   ============================================================ */

.notif {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-xs);
}
.notif__icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--color-blue);
  display: flex; align-items: center; justify-content: center;
}
.notif__body { flex: 1; min-width: 0; }
.notif__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.notif__app {
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
}
.notif__time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.notif__msg {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}
.notif__depth {
  margin-top: var(--space-1);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-muted);
  padding-inline-start: 11px;
  border-inline-start: 2px solid var(--color-gold-rim);
}

/* Notification shell */
.notif-shell {
  border-radius: var(--radius-card);
  background: var(--color-paper-warm);
  border: 1px solid var(--line-soft);
  padding: clamp(14px, 2.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-soft);
}

/* ── Phone mockup (small, used in journey) ────────────── */
.phone-mock {
  width: clamp(128px, 13vw, 164px);
  background: var(--color-paper);
  border-radius: 20px;
  border: 1.5px solid var(--line);
  padding: 12px 11px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.phone-mock__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--text-muted);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
}
.phone-mock__dot {
  width: 4px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--line);
  flex: none;
}

/* ── Screen shell (onboarding demo phone) ─────────────── */
/*
  Mimics the mockup's phone frame:
  - White/paper interior
  - Blue top band with lotus logo
  - Bottom wave decoration
*/
.screen-shell {
  background: var(--color-paper);
  border-radius: var(--radius-screen);
  overflow: hidden;
  max-width: 390px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--line-card);
}

/* Blue top band */
.screen-shell__header {
  position: relative;
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex: none;
  min-height: 64px;
}
.screen-shell__header--tall { min-height: 96px; }

/* Wave divider at bottom of blue band */
.screen-shell__wave {
  display: block;
  width: 100%;
  flex: none;
  background: var(--color-blue);
  height: 0;
}

/* Body content area */
.screen-shell__body {
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1;
}

/* Bottom wave strip (decoration below header) */
.screen-shell__footer-wave {
  position: relative;
  height: 40px;
  flex: none;
  background: var(--color-blue);
  overflow: hidden;
}

/* Progress dots (used in onboarding) */
.progress-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.progress-dot {
  width: 7px; height: 7px;
  border-radius: var(--radius-full);
  background: rgba(55,69,60,.16);
  transition: background var(--duration-base), width var(--duration-base);
}
.progress-dot--active {
  background: var(--color-peach);
  width: 20px;
  border-radius: 4px;
}

/* Step label */
.step-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Back nav */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-base);
}
.back-link:hover { color: var(--text-primary); }

/* Breathing ring */
.breath-ring {
  width: 140px; height: 140px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-blue-rim);
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto;
  position: relative;
  flex: none;
  background: radial-gradient(circle at 50% 42%, #D8E7F4 0%, var(--color-blue) 62%, #96BBDB 100%);
  box-shadow: 0 12px 28px rgba(150,187,219,.4);
}
.breath-ring__label {
  font-family: var(--body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  letter-spacing: var(--tracking-wide);
  position: relative; z-index: 1;
}
@keyframes breathe {
  0%, 100% { transform: scale(1);   opacity: .85; }
  50%       { transform: scale(1.18); opacity: 1;  }
}
.breath-ring--animated { animation: breathe 5s var(--ease-in-out) infinite; }

/* ============================================================
   8. FEATURE LIST
   ============================================================ */

.feature-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.feature-item {
  display: flex;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line-soft);
}
.feature-item:first-child { padding-top: 0; }
.feature-item:last-child  { border-bottom: 0; }
.feature-item__icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--color-blue-mute);
  border: 1px solid var(--color-blue-rim);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.feature-item__title {
  display: block;
  font-family: var(--body);
  font-size: 17px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.feature-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   9. SECTION LAYOUT
   ============================================================ */

.section { padding-block: var(--section-y); }
.section--alt  {
  background:
    radial-gradient(circle at 8% 6%, rgba(255,255,255,.58), transparent 27rem),
    radial-gradient(circle at 92% 1%, rgba(173,204,230,.18), transparent 24rem),
    var(--bg-page-alt);
}
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

/* Grain texture overlay (subtle, like mockup) */
.section--grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image: radial-gradient(rgba(71,92,82,.22) .55px, transparent .65px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.sec-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.sec-head .eyebrow { margin-bottom: 14px; display: block; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 54ch;
}

/* Feature / states grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

/* ============================================================
   10. JOURNEY TIMELINE
   ============================================================ */

.journey {
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr);
  position: relative;
}
.journey::before {
  content: '';
  grid-column: 2;
  grid-row: 1 / -1;
  width: 2px;
  background: var(--line);
  margin-inline: auto;
  pointer-events: none;
}
.journey__step { display: contents; }

.journey__step:nth-child(odd)  .journey__card  { grid-column: 1; text-align: end; padding-inline-end: clamp(18px,3vw,34px); }
.journey__step:nth-child(odd)  .journey__node  { grid-column: 2; }
.journey__step:nth-child(odd)  .journey__phone { grid-column: 3; padding-inline-start: clamp(18px,3vw,34px); }
.journey__step:nth-child(even) .journey__card  { grid-column: 3; text-align: start; padding-inline-start: clamp(18px,3vw,34px); }
.journey__step:nth-child(even) .journey__node  { grid-column: 2; }
.journey__step:nth-child(even) .journey__phone { grid-column: 1; padding-inline-end: clamp(18px,3vw,34px); }

html[dir="rtl"] .journey__step:nth-child(odd)  .journey__card  { text-align: start; padding-inline-end: 0; padding-inline-start: clamp(18px,3vw,34px); }
html[dir="rtl"] .journey__step:nth-child(odd)  .journey__phone { padding-inline-start: 0; padding-inline-end: clamp(18px,3vw,34px); }
html[dir="rtl"] .journey__step:nth-child(even) .journey__card  { text-align: end; padding-inline-start: 0; padding-inline-end: clamp(18px,3vw,34px); }
html[dir="rtl"] .journey__step:nth-child(even) .journey__phone { padding-inline-end: 0; padding-inline-start: clamp(18px,3vw,34px); }

.journey__card,
.journey__node,
.journey__phone { padding-block: clamp(22px,3.5vw,40px); }
.journey__phone { display: flex; align-items: center; justify-content: center; }
.journey__node  { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }

.journey__dot {
  width: 13px; height: 13px;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  border: 2px solid var(--text-muted);
  flex: none;
  transition: all var(--duration-slow);
}
.journey__step--active .journey__dot {
  background: var(--color-peach);
  border-color: var(--color-peach);
  box-shadow: 0 0 0 5px var(--color-peach-mute);
}
.section--alt .journey__dot { background: var(--bg-page-alt); }

.journey__time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
  display: block;
}
.journey__card h3 { font-size: clamp(17px, 2vw, 21px); margin-block: 0 9px; }
.journey__card p  { font-size: 14.5px; color: var(--text-secondary); line-height: var(--leading-relaxed); max-width: 32ch; }
.journey__step:nth-child(odd) .journey__card p { margin-inline-start: auto; }
html[dir="rtl"] .journey__step:nth-child(odd) .journey__card p { margin-inline-start: 0; margin-inline-end: auto; }

@media (max-width: 600px) {
  .journey { grid-template-columns: 1fr; }
  .journey::before { display: none; }
  .journey__step:nth-child(odd)  .journey__card,
  .journey__step:nth-child(even) .journey__card  { grid-column: 1; text-align: start; padding-inline: 0; }
  .journey__step:nth-child(odd)  .journey__card p,
  .journey__step:nth-child(even) .journey__card p { margin-inline: 0; }
  .journey__node { display: none; }
  .journey__step:nth-child(odd)  .journey__phone,
  .journey__step:nth-child(even) .journey__phone { grid-column: 1; padding-inline: 0; justify-content: flex-start; }
}

/* ============================================================
   11. HEADER
   ============================================================ */

/*
  The Beinn site header adapts the app header pattern:
  a light background with lotus + wordmark.
  On the landing page the hero section provides the bold
  blue-band first impression.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(251,248,241,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 14px;
}

/* Brand mark + name */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: var(--tracking-wide);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-paper);
}
.lang-toggle__btn {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: .06em;
  background: none;
  border: 0;
  color: var(--text-muted);
  padding: 7px 15px;
  cursor: pointer;
  transition: background var(--duration-base), color var(--duration-base);
}
.lang-toggle__btn[aria-pressed="true"] {
  background: var(--color-ink);
  color: var(--color-paper);
}
.lang-toggle__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* ============================================================
   12. HERO
   ============================================================ */

/*
  Hero adapts the mockup's warm sand-to-blue gradient feel.
  Light background with a prominent lotus and manifesto copy.
*/
.hero {
  position: relative;
  background:
    radial-gradient(circle at 8% 6%, rgba(255,255,255,.68), transparent 27rem),
    radial-gradient(circle at 92% 1%, rgba(173,204,230,.25), transparent 24rem),
    linear-gradient(155deg, #ECE5D8 0%, #E4DED2 47%, #EAE2D5 100%);
  color: var(--text-primary);
  padding-block: clamp(40px,5vw,64px) clamp(56px,8vw,96px);
  overflow: hidden;
}

/* Grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(71,92,82,.22) .55px, transparent .65px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

/* Soft radial glow — blue tint top right */
.hero__glow {
  position: absolute;
  inset-inline-end: -5%;
  top: -10%;
  width: min(700px, 120vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(173,204,230,.30) 0%, transparent 65%);
  border-radius: 50%;
}

/* Concentric rings (subtle, decorative) */
.hero__rings {
  position: absolute;
  inset-inline-start: 50%;
  bottom: -30%;
  translate: -50% 0;
  width: min(1000px, 180vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .18;
}
.hero__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: var(--radius-full);
  border: 1px solid rgba(55,69,60,.25);
}
.hero__ring:nth-child(1) { width: 36%; height: 36%; }
.hero__ring:nth-child(2) { width: 58%; height: 58%; border-color: rgba(55,69,60,.16); }
.hero__ring:nth-child(3) { width: 80%; height: 80%; border-color: rgba(55,69,60,.10); }
.hero__ring:nth-child(4) { width: 100%; height: 100%; border-color: rgba(55,69,60,.06); }

/* ============================================================
   13. FOOTER
   ============================================================ */

.site-footer {
  background:
    linear-gradient(145deg, #2A3E40, #192829);
  color: var(--text-on-dark-mute);
}

.footer-cta {
  text-align: center;
  padding-block: var(--section-y-lg);
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset-inline-start: 50%; top: -10%;
  translate: -50% 0;
  width: min(700px, 140vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(173,204,230,.14), transparent 60%);
}
.footer-cta .wrap { position: relative; z-index: 1; }
.footer-cta .eyebrow { display: block; margin-bottom: 18px; }
.footer-cta h2 {
  color: var(--text-on-dark);
  font-size: clamp(26px, 4.4vw, 52px);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 18px;
  line-height: var(--leading-snug);
}
.footer-cta p {
  font-size: 16px;
  line-height: var(--leading-relaxed);
  max-width: 46ch;
  margin-inline: auto;
  color: var(--text-on-dark-mute);
}

.footer-pills {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 12.5px;
  color: var(--text-on-dark-mute);
  letter-spacing: var(--tracking-wide);
}

.footer-bar {
  border-top: 1px solid var(--line-on-dark-soft);
  padding-block: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px var(--space-6);
  justify-content: space-between;
  font-size: 12.5px;
  padding-inline: var(--pad);
  max-width: var(--max-width);
  margin-inline: auto;
}
.footer-bar nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-bar a { text-decoration: none; transition: color var(--duration-base); }
.footer-bar a:hover { color: var(--text-on-dark); }

/* ============================================================
   14. ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulsePeach {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,201,166,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(242,201,166,.0); }
}
@keyframes omRipple {
  0%   { transform: scale(.55); opacity: .65; }
  100% { transform: scale(1.6); opacity: 0; }
}

.anim-fade-up   { animation: fadeUp   var(--duration-reveal) var(--ease-out) both; }
.anim-fade-in   { animation: fadeIn   var(--duration-reveal) var(--ease-in-out) both; }
.anim-scale-in  { animation: scaleIn  var(--duration-reveal) var(--ease-out) both; }
.anim-pulse-peach { animation: pulsePeach 2s infinite; }

.anim-delay-1 { animation-delay: 100ms; }
.anim-delay-2 { animation-delay: 200ms; }
.anim-delay-3 { animation-delay: 300ms; }
.anim-delay-4 { animation-delay: 400ms; }

/* ============================================================
   15. COMPARISON TABLE
   ============================================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  text-align: start;
}
.comparison-table th {
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.comparison-table td:last-child,
.comparison-table th:last-child { color: var(--gold); }
