/* LeanPath — static weight loss guide (S3-friendly, no build step) */

:root {
  --bg: #ffffff;
  --bg-elevated: #f7f7f7;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #dc2626;
  --accent-dim: #b91c1c;
  --accent-bright: #ef4444;
  --accent-glow: rgba(220, 38, 38, 0.2);
  --warm: #ea580c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 72px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
  background: var(--accent-bright);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--bg-elevated);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(220, 38, 38, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(220, 38, 38, 0.04), transparent 50%),
    linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  display: grid;
  gap: 1rem;
  min-height: 320px;
}

.hero-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card--primary {
  align-self: end;
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: var(--shadow-lg);
}

.hero-card--primary p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.35rem 0;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--accent-dim);
}

.hero-card--secondary {
  justify-self: start;
  max-width: 200px;
}

.progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: 0.5rem;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #e5e5e5;
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 42;
}

.progress-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Trust bar */
.trust-bar {
  padding: 2rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.trust-bar p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.trust-logos li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-elevated);
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-header p:last-child {
  color: var(--text-muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-card--accent {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(145deg, #fff5f5 0%, var(--bg-card) 60%);
}

/* Step-by-step timeline */
.steps-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.step-card--final {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(145deg, #fff5f5 0%, var(--bg-card) 55%);
}

.step-number {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.step-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.step-actions {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-actions h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.step-actions ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.step-actions li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.step-tip {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  background: #fff5f5;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step-tip strong {
  color: var(--accent);
}

/* Encouragement section */
.encourage-section {
  background: linear-gradient(180deg, #fffafa 0%, var(--bg) 100%);
}

.encourage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.encourage-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.encourage-card--accent {
  border-color: rgba(220, 38, 38, 0.25);
  background: linear-gradient(145deg, #fff5f5 0%, var(--bg-card) 70%);
}

.encourage-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.encourage-card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}

.encourage-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.encourage-quote {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.encourage-quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  color: var(--text);
}

.encourage-quote footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* Hunger guide */
.hunger-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hunger-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hunger-step--highlight {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(145deg, #fff5f5 0%, var(--bg-card) 60%);
}

.hunger-step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hunger-step h3 {
  margin-bottom: 0.35rem;
}

.hunger-step p {
  margin: 0;
  color: var(--text-muted);
}

.hunger-split {
  align-items: start;
}

.hunger-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hunger-snack-list,
.hunger-remember-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hunger-snack-list li,
.hunger-remember-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.hunger-snack-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.hunger-remember-list li {
  padding-left: 0;
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.hunger-remember-list li:last-child {
  margin-bottom: 0;
}

.highlight-panel .step-tip {
  margin-top: 1.25rem;
}


.mini-steps {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mini-steps li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.mini-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d4d4;
}

.mini-steps .is-done {
  color: var(--text);
}

.mini-steps .is-done::before {
  background: var(--accent);
}

.mini-steps .is-active {
  color: var(--accent);
  font-weight: 600;
}

.mini-steps .is-active::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Progress tracker */
.tracker-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.tracker-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.tracker-progress-bar {
  height: 8px;
  background: #eeeeee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.tracker-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.tracker-status {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.tracker-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tracker-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.tracker-list label:has(input:checked) {
  border-color: rgba(220, 38, 38, 0.4);
  background: #fff5f5;
}

.tracker-list input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card ul {
  margin-top: 1rem;
}

.feature-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.feature-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.schedule-list time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--warm);
}

.highlight-panel {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.highlight-panel ol {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.highlight-panel li {
  margin-bottom: 0.75rem;
}

/* Trainers */
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.trainer-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trainer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  background: hsl(var(--hue, 200) 45% 22%);
  border: 2px solid hsl(var(--hue, 200) 60% 45%);
}

.trainer-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.trainer-card p:last-child {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0.5rem 0 1.25rem;
}

.price span:first-child {
  font-size: 1.5rem;
  vertical-align: super;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  flex: 1;
  margin-bottom: 1.5rem;
}

.price-card li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

blockquote {
  margin: 0;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

blockquote p {
  font-size: 1.05rem;
  font-style: italic;
}

blockquote footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-list summary {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  font-style: normal;
  color: var(--text-muted);
  margin-top: 2rem;
}

.contact-info a {
  color: var(--accent);
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-note.success {
  color: var(--accent);
}

.form-note.error {
  color: var(--warm);
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer nav a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .hero-card--secondary {
    justify-self: stretch;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .progress-ring {
    margin: 0;
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn {
    margin-top: 1rem;
    text-align: center;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

/* Calorie counter */
.calorie-app {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}

.calorie-summary {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.calorie-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.calorie-summary-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.25rem;
}

.calorie-summary-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.calorie-ring-bg {
  fill: none;
  stroke: #eeeeee;
  stroke-width: 8;
}

.calorie-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.35s ease;
}

.calorie-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calorie-ring-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.calorie-ring-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.calorie-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1rem;
  text-align: center;
}

.calorie-stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.calorie-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.calorie-stats dd.is-over {
  color: var(--accent);
}

.calorie-progress-bar {
  height: 8px;
  background: #eeeeee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.calorie-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.calorie-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.calorie-message--good {
  color: #15803d;
}

.calorie-message--warn {
  color: #a16207;
}

.calorie-message--over {
  color: var(--accent);
}

.calorie-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calorie-form,
.calorie-quick,
.calorie-log {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calorie-form h3,
.calorie-quick h3,
.calorie-log h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.calorie-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calorie-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.calorie-quick-btn {
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.calorie-quick-btn:hover,
.calorie-quick-btn:focus-visible {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fff5f5;
}

.calorie-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calorie-log-header h3 {
  margin: 0;
}

.calorie-log-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.calorie-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.calorie-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.calorie-log-item:last-child {
  border-bottom: none;
}

.calorie-log-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.calorie-log-info strong {
  font-size: 0.95rem;
}

.calorie-log-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calorie-log-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.calorie-log-kcal {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.calorie-log-remove {
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.calorie-log-remove:hover,
.calorie-log-remove:focus-visible {
  color: var(--accent);
  border-color: rgba(220, 38, 38, 0.35);
}

@media (max-width: 900px) {
  .calorie-app {
    grid-template-columns: 1fr;
  }

  .calorie-summary {
    position: static;
  }

  .calorie-form-row-split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
