* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --cream: #faf9f6;
  --gold: #9a7b3f;
  --gold-light: #c9a96e;
  --gray: #6b6863;
  --gray-light: #9c9893;
  --border: #e8e4dc;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── GOLD LINE ─── */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ─── NAV ─── */
nav {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .light { font-weight: 400; }
.nav-logo .bold  { font-weight: 700; }

.nav-logo-tag {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

@media (max-width: 680px) {
  nav { padding: 18px 24px; position: relative; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 15px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 72px 24px 60px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 18px;
}

.page-title em {
  font-style: italic;
  color: var(--gold);
}

.page-sub {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 17px 40px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(154, 123, 63, 0.25);
}

/* ─── LAYOUT UTILITIES ─── */
.section { padding: 80px 24px; }

.section-inner      { max-width: 760px;  margin: 0 auto; }
.section-inner-wide { max-width: 1080px; margin: 0 auto; }

.section-cream {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark { background: var(--black); }

.section-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--gold); }

.section-sub {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 40px;
}

/* ─── HOME HERO ─── */
.home-hero {
  padding: 88px 24px 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.home-hero-inner {
  max-width: 560px;
  margin: 0 auto;
}

/* ─── HOME PORTAL CARDS ─── */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 760px) {
  .portal-cards { grid-template-columns: 1fr; }
}

.portal-card {
  background: var(--white);
  padding: 44px 36px;
  text-decoration: none;
  color: var(--black);
  display: block;
  transition: background 0.2s;
}

.portal-card:hover { background: var(--cream); }

.portal-card-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.portal-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.portal-card-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 28px;
}

.portal-card-arrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-card-arrow::after {
  content: '→';
  transition: transform 0.2s;
}

.portal-card:hover .portal-card-arrow::after {
  transform: translateX(4px);
}

/* ─── ONBOARDING — WHAT TO EXPECT ─── */
.expect-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.expect-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0;
  background: var(--white);
}

.expect-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  padding: 32px 0 32px 32px;
  display: flex;
  align-items: flex-start;
  padding-top: 34px;
}

.expect-body {
  padding: 32px 32px 32px 20px;
  border-left: 1px solid var(--border);
}

.expect-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.expect-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray);
}

@media (max-width: 500px) {
  .expect-item { grid-template-columns: 40px 1fr; }
  .expect-num { font-size: 22px; padding: 28px 0 28px 20px; padding-top: 30px; }
  .expect-body { padding: 28px 20px 28px 16px; }
}

/* ─── ONBOARDING — FORM ─── */
.form-success {
  display: none;
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  margin-bottom: 40px;
}

.form-success.visible { display: block; }

.form-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.form-success-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}

.form-label .req { color: var(--gold); }

.form-input,
.form-textarea,
.form-select {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}

.form-submit-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: var(--gray-light);
}

/* FORM SECTION DIVIDERS */
.form-section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.form-section-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 6px;
}

.form-section-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Subtle helper text below specific question labels */
.form-hint {
  font-size: 12px;
  color: var(--gray-light);
  font-style: italic;
  line-height: 1.6;
  margin-top: 2px;
  margin-bottom: 2px;
}

/* Honeypot — hidden via CSS positioning, NOT the HTML hidden attribute */
.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── ONBOARDING — BEFORE FIRST CALL ─── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
}

.checklist-dot {
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
}

/* ─── RESOURCES ─── */
.resource-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover { border-color: var(--black); color: var(--black); }
.filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.resource-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--black);
  transition: background 0.2s;
}

.resource-card:hover { background: var(--cream); }

.resource-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.resource-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.3;
}

.resource-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray);
  flex: 1;
  margin-bottom: 22px;
}

.resource-cta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.resource-cta::after { content: '→'; transition: transform 0.2s; }
.resource-card:hover .resource-cta::after { transform: translateX(4px); }

.resource-empty {
  grid-column: 1 / -1;
  background: var(--white);
  padding: 56px 32px;
  text-align: center;
  color: var(--gray-light);
  font-size: 14px;
  font-style: italic;
}

/* ─── AGREEMENT PAGE ─── */
.agreement-doc {
  max-width: 680px;
  margin: 0 auto;
}

.agreement-section {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.agreement-section:last-child { border-bottom: none; }

.agreement-num {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--gold-light);
  padding-top: 1px;
}

.agreement-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: var(--black);
}

.agreement-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
}

.agreement-text + .agreement-text { margin-top: 12px; }

/* Signature block */
.signature-section {
  max-width: 680px;
  margin: 0 auto;
}

.signature-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 44px 40px;
}

@media (max-width: 560px) {
  .signature-card { padding: 32px 24px; }
  .agreement-section { grid-template-columns: 24px 1fr; gap: 14px; }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 0;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.65;
  color: var(--black);
  cursor: pointer;
}

.form-input[readonly] {
  background: var(--border);
  color: var(--gray);
  cursor: default;
}

/* Agreement success */
.agreement-success {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}

.agreement-success.visible { display: block; }

/* ─── CALLS PAGE ─── */
.calls-hero {
  padding: 96px 24px 88px;
  text-align: center;
  background: var(--black);
}

.calls-hero .page-eyebrow { color: var(--gold-light); }

.calls-hero .page-title { color: var(--white); }

.calls-hero .page-sub {
  color: rgba(255, 255, 255, 0.62);
  max-width: 480px;
  margin: 0 auto;
}

.zoom-wrap {
  padding: 80px 24px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.zoom-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 52px 44px;
  text-align: center;
}

.zoom-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.zoom-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zoom-card-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.zoom-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 14px;
}

.zoom-card-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.zoom-btn {
  display: inline-block;
  background: var(--black);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 17px 44px;
  text-decoration: none;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.zoom-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(154, 123, 63, 0.25);
}

.zoom-url {
  font-size: 11px;
  color: var(--gray-light);
  word-break: break-all;
  letter-spacing: 0.02em;
}

/* ─── NAV SIGN-OUT ITEM ─── */
.nav-signout-item a {
  color: var(--gray-light) !important;
}
.nav-signout-item a:hover {
  color: var(--gray) !important;
}
@media (min-width: 681px) {
  .nav-signout-item {
    padding-left: 16px;
    border-left: 1px solid var(--border);
    margin-left: 4px;
  }
}

/* ─── REVIEW PAGE ─── */

.review-tabs-bar {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 61px;
  z-index: 90;
  padding: 0 40px;
  display: flex;
}

@media (max-width: 680px) {
  .review-tabs-bar { top: 57px; padding: 0 24px; }
}

.review-tab {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 18px 0;
  margin-right: 32px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.review-tab:hover { color: var(--black); }
.review-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.review-panel { display: none; }
.review-panel.active { display: block; }

/* Week selector */
.week-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.week-label {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.week-input {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}

.week-input:focus { border-color: var(--gold); }

/* Score grid */
.score-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.area-card { background: var(--white); padding: 22px 28px; }

.area-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.area-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
}

.area-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  max-width: 520px;
}

.area-score-display {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--gray-light);
  min-width: 32px;
  text-align: right;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 16px;
  transition: color 0.2s;
}

.score-track { display: flex; gap: 4px; }

.score-pip {
  flex: 1;
  height: 34px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  user-select: none;
}

.score-pip:hover { border-color: var(--gold-light); color: var(--black); transform: translateY(-2px); }

.score-pip.sel-1  { background:#d63031; border-color:#d63031; color:white; }
.score-pip.sel-2  { background:#e17055; border-color:#e17055; color:white; }
.score-pip.sel-3  { background:#fdcb6e; border-color:#fdcb6e; color:#7a5c00; }
.score-pip.sel-4  { background:#d4a017; border-color:#d4a017; color:white; }
.score-pip.sel-5  { background:#81b214; border-color:#81b214; color:white; }
.score-pip.sel-6  { background:#00b894; border-color:#00b894; color:white; }
.score-pip.sel-7  { background:#009975; border-color:#009975; color:white; }
.score-pip.sel-8  { background:#00795a; border-color:#00795a; color:white; }
.score-pip.sel-9  { background:#005c43; border-color:#005c43; color:white; }
.score-pip.sel-10 { background:#003d2d; border-color:#003d2d; color:white; }

.scale-labels { display:flex; justify-content:space-between; margin-top:5px; }
.scale-labels span { font-size:9px; font-weight:600; letter-spacing:0.1em; color:var(--gray-light); text-transform:uppercase; }

/* Total bar */
.total-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.total-score-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

.total-score-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: var(--black);
}

.total-score-denom { font-size: 14px; color: var(--gray-light); }

.total-level-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 7px;
  color: var(--gray);
  transition: color 0.3s;
}

.total-track-wrap { flex: 1; }

.total-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.total-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease, background 0.5s ease;
}

@media (max-width: 540px) {
  .total-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .total-track-wrap { width: 100%; }
}

/* Reflections */
.reflections-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.reflection-group { margin-bottom: 16px; }

.reflection-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 8px;
}

/* Toast */
.rv-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: white;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: transform 0.35s ease;
  z-index: 999;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.rv-toast.show { transform: translateX(-50%) translateY(0); }

/* History / Progress tab */
.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 16px;
}

.chart-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.chart-wrap    { position: relative; height: 260px; }
.chart-wrap-sm { position: relative; height: 200px; }

.history-entry {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.history-entry:hover { border-color: var(--gold-light); }

.history-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.history-entry-week { font-size: 13px; font-weight: 600; color: var(--black); }
.history-entry-level { font-size: 11px; color: var(--gray); margin-top: 3px; }

.history-entry-total {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.history-entry-bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

@media (max-width: 560px) {
  .history-entry-bars { grid-template-columns: repeat(5, 1fr); }
}

.history-bar-item { text-align: center; }

.history-bar-name {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.history-bar-outer {
  height: 28px;
  background: var(--cream);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.history-bar-fill { width: 100%; border-radius: 2px; }
.history-bar-score { font-size: 9px; font-weight: 700; margin-top: 3px; }

.history-entry-refs {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.history-entry-refs.open { display: block; }

.history-ref-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.history-ref-text {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 14px;
}

.review-no-entries {
  text-align: center;
  padding: 56px 24px;
  color: var(--gray);
  font-size: 14px;
}

/* Login page */
.login-wrap {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--cream);
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 52px 44px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

@media (max-width: 480px) {
  .login-card { padding: 36px 24px; }
}

.login-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.login-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
}

.login-sub {
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 32px;
}

.login-success {
  display: none;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 0;
}
.login-success.visible { display: block; }
.login-success-title { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 8px; }
.login-success-text { font-size: 13px; line-height: 1.75; color: var(--gray); }

@media (max-width: 600px) {
  .score-pip { height: 28px; font-size: 10px; }
}

/* ─── FOOTER ─── */
footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 500px) {
  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 28px 24px;
  }
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.footer-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up   { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-up-1 { animation-delay: 0.08s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.38s; }
.fade-up-4 { animation-delay: 0.52s; }
