/* ============================================================
   Wizefive theme — Notion-inspired tokens & components
   Ported from the Next.js/Tailwind build to plain CSS.
   ============================================================ */

:root {
  --ink: 55 53 47;
  --ink-muted: 120 119 116;
  --paper: 255 255 255;
  --paper-alt: 247 246 243;
  --line: rgba(55, 53, 47, 0.09);
  --accent: 35 131 226;
  --accent-hover: 26 117 209;
  --viz-equity: 79 157 107;
  --viz-cash: 217 164 65;
  --viz-warn: 194 107 90;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 4px 16px rgba(15, 15, 15, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1080px;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: rgb(var(--paper));
  color: rgb(var(--ink));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: rgba(35, 131, 226, 0.18); }

/* Lien d'evitement : hors ecran, revele uniquement au focus clavier. */
.wf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: rgb(var(--accent));
  color: #fff;
  border-radius: 0 0 8px 0;
}
.wf-skip:focus {
  left: 0;
  outline: 2px solid rgb(var(--accent));
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.wf-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .wf-container { padding: 0 32px; }
}

.wf-section { padding: 64px 0; }
@media (min-width: 768px) {
  .wf-section { padding: 96px 0; }
}
.wf-section--alt { background: var(--paper-alt); }

.wf-center { text-align: center; }
.wf-narrow { max-width: 640px; margin: 0 auto; }
.wf-narrow-lg { max-width: 720px; margin: 0 auto; }

/* ---------- Type ---------- */
.wf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--ink-muted));
}
.wf-eyebrow__dot {
  width: 6px; height: 6px; border-radius: 9999px; background: rgb(var(--accent));
}

.wf-h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  margin-top: 20px;
}
.wf-h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  margin-top: 16px;
}
.wf-lead {
  font-size: 16px;
  color: rgb(var(--ink-muted));
  margin-top: 20px;
}
.wf-note {
  font-size: 12px;
  color: rgb(var(--ink-muted));
  margin-top: 16px;
}
@media (min-width: 768px) {
  .wf-h1 { font-size: 60px; }
  .wf-h2 { font-size: 44px; }
  .wf-lead { font-size: 18px; }
}

/* ---------- Buttons ---------- */
.wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  /* Keep the label + trailing arrow on one line so CTAs stay the same height
     (e.g. "Choose Essential +" no longer wraps the arrow to a second row). */
  white-space: nowrap;
}
.wf-btn--primary {
  background: rgb(var(--accent));
  color: #fff;
  box-shadow: var(--shadow-card);
}
.wf-btn--primary:hover {
  background: rgb(var(--accent-hover));
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}
.wf-btn--secondary {
  background: #fff;
  color: rgb(var(--ink));
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
.wf-btn--secondary:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}
.wf-btn--ghost {
  background: transparent;
  color: rgb(var(--ink));
}
.wf-btn--ghost:hover { background: var(--paper-alt); }
.wf-btn--lg { padding: 12px 20px; font-size: 15px; }
.wf-btn--block { width: 100%; }

/* ---------- Cards & pills ---------- */
.wf-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s var(--ease);
}
.wf-card:hover { box-shadow: var(--shadow-lift); }
.wf-card--pad { padding: 24px; }
@media (min-width: 768px) { .wf-card--pad { padding: 28px; } }

.wf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(var(--ink-muted));
}
.wf-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 9999px;
  background: rgb(var(--ink-muted));
}

/* ---------- Reveal animation ---------- */
.wf-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.wf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Nav ---------- */
.wf-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.wf-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.wf-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wf-nav__links { display: none; align-items: center; gap: 4px; }
.wf-nav__link {
  padding: 8px 12px;
  font-size: 14px;
  color: rgb(var(--ink-muted));
  border-radius: 6px;
  transition: color 0.2s var(--ease);
}
.wf-nav__link:hover { color: rgb(var(--ink)); }
.wf-nav__actions { display: none; align-items: center; gap: 6px; }
.wf-nav__mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  color: rgb(var(--ink));
}
.wf-nav__mobile { display: none; }
@media (min-width: 768px) {
  .wf-nav__links, .wf-nav__actions { display: flex; }
  .wf-nav__mobile-toggle { display: none; }
}

/* Mobile menu */
.wf-mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.wf-mobile-menu.is-open { display: block; }
.wf-mobile-menu__nav { display: flex; flex-direction: column; padding: 16px 0; }
.wf-mobile-menu__link { padding: 12px 8px; font-size: 16px; border-radius: 6px; }
.wf-mobile-menu__link:hover { background: var(--paper-alt); }
.wf-mobile-menu__actions { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; margin-top: 8px; }

/* Wordmark */
.wf-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
}
.wf-wordmark__img, .custom-logo { display: block; height: 28px; width: auto; }
.custom-logo-link { display: inline-flex; align-items: center; }
.wf-footer .wf-wordmark__img, .wf-footer .custom-logo { height: 26px; }

/* ---------- Language switcher ---------- */
.wf-lang { position: relative; }
.wf-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: none; background: none; cursor: pointer;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(var(--ink-muted));
  transition: all 0.2s var(--ease);
}
.wf-lang__btn:hover { color: rgb(var(--ink)); background: var(--paper-alt); }
.wf-lang__menu {
  position: absolute;
  right: 0;
  margin-top: 8px;
  min-width: 176px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  z-index: 60;
}
.wf-lang__item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
  color: rgb(var(--ink));
}
.wf-lang__item:hover { background: var(--paper-alt); }
.wf-lang__item.is-current { background: var(--paper-alt); font-weight: 500; }

/* ---------- Hero ---------- */
.wf-hero { position: relative; padding-top: 128px; }
@media (min-width: 768px) { .wf-hero { padding-top: 160px; } }
.wf-hero__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(247, 246, 243, 0.6), transparent);
  pointer-events: none;
}
.wf-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px) { .wf-hero__cta { flex-direction: row; } }

/* Dashboard mockup */
.wf-dash {
  max-width: 960px;
  margin: 64px auto 0;
}
.wf-dash__frame {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.wf-dash__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.wf-dash__dots { display: flex; gap: 6px; }
.wf-dash__dots span { width: 10px; height: 10px; border-radius: 9999px; background: #e5e4e0; }
.wf-dash__body {
  display: grid;
  gap: 24px;
  padding: 20px;
}
@media (min-width: 768px) {
  .wf-dash__body { grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 28px; }
}
.wf-dash__panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.wf-dash__side { display: flex; flex-direction: column; gap: 16px; }

.wf-tickers { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wf-tickers__head,
.wf-tickers__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 8px 16px;
}
.wf-tickers__head {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(var(--ink-muted));
}
.wf-tickers__row { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.wf-tickers__row:last-child { border-bottom: none; }
.wf-ticker-id { display: flex; align-items: center; gap: 10px; }
.wf-ticker-badge {
  display: grid; place-items: center;
  width: 42px; height: 28px; flex-shrink: 0;
  border-radius: 6px;
  background: var(--paper-alt);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.02em; white-space: nowrap;
}
.wf-ticker-name { font-size: 12px; color: rgb(var(--ink-muted)); }
.wf-tabnum { font-variant-numeric: tabular-nums; }

/* ---------- Steps (How it works) ---------- */
.wf-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.wf-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .wf-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wf-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.wf-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .wf-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.wf-step { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wf-step__top { display: flex; align-items: center; justify-content: space-between; }
.wf-step__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--paper-alt);
}
.wf-step__num { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--ink-muted)); }
.wf-step__title { font-size: 18px; font-weight: 600; }
.wf-step__body { font-size: 14px; color: rgb(var(--ink-muted)); margin-top: 6px; line-height: 1.6; }

/* ---------- Cash protection ---------- */
.wf-split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) { .wf-split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.wf-dial-card { max-width: 448px; margin: 0 auto; padding: 24px; }
.wf-dial-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wf-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.wf-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--ink-muted)); }
.wf-stat__value { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin-top: 4px; }
.wf-stat__value--cash { color: rgb(var(--viz-cash)); }

/* ---------- Bento (strategy) ---------- */
.wf-bento {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 768px) { .wf-bento { grid-template-columns: repeat(6, 1fr); gap: 20px; } }
.wf-bento__cell { padding: 20px; display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .wf-col-6 { grid-column: span 6; }
  .wf-col-3 { grid-column: span 3; }
  .wf-col-2 { grid-column: span 2; }
}
.wf-bento__head { display: flex; align-items: flex-start; justify-content: space-between; }
.wf-bento__title { font-size: 16px; font-weight: 600; }
.wf-big { font-family: var(--font-serif); font-size: 36px; font-weight: 600; }
.wf-growth { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) {
  .wf-growth { flex-direction: row; align-items: center; gap: 28px; }
  .wf-growth__fig { flex: 0 0 auto; min-width: 220px; }
  .wf-growth__chart { flex: 1 1 auto; min-width: 0; }
}
.wf-pos { color: #4f9d6b; }
.wf-neg { color: #c26b5a; }
.wf-growth-chart { position: relative; }
.wf-gpt { fill: rgb(79, 157, 107); opacity: 0.4; transition: opacity 0.12s; pointer-events: none; }
.wf-gpt.is-active { opacity: 1; }
.wf-ghint { margin-top: 6px; display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgb(var(--ink-muted)); }
.wf-ghint svg { flex-shrink: 0; opacity: 0.85; }

/* Investment simulator */
.wf-sim { margin-top: 40px; }
.wf-sim__controls { display: grid; gap: 18px; margin-bottom: 18px; }
@media (min-width: 768px) { .wf-sim__controls { grid-template-columns: auto auto 1fr; align-items: start; gap: 28px; } }
.wf-sim__field { display: flex; flex-direction: column; gap: 8px; }
.wf-sim__label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--ink-muted)); }
.wf-sim__amount { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: #fff; font-weight: 600; }
.wf-sim__amount input { border: none; outline: none; width: 96px; font: inherit; font-weight: 600; background: transparent; color: rgb(var(--ink)); }
.wf-sim__presets, .wf-sim__toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-sim__preset, .wf-sim__toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 9999px;
  padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; color: rgb(var(--ink));
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s var(--ease);
}
.wf-sim__preset:hover, .wf-sim__toggle:hover { border-color: rgba(55, 53, 47, 0.25); }
.wf-sim__preset.is-active { background: rgb(var(--ink)); color: #fff; border-color: rgb(var(--ink)); }
.wf-sim__toggle { opacity: 0.5; }
.wf-sim__toggle.is-on { opacity: 1; border-color: rgba(55, 53, 47, 0.22); }
.wf-sim__dot { width: 9px; height: 9px; border-radius: 9999px; flex-shrink: 0; display: inline-block; }
.wf-sim__chart { margin-top: 6px; }
.wf-sim__legend { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 560px) { .wf-sim__legend { grid-template-columns: repeat(2, 1fr); gap: 8px 24px; } }
.wf-sim__row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wf-sim__name { color: rgb(var(--ink)); }
.wf-sim__val { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.wf-sim__row .wf-tabnum { min-width: 46px; text-align: right; }
.wf-gpt-hit { fill: transparent; cursor: pointer; outline: none; }
.wf-gpt-hit:focus-visible { outline: 2px solid #2383e2; }
.wf-gtip {
  position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 10px));
  min-width: 220px; max-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(15, 15, 15, 0.12); padding: 10px 12px;
  font-size: 12px; color: rgb(var(--ink)); pointer-events: none;
}
.wf-gtip[hidden] { display: none; }
.wf-gtip__h { font-weight: 600; margin-bottom: 6px; white-space: nowrap; }
.wf-gtip__t { width: 100%; border-collapse: collapse; }
.wf-gtip__t td { padding: 2px 0; text-align: right; font-variant-numeric: tabular-nums; }
.wf-gtip__t td.wf-gtip__sym { text-align: left; font-weight: 500; padding-right: 10px; }
.wf-gtip__f { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); color: rgb(var(--ink-muted)); }

.wf-splitbar { display: flex; height: 12px; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--paper-alt); }
.wf-splitbar__equity { background: rgb(var(--viz-equity)); height: 100%; }
.wf-splitbar__cash { background: rgb(var(--viz-cash)); height: 100%; }
.wf-legend { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wf-legend__sw { width: 8px; height: 8px; border-radius: 2px; }
.wf-sw-equity { background: rgb(var(--viz-equity)); }
.wf-sw-cash { background: rgb(var(--viz-cash)); }

/* ---------- Testimonials ---------- */
.wf-grid--3 { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wf-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.wf-quote { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.wf-quote__text { font-family: var(--font-serif); font-size: 17px; line-height: 1.6; }
.wf-quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.wf-avatar {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--paper-alt);
  font-size: 14px; font-weight: 600;
}
.wf-quote__name { font-size: 14px; font-weight: 500; }
.wf-quote__role { font-size: 12px; color: rgb(var(--ink-muted)); }

/* ---------- Pricing ---------- */
.wf-pricing { display: grid; gap: 16px; max-width: 720px; margin: 56px auto 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wf-pricing { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.wf-tier { position: relative; padding: 28px; display: flex; flex-direction: column; }
.wf-tier--featured { box-shadow: var(--shadow-lift); border-color: rgba(55, 53, 47, 0.15); }
.wf-tier__badge {
  position: absolute; top: -10px; left: 28px;
  background: rgb(var(--ink)); color: #fff;
  border-radius: 9999px; padding: 4px 10px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.wf-tier__name { font-size: 18px; font-weight: 600; }
.wf-tier__blurb { font-size: 14px; color: rgb(var(--ink-muted)); margin-top: 4px; }
.wf-tier__price { display: flex; align-items: baseline; gap: 4px; margin-top: 24px; }
.wf-tier__amount { font-family: var(--font-serif); font-size: 48px; font-weight: 600; letter-spacing: -0.02em; }
.wf-tier__cadence { font-size: 14px; color: rgb(var(--ink-muted)); }
.wf-tier__features { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wf-feat { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.wf-feat__check { color: rgb(var(--accent)); flex-shrink: 0; margin-top: 2px; }
.wf-tier__cta { margin-top: 32px; }

/* Four-plan grid: wider, 2-up on tablet, 4-up on desktop. */
.wf-pricing--4 { max-width: 1080px; }
@media (min-width: 1024px) { .wf-pricing--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.wf-pricing--4 .wf-tier { padding: 24px; }
/* Single plan — one centred card. */
.wf-pricing--1 { max-width: 380px; }
@media (min-width: 768px) { .wf-pricing--1 { grid-template-columns: 1fr; } }
.wf-pricing--4 .wf-tier__amount { font-size: 40px; }

/* Plan tagline (under name) + longer description (under price). */
.wf-tier__desc { font-size: 13px; color: rgb(var(--ink-muted)); margin-top: 16px; line-height: 1.5; }

/* Annual savings line — hidden until the Annual cadence is selected. */
.wf-tier__save { font-size: 13px; font-weight: 600; color: rgb(var(--accent)); margin-top: 6px; min-height: 1.2em; visibility: hidden; }
.wf-pricing.is-annual .wf-tier__save { visibility: visible; }

/* Monthly / Annual toggle. */
.wf-billing { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.wf-billing__switch { display: inline-flex; padding: 4px; background: rgb(var(--paper-alt, 247 246 243)); border: 1px solid var(--line); border-radius: 9999px; }
.wf-billing__opt {
  border: none; background: none; cursor: pointer;
  padding: 7px 18px; border-radius: 9999px;
  font-size: 14px; font-weight: 500; color: rgb(var(--ink-muted));
  transition: background-color 0.15s ease, color 0.15s ease;
}
.wf-billing__opt.is-active { background: #fff; color: rgb(var(--ink)); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.wf-billing__hint { font-size: 13px; color: rgb(var(--accent)); font-weight: 500; }

/* ---------- FAQ ---------- */
.wf-faq { max-width: 640px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .wf-faq { max-width: 920px; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } }
.wf-faq__item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.wf-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: rgb(var(--ink));
  transition: background 0.2s var(--ease);
}
.wf-faq__q:hover { background: rgba(247, 246, 243, 0.6); }
.wf-faq__icon {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 9999px;
  color: rgb(var(--ink-muted));
}
.wf-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.wf-faq__a-inner { padding: 0 20px 20px; font-size: 15px; color: rgb(var(--ink-muted)); line-height: 1.6; }
.wf-faq__item.is-open .wf-faq__a { max-height: 400px; }

/* ---------- Email form ---------- */
.wf-emailform { max-width: 448px; margin: 32px auto 0; text-align: left; }
.wf-form-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: rgb(var(--ink-muted));
  text-align: center;
}

/* ---------- Footer ---------- */
.wf-footer { border-top: 1px solid var(--line); background: #fff; }
.wf-footer__top { display: grid; gap: 48px; padding: 64px 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wf-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.wf-footer__tagline { font-size: 14px; color: rgb(var(--ink-muted)); margin-top: 16px; max-width: 280px; }
.wf-footer__coltitle { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--ink-muted)); }
.wf-footer__links { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.wf-footer__links a { font-size: 14px; transition: color 0.2s var(--ease); }
.wf-footer__links a:hover { color: rgb(var(--accent)); }
.wf-footer__bar {
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--line); padding: 24px 0;
  font-size: 12px; color: rgb(var(--ink-muted));
}
@media (min-width: 768px) { .wf-footer__bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.wf-footer__disclaimer { border-top: 1px solid var(--line); background: var(--paper-alt); }
.wf-footer__disclaimer-inner { max-width: 880px; padding: 32px 0; font-size: 12px; line-height: 1.6; color: rgb(var(--ink-muted)); }
.wf-footer__disclaimer-title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* Center the footer on mobile — the stacked single column read too left-heavy. */
@media (max-width: 767px) {
  .wf-footer__top { justify-items: center; text-align: center; gap: 36px; }
  .wf-footer__top > div { display: flex; flex-direction: column; align-items: center; }
  .wf-footer__tagline { margin-left: auto; margin-right: auto; }
  .wf-footer__links { align-items: center; }
  .wf-footer__bar { align-items: center; text-align: center; }
}

/* ---------- Utilities ---------- */
.wf-mt-3 { margin-top: 12px; }
.wf-mt-4 { margin-top: 16px; }
.wf-mt-5 { margin-top: 20px; }
.wf-stack > * + * { margin-top: 10px; }
.wf-spacer { width: 48px; }

/* WizeFive Core shortcode output: align to theme tables */
.allocations-table,
.performance-table,
.wf-display-composite-table,
.wf-simulation-table,
.performance-dernier-trimestre-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
}
.allocations-table th,
.performance-table th,
.wf-display-composite-table th,
.wf-simulation-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(var(--ink-muted));
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.allocations-table td,
.performance-table td,
.wf-display-composite-table td,
.wf-simulation-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.ticker-logo { max-width: 28px; border-radius: 4px; }
.performance-value.positive { color: rgb(var(--viz-equity)); }
.performance-value.negative { color: rgb(var(--viz-warn)); }

/* ---------- Subscriber dashboard (page-account.php) ---------- */
/* Tighter vertical rhythm than the marketing pages — it's a dashboard. Scoped
   to .wf-account-page so the shared .wf-section spacing elsewhere is untouched. */
.wf-account-page .wf-section { padding: 32px 0; }
@media (min-width: 768px) { .wf-account-page .wf-section { padding: 44px 0; } }
/* The nav is position:fixed, so the first section needs room to clear it and
   breathe (the marketing hero does the same with its big top padding). */
.wf-account-page > section:first-of-type { padding-top: 104px; }
@media (min-width: 768px) { .wf-account-page > section:first-of-type { padding-top: 132px; } }
.wf-account-page .wf-account-hero { padding-bottom: 8px; }
.wf-account-page .wf-lead { margin-top: 8px; }
.wf-account-page .wf-h2 { margin-bottom: 0; }
.wf-account-page .wf-mt-5 { margin-top: 24px; }
.wf-account-page .wf-mt-4 { margin-top: 16px; }
.wf-account-page .wf-card--pad { padding: 20px; }
@media (min-width: 768px) { .wf-account-page .wf-card--pad { padding: 22px; } }
.wf-account-page .wf-substrat-grid { gap: 16px; }
.wf-account-page .wf-substrat { gap: 12px; }
.wf-account-page .wf-substrat__pick { padding: 8px 0; }

.wf-account-gate { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Front-end auth (page-login.php) ---------- */
.wf-auth-wrap { max-width: 420px; margin: 0 auto; }
.wf-auth__head { text-align: center; margin-bottom: 20px; }
.wf-auth__head .wf-eyebrow { justify-content: center; }
.wf-auth__head .wf-note { margin-top: 6px; }
.wf-auth form { margin: 0; }
.wf-auth p.login-username,
.wf-auth p.login-password,
.wf-auth .wf-auth__field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.wf-auth label { font-size: 13px; font-weight: 500; color: rgb(var(--ink)); }
.wf-auth input[type="text"],
.wf-auth input[type="password"],
.wf-auth input[type="email"] {
  width: 100%; padding: 11px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: rgb(var(--ink)); font-family: inherit;
}
.wf-auth input[type="text"]:focus,
.wf-auth input[type="password"]:focus,
.wf-auth input[type="email"]:focus { outline: 2px solid rgb(var(--accent)); outline-offset: 1px; border-color: transparent; }
.wf-auth p.login-remember { margin: 0 0 16px; }
.wf-auth p.login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: rgb(var(--ink-muted)); }
.wf-auth p.login-remember input { width: auto; margin: 0; }
.wf-auth p.login-submit { margin: 0; }
.wf-auth #wp-submit {
  display: inline-block; width: 100%; cursor: pointer;
  padding: 12px 20px; font-size: 15px; font-weight: 600; line-height: 1.2;
  border-radius: 8px; border: 1px solid rgb(var(--accent));
  background: rgb(var(--accent)); color: #fff; transition: background 0.15s var(--ease);
}
.wf-auth #wp-submit:hover { background: rgb(var(--accent-hover)); border-color: rgb(var(--accent-hover)); }
.wf-auth__links { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 14px; }
.wf-auth__link { color: rgb(var(--accent)); }
.wf-auth__signup { color: rgb(var(--ink-muted)); }
.wf-auth__error {
  background: #fdecea; border: 1px solid #f5c6c0; color: #8a1c10;
  border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px;
}
.wf-auth__ok {
  background: #edf7ed; border: 1px solid #c3e6c4; color: #1d6f1f;
  border-radius: 8px; padding: 11px 13px; font-size: 14px; line-height: 1.5;
}
.wf-auth__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* ---------- Manage account (page-account.php zone 3) ---------- */
.wf-acct-cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wf-acct-cols { grid-template-columns: 1fr 1fr; gap: 20px; } }
.wf-acct-card__title { font-size: 15px; font-weight: 600; }
.wf-acct-subtitle { font-size: 18px; font-weight: 600; }
.wf-upgrade { display: flex; flex-direction: column; align-items: flex-start; }

/* MemberPress account form, restyled to match the theme. */
.wf-mepr { font-size: 14px; color: rgb(var(--ink)); }
.wf-mepr a { color: rgb(var(--accent)); }
.wf-mepr ul.mepr-nav, .wf-mepr .mepr-account-nav {
  list-style: none; margin: 0 0 22px; padding: 0 0 2px;
  display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line);
}
.wf-mepr .mepr-nav-item { list-style: none; margin: 0; }
.wf-mepr .mepr-nav-item a {
  display: inline-block; padding: 8px 14px; border-radius: 8px 8px 0 0;
  color: rgb(var(--ink-muted)); text-decoration: none; font-weight: 500;
}
.wf-mepr .mepr-nav-item.mepr-active-nav-tab a,
.wf-mepr .mepr-nav-item a:hover { color: rgb(var(--ink)); background: var(--paper-alt); }
.wf-mepr .mp-form-row, .wf-mepr .mepr_spacer { margin: 0 0 14px; }
.wf-mepr .mp-form-label label, .wf-mepr label {
  display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: rgb(var(--ink));
}
.wf-mepr input[type="text"], .wf-mepr input[type="email"],
.wf-mepr input[type="password"], .wf-mepr input[type="tel"],
.wf-mepr select, .wf-mepr textarea {
  width: 100%; max-width: 440px; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: rgb(var(--ink)); font-family: inherit;
}
.wf-mepr input:focus, .wf-mepr select:focus, .wf-mepr textarea:focus {
  outline: 2px solid rgb(var(--accent)); outline-offset: 1px; border-color: transparent;
}
.wf-mepr .mepr-submit, .wf-mepr input[type="submit"], .wf-mepr button[type="submit"] {
  display: inline-block; cursor: pointer; padding: 11px 20px; font-size: 15px; font-weight: 600;
  border-radius: 8px; border: 1px solid rgb(var(--accent)); background: rgb(var(--accent));
  color: #fff; transition: background 0.15s var(--ease);
}
.wf-mepr .mepr-submit:hover, .wf-mepr input[type="submit"]:hover, .wf-mepr button[type="submit"]:hover {
  background: rgb(var(--accent-hover)); border-color: rgb(var(--accent-hover));
}
.wf-mepr table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.wf-mepr th, .wf-mepr td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }

/* Member sub-navigation (Dashboard | Account & billing) */
.wf-subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 20px; flex-wrap: wrap; }
.wf-subnav__item {
  padding: 10px 14px; font-size: 14px; font-weight: 500; color: rgb(var(--ink-muted));
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none;
}
.wf-subnav__item:hover { color: rgb(var(--ink)); }
.wf-subnav__item.is-active { color: rgb(var(--ink)); border-bottom-color: rgb(var(--accent)); }

/* Dashboard → account/billing entry card */
.wf-acct-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 640px) { .wf-acct-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.wf-acct-cta .wf-btn { flex-shrink: 0; }

/* ---------- Account & billing page (page-billing.php) ---------- */
.wf-bill-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wf-bill-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.wf-bill-card { display: flex; flex-direction: column; }
.wf-bill-card__title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.wf-bill-card__foot { margin-top: auto; padding-top: 16px; font-size: 14px; }
.wf-bill-h2 { font-size: 20px; }

.wf-bill-info { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wf-bill-info > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.wf-bill-info dt { font-size: 13px; color: rgb(var(--ink-muted)); margin: 0; }
.wf-bill-info dd { font-size: 14px; margin: 0; text-align: right; font-weight: 500; word-break: break-word; }
.wf-bill-info--tight { gap: 8px; margin-top: 12px; }

.wf-sub__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wf-sub__plan { font-size: 16px; font-weight: 600; }
.wf-sub__price { font-size: 14px; color: rgb(var(--ink-muted)); margin-top: 4px; }
.wf-sub__price strong { color: rgb(var(--ink)); }
.wf-sub + .wf-sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.wf-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.wf-badge--ok { background: #edf7ed; color: #1d6f1f; border-color: #c3e6c4; }
.wf-badge--warn { background: #fdf6e3; color: #8a6d1a; border-color: #ecd9a0; }
.wf-badge--bad { background: #fdecea; color: #8a1c10; border-color: #f5c6c0; }
.wf-badge--neutral { background: var(--paper-alt); color: rgb(var(--ink-muted)); border-color: var(--line); }

.wf-bill-table-wrap { overflow-x: auto; padding: 0; }
.wf-bill-table { width: 100%; border-collapse: collapse; }
.wf-bill-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: rgb(var(--ink-muted)); font-weight: 500; padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.wf-bill-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.wf-bill-table tr:last-child td { border-bottom: none; }
.wf-bill-table .wf-num { text-align: right; }

/* On-brand "Edit your details" form */
.wf-editform { max-width: 560px; }
.wf-editform__row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .wf-editform__row { grid-template-columns: 1fr 1fr; } }
.wf-editform__divider {
  margin: 6px 0 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: rgb(var(--ink));
}
.wf-editform__divider span { font-weight: 400; color: rgb(var(--ink-muted)); font-size: 13px; }
.wf-formmsg { border-radius: 8px; padding: 11px 14px; font-size: 14px; line-height: 1.5; }
.wf-formmsg--ok { background: #edf7ed; color: #1d6f1f; border: 1px solid #c3e6c4; }
.wf-formmsg--err { background: #fdecea; color: #8a1c10; border: 1px solid #f5c6c0; }
.wf-bill-card .wf-formmsg { margin-bottom: 16px; }

/* Cancel / re-subscribe controls */
.wf-btn--danger { background: #c0392b; border: 1px solid #c0392b; color: #fff; }
.wf-btn--danger:hover { background: #a93226; border-color: #a93226; }
.wf-sub__manage { margin-top: 16px; }
.wf-sub__cancel { color: #c0392b; font-size: 14px; }
.wf-sub__cancel:hover { text-decoration: underline; }
.wf-cancel-confirm { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.wf-cancel-confirm p { font-size: 14px; }
.wf-cancel-confirm__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wf-cancel-confirm__actions form { margin: 0; }

.wf-account-hero { padding-bottom: 32px; }
.wf-account-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .wf-account-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.wf-account-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 768px) { .wf-account-meta { align-items: flex-end; text-align: right; } }
.wf-account-meta__label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgb(var(--ink-muted));
}
.wf-account-plans { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-plan-badge {
  display: inline-flex; align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: rgb(var(--paper));
  padding: 5px 12px;
  font-size: 13px; font-weight: 600;
}
.wf-account-logout { font-size: 13px; color: rgb(var(--ink-muted)); text-decoration: underline; }
.wf-account-logout:hover { color: rgb(var(--ink)); }
.wf-account-note {
  margin-top: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--paper-alt);
  padding: 12px 16px;
  font-size: 13px; color: rgb(var(--ink-muted));
}
.wf-account-body { color: rgb(var(--ink-muted)); }

/* Strategy cards (zone 1) */
.wf-substrat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .wf-substrat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wf-substrat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.wf-substrat { display: flex; flex-direction: column; gap: 16px; }
.wf-substrat__head { display: flex; align-items: flex-start; gap: 10px; }
.wf-substrat__dot {
  width: 10px; height: 10px; border-radius: 9999px; flex-shrink: 0;
  background: var(--wf-accent, rgb(var(--accent)));
  margin-top: 5px;
}
.wf-substrat__heading { min-width: 0; }
.wf-substrat__name { font-size: 17px; font-weight: 600; line-height: 1.2; }
.wf-substrat__cadence {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgb(var(--ink-muted));
}
.wf-substrat__date {
  margin-left: auto; text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 2px; line-height: 1.2;
}
.wf-substrat__date-label {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgb(var(--ink-muted));
}
.wf-substrat__date time {
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: rgb(var(--ink));
}
.wf-substrat__picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wf-substrat__pick {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.wf-substrat__pick:last-child { border-bottom: none; }
.wf-substrat__pick--cash { color: rgb(var(--ink-muted)); }
.wf-ticker-badge--cash { background: transparent; border: 1px dashed var(--line); }
.wf-substrat__company {
  flex: 1; min-width: 0;
  font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-substrat__weight { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.wf-substrat__foot { font-size: 12px; color: rgb(var(--ink-muted)); }

/* ---------- Glossary term tooltip ---------- */
.wf-term {
  position: relative;
  border-bottom: 1px dashed rgb(var(--ink-muted));
  cursor: help;
  white-space: nowrap;
}
.wf-term:focus { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; border-radius: 2px; }
.wf-term__pop {
  position: absolute;
  left: 50%; bottom: calc(100% + 10px);
  width: max-content; max-width: 280px;
  background: rgb(var(--ink)); color: #fff;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; line-height: 1.45; font-weight: 400;
  text-align: left; letter-spacing: 0; white-space: normal;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  z-index: 60; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); pointer-events: none;
}
.wf-term__pop::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: rgb(var(--ink));
}
.wf-term:hover .wf-term__pop,
.wf-term:focus .wf-term__pop,
.wf-term:focus-within .wf-term__pop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
@media (max-width: 480px) { .wf-term__pop { max-width: 220px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .wf-reveal { opacity: 1; transform: none; }
}

/* ---------- Legal notice (editable long-form content) ---------- */
.wf-legal { color: rgb(var(--ink)); }
.wf-legal h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem; font-weight: 600;
  margin: 2rem 0 0.5rem; color: rgb(var(--ink));
}
.wf-legal h2:first-child { margin-top: 0; }
.wf-legal p { margin: 0 0 1rem; line-height: 1.7; color: rgb(var(--ink-muted)); }
.wf-legal a { color: rgb(var(--accent)); }
.wf-legal ul { margin: 0 0 1rem 1.25rem; color: rgb(var(--ink-muted)); line-height: 1.7; }

/* ---------- Sortable performance tables (progressive enhancement) ---------- */
.wf-summary__table th.is-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.wf-summary__table th.is-sortable::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4em;
  vertical-align: middle;
  border-left: 0.3em solid transparent;
  border-right: 0.3em solid transparent;
  border-top: 0.3em solid currentColor;
  opacity: 0.25;
  transition: opacity var(--ease, ease) 0.15s, transform var(--ease, ease) 0.15s;
}
.wf-summary__table th.is-sortable:hover::after { opacity: 0.55; }
.wf-summary__table th.is-sorted-asc::after { opacity: 0.9; transform: rotate(180deg); }
.wf-summary__table th.is-sorted-desc::after { opacity: 0.9; }
.wf-summary__table th.is-sortable:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: -2px;
}

/* ============================================================
   Member area — market-health (inverted) & cancellation block
   ============================================================ */

/* D2 — market-health card: two columns (figures + gauge). The --inverted
   modifier puts figures on the LEFT and the gauge on the RIGHT, mirroring
   the home hero (gauge-first) so it reads as the same reading, not a copy. */
.wf-market-health {
  display: flex;
  align-items: center;
  gap: 32px;
}
.wf-market-health__fig { flex: 1 1 0; min-width: 0; }
.wf-market-health__gauge {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.wf-market-health--inverted { flex-direction: row-reverse; }

@media (max-width: 640px) {
  .wf-market-health,
  .wf-market-health--inverted { flex-direction: column; gap: 20px; }
  .wf-market-health__gauge { width: 100%; }
}

/* D4 — cancellation block: modalities list + actions row. */
.wf-cancel-terms {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  color: rgb(var(--ink-muted));
  font-size: 14px;
  line-height: 1.7;
}
.wf-cancel-terms li { margin: 0 0 4px; }
.wf-cancel-block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.wf-cancel-block__terms {
  color: rgb(var(--ink-muted));
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.wf-cancel-block__terms:hover { color: rgb(var(--accent)); }
