/* ============================================
   INSULINRESET — STYLES
   Palette: Chlorophyll-inspired natural greens
   Fonts: Bricolage Grotesque + Spline Sans
   ============================================ */

:root {
  --green-dark:   #0A1F02;
  --green-mid:    #2D6A1E;
  --green-bright: #B8F369;
  --green-light:  #E8F5D0;
  --green-pale:   #F4FBE8;
  --white:        #FEFFFE;
  --text-dark:    #0D1A05;
  --text-mid:     #3A5228;
  --text-soft:    #6B8A52;
  --red-warn:     #E84040;
  --red-light:    #FFF0F0;
  --amber:        #F5A623;
  --amber-light:  #FFF8EC;
  --surface:      #F7FCF0;
  --border:       #D4EABC;
  --shadow:       0 4px 24px rgba(10,31,2,0.08);
  --shadow-lg:    0 12px 48px rgba(10,31,2,0.14);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Spline Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-pale); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 99px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(254,255,254,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 1.25rem; color: var(--green-dark);
}
.nav-leaf { font-size: 1.4rem; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-link {
  display: block; padding: 0.45rem 1rem;
  font-size: 0.9rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; border-radius: 99px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--green-bright); color: var(--green-dark); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: all var(--transition); }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 4rem 4rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a3d0a 50%, #2D6A1E 100%);
  position: relative; overflow: hidden; gap: 4rem;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; background: rgba(184,243,105,0.06); }
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; animation: float1 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: rgba(184,243,105,0.04); animation: float2 10s ease-in-out infinite; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 40%; background: rgba(184,243,105,0.08); animation: float1 6s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-30px) scale(1.05)} }
@keyframes float2 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(20px) rotate(5deg)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

.hero-content { flex: 1; max-width: 600px; position: relative; z-index: 2; animation: fadeUp 0.8s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(184,243,105,0.15); border: 1px solid rgba(184,243,105,0.3);
  color: var(--green-bright); padding: 0.4rem 1rem; border-radius: 99px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 1.25rem;
}
.hero-title em { font-style: normal; color: var(--green-bright); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.stat { text-align: center; }
.stat-num { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; font-weight: 800; color: var(--green-bright); }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero-cta {
  display: inline-block; background: var(--green-bright); color: var(--green-dark);
  padding: 0.9rem 2rem; border-radius: 99px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(184,243,105,0.3);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(184,243,105,0.4); }

.hero-visual { flex: 0 0 auto; position: relative; z-index: 2; animation: fadeUp 0.8s 0.2s ease both; }
.plate-ring { width: 320px; height: 320px; position: relative; display: flex; align-items: center; justify-content: center; }
.plate-inner {
  width: 140px; height: 140px; background: rgba(184,243,105,0.12);
  border: 2px solid rgba(184,243,105,0.3); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
}
.plate-emoji { font-size: 2.5rem; }
.plate-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.orbit-item {
  position: absolute; font-size: 1.8rem; width: 52px; height: 52px;
  background: rgba(184,243,105,0.1); border: 1px solid rgba(184,243,105,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  animation: orbit 12s linear infinite;
}
.orbit-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.orbit-2 { top: 15%; right: 5%; animation-delay: -2s; }
.orbit-3 { bottom: 15%; right: 5%; animation-delay: -4s; }
.orbit-4 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: -6s; }
.orbit-5 { bottom: 15%; left: 5%; animation-delay: -8s; }
.orbit-6 { top: 15%; left: 5%; animation-delay: -10s; }
@keyframes orbit { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* SECTIONS */
.main-content { padding-top: 0; }
.section { display: none; padding: 5rem 4rem; max-width: 1200px; margin: 0 auto; animation: fadeUp 0.5s ease both; }
.section.active { display: block; }
.section-header { margin-bottom: 3rem; }
.section-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--green-dark); margin-bottom: 0.5rem; }
.section-sub { font-size: 1.05rem; color: var(--text-soft); }
.sub-heading { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--green-dark); margin-bottom: 1.5rem; }

/* DASHBOARD */
.dashboard-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.clock-card { background: var(--green-dark); border-radius: var(--radius-lg); padding: 2rem; color: white; }
.clock-time { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--green-bright); letter-spacing: -0.02em; line-height: 1; }
.clock-date { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0.25rem 0 1rem; }
.window-status {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); margin-bottom: 0.75rem;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); animation: pulse 2s ease-in-out infinite; }
.status-dot.fasting { background: #64B5F6; box-shadow: 0 0 8px #64B5F6; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.next-event { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.progress-ring-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.ring-wrap { position: relative; width: 120px; height: 120px; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.ring-fill { fill: none; stroke: var(--green-bright); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-pct { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--green-dark); }
.ring-lbl { font-size: 0.65rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.ring-caption { font-size: 0.85rem; color: var(--text-soft); text-align: center; }

.insulin-tips-card { background: linear-gradient(135deg, var(--green-mid), var(--green-dark)); border-radius: var(--radius-lg); padding: 2rem; color: white; }
.card-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1rem; font-weight: 700; color: var(--green-bright); margin-bottom: 1rem; }
.tip-text { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; min-height: 80px; }
.tip-btn { background: rgba(184,243,105,0.15); border: 1px solid rgba(184,243,105,0.3); color: var(--green-bright); padding: 0.5rem 1rem; border-radius: 99px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.tip-btn:hover { background: rgba(184,243,105,0.25); }

/* TIMELINE */
.timeline-section { margin-bottom: 3rem; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 1.5rem; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 3px solid var(--border); position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 1.75rem; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--white); }
.timeline-item.fasting { border-left-color: #64B5F6; }
.timeline-item.fasting::before { background: #64B5F6; }
.timeline-item.eating { border-left-color: var(--green-bright); }
.timeline-item.eating::before { background: var(--green-bright); }
.tl-time { min-width: 160px; font-size: 0.8rem; font-weight: 600; color: var(--text-soft); padding-top: 0.2rem; }
.tl-content { flex: 1; display: flex; align-items: flex-start; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.tl-icon { font-size: 1.5rem; flex-shrink: 0; }
.tl-info { flex: 1; }
.tl-info strong { display: block; font-size: 0.95rem; color: var(--green-dark); margin-bottom: 0.25rem; }
.tl-info p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.6; }
.tl-badge { flex-shrink: 0; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; align-self: flex-start; }
.fasting-badge { background: #E3F2FD; color: #1565C0; }
.eating-badge { background: #F0FBE0; color: var(--green-mid); }

/* PRINCIPLES */
.principles-grid { margin-bottom: 2rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.principle-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: all var(--transition); }
.principle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-bright); }
.p-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.principle-card h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.5rem; }
.principle-card p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.6; }

/* PROTOCOLS */
.protocol-selector { margin-bottom: 3rem; }
.protocols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.protocol-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; }
.protocol-card:hover { border-color: var(--green-mid); transform: translateY(-3px); box-shadow: var(--shadow); }
.protocol-card.active { border-color: var(--green-bright); background: var(--green-pale); box-shadow: 0 0 0 4px rgba(184,243,105,0.2); }
.proto-badge { position: absolute; top: 1rem; right: 1rem; padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; }
.proto-badge.recommended { background: var(--green-bright); color: var(--green-dark); }
.proto-badge.beginner { background: var(--amber-light); color: #8B5E00; border: 1px solid var(--amber); }
.proto-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.protocol-card h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 0.5rem; }
.proto-desc { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 1rem; line-height: 1.6; }
.proto-window { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.eat-window, .fast-window { font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 99px; display: inline-block; }
.eat-window { background: #F0FBE0; color: var(--green-mid); }
.fast-window { background: #E3F2FD; color: #1565C0; }
.proto-benefits { display: flex; flex-direction: column; gap: 0.25rem; }
.proto-benefits span { font-size: 0.8rem; color: var(--text-soft); }

/* DRINK GUIDE */
.drink-guide { margin-bottom: 3rem; }
.drink-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.drink-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; transition: all var(--transition); }
.drink-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.drink-card.forbidden { background: var(--red-light); border-color: #FFCDD2; }
.drink-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.drink-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.4rem; }
.drink-card p { font-size: 0.78rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 0.75rem; }
.drink-tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }
.drink-tag.green { background: #F0FBE0; color: var(--green-mid); }
.drink-tag.red { background: #FFEBEE; color: var(--red-warn); }

/* MEAL PLATE */
.meal-rules { margin-bottom: 2rem; }
.meal-plate-visual { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.plate-diagram { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; border: 4px solid var(--border); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.plate-section { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.5rem; }
.plate-section.veg { flex: 2; background: #C8F09A; }
.plate-section.protein { flex: 1; background: #FFD4A3; }
.plate-section.fat-carb { flex: 1; background: #A8D8EA; }
.ps-pct { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--green-dark); }
.ps-label { font-size: 0.7rem; font-weight: 600; color: var(--green-dark); text-align: center; line-height: 1.3; }
.plate-rules-list { display: flex; flex-direction: column; gap: 1.25rem; }
.rule-item { display: flex; gap: 1rem; align-items: flex-start; }
.rule-num { flex-shrink: 0; width: 32px; height: 32px; background: var(--green-bright); color: var(--green-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 0.9rem; }
.rule-item strong { display: block; font-size: 0.95rem; color: var(--green-dark); margin-bottom: 0.25rem; }
.rule-item p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.6; }

/* FOOD GUIDE */
.food-filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-tab { padding: 0.45rem 1rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-mid); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.filter-tab:hover { border-color: var(--green-mid); }
.filter-tab.active { background: var(--green-dark); color: var(--green-bright); border-color: var(--green-dark); }
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.food-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: all var(--transition); }
.food-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.food-card.avoid { background: var(--red-light); border-color: #FFCDD2; }
.food-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.food-name { font-weight: 700; font-size: 0.9rem; color: var(--green-dark); margin-bottom: 0.25rem; }
.food-category { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 0.5rem; }
.food-benefit { font-size: 0.78rem; color: var(--text-soft); line-height: 1.5; }
.food-gi { display: inline-block; margin-top: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; }
.gi-low { background: #F0FBE0; color: var(--green-mid); }
.gi-med { background: var(--amber-light); color: #8B5E00; }
.gi-avoid { background: #FFEBEE; color: var(--red-warn); }

/* JUNK WARNING */
.junk-warning { background: linear-gradient(135deg, #1a0505, #3d0a0a); border-radius: var(--radius-lg); padding: 2.5rem; margin-top: 1rem; }
.junk-warning .sub-heading { color: #FF8A80; }
.junk-intro { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 2rem; }
.junk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.junk-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 1rem; text-align: center; }
.junk-icon { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.junk-name { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.8); display: block; margin-bottom: 0.6rem; }
.spike-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 99px; margin-bottom: 0.4rem; overflow: hidden; }
.spike-fill { height: 100%; background: linear-gradient(90deg, #FF6B6B, #FF0000); border-radius: 99px; }
.spike-label { font-size: 0.68rem; color: #FF8A80; }

/* WEEKLY PLANNER */
.week-nav { margin-bottom: 2rem; }
.day-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.day-tab { padding: 0.6rem 1.25rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-mid); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); }
.day-tab:hover { border-color: var(--green-mid); }
.day-tab.active { background: var(--green-dark); color: var(--green-bright); border-color: var(--green-dark); }
.day-plan { margin-bottom: 3rem; }
.day-meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.meal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; animation: fadeUp 0.4s ease both; }
.meal-time-badge { display: inline-block; padding: 0.25rem 0.75rem; background: var(--green-bright); color: var(--green-dark); border-radius: 99px; font-size: 0.72rem; font-weight: 700; margin-bottom: 0.75rem; }
.meal-card h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 0.75rem; }
.meal-items { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.meal-items li { font-size: 0.85rem; color: var(--text-soft); padding-left: 1rem; position: relative; }
.meal-items li::before { content: '→'; position: absolute; left: 0; color: var(--green-mid); font-size: 0.75rem; }
.meal-macros { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.macro-tag { padding: 0.2rem 0.5rem; border-radius: 99px; font-size: 0.7rem; font-weight: 600; background: var(--green-light); color: var(--green-mid); }

/* SHOPPING */
.shopping-section { margin-top: 2rem; }
.shopping-intro { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.shopping-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.shop-category { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.shop-category h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.75rem; }
.shop-category ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.shop-category li { font-size: 0.82rem; color: var(--text-soft); padding-left: 1rem; position: relative; }
.shop-category li::before { content: '✓'; position: absolute; left: 0; color: var(--green-mid); font-weight: 700; }

/* TRACKER */
.checklist-section { margin-bottom: 3rem; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.check-item { display: flex; align-items: center; gap: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1rem; cursor: pointer; transition: all var(--transition); }
.check-item:hover { border-color: var(--green-mid); }
.check-item.checked { background: var(--green-pale); border-color: var(--green-bright); }
.check-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.check-item.checked .check-box { background: var(--green-bright); border-color: var(--green-bright); }
.check-box::after { content: '✓'; font-size: 0.75rem; font-weight: 800; color: var(--green-dark); opacity: 0; transition: opacity var(--transition); }
.check-item.checked .check-box::after { opacity: 1; }
.check-label { font-size: 0.88rem; font-weight: 500; color: var(--text-dark); }
.check-item.checked .check-label { color: var(--green-mid); text-decoration: line-through; }

.checklist-score { background: var(--green-dark); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.score-display { display: flex; align-items: baseline; gap: 0.25rem; }
.score-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--green-bright); }
.score-total { font-size: 1.5rem; color: rgba(255,255,255,0.4); }
.score-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.score-bar-wrap { width: 100%; max-width: 300px; height: 8px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.score-bar { height: 100%; background: var(--green-bright); border-radius: 99px; transition: width 0.5s ease; width: 0%; }
.score-msg { font-size: 0.85rem; color: rgba(255,255,255,0.6); text-align: center; }

/* WEIGHT */
.weight-section { margin-bottom: 3rem; }
.weight-input-row { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.weight-input { flex: 1; min-width: 200px; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; background: var(--surface); color: var(--text-dark); outline: none; transition: border-color var(--transition); }
.weight-input:focus { border-color: var(--green-mid); }
.unit-select { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.9rem; color: var(--text-dark); cursor: pointer; }
.log-btn { padding: 0.75rem 1.5rem; background: var(--green-dark); color: var(--green-bright); border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); }
.log-btn:hover { background: var(--green-mid); }
.weight-chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.weight-log-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 200px; overflow-y: auto; }
.weight-entry { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }
.weight-entry .we-val { font-weight: 700; color: var(--green-dark); }
.weight-entry .we-date { color: var(--text-soft); }

/* FASTING LOG */
.fasting-log-section { margin-bottom: 3rem; }
.fasting-controls { display: flex; align-items: center; gap: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fast-timer-display { flex: 1; }
.fast-timer-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 3rem; font-weight: 800; color: var(--green-dark); display: block; line-height: 1; }
.fast-timer-label { font-size: 0.85rem; color: var(--text-soft); }
.fast-btns { display: flex; gap: 0.75rem; }
.fast-start-btn, .fast-end-btn { padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all var(--transition); border: none; }
.fast-start-btn { background: var(--green-dark); color: var(--green-bright); }
.fast-start-btn:hover:not(:disabled) { background: var(--green-mid); }
.fast-end-btn { background: var(--amber-light); color: #8B5E00; border: 1px solid var(--amber); }
.fast-end-btn:hover:not(:disabled) { background: var(--amber); color: white; }
.fast-start-btn:disabled, .fast-end-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fast-history { display: flex; flex-direction: column; gap: 0.5rem; }
.fast-entry { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }
.fast-entry .fe-duration { font-weight: 700; color: var(--green-dark); }
.fast-entry .fe-date { color: var(--text-soft); }
.fast-entry .fe-badge { padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; }
.fe-badge.good { background: #F0FBE0; color: var(--green-mid); }
.fe-badge.great { background: var(--green-bright); color: var(--green-dark); }

/* STREAKS */
.streak-section { margin-bottom: 2rem; }
.streaks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.streak-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; transition: all var(--transition); }
.streak-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.streak-fire { font-size: 2rem; margin-bottom: 0.5rem; }
.streak-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--green-dark); display: block; }
.streak-label { font-size: 0.78rem; color: var(--text-soft); }
.streak-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.streak-btn { flex: 1; min-width: 160px; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; color: var(--text-mid); cursor: pointer; transition: all var(--transition); }
.streak-btn:hover { background: var(--green-pale); border-color: var(--green-mid); color: var(--green-dark); }
.streak-btn.done { background: var(--green-pale); border-color: var(--green-bright); color: var(--green-mid); }

/* FOOTER */
.footer { background: var(--green-dark); color: rgba(255,255,255,0.7); padding: 3rem 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.footer-brand span { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--green-bright); display: block; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; }
.footer-disclaimer p { font-size: 0.8rem; line-height: 1.7; }
.footer-disclaimer strong { color: rgba(255,255,255,0.9); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { padding: 100px 2rem 4rem; }
  .section { padding: 4rem 2rem; }
  .footer { padding: 3rem 2rem; }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .dashboard-top { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .protocols { grid-template-columns: 1fr; }
  .drink-grid { grid-template-columns: repeat(2, 1fr); }
  .meal-plate-visual { grid-template-columns: 1fr; }
  .plate-diagram { margin: 0 auto; }
  .day-meals { grid-template-columns: 1fr; }
  .shopping-grid { grid-template-columns: repeat(2, 1fr); }
  .streaks-grid { grid-template-columns: repeat(2, 1fr); }
  .junk-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline-item { flex-direction: column; gap: 0.5rem; }
  .tl-time { min-width: unset; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; z-index: 99; }
  .nav-hamburger { display: flex; }
  .section { padding: 3rem 1rem; }
  .principles { grid-template-columns: 1fr; }
  .drink-grid { grid-template-columns: 1fr 1fr; }
  .junk-grid { grid-template-columns: 1fr 1fr; }
  .shopping-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .streaks-grid { grid-template-columns: repeat(2, 1fr); }
  .streak-actions { flex-direction: column; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
}