/* ============================================
   JanetYogaWear.com — Design System v2
   Lavender Purple Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --color-primary: #7C5CBF;
  --color-primary-light: #9B7BD4;
  --color-primary-dark: #5A3D99;
  --color-accent: #B794F6;
  --color-accent-warm: #F687B3;
  --color-plum: #2D1B69;
  --color-bg: #F5F0FF;
  --color-bg-white: #FFFFFF;
  --color-bg-card: rgba(255, 255, 255, 0.82);
  --color-text: #2D1B69;
  --color-text-light: #6B5B95;
  --color-text-muted: #9B8EC4;
  --color-border: rgba(124, 92, 191, 0.15);
  --color-success: #48BB78;
  --color-warning: #F6AD55;
  --color-danger: #FC8181;
  --color-info: #63B3ED;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(45, 27, 105, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 27, 105, 0.1);
  --shadow-lg: 0 16px 48px rgba(45, 27, 105, 0.12);
  --shadow-glow: 0 0 40px rgba(124, 92, 191, 0.2);
  --max-width: 1200px;
  --sidebar-width: 300px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; }
a { color: var(--color-primary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; display: block; }

/* ===== SITE NAVIGATION ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-plum);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand:hover { color: var(--color-primary); }
.nav-brand .brand-dot {
  width: 8px; height: 8px;
  background: var(--color-accent-warm);
  border-radius: 50%;
  display: inline-block;
}
.nav-links-main {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links-main a {
  padding: 8px 16px;
  color: var(--color-text-light);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .3s;
}
.nav-links-main a:hover,
.nav-links-main a.active {
  background: var(--color-bg);
  color: var(--color-primary);
}
.nav-cta {
  padding: 9px 22px;
  background: var(--color-primary);
  color: white !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all .3s !important;
}
.nav-cta:hover {
  background: var(--color-primary-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,92,191,.3);
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.content-grid:has(.sidebar:not([style*="display: none"])) {
  grid-template-columns: 1fr var(--sidebar-width);
}
.main-content { min-width: 0; }
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 70px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #5A3D99 0%, #7C5CBF 30%, #9B7BD4 60%, #B794F6 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(246,135,179,.1) 0%, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 72px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  color: white;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.hero h1 span {
  background: linear-gradient(135deg, #FFD6E8, #FFECD2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.9);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-tools-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hero-tools-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: rgba(255,255,255,.9);
  color: var(--color-primary-dark);
  border-radius: 100px;
  font-weight: 600;
  font-size: .875rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 12px rgba(45,27,105,.15);
}
.hero-tools-nav a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,27,105,.25);
  background: white;
  color: var(--color-primary-dark);
}
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
}
.hero-stat { color: rgba(255,255,255,.85); text-align: center; }
.hero-stat strong { display: block; font-size: 1.4rem; font-weight: 700; color: white; line-height: 1.2; }
.hero-stat span { font-size: .8rem; opacity: .8; }

/* ===== AD SLOTS (hidden by default, shown only when ad data loads via API) ===== */
.ad-slot {
  display: none;
  background: rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-slot a {
  display: block;
  width: 100%;
  height: 100%;
}
.ad-slot-leaderboard {
  width: 100%;
  aspect-ratio: 728/90;
  max-width: var(--max-width);
  margin: 0 auto;
}
.ad-slot-sidebar {
  width: 300px;
  aspect-ratio: 300/250;
}
.ad-slot-incontent {
  width: 100%;
  aspect-ratio: 728/90;
  margin: 40px 0;
}

/* ===== TOOL SECTIONS ===== */
.tools-wrapper { padding: 60px 0 40px; }
.tool-section { padding: 60px 0; }
.tool-section + .tool-section { border-top: 1px solid var(--color-border); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-plum);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== CALC CARD ===== */
.calc-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .4s;
}
.calc-card:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-weight: 600; font-size: .875rem; color: var(--color-text); margin-bottom: 8px; }
.form-label small { color: var(--color-text-muted); font-weight: 400; }
.input-wrapper { position: relative; }
.input-wrapper .unit {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: .875rem; font-weight: 500;
  pointer-events: none;
}
input[type="number"], select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-white);
  transition: all .3s;
  appearance: none;
  -webkit-appearance: none;
}
input[type="number"]:focus, select:focus,
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(124,92,191,.1);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236B5B95'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
textarea { resize: vertical; min-height: 120px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== UNIT TOGGLE ===== */
.unit-toggle {
  display: inline-flex;
  background: var(--color-bg);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}
.unit-toggle button {
  padding: 9px 22px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}
.unit-toggle button.active { background: var(--color-primary); color: white; box-shadow: 0 2px 8px rgba(124,92,191,.3); }

/* ===== CALCULATE BUTTON ===== */
.btn-calculate {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.btn-calculate:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,92,191,.4); }
.btn-calculate:active { transform: translateY(0); }

/* ===== RESULT PANEL ===== */
.result-panel {
  display: none;
  text-align: center;
  border: 1px solid rgba(124,92,191,.1);
}
.result-panel.visible {
  display: block;
  padding: 36px 40px;
  background: linear-gradient(135deg, #F5F0FF 0%, #EDE5FF 100%);
  border-radius: var(--radius-md);
  animation: resultSlideIn .55s cubic-bezier(.22,1,.36,1) forwards;
}
.result-value {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.result-label { font-size: 1rem; color: var(--color-text-light); font-weight: 600; }

@keyframes resultSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== BMI GAUGE ===== */
.bmi-gauge-container { margin: 22px 0; }
.bmi-gauge {
  position: relative;
  width: 100%; height: 14px;
  border-radius: 100px;
  background: linear-gradient(to right, #63B3ED 0%, #48BB78 30%, #F6AD55 60%, #FC8181 80%, #E53E3E 100%);
  overflow: visible;
  margin-bottom: 8px;
}
.bmi-gauge-marker {
  position: absolute; top: 50%;
  width: 22px; height: 22px;
  background: white;
  border: 3px solid var(--color-plum);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: left .8s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
}
.bmi-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--color-text-muted);
}
.bmi-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9rem;
  margin-top: 14px;
}
.bmi-category.underweight { background: rgba(99,179,237,.15); color: #2B6CB0; }
.bmi-category.normal      { background: rgba(72,187,120,.15); color: #276749; }
.bmi-category.overweight  { background: rgba(246,173,85,.15); color: #9C4221; }
.bmi-category.obese       { background: rgba(252,129,129,.15); color: #C53030; }
.health-tip {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: left;
  border-left: 3px solid var(--color-primary);
}
.health-tip strong { color: var(--color-text); }

/* ===== CALORIE RESULT ===== */
.calorie-extras { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.calorie-equiv {
  padding: 14px 10px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--color-border);
}
.calorie-equiv .eq-icon { font-size: 1.6rem; margin-bottom: 4px; }
.calorie-equiv .eq-value { font-weight: 700; font-size: .95rem; color: var(--color-primary-dark); }
.calorie-equiv .eq-label { font-size: .7rem; color: var(--color-text-muted); margin-top: 2px; }

/* ===== RANGE SLIDER ===== */
.range-container { position: relative; }
.range-value { text-align: center; font-weight: 700; font-size: 1.4rem; color: var(--color-primary); margin-bottom: 8px; }
input[type="range"] {
  width: 100%; height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 100px;
  outline: none;
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,92,191,.3);
  transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,92,191,.3);
}
.range-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--color-text-muted); margin-top: 4px; }

/* ===== YOGA MAT TOOL ===== */
.mat-result-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 20px;
}
.mat-result-item {
  padding: 16px 12px;
  background: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  text-align: center;
}
.mat-result-item .mat-icon { font-size: 1.8rem; margin-bottom: 6px; }
.mat-result-item .mat-val { font-weight: 700; font-size: 1.1rem; color: var(--color-primary-dark); }
.mat-result-item .mat-lbl { font-size: .72rem; color: var(--color-text-muted); margin-top: 2px; }
.mat-material-tip {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--color-text-light);
  border-left: 3px solid var(--color-accent);
  text-align: left;
  line-height: 1.6;
}

/* ===== SIZE CHART TOOL ===== */
.size-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.size-result-item {
  padding: 14px 16px;
  background: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.size-result-item .size-brand { font-size: .8rem; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.size-result-item .size-val { font-weight: 700; font-size: 1.1rem; color: var(--color-primary-dark); }
.size-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(246,135,179,.08);
  border: 1px solid rgba(246,135,179,.2);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== PRACTICE PLANNER ===== */
.plan-output {
  margin-top: 20px;
  display: none;
}
.plan-output.visible { display: block; }
.plan-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-title-text { font-family: var(--font-heading); font-weight: 700; color: var(--color-plum); font-size: 1.1rem; }
.plan-print-btn {
  padding: 8px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-light);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}
.plan-print-btn:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.week-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.day-card {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  transition: transform .2s;
}
.day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.day-card.rest-day { background: rgba(245,240,255,.5); }
.day-name { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); margin-bottom: 6px; }
.day-icon { font-size: 1.4rem; margin-bottom: 4px; }
.day-activity { font-size: .72rem; font-weight: 600; color: var(--color-plum); margin-bottom: 4px; line-height: 1.3; }
.day-duration { font-size: .68rem; color: var(--color-text-muted); }
.plan-tips {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--color-text-light);
  border-left: 3px solid var(--color-success);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-plum);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand h3 { color: white; font-size: 1.25rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: .875rem; max-width: 300px; line-height: 1.7; }
.footer-links h4 { color: white; font-size: .8rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .875rem; transition: color .3s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}
.footer-disclaimer { font-size: .72rem; color: rgba(255,255,255,.35); max-width: 600px; line-height: 1.5; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }

/* ===== SUBPAGE STYLES ===== */
.page-content { max-width: 900px; margin: 0 auto; padding: 60px 0; }
.content-section { margin-bottom: 28px; }
.content-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.content-card:hover { box-shadow: var(--shadow-lg); }
.content-icon { font-size: 2.2rem; margin-bottom: 14px; }
.content-card h2 { font-size: 1.5rem; color: var(--color-plum); margin-bottom: 14px; }
.content-card p { color: var(--color-text-light); margin-bottom: 12px; line-height: 1.8; }
.content-card p:last-child { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 20px; }
.feature-item {
  padding: 24px;
  background: rgba(245,240,255,.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform .3s, box-shadow .3s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-item h3 { font-size: 1rem; color: var(--color-plum); margin-bottom: 8px; }
.feature-item p { font-size: .875rem; color: var(--color-text-light); margin: 0; }
.cta-card { text-align: center; background: linear-gradient(135deg, #F5F0FF 0%, #EDE5FF 100%); }
.cta-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 16px rgba(124,92,191,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(124,92,191,.4); color: white; }
.btn-primary.btn-outline { background: white; color: var(--color-primary); border: 2px solid var(--color-primary); box-shadow: none; }
.btn-primary.btn-outline:hover { background: var(--color-primary); color: white; }
.legal-card { padding: 44px; }
.legal-updated {
  display: inline-block;
  padding: 5px 14px;
  background: var(--color-bg);
  border-radius: 100px;
  color: var(--color-text-muted);
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.legal-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--color-border); }
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-section h2 { font-size: 1.2rem; color: var(--color-plum); margin-bottom: 10px; }
.legal-section h3 { font-size: 1rem; color: var(--color-primary-dark); margin-top: 18px; margin-bottom: 8px; }
.legal-section p { color: var(--color-text-light); line-height: 1.8; margin-bottom: 10px; }
.legal-section ul { list-style: none; padding: 0; margin: 10px 0; }
.legal-section ul li { padding: 5px 0 5px 22px; position: relative; color: var(--color-text-light); line-height: 1.7; }
.legal-section ul li::before { content: '•'; position: absolute; left: 6px; color: var(--color-primary); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; align-items: start; }
.contact-info-column { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-info-icon { font-size: 1.8rem; margin-bottom: 6px; }
.contact-info-card h3 { font-size: .95rem; color: var(--color-plum); margin-bottom: 4px; }
.contact-info-card p { color: var(--color-text-light); font-size: .875rem; margin: 0; line-height: 1.6; }
.contact-info-card a { color: var(--color-primary); font-weight: 500; }
.form-intro { color: var(--color-text-light); margin-bottom: 24px; font-size: .9rem; }
.form-success { text-align: center; padding: 36px 20px; }
.success-icon { font-size: 2.8rem; margin-bottom: 14px; }
.form-success h3 { font-size: 1.3rem; color: var(--color-plum); margin-bottom: 8px; }
.form-success p { color: var(--color-text-light); }

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  background: linear-gradient(135deg, #5A3D99 0%, #7C5CBF 50%, #9B7BD4 100%);
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; color: white; margin-bottom: 12px; }
.page-hero h1 span {
  background: linear-gradient(135deg, #FFD6E8, #FFECD2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto; }

/* ===== PRINT ===== */
@media print {
  .site-nav, .ad-slot, .sidebar, .site-footer, .btn-calculate, .plan-print-btn { display: none !important; }
  body { background: white; }
  .week-grid { gap: 4px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: none !important; }
  .ad-slot-incontent { display: none !important; }
}
@media (max-width: 768px) {
  .nav-links-main, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-links-main.open + .nav-cta { display: block; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 20px; }
  .hero-tools-nav a { font-size: .8rem; padding: 9px 18px; }
  .calc-card { padding: 24px; }
  .input-row { grid-template-columns: 1fr; }
  .mat-result-grid { grid-template-columns: repeat(3,1fr); }
  .size-result-grid { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(4,1fr); }
  .calorie-extras { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-column { display: grid; grid-template-columns: repeat(2,1fr); }
  .cta-buttons { flex-direction: column; align-items: center; }
  .page-hero { padding: 40px 0 36px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .calc-card { padding: 18px; border-radius: var(--radius-md); }
  .week-grid { grid-template-columns: repeat(4,1fr); }
  .mat-result-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-column { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .legal-card { padding: 22px; }
}
