/* ===========================
   CHKS — Production Design System
   Global palette: Shimush/tasklist.html
   =========================== */

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

:root {
  --bg: #1a0a2e;
  --surface: #231240;
  --surface-raised: #2e1a50;
  --surface-overlay: rgba(46, 26, 80, 0.97);
  --border: rgba(212, 168, 75, 0.12);
  --border-strong: rgba(212, 168, 75, 0.2);
  --gold: #d4a84b;
  --gold-light: #f0d48a;
  --gold-dark: #b8912e;
  --gold-soft: rgba(212, 168, 75, 0.12);
  --gold-mid: rgba(212, 168, 75, 0.25);
  --gold-glow: 0 0 24px rgba(212, 168, 75, 0.10);
  --text: #ddd5c8;
  --text-dim: #c4b69c;
  --text-muted: #9a8870;
  --accent-green: #46b478;
  --accent-red: #d47a7a;
  --accent-blue: #7ab8d4;
  --accent-batch: #7ac0d4;
  --decoration: #9a8870;
  --font-heb: 'Noto Serif Hebrew', 'SBL Hebrew', 'Ezra SIL', serif;
  --font-ui: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --nav-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: var(--font-ui);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 300;
  background: var(--gold); color: var(--bg);
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* ===== DECORATIVE ===== */
#particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 18s infinite ease-in-out;
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(100vh) translateX(0); }
  15%  { opacity: 0.35; }
  85%  { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(-10vh) translateX(40px); }
}

.texture {
  position: fixed; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="0.03"/></svg>');
  pointer-events: none; z-index: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,168,75,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,168,75,0.25); }

::selection { background: rgba(212,168,75,0.35); color: var(--text); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 0.75rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 10, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled { background: rgba(26, 10, 46, 0.95); border-color: var(--border-strong); }

.nav-logo {
  font-family: var(--font-heb);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  direction: rtl;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: block;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.3rem; cursor: pointer;
  padding: 0.25rem; border-radius: var(--radius-sm);
  transition: 0.15s var(--ease);
}
.nav-toggle:hover { color: var(--gold-light); }
.nav-toggle:focus-visible { outline-offset: -2px; }

.nav-links {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  flex-direction: column;
  background: var(--surface-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
  gap: 0.25rem;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 99;
}
.nav-links.open { display: flex; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: 0.15s var(--ease);
  width: 100%;
}
.nav-links a:hover { color: var(--gold-light); background: var(--gold-soft); }
.nav-links a:focus-visible { outline-offset: -2px; }
.nav-links a.active { color: var(--gold-light); }

.nav-auth { margin-left: 0; margin-top: 0.25rem; width: 100%; }
.nav-auth .auth-btn {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: 0.15s var(--ease);
}
.nav-auth .auth-btn:hover { background: var(--gold-soft); border-color: var(--gold-mid); }

/* ===== USER MENU ===== */
.user-menu { position: relative; display: inline-block; width: 100%; }
.user-menu .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-soft); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  color: var(--gold-light); cursor: pointer;
  margin: 0 auto;
  transition: 0.15s var(--ease);
}
.user-menu .avatar:hover { border-color: var(--gold-mid); background: rgba(212,168,75,0.18); }
.user-menu .dropdown {
  position: absolute; top: 100%; right: auto; left: 0; margin-top: 8px;
  background: var(--surface-overlay); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm); min-width: 180px;
  display: none; z-index: 150; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  width: 100%;
}
.user-menu.open .dropdown { display: block; }
.user-menu .dropdown .name {
  padding: 0.6rem 0.8rem; font-size: 0.8rem; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.user-menu .dropdown .email {
  font-size: 0.7rem; color: var(--text-muted); font-weight: 300;
  display: block; margin-top: 0.1rem;
}
.user-menu .dropdown a {
  display: block; padding: 0.5rem 0.8rem;
  font-size: 0.75rem; color: var(--text-dim); text-decoration: none;
  transition: 0.1s var(--ease);
}
.user-menu .dropdown a:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.user-menu .dropdown .logout {
  border-top: 1px solid var(--border);
  color: var(--accent-red); cursor: pointer;
}
.user-menu .dropdown .logout:hover { background: rgba(212,122,122,0.06); }

/* ===== PAGE ===== */
.page { position: relative; z-index: 1; padding-top: var(--nav-h); min-height: 100vh; }

/* ===== SKIP TARGET ===== */
#main-content { scroll-margin-top: var(--nav-h); }

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(212,168,75,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(212,168,75,0.025) 0%, transparent 40%);
  pointer-events: none;
}
.hero-badge {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.2;
  max-width: 800px;
}
.hero h1 .accent {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.35em;
  font-weight: 300;
  color: var(--text-dim);
  margin-top: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--text-dim);
  max-width: 600px;
  margin-top: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  min-height: 48px;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.hero-ornament {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1.2em;
  opacity: 0.2;
  margin-top: 1.5rem;
}
.hero-motto { margin-top: 2.5rem; max-width: 680px; }
.hero-motto p {
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  color: var(--text-muted);
  line-height: 2;
}
.hero-motto p em { color: var(--gold-light); font-style: normal; font-weight: 500; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: bob 3s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .particle { animation: none; display: none; }
}

/* ===== LEVEL TABS ===== */
.levels-progress {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.5rem 1.5rem 0;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.level-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  min-width: 140px;
}
.level-tab small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}
.level-tab:hover {
  border-color: var(--gold-mid);
  color: var(--gold-light);
  background: var(--surface-raised);
}
.level-tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.level-tab.active small {
  color: var(--text-dim);
}
.tab-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.35rem;
}
.tab-bar-track {
  flex: 1;
  height: 3px;
  background: var(--surface-raised);
  border-radius: 100px;
  overflow: hidden;
}
.tab-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  transition: width 0.5s var(--ease-out);
}
.tab-bar-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.tab-lock-info {
  font-size: 0.6rem;
  color: var(--accent-red);
  margin-top: 0.2rem;
  text-align: center;
  line-height: 1.3;
  opacity: 0.9;
}

/* ===== SECTION ===== */
.section {
  padding: 2.5rem 1rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--gold-light);
}
.section-header .divider {
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto;
}
.section-header p {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== LENSES GRID ===== */
.lenses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: var(--space-md) 0;
}
/* managed via min-width queries */

.lens-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.lens-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
  transition: 0.2s var(--ease);
}
.lens-card:hover {
  border-color: var(--gold-mid);
  transform: translateY(-3px);
  background: var(--surface-raised);
  box-shadow: var(--gold-glow);
}
.lens-card:hover::before { opacity: 0.8; }
.lens-card:focus-visible { outline-offset: -3px; }
.lens-icon { font-size: 2rem; margin-bottom: 0.6rem; display: block; }
.lens-card h3 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.lens-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 300;
}

/* ===== FLOW ===== */
.flow-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1rem;
  position: relative;
  z-index: 1;
}
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: 0.15s var(--ease);
  cursor: default;
}
.flow-node:hover { background: rgba(255,255,255,0.025); }
.flow-node .dot {
  width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
  border: 2px solid;
  transition: 0.2s var(--ease);
}
.flow-node .dot.gold-dot { border-color: var(--gold); background: transparent; }
.flow-node .dot.dim-dot  { border-color: rgba(255,255,255,0.08); background: transparent; }
.flow-node:hover .dot.gold-dot { background: var(--gold); box-shadow: 0 0 12px rgba(212,168,75,0.2); }
.flow-node:hover .dot.dim-dot { border-color: rgba(255,255,255,0.15); }
.flow-node .label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 400;
  transition: 0.15s var(--ease);
}
.flow-node:hover .label { color: var(--text); }
.flow-node.gold .label { color: var(--gold-light); font-weight: 500; }
.flow-connector {
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
}

/* ===== DISCIPLINES GRID ===== */
.disciplines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: var(--space-md) 0;
}
/* managed via min-width queries */

.disc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.disc-card:hover { border-color: var(--gold-mid); background: var(--surface-raised); }
.disc-card:focus-visible { outline-offset: -3px; }
.disc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  gap: 0.5rem;
}
.disc-card-header .left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.disc-card-header .left .title {
  font-family: var(--font-heb);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.disc-card-header .left .sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}
.disc-card-header .dots { display: flex; gap: 4px; flex-shrink: 0; }
.disc-card-header .dots span {
  width: 7px; height: 7px;
  border-radius: 50%; display: block;
  opacity: 0.5;
}
.disc-card-header .dots .d-hf { background: var(--text-dim); }
.disc-card-header .dots .d-cd { background: var(--gold); }
.disc-card-header .dots .d-ka { background: var(--accent-green); }
.disc-card-header .dots .d-mt { background: var(--accent-blue); }
.disc-card-header .chevron {
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: 0.2s var(--ease);
  flex-shrink: 0;
}
.disc-card.open .chevron { transform: rotate(180deg); color: var(--gold-light); }
.disc-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 0 0.75rem;
}
.disc-card.open .disc-card-body {
  max-height: 800px;
  padding: 0 0.75rem 0.65rem;
}
.disc-lens {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}
.disc-lens:first-of-type { border-top: none; }
.disc-lens .tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.05rem;
  min-width: 0;
  flex-shrink: 0;
}
.disc-lens .tag.hf { color: var(--text-dim); }
.disc-lens .tag.cd { color: var(--gold-light); }
.disc-lens .tag.ka { color: var(--accent-green); }
.disc-lens .tag.mt { color: var(--accent-blue); }
.disc-lens .desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  font-weight: 300;
}

/* ===== LEVELS ===== */
.levels-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1rem;
  position: relative;
  z-index: 1;
}
.levels {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.level-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}
.level-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 40px;
  padding-top: 0.2rem;
}
.level-num .circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-light);
  background: var(--gold-soft);
  flex-shrink: 0;
  transition: 0.15s var(--ease);
}
.level-row:hover .level-num .circle {
  background: rgba(212,168,75,0.2);
  box-shadow: 0 0 14px rgba(212,168,75,0.15);
}
.level-num .cline {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
}
.level-card {
  flex: 1;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  cursor: default;
  transition: 0.15s var(--ease);
}
.level-row:hover .level-card {
  border-color: var(--gold-mid);
  background: var(--surface-raised);
}
.level-card h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.level-card .outcome {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  font-weight: 300;
}
.level-card .outcome em { color: var(--gold-light); font-style: normal; }
.level-card .disc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.4rem;
}
.level-card .disc-list span {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.025);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 300;
}

/* ===== TOOLS CARD ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: 0.2s var(--ease);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
  transition: 0.2s var(--ease);
}
.tool-card:hover {
  border-color: var(--gold-mid);
  transform: translateY(-3px);
  background: var(--surface-raised);
  box-shadow: var(--gold-glow);
}
.tool-card:hover::before { opacity: 0.7; }
.tool-card:focus-visible { outline-offset: -3px; }
.tool-card .icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.tool-card h3 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.tool-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  font-weight: 300;
}

/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-light);
}
.page-header .divider {
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.6rem auto;
}
.page-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== QUOTE ===== */
.hebrew-quote {
  font-family: var(--font-heb);
  direction: rtl;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(212,168,75,0.12);
  margin: 3rem 0 1.5rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer .ornament {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1.2em;
  opacity: 0.15;
  margin-bottom: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.footer .motto {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 2;
  color: var(--text-muted);
}
.footer .motto em { color: var(--gold-light); font-style: normal; font-weight: 500; }
.footer .final {
  font-family: var(--font-heb);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  color: rgba(212,168,75,0.2);
  direction: rtl;
  margin-top: 1.5rem;
  line-height: 1.5;
}
.footer .credit {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .footer { padding: 2rem 1rem; }
  .footer .ornament { letter-spacing: 0.6em; }
  .footer .motto { font-size: clamp(0.75rem, 2.5vw, 0.85rem); }
  .footer .final { font-size: clamp(1rem, 3vw, 1.3rem); }
  .footer .credit { font-size: 0.55rem; }
}

/* ===== BOTTOM TABS (mobile nav bar) ===== */
.bottom-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0.35rem 0 env(safe-area-inset-bottom, 0.35rem);
}
.btab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.25rem 0.4rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.btab-icon { font-size: 1.15rem; line-height: 1; }
.btab-label { font-size: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.btab.active { color: var(--gold); }
.btab.active::after {
  content: '';
  position: absolute;
  top: -0.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
@media (max-width: 820px) {
  .bottom-tabs { display: flex; }
  body { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 52px); }
}

/* ===== PILL NAV ===== */
.pill-nav {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.pill-nav a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.15s var(--ease);
  text-decoration: none;
  font-weight: 400;
}
.pill-nav a:hover {
  border-color: var(--gold-mid);
  color: var(--gold-light);
  background: var(--gold-soft);
}
.pill-nav a.active { color: var(--gold-light); border-color: var(--gold-mid); background: var(--gold-soft); }
.pill-nav a:focus-visible { outline-offset: -2px; }

/* ===== STUDY CONTENT ===== */
.study-content { max-width: 760px; margin: 0 auto; }
.study-content h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.study-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
  font-weight: 300;
}
.study-content .scripture {
  font-family: var(--font-heb);
  font-size: 1.2rem;
  direction: rtl;
  text-align: center;
  color: var(--gold-light);
  margin: 1.5rem 0;
  line-height: 1.8;
}
.study-content .reflection {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.15rem;
  margin: 0.85rem 0;
  font-weight: 300;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== SCROLL FADE ===== */
.fade-el {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-el.visible { opacity: 1; transform: translateY(0); }
.fade-el.d1 { transition-delay: 0.05s; }
.fade-el.d2 { transition-delay: 0.1s; }
.fade-el.d3 { transition-delay: 0.15s; }
.fade-el.d4 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .fade-el { opacity: 1; transform: none; transition: none; }
}

/* ===== BIBLE ORIGIN ===== */
.intro-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.15rem; min-width: 90px;
}
.intro-stat .num { font-family: var(--font-ui); font-size: 1.5rem; font-weight: 700; color: var(--gold-light); }
.intro-stat .lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.origin-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.6rem; overflow: hidden; cursor: pointer;
  transition: 0.15s var(--ease);
}
.origin-card:hover { border-color: var(--gold-mid); }
.origin-card:focus-visible { outline-offset: -3px; }
.origin-card-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; }
.origin-card-header .icon { font-size: 1.5rem; flex-shrink: 0; }
.origin-card-header .info h3 { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--gold-light); }
.origin-card-header .info .question { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }
.origin-card-header .chevron { color: var(--text-muted); font-size: 0.8rem; transition: 0.2s var(--ease); }
.origin-card.open .chevron { transform: rotate(180deg); color: var(--gold-light); }
.origin-card-body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease), padding 0.35s var(--ease); padding: 0 1rem; }
.origin-card.open .origin-card-body { max-height: 6000px; padding: 0 1rem 1.5rem; }
.origin-card-body .summary { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 0.85rem; font-weight: 300; }
.detail-block { margin-bottom: 1.25rem; }
.detail-block h4 { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.detail-block .body-text { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; font-weight: 300; margin-bottom: 0.35rem; }
.detail-block .scripture { font-size: 0.75rem; color: var(--gold); font-weight: 400; margin-bottom: 0.5rem; }
.subitem-table td { padding: 0.3rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.02); vertical-align: top; font-size: 0.83rem; }
.subitem-table td:first-child { white-space: nowrap; color: var(--gold-light); font-weight: 500; width: 120px; font-family: var(--font-heb); }
.subitem-table td:last-child { color: var(--text-dim); font-weight: 300; }
.tl-content .period { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-ui); letter-spacing: 0.02em; }
.tl-content .event { font-size: 0.83rem; color: var(--text-dim); font-weight: 300; }
.tl-content .event strong { color: var(--text); font-weight: 500; }
.reflection-box { background: var(--surface); border-left: 3px solid var(--gold); padding: 1.15rem 1.25rem; margin-top: 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.reflection-box p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; font-weight: 300; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 400px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  animation: modalIn 0.25s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 0.75rem; right: 0.85rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.2rem; cursor: pointer; line-height: 1;
  padding: 0.2rem; border-radius: var(--radius-sm);
  transition: 0.15s var(--ease);
}
.modal-close:hover { color: var(--text); }
.modal h2 {
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 0.2rem;
}
.modal .sub {
  font-size: 0.8rem; color: var(--text-dim); font-weight: 300;
  margin-bottom: 1.5rem;
}
.modal .field { margin-bottom: 0.85rem; }
.modal .field label {
  display: block; font-size: 0.7rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 0.3rem;
}
.modal .field input {
  width: 100%; background: rgba(255,255,255,0.025);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem; color: var(--text); font-family: var(--font-ui);
  font-size: 0.9rem; outline: none; transition: 0.15s var(--ease);
}
.modal .field input:focus { border-color: var(--gold-mid); }
.modal .field .error {
  font-size: 0.75rem; color: var(--accent-red); margin-top: 0.25rem;
  display: none;
}
.modal .field .error.show { display: block; }
.modal-btn {
  width: 100%; padding: 0.7rem;
  background: var(--gold-soft); border: 1px solid var(--gold-mid);
  border-radius: var(--radius-sm); color: var(--gold-light);
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: 0.15s var(--ease); margin-top: 0.5rem;
}
.modal-btn:hover { background: rgba(212,168,75,0.2); border-color: var(--border-strong); }
.modal .switch {
  text-align: center; margin-top: 0.85rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.modal .switch a {
  color: var(--gold-light); cursor: pointer; text-decoration: none;
}
.modal .switch a:hover { text-decoration: underline; }
.modal .divider {
  display: flex; align-items: center; gap: 0.85rem;
  margin: 1.15rem 0; color: var(--text-muted); font-size: 0.7rem;
}
.modal .divider::before,
.modal .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.modal .social-btn {
  width: 100%; padding: 0.6rem;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-dim);
  font-family: var(--font-ui); font-size: 0.8rem; cursor: pointer;
  transition: 0.15s var(--ease); text-align: center;
}
.modal .social-btn:hover { background: rgba(255,255,255,0.04); border-color: var(--border-strong); }

/* ===== MASTERY DOTS ===== */
.disc-mastery {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem 0;
  align-items: center;
}
.m-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.m-dot.filled {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(212,168,75,0.3);
}
.m-dot:hover { border-color: var(--gold-mid); }
.m-dot.filled:hover { box-shadow: 0 0 10px rgba(212,168,75,0.5); }

/* ===== MASTERY MODAL ===== */
.mastery-modal h3 { font-family: var(--font-display); }
.mastery-modal .btn-primary:disabled { opacity: 0.4; cursor: default; }
.mastery-modal .btn-primary:disabled:hover { background: var(--gold); }

/* ===== BADGE TOAST ===== */
.badge-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  min-width: 240px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}
.badge-toast.show { transform: translateY(0); opacity: 1; }
.badge-toast-icon { font-size: 1.75rem; flex-shrink: 0; }
.badge-toast-body { flex: 1; }
.badge-toast-tier {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.badge-toast-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0.1rem 0;
}
.badge-toast-desc { font-size: 0.75rem; color: var(--text-dim); }

/* ===== COMPLETION TOAST ===== */
.completion-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-mid);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}
.completion-toast.show { transform: translateX(-50%) translateY(0); }
.completion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}
.completion-pts { color: var(--gold); font-weight: 600; }

/* ===== DAILY CHECK-IN TOAST ===== */
.checkin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-overlay);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}
.checkin-toast.show { transform: translateX(-50%) translateY(0); }

/* ===== LEVEL-UP TOAST ===== */
.levelup-toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--gold-mid);
  border-radius: var(--radius-lg);
  padding: 1rem 2rem;
  box-shadow: 0 0 40px rgba(212,168,75,0.15), 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transition: all 0.5s var(--ease-out);
}
.levelup-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.levelup-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gold-soft);
  border-radius: 50%;
  border: 1px solid var(--gold-mid);
}
.levelup-body { text-align: center; }
.levelup-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
}
.levelup-level {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ===== NAV LEVEL BADGE ===== */
.nav-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-mid);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  min-width: 36px;
  height: 22px;
  letter-spacing: 0.02em;
}

/* ===== JOURNEY SECTION ===== */
.journey-section {
  padding: 3rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.journey-section .section-header { margin-bottom: 1.5rem; }
.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  margin: var(--space-lg) 0;
}
.journey-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.journey-level-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold-mid);
  border-radius: 50%;
  background: var(--gold-soft);
}
.journey-level-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.journey-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-raised);
  border-radius: 100px;
  overflow: hidden;
}
.journey-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  transition: width 0.5s var(--ease-out);
}
.journey-bar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.journey-streak-icon { font-size: 2rem; }
.journey-streak-count {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin: 0.25rem 0;
}
.journey-streak-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.journey-streak-best {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.journey-mission-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.journey-mission-subject {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
}
.journey-mission-tier {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.journey-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: var(--space-xl) 0;
}
.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  text-align: center;
}
.stage-card.locked {
  opacity: 0.4;
}
.stage-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stage-card-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.stage-card-lock-msg {
  font-size: 0.6rem;
  color: var(--accent-red);
  margin-top: 0.3rem;
  line-height: 1.3;
}
.stage-card .journey-bar { margin-top: 0.5rem; height: 4px; }
.journey-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== MIN-WIDTH: 521px (small tablet) ===== */
@media (min-width: 521px) {
  body { font-size: 16px; }
  .nav { padding: 0 1.25rem; }
  .section { padding: 3rem 1.25rem; }
  .flow-section { padding: 3rem 1.25rem; }
  .levels-section { padding: 3rem 1.25rem; }
  .page-header { padding: 3rem 1.25rem 1.75rem; }
  .hero { padding: 3.5rem 1.25rem 5rem; }
  .hero h1 .accent { letter-spacing: 0.15em; }

  .lenses-grid { grid-template-columns: repeat(2, 1fr); }
  .disciplines-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

  .disc-card-header { padding: 0.75rem 0.9rem; }
  .disc-card-body { padding: 0 0.9rem; }
  .disc-card.open .disc-card-body { padding: 0 0.9rem 0.75rem; }
  .disc-lens { flex-direction: row; gap: 0.5rem; }
  .disc-lens .tag { min-width: 72px; }

  .journey-stages { grid-template-columns: repeat(3, 1fr); }
}

/* ===== MIN-WIDTH: 721px (tablet landscape) ===== */
@media (min-width: 721px) {
  .section { padding: 3.5rem 1.5rem; }
  .flow-section { padding: 3.5rem 1.5rem; }
  .levels-section { padding: 3.5rem 1.5rem; }

  .journey-grid { grid-template-columns: 1fr auto 1fr; }
}

/* ===== MIN-WIDTH: 821px (desktop nav breakpoint) ===== */
@media (min-width: 821px) {
  .nav-toggle { display: none; }

  .nav-links {
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 0;
    gap: 0.1rem;
    display: flex;
    box-shadow: none;
    width: auto;
  }
  .nav-links a {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    width: auto;
  }
  .nav-auth { margin-left: 0.4rem; margin-top: 0; width: auto; }
  .nav-auth .auth-btn { display: inline; font-size: 0.72rem; padding: 0.35rem 0.7rem; }
  .user-menu { width: auto; }
  .user-menu .avatar { margin: 0; }
  .user-menu .dropdown { right: 0; left: auto; width: auto; }
}

/* ===== MIN-WIDTH: 901px (desktop wide) ===== */
@media (min-width: 901px) {
  .section { padding: 4rem 1.5rem; }
  .flow-section { padding: 4rem 1.5rem; }
  .levels-section { padding: 4rem 1.5rem; }
  .page-header { padding: 3.5rem 1.5rem 2rem; }
  .hero { padding: 4rem 1.5rem 6rem; }

  .lenses-grid { grid-template-columns: repeat(4, 1fr); }
}
