/* ============================================================
   STRATUM DESIGN SYSTEM — Web
   Version 2.0 — March 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ============================================================
   COLOR TOKENS
   ============================================================ */
:root {
  /* Base */
  --parchment:   #F7F3EE;
  --linen:       #F0EDE8;
  --sand:        #E8E2D9;
  --driftwood:   #D4CCC0;

  /* Anchor — typography */
  --espresso:    #1F1A14;
  --deep-forest: #1F2D28;
  --bark:        #4A4035;
  --dusk:        #8A8070;

  /* Primary accent — jade family */
  --rainforest:  #2D6A5A;
  --jade:        #4A9B84;
  --seafoam:     #7DCFB6;
  --mist:        #B8EAD8;
  --jade-tint:   #E8F6F1;

  /* Enhanced tier — amber family */
  --amber-clay:  #C17F3A;
  --warm-gold:   #E8A455;
  --honey-tint:  #F5DDB8;
  --cream-gold:  #FBF0DC;

  /* Complete tier — violet family */
  --violet:      #6B4F7A;
  --violet-mid:  #9B7AAB;
  --violet-tint: #F3EEF6;

  /* System */
  --error:       #C0573A;
  --error-tint:  #FAECE7;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', -apple-system, sans-serif;

  /* Spacing & shape */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 100px;
  --max-width:   680px;
  --page-pad:    24px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--parchment);
  color: var(--bark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.loaded { opacity: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page { min-height: 100vh; background: var(--parchment); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.screen {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad) 64px;
  min-height: 100vh;
}

.section-full { width: 100%; padding: 64px var(--page-pad); }
.section-full .inner { max-width: var(--max-width); margin: 0 auto; }

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--espresso);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,238,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--sand);
  transition: box-shadow 0.2s ease;
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--deep-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--dusk);
  text-decoration: none;
  transition: color 0.15s;
}
.header-link:hover  { color: var(--espresso); }
.header-link.active { color: var(--jade); }

/* Header CTA button — replaces old inline style */
.btn-header { padding: 8px 18px !important; font-size: 13px !important; }

/* ── Mobile hamburger ───────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--linen); }
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bark);
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Mobile menu drawer ─────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--parchment);
  border-top: 1px solid var(--sand);
  padding: 8px 0 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--bark);
  text-decoration: none;
  padding: 13px 20px;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.mobile-link:hover { background: var(--linen); color: var(--espresso); }
.mobile-link-cta {
  color: var(--rainforest);
  font-weight: 500;
  border-top: 1px solid var(--sand);
  margin-top: 4px;
}
.mobile-menu-note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--dusk);
  padding: 0 20px;
  margin-top: 4px;
}

/* ── main landmark ──────────────────────────────────────────────────────── */
main:focus { outline: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, .h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.2;
}

h3, .h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.3;
}

.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusk);
  margin-bottom: 8px;
  display: block;
}
.eyebrow-jade   { color: var(--jade); }
.eyebrow-amber  { color: var(--amber-clay); }
.eyebrow-violet { color: var(--violet); }

.body-copy { font-size: 15px; line-height: 1.75; color: var(--bark); font-weight: 300; }
.body-copy strong { font-weight: 500; color: var(--espresso); }
.caption { font-size: 12px; color: var(--dusk); line-height: 1.5; }

.pull-quote {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
  border-left: 2px solid var(--jade);
  padding-left: 16px;
  color: var(--rainforest);
  margin: 4px 0;
}

.link {
  color: var(--jade);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.link:hover { color: var(--rainforest); }

/* Colored periods */
.jade-period   { color: var(--jade);       font-style: italic; }
.amber-period  { color: var(--amber-clay); font-style: italic; }
.violet-period { color: var(--violet);     font-style: italic; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
  line-height: 1;
}
.btn:hover  { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-full   { width: 100%; display: block; }

.btn-primary { background: var(--espresso); color: white; }
.btn-jade    { background: var(--jade); color: white; }
.btn-amber   { background: var(--amber-clay); color: white; }
.btn-violet  { background: var(--violet); color: white; }

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--sand);
}
.btn-outline:hover { border-color: var(--bark); }

.btn-ghost {
  background: transparent;
  color: var(--dusk);
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
}

.btn-apple {
  background: white;
  color: var(--espresso);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 48px;
}
.btn-apple:hover { background: var(--linen); }

.btn-stack { display: flex; flex-direction: column; gap: 10px; }

/* Nudge buttons */
.btn-nudge-amber {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  background: var(--amber-clay);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.15s;
  min-height: 44px;
}
.btn-nudge-amber:hover { background: var(--warm-gold); }

.btn-nudge-violet {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  background: var(--violet);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.15s;
  min-height: 44px;
}
.btn-nudge-violet:hover { background: var(--violet-mid); }

.btn-upgrade-amber {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--amber-clay);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  min-height: 52px;
  width: 100%;
}
.btn-upgrade-amber:hover:not(:disabled) { background: var(--warm-gold); }
.btn-upgrade-amber:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-upgrade-violet {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--violet);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  min-height: 52px;
  width: 100%;
}
.btn-upgrade-violet:hover:not(:disabled) { background: var(--violet-mid); }
.btn-upgrade-violet:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border: 0.5px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.card-linen  { background: var(--linen);       border: 0.5px solid var(--sand);                    border-radius: var(--radius-lg); padding: 20px 22px; }
.card-jade   { background: var(--jade-tint);   border: 0.5px solid rgba(74,155,132,0.2);           border-radius: var(--radius-lg); padding: 20px 22px; }
.card-amber  { background: var(--cream-gold);  border: 0.5px solid rgba(193,127,58,0.2);           border-radius: var(--radius-lg); padding: 20px 22px; }
.card-violet { background: var(--violet-tint); border: 0.5px solid rgba(107,79,122,0.2);           border-radius: var(--radius-lg); padding: 20px 22px; }

/* ============================================================
   AUTH SHELL (register, login, onboarding, pre-report)
   ============================================================ */
.auth-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px var(--page-pad) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: calc(100dvh - 60px);
}

.auth-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: 0.04em;
  text-decoration: none;
  align-self: flex-start;
}

.auth-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.2;
  margin: 0;
}

.auth-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--dusk);
  margin: 0;
  line-height: 1.5;
}

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--sand);
}
.auth-divider span {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--dusk);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--dusk);
  line-height: 1.5;
  cursor: pointer;
}
.auth-terms input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--jade); }

.auth-switch {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--dusk);
  text-align: center;
}

.auth-note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--dusk);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--bark);
  letter-spacing: 0.04em;
}

.field-input {
  width: 100%;
  padding: 13px 16px;
  background: white;
  border: 0.5px solid var(--sand);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--espresso);
  outline: none;
  transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--jade); }
.field-input::placeholder { color: var(--dusk); }

/* New form group pattern used in auth templates */
.form-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.form-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bark);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: white;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--espresso);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(74,155,132,0.1);
}
.form-input::placeholder { color: var(--dusk); }
.form-input.field-error  { border-color: var(--error); }

.field-hint { font-size: 12px; color: var(--dusk); line-height: 1.5; }

/* ============================================================
   EYEBROW PILLS
   ============================================================ */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow-pill-jade   { background: rgba(45,106,90,0.08);  border: 0.5px solid rgba(45,106,90,0.2);   color: var(--rainforest); }
.eyebrow-pill-amber  { background: rgba(193,127,58,0.1);  border: 0.5px solid rgba(193,127,58,0.25); color: var(--amber-clay); }
.eyebrow-pill-violet { background: rgba(107,79,122,0.1);  border: 0.5px solid rgba(107,79,122,0.25); color: var(--violet); }
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   SURVEY
   ============================================================ */
.survey-option {
  background: white;
  border: 0.5px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.survey-option:hover                            { border-color: var(--jade); }
.survey-option.selected                         { background: var(--jade-tint); border-color: var(--jade); }
.survey-indicator {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.survey-option.selected .survey-indicator       { background: var(--jade); border-color: var(--jade); }
.survey-indicator-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  display: none;
}
.survey-option.selected .survey-indicator-dot  { display: block; }
.survey-option-text                             { font-size: 14px; color: var(--bark); line-height: 1.45; }
.survey-option.selected .survey-option-text    { color: var(--espresso); font-weight: 500; }

/* ============================================================
   CHIPS
   ============================================================ */
.chips     { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--bark);
  background: var(--linen);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.chip:hover { border-color: var(--jade); }
.chip.selected {
  background: var(--jade-tint);
  border-color: var(--jade);
  color: var(--rainforest);
  font-weight: 500;
}

/* ============================================================
   PROGRESS
   ============================================================ */
.progress-bar-wrap { margin-bottom: 8px; }
.progress-track {
  height: 4px;
  background: var(--sand);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--jade);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}
.progress-labels { display: flex; justify-content: space-between; margin-top: 6px; }

/* ============================================================
   DIMENSION NAV PILLS (report pages)
   ============================================================ */
.dim-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dim-nav::-webkit-scrollbar { display: none; }

.dim-pill {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dusk);
  background: var(--linen);
  border: 1.5px solid var(--sand);
  border-radius: 99px;
  padding: 5px 13px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.dim-pill:hover         { border-color: var(--jade); color: var(--rainforest); }
.dim-pill:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.dim-pill.active        { background: var(--jade-tint);  border-color: var(--jade);       color: var(--rainforest); }
.dim-pill.active.amber  { background: var(--honey-tint); border-color: var(--amber-clay); color: var(--amber-clay); }
.dim-pill.active.violet { background: var(--violet-tint); border-color: var(--violet);    color: var(--violet); }

/* Free badge on dimension title */
.dim-free-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--jade-tint);
  color: var(--rainforest);
  border-radius: 99px;
  padding: 3px 9px;
  display: inline-block;
  margin-top: 4px;
}

/* ============================================================
   BAR CHART
   ============================================================ */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 120px;
}
.bar-col       { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; }
.bar-val       { font-size: 11px; font-weight: 500; color: var(--espresso); margin-bottom: 4px; }
.bar-track     { width: 100%; border-radius: 5px 5px 0 0; transition: height 0.5s ease; }
.bar-x-label   { font-size: 10px; color: var(--dusk); text-align: center; margin-top: 7px; line-height: 1.3; }

/* ============================================================
   SETTINGS ROWS
   ============================================================ */
.settings-group {
  background: white;
  border: 0.5px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 0.5px solid var(--sand);
  cursor: pointer;
  transition: background 0.1s;
}
.settings-row:hover          { background: var(--linen); }
.settings-row:last-child     { border-bottom: none; }
.settings-row-title          { font-size: 14px; font-weight: 500; color: var(--espresso); margin-bottom: 2px; }
.settings-row-value          { font-size: 12px; color: var(--dusk); }
.settings-arrow              { color: var(--driftwood); font-size: 18px; }

/* ============================================================
   TOGGLE
   ============================================================ */
.toggle {
  width: 40px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--sand);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  flex-shrink: 0;
}
.toggle.on { background: var(--jade); }
.toggle-knob {
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform 0.2s;
}
.toggle.on .toggle-knob { transform: translateX(18px); }

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider     { height: 0.5px; background: var(--sand); margin: 20px 0; }
.divider-row { display: flex; align-items: center; gap: 12px; }
.divider-line { flex: 1; height: 0.5px; background: var(--sand); }
.divider-text { font-size: 12px; color: var(--dusk); }

/* ============================================================
   TIER BADGES
   ============================================================ */
.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tier-badge-free     { background: var(--jade-tint);   color: var(--rainforest); border: 0.5px solid rgba(74,155,132,0.2); }
.tier-badge-enhanced { background: var(--cream-gold);  color: #854F0B;           border: 0.5px solid rgba(193,127,58,0.25); }
.tier-badge-complete { background: var(--violet-tint); color: var(--violet);     border: 0.5px solid rgba(107,79,122,0.25); }

/* ============================================================
   LEGAL
   ============================================================ */
.legal-section       { margin-bottom: 24px; }
.legal-section-title { font-size: 13px; font-weight: 500; color: var(--espresso); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 0.5px solid var(--sand); }
.legal-text          { font-size: 13px; color: var(--bark); line-height: 1.75; font-weight: 300; }
.legal-text strong   { font-weight: 500; color: var(--espresso); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse-ring { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.5; } }
@keyframes shimmer    { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes fade-cycle {
  0%  { opacity: 0; transform: translateY(5px); }
  12% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  92% { opacity: 0; transform: translateY(-5px); }
  100%{ opacity: 0; }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fade-in 0.3s ease forwards; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-4  { margin-top: 4px; }   .mb-4  { margin-bottom: 4px; }
.mt-8  { margin-top: 8px; }   .mb-8  { margin-bottom: 8px; }
.mt-12 { margin-top: 12px; }  .mb-12 { margin-bottom: 12px; }
.mt-16 { margin-top: 16px; }  .mb-16 { margin-bottom: 16px; }
.mt-20 { margin-top: 20px; }  .mb-20 { margin-bottom: 20px; }
.mt-24 { margin-top: 24px; }  .mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }  .mb-32 { margin-bottom: 32px; }
.mt-48 { margin-top: 48px; }  .mb-48 { margin-bottom: 48px; }

.text-center      { text-align: center; }
.flex             { display: flex; }
.flex-col         { flex-direction: column; }
.items-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }

/* ============================================================
   REPORT SHELL + DIMENSION PAGES
   ============================================================ */
.report-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100dvh;
  background: var(--parchment);
}

.report-dim-header { display: flex; align-items: center; justify-content: space-between; }
.report-dim-counter {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dusk);
  letter-spacing: 0.06em;
}
.report-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bark);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
  min-height: 44px;
}
.report-back-btn:hover { color: var(--rainforest); }

.report-dim-title-wrap { display: flex; flex-direction: column; gap: 4px; }
.report-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.report-eyebrow.jade   { color: var(--jade); }
.report-eyebrow.amber  { color: var(--amber-clay); }
.report-eyebrow.violet { color: var(--violet); }
.report-dim-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--espresso);
  margin: 0;
  line-height: 1.25;
}

.report-text-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.report-text {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--bark);
  line-height: 1.75;
  margin: 0;
}
.report-pull-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  border-left: 3px solid;
  padding: 10px 0 10px 16px;
  margin: 4px 0 0;
  line-height: 1.6;
}
.report-pull-quote.jade   { border-color: var(--jade);       color: var(--rainforest); }
.report-pull-quote.amber  { border-color: var(--amber-clay); color: var(--amber-clay); }
.report-pull-quote.violet { border-color: var(--violet);     color: var(--violet); }

.report-dim-nav-ctas { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.report-skip-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--dusk);
  text-decoration: none;
}
.report-skip-link:hover { color: var(--bark); }

/* ============================================================
   UPGRADE NUDGE CARDS
   ============================================================ */
.upgrade-nudge {
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.upgrade-nudge.amber  { background: var(--cream-gold);  border: 1px solid var(--honey-tint); }
.upgrade-nudge.violet { background: var(--violet-tint); border: 1px solid #ddd4e8; }
.nudge-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--bark);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   UPGRADE SHELL + PAGES
   ============================================================ */
.upgrade-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--parchment);
  min-height: 100dvh;
}
.upgrade-topbar {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.upgrade-header { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.upgrade-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}
.upgrade-eyebrow.amber  { color: var(--amber-clay); }
.upgrade-eyebrow.violet { color: var(--violet); }
.upgrade-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--espresso);
  margin: 0;
  line-height: 1.25;
}
.upgrade-price-card {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.upgrade-price-card.amber  { background: var(--cream-gold);  border: 1px solid var(--honey-tint); }
.upgrade-price-card.violet { background: var(--violet-tint); border: 1px solid #ddd4e8; }
.upgrade-price-left { display: flex; align-items: baseline; gap: 3px; }
.upgrade-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--espresso);
}
.upgrade-per { font-family: var(--font-sans); font-size: 0.85rem; color: var(--dusk); }
.upgrade-price-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.upgrade-founding-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--amber-clay);
  color: #fff;
  border-radius: 99px;
  padding: 3px 10px;
}
.upgrade-founding-badge.violet { background: var(--violet); }
.upgrade-founding-sub { font-family: var(--font-sans); font-size: 0.72rem; color: var(--dusk); }

.upgrade-items-wrap  { display: flex; flex-direction: column; gap: 12px; }
.upgrade-items-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusk);
  margin: 0;
}
.upgrade-items  { display: flex; flex-direction: column; gap: 14px; }
.upgrade-item   { display: flex; gap: 14px; align-items: flex-start; }
.upgrade-item-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.upgrade-item-icon.amber  { color: var(--amber-clay); }
.upgrade-item-icon.violet { color: var(--violet); }
.upgrade-item-name { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; color: var(--espresso); margin: 0 0 3px; }
.upgrade-item-desc { font-family: var(--font-sans); font-size: 0.82rem; color: var(--dusk); line-height: 1.5; margin: 0; }
.upgrade-divider   { height: 1px; background: var(--sand); }
.upgrade-extras    { display: flex; flex-direction: column; gap: 10px; }
.upgrade-extra-list { display: flex; flex-direction: column; gap: 8px; }
.upgrade-extra-item { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-sans); font-size: 0.88rem; color: var(--bark); line-height: 1.45; }
.upgrade-check        { font-weight: 600; flex-shrink: 0; }
.upgrade-check.amber  { color: var(--amber-clay); }
.upgrade-check.violet { color: var(--violet); }

.upgrade-compare-hint { display: flex; align-items: center; gap: 12px; background: var(--linen); border-radius: 10px; padding: 14px 16px; }
.upgrade-compare-hint.violet { background: var(--violet-tint); }
.compare-col    { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.compare-label  { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dusk); }
.compare-label.amber  { color: var(--amber-clay); }
.compare-label.violet { color: var(--violet); }
.compare-val    { font-family: var(--font-sans); font-size: 0.82rem; color: var(--bark); }
.compare-arrow  { color: var(--amber-clay); font-size: 1rem; flex-shrink: 0; }
.compare-arrow.violet { color: var(--violet); }

.upgrade-cta-wrap { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.upgrade-cta-sub  { font-family: var(--font-sans); font-size: 0.75rem; color: var(--dusk); margin: 0; text-align: center; }

.upgrade-crosssell { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.crosssell-text    { font-family: var(--font-sans); font-size: 0.85rem; color: var(--dusk); margin: 0; }
.crosssell-link    { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: opacity 0.15s; }
.crosssell-link.amber  { color: var(--amber-clay); }
.crosssell-link.violet { color: var(--violet); }
.crosssell-link:hover  { opacity: 0.75; }

/* ============================================================
   BOTTOM NAV (dashboard + settings)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--sand);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  z-index: 50;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--dusk);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.15s;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
}
.bottom-nav-item.active { color: var(--jade); }
.bottom-nav-item:hover  { color: var(--jade); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  :root { --page-pad: 18px; }
  h1, .h1 { font-size: 28px; }
  .btn { padding: 14px 20px; }
  .auth-shell { padding-top: 24px; }
}

@media (max-width: 680px) {
  .header-nav  { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

@media (min-width: 768px) {
  :root { --page-pad: 32px; }
}

/* ============================================================
   SKELETON LOADING STATES (UI-07)
   ============================================================ */
@keyframes skeletonShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--linen) 25%, var(--sand) 50%, var(--linen) 75%);
  background-size: 800px 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: 6px;
}

.skeleton-text       { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-text.wide  { width: 90%; }
.skeleton-text.med   { width: 65%; }
.skeleton-text.short { width: 40%; }
.skeleton-title      { height: 22px; width: 55%; margin-bottom: 16px; border-radius: 4px; }
.skeleton-block      { height: 80px; width: 100%; margin-bottom: 12px; border-radius: 8px; }
.skeleton-bar-row    { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.skeleton-bar-label  { height:12px; width:100px; flex-shrink:0; }
.skeleton-bar-track  { flex:1; height:5px; }
.skeleton-bar-pct    { height:12px; width:24px; flex-shrink:0; }

/* Report page skeleton wrapper */
.report-skeleton { display:flex; flex-direction:column; gap:20px; padding:20px 0; }
.report-skeleton-card { background:#fff; border:1.5px solid var(--sand); border-radius:12px; padding:20px 22px; }

/* ============================================================
   REPORT TYPOGRAPHY — Premium hierarchy (UI-06)
   ============================================================ */
.report-text-card { padding:24px 22px; }

.report-text p,
.report-text .report-body-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bark);
  line-height: 1.75;
  margin-bottom: 14px;
}

.report-text h2,
.report-text .report-section-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--espresso);
  margin: 20px 0 10px;
  line-height: 1.3;
}

.report-text h3,
.report-text .report-subsection-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 16px 0 8px;
  letter-spacing: 0.02em;
}

.report-text strong { color: var(--espresso); font-weight: 500; }
.report-text em     { color: var(--jade); font-style: italic; }

.report-text .report-pull-quote {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: var(--linen);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
.report-text .report-pull-bar {
  width: 3px;
  background: var(--jade);
  border-radius: 2px;
  flex-shrink: 0;
}
.report-text .report-pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.0rem;
  font-style: italic;
  color: var(--espresso);
  line-height: 1.55;
  margin: 0;
}

.report-text .report-insight-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-text .report-insight-list li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--bark);
  line-height: 1.6;
  padding: 10px 14px;
  background: var(--linen);
  border-radius: 6px;
  border-left: 2px solid var(--jade);
}

/* ============================================================
   SOCIAL PROOF — Upgrade pages (UI-11)
   ============================================================ */
.upgrade-social-proof {
  background: var(--linen);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upgrade-social-proof-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--bark);
  line-height: 1.55;
  margin: 0;
}
.upgrade-social-proof-attr {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--dusk);
  margin: 0;
}

/* ============================================================
   SLIDE TRANSITIONS — Report dimension pages (UI-16)
   ============================================================ */
.report-shell {
  animation: pageSlideIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes pageSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Directional slide — going back slides from left */
.report-shell.slide-back {
  animation: pageSlideBack 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes pageSlideBack {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Dim nav pill transition */
.dim-pill {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* Report content fade in */
.report-text-card,
.rg-body-card,
.upgrade-nudge,
.report-dim-nav-ctas {
  animation: contentFadeUp 0.32s ease both;
  animation-delay: 0.08s;
}

@keyframes contentFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LOCKED DIMENSION OVERLAY (Task 49.31)
   Blur + lock overlay for Values, Blind Spots, Ancient
   on free tier — shown via JS when tier is checked
   ============================================================ */
.dim-locked-wrap {
  position: relative;
}

.dim-locked-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(247,243,238,0) 0%,
    rgba(247,243,238,0.85) 35%,
    rgba(247,243,238,0.97) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 20px;
  border-radius: 12px;
  z-index: 2;
}

.dim-locked-icon {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--amber-clay);
}

.dim-locked-msg {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--espresso);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.4;
}

.dim-locked-content {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
