/*
Theme Name: Limotein
Theme URI: https://limotein.com
Author: Limotein
Description: Limotein marketing site and blog. Offline Poppins, light and dark.
Version: 0.5.61
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: limotein
*/

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f3ef;
  --bg-elev: #ffffff;
  --bg-soft: #ebe6df;
  --text: #141414;
  --muted: #66707a;
  --line: rgba(20, 20, 20, 0.1);
  --accent: #ff6d2e;
  --accent-pressed: #e55a1f;
  --on-accent: #ffffff;
  --glow: rgba(255, 109, 46, 0.28);
  --glow-2: rgba(120, 90, 255, 0.12);
  --shadow: 0 28px 70px rgba(20, 20, 20, 0.14);
  --header-h: 4.4rem;
  --max: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: "Poppins", "Avenir Next", sans-serif;
}

@property --hero-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #2db55d;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0c;
  --bg-elev: #171717;
  --bg-soft: #121212;
  --text: #ffffff;
  --muted: #b3b8c0;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff7a3d;
  --accent-pressed: #ff6d2e;
  --glow: rgba(255, 122, 61, 0.24);
  --glow-2: rgba(150, 120, 255, 0.12);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(980px 520px at 88% -8%, var(--glow), transparent 58%),
    radial-gradient(760px 420px at 8% 8%, var(--glow-2), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

#content {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
.brand-line,
.logo-word,
.footer-name,
.post-tile strong,
.post-tile .post-title {
  color: var(--text);
  font-family: var(--font);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  z-index: 30;
}

.skip-link:focus {
  top: 1rem;
}

.top-loader {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.top-loader.is-active {
  opacity: 1;
}

.top-loader-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
  transform-origin: left center;
  transition: width 280ms var(--ease-out);
}

.top-loader.is-active .top-loader-bar {
  animation: topLoaderRun 1.1s var(--ease-out) forwards;
}

.top-loader.is-finishing .top-loader-bar {
  width: 100% !important;
  animation: none;
  transition-duration: 220ms;
}

@keyframes topLoaderRun {
  0% {
    width: 0;
  }
  40% {
    width: 42%;
  }
  70% {
    width: 72%;
  }
  100% {
    width: 88%;
  }
}

.wrap,
.header-inner {
  width: min(var(--max), calc(100% - 1.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.25);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.logo-mark-dark {
  display: none;
}

html[data-theme="dark"] .logo-mark-light {
  display: none;
}

html[data-theme="dark"] .logo-mark-dark {
  display: block;
}

.logo-word {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
}

.nav-panel {
  display: contents;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 150ms var(--ease);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  place-items: center;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms var(--ease-out), opacity 160ms var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.site-header.is-nav-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-backdrop {
  display: none;
}

.theme-toggle {
  width: 3rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0.15rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease);
}

.theme-toggle-knob {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 180ms var(--ease-out);
}

html[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(1.15rem);
}

.theme-toggle:active {
  transform: scale(0.97);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  transition: transform 120ms var(--ease-out);
}

.store-badge img {
  height: 48px;
  width: auto;
}

.store-badge:active {
  transform: scale(0.97);
}

.hero {
  --hero-tint: #2db55d;
  position: relative;
  overflow: clip;
  padding: 2.5rem 0 3.5rem;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  transition: --hero-tint 480ms var(--ease-in-out);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 74% 30%, color-mix(in srgb, var(--hero-tint) 46%, transparent), transparent 64%),
    radial-gradient(480px 300px at 16% 72%, color-mix(in srgb, var(--hero-tint) 18%, transparent), transparent 72%),
    linear-gradient(180deg, transparent 55%, var(--bg));
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-seal {
  position: absolute;
  left: 22%;
  top: 42%;
  width: min(52%, 28rem);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 0.035;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.hero-seal-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

html[data-theme="dark"] .hero-seal {
  opacity: 0.045;
}

.brand-line {
  margin: 0 0 1.15rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.hero-title-panels,
.hero-desc-panels {
  display: grid;
}

.hero-title-panels {
  min-height: 7.5rem;
}

.hero-desc-panels {
  min-height: 4.5rem;
  margin-top: 0.85rem;
}

.hero-panel {
  grid-area: 1 / 1;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 280ms var(--ease-out),
    transform 280ms var(--ease-out),
    visibility 0s linear 280ms;
}

.hero-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 280ms var(--ease-out),
    transform 280ms var(--ease-out),
    visibility 0s linear 0s;
}

.hero-line {
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero-subtitle {
  margin: 0;
  color: var(--hero-tint);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 28ch;
  transition: color 480ms var(--ease-in-out);
}

.lede {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  font-weight: 400;
}

.hero-cta {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.hero .store-badges {
  margin-top: 0;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 0;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease), width 180ms var(--ease-out);
}

.hero-dot.is-active {
  width: 1.35rem;
  background: var(--hero-tint);
}

.hero-dot:active {
  transform: scale(0.92);
}

.hero-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  align-self: stretch;
}

.hero-stage::before {
  content: "";
  position: absolute;
  width: min(78%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hero-tint) 38%, transparent), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.hero-phone-stack {
  --phone-h: min(calc(100svh - var(--header-h) - 5.5rem), 38rem);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(72%, 320px, calc(var(--phone-h) * 0.475));
  animation: floatY 5.5s ease-in-out infinite;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  overflow: clip;
}

.phone {
  margin: 0;
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.device-shell {
  --device-radius: 2.45rem;
  --device-bezel: 0.4rem;
  position: relative;
  border-radius: var(--device-radius);
  padding: var(--device-bezel);
  background:
    linear-gradient(155deg, #4a4a4c 0%, #2c2c2e 28%, #111113 72%, #000 100%);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 18%, transparent) inset,
    0 -1px 0 color-mix(in srgb, #000 55%, transparent) inset,
    var(--shadow);
}

.device-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: calc(var(--device-radius) - var(--device-bezel));
  background: #000;
}

.device-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: inherit;
  object-fit: contain;
  border: 0;
  vertical-align: top;
}

.device-island {
  position: absolute;
  z-index: 3;
  top: calc(var(--device-bezel) + 0.52rem);
  left: 50%;
  width: min(32%, 6.1rem);
  height: 1.05rem;
  border-radius: 999px;
  background: #050505;
  box-shadow: 0 0 0 1px color-mix(in srgb, #000 80%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.device-btn {
  position: absolute;
  z-index: 2;
  background: linear-gradient(90deg, #2a2a2c, #141416);
  border-radius: 0.18rem;
  pointer-events: none;
}

.device-btn-silent {
  left: -0.14rem;
  top: 6.4rem;
  width: 0.14rem;
  height: 1.15rem;
}

.device-btn-volume-up {
  left: -0.14rem;
  top: 8.3rem;
  width: 0.14rem;
  height: 2rem;
}

.device-btn-volume-down {
  left: -0.14rem;
  top: 10.7rem;
  width: 0.14rem;
  height: 2rem;
}

.device-btn-power {
  right: -0.14rem;
  top: 9.1rem;
  width: 0.14rem;
  height: 3.1rem;
}

.phone-slide .device-shot,
.fasting-slide .device-shot {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.phone-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  max-height: var(--phone-h);
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  z-index: 1;
  transition:
    opacity 480ms var(--ease-out),
    transform 480ms var(--ease-out);
}

.phone-slide .device-screen,
.phone-slide .device-shot {
  max-height: calc(var(--phone-h) - 0.8rem);
}

.phone-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.phone-slide.is-leaving {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  z-index: 2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease),
    visibility 0s linear 180ms,
    transform 120ms var(--ease-out),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.hero-arrow-prev {
  left: 0.15rem;
}

.hero-arrow-next {
  right: 0.15rem;
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.strip {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  overflow: hidden;
  overflow-x: clip;
  contain: paint;
}

.strip-track {
  display: flex;
  width: max-content;
  max-width: none;
  animation: marquee 48s linear infinite;
}

.strip-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.75rem;
  padding: 0.95rem 0.9rem;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip-row span::after {
  content: "·";
  margin-left: 1.75rem;
  opacity: 0.45;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 4.75rem 0;
}

.section-alt {
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2,
.feature-split h2,
.cta-inner h2,
.page-title,
.entry-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  max-width: none;
}

.text-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.mode-card,
.showcase,
.post-tile,
.cta-inner {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
}

.showcase h3,
.mode-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.showcase p,
.mode-card p,
.check-list {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 4.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.feature-row-flip .feature-copy {
  order: 2;
}

.feature-heading {
  display: grid;
  gap: 0.55rem;
}

.feature-body {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.feature-subtitle {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 28ch;
}

.feature-copy h2,
.feature-split h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 16ch;
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.feature-copy .feature-subtitle {
  color: var(--accent);
}

.feature-copy .lede .cta-em {
  color: var(--accent);
  font-weight: 700;
}

.fasting-section .feature-split h2 {
  color: var(--text);
}

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28rem;
  overflow: clip;
}

.feature-media::before {
  content: "";
  position: absolute;
  width: min(72%, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.feature-media .phone {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  height: auto;
  display: block;
}

.feature-media .device-shell {
  box-shadow:
    0 24px 55px color-mix(in srgb, var(--ink) 16%, transparent),
    var(--shadow);
}

.coach-section .coach-copy.anim-reveal {
  transform: translateY(24px);
  transition:
    opacity 720ms var(--ease-out),
    transform 720ms var(--ease-out);
}

.coach-section .coach-media.anim-reveal {
  transform: translateY(32px) scale(0.96);
  transition:
    opacity 860ms var(--ease-out),
    transform 860ms var(--ease-out);
  transition-delay: var(--reveal-delay, 90ms);
}

.coach-section .coach-copy.anim-reveal.is-visible,
.coach-section .coach-media.anim-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.coach-section .coach-copy .check-list li {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 480ms var(--ease-out),
    transform 480ms var(--ease-out);
}

.coach-section .coach-copy.anim-reveal.is-visible .check-list li {
  opacity: 1;
  transform: translateY(0);
}

.coach-section .coach-copy.anim-reveal.is-visible .check-list li:nth-child(1) {
  transition-delay: 160ms;
}
.coach-section .coach-copy.anim-reveal.is-visible .check-list li:nth-child(2) {
  transition-delay: 240ms;
}
.coach-section .coach-copy.anim-reveal.is-visible .check-list li:nth-child(3) {
  transition-delay: 320ms;
}
.coach-section .coach-copy.anim-reveal.is-visible .check-list li:nth-child(4) {
  transition-delay: 400ms;
}
.coach-section .coach-copy.anim-reveal.is-visible .check-list li:nth-child(5) {
  transition-delay: 480ms;
}

.coach-media {
  isolation: isolate;
}

.coach-media::before {
  display: none;
}

.coach-aura {
  position: absolute;
  inset: 8% 6%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 40%, color-mix(in srgb, var(--accent) 48%, transparent), transparent 58%),
    radial-gradient(circle at 70% 65%, color-mix(in srgb, #8b4fa8 28%, transparent), transparent 55%),
    radial-gradient(circle at 30% 70%, color-mix(in srgb, #2db55d 18%, transparent), transparent 50%);
  filter: blur(18px);
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 90ms);
}

.coach-media.anim-reveal.is-visible .coach-aura {
  opacity: 1;
  transform: scale(1);
  animation: coachAura 7s ease-in-out 900ms infinite;
}

.coach-phone .device-shell {
  box-shadow:
    0 28px 70px color-mix(in srgb, var(--accent) 18%, transparent),
    var(--shadow);
}

.coach-media.anim-reveal.is-visible .coach-phone {
  animation: floatY 6s ease-in-out 900ms infinite;
}

@keyframes coachAura {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.06) rotate(4deg);
  }
}

.log-meal.anim-reveal {
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.log-meal-media {
  isolation: isolate;
}

.log-meal-media::before {
  display: none;
}

.log-meal-aura {
  position: absolute;
  inset: 6% 4%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 38%, color-mix(in srgb, var(--accent) 52%, transparent), transparent 56%),
    radial-gradient(circle at 72% 68%, color-mix(in srgb, #ffb347 26%, transparent), transparent 52%),
    radial-gradient(circle at 28% 72%, color-mix(in srgb, #2db55d 16%, transparent), transparent 48%);
  filter: blur(20px);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition:
    opacity 860ms var(--ease-out),
    transform 860ms var(--ease-out);
}

.log-meal.anim-reveal.is-visible .log-meal-aura {
  opacity: 1;
  transform: scale(1);
  animation: logMealAura 6.5s ease-in-out 700ms infinite;
}

.log-meal-phone {
  position: relative;
  z-index: 1;
}

.log-meal-phone .device-shell {
  box-shadow:
    0 28px 70px color-mix(in srgb, var(--accent) 16%, transparent),
    var(--shadow);
}

.log-meal.anim-reveal.is-visible .log-meal-phone {
  animation: floatY 5.8s ease-in-out 700ms infinite;
}

.log-meal .check-list {
  margin-top: 1.15rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.log-meal .check-list li {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out);
}

.log-meal.anim-reveal.is-visible .check-list li {
  opacity: 1;
  transform: translateY(0);
}

.log-meal.anim-reveal.is-visible .check-list li:nth-child(1) { transition-delay: 120ms; }
.log-meal.anim-reveal.is-visible .check-list li:nth-child(2) { transition-delay: 160ms; }
.log-meal.anim-reveal.is-visible .check-list li:nth-child(3) { transition-delay: 200ms; }
.log-meal.anim-reveal.is-visible .check-list li:nth-child(4) { transition-delay: 240ms; }
.log-meal.anim-reveal.is-visible .check-list li:nth-child(5) { transition-delay: 280ms; }
.log-meal.anim-reveal.is-visible .check-list li:nth-child(6) { transition-delay: 320ms; }
.log-meal.anim-reveal.is-visible .check-list li:nth-child(7) { transition-delay: 360ms; }
.log-meal.anim-reveal.is-visible .check-list li:nth-child(8) { transition-delay: 400ms; }

@keyframes logMealAura {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.07) rotate(-5deg);
  }
}

.feature-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.check-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

.phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.phone-pair .phone {
  width: 100%;
}

.fasting-phone-stack {
  display: contents;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.fasting-dots {
  display: none;
}

.fasting-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    transform 220ms var(--ease);
}

.fasting-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.fasting-dot:active {
  transform: scale(0.95);
}

.fasting-section .feature-split.anim-reveal {
  transform: translateY(22px);
  transition:
    opacity 760ms var(--ease-out),
    transform 760ms var(--ease-out);
}

.fasting-section .feature-split.anim-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fasting-plans {
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.fasting-media {
  position: relative;
  isolation: isolate;
  align-items: end;
}

.fasting-aura {
  position: absolute;
  inset: 4% 0 8%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 58%),
    radial-gradient(circle at 25% 70%, color-mix(in srgb, #ffb347 22%, transparent), transparent 50%),
    radial-gradient(circle at 78% 65%, color-mix(in srgb, #8b4fa8 18%, transparent), transparent 48%);
  filter: blur(22px);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.fasting-section .feature-split.anim-reveal.is-visible .fasting-aura {
  opacity: 1;
  transform: scale(1);
  animation: fastingAura 7s ease-in-out 800ms infinite;
}

.fasting-media .phone {
  position: relative;
  z-index: 1;
}

.fasting-media .device-shell {
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--accent) 14%, transparent),
    var(--shadow);
}

.fasting-section .feature-split.anim-reveal.is-visible .fasting-media .phone:first-of-type {
  animation: floatY 6.2s ease-in-out 850ms infinite;
}

.fasting-section .feature-split.anim-reveal.is-visible .fasting-media .phone:last-of-type {
  animation: floatY 6.2s ease-in-out 1.1s infinite;
}

@keyframes fastingAura {
  0%,
  100% {
    opacity: 0.86;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.06) rotate(3deg);
  }
}

.dual-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}

.showcase img {
  border-radius: 1.15rem;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.showcase-flip {
  direction: rtl;
}

.showcase-flip > * {
  direction: ltr;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mode-card {
  padding: 0.85rem;
}

.mode-card img {
  width: 100%;
  border-radius: 1.1rem;
  margin-bottom: 0.85rem;
  max-height: 360px;
  object-fit: cover;
  object-position: top;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.post-tile {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease);
}

.post-thumb {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-soft);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, var(--glow), transparent 55%),
    linear-gradient(145deg, var(--bg-soft), var(--bg-elev));
}

.post-meta,
.meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.post-tile strong,
.post-tile .post-title {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.post-excerpt {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  padding: 1.5rem 0 4.5rem;
}

.cta-inner {
  padding: 2.2rem 1.5rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  background:
    radial-gradient(500px 180px at 50% 0%, var(--glow), transparent 70%),
    var(--bg-elev);
}

.cta-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  object-fit: contain;
}

.cta-em {
  color: var(--accent);
  font-weight: 700;
}

.cta-inner .store-badges {
  margin-top: 0.5rem;
  justify-content: center;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 calc(1.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
}

.footer-brand {
  display: grid;
  gap: 0.4rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.footer-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  margin: 0;
  object-fit: contain;
}

.footer-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
  max-width: 26rem;
  line-height: 1.4;
}

.store-badges-footer {
  margin: 0;
}

.store-badges-footer .store-badge img {
  height: 40px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  text-decoration: none;
  transition:
    transform 120ms var(--ease-out),
    color 160ms var(--ease),
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.footer-social-link:active {
  transform: scale(0.96);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms var(--ease);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.entry-shell,
.entry {
  padding: 3rem 0 4.5rem;
}

.entry {
  max-width: 46rem;
}

.about-page {
  max-width: 52rem;
}

.offer-page {
  max-width: 40rem;
  text-align: center;
}

.offer-head {
  margin-bottom: 1.75rem;
}

.offer-head .entry-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.offer-head .lede {
  margin: 0 auto;
  max-width: 34rem;
}

.offer-media {
  margin: 0 0 1.75rem;
}

.offer-media img {
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
  border-radius: 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.offer-card {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 1.6rem 1.35rem 1.75rem;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 180px at 50% 0%, var(--glow), transparent 70%),
    var(--bg-elev);
}

.offer-discount {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.offer-code-label {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-code {
  margin: 0;
}

.offer-code code {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.offer-note {
  margin: 0.35rem 0 0.55rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.offer-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease);
}

.offer-claim:active {
  transform: scale(0.97);
  background: var(--accent-pressed);
}

.offer-download {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.offer-download p {
  margin: 0;
  color: var(--muted);
}

.offer-download .store-badges {
  justify-content: center;
}

.about-head {
  margin-bottom: 2.5rem;
}

.about-head .entry-title {
  margin: 0 0 0.85rem;
}

.about-head .lede {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38rem;
}

.about-block {
  margin: 0 0 2.25rem;
}

.about-block h2,
.about-points h3 {
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}

.about-block h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.about-block p,
.about-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40rem;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.5rem;
}

.about-points article {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
}

.about-points h3 {
  font-size: 1.05rem;
}

.about-cta {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.about-cta p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.legal-page,
.contact-page {
  max-width: 52rem;
}

.contact-page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - var(--header-h) - 11rem);
  padding-block: 3.5rem 4rem;
}

.contact-page.entry {
  max-width: var(--max);
  padding-block: 3.5rem 4rem;
}

.legal-head {
  margin-bottom: 2.25rem;
}

.legal-head .entry-title {
  margin: 0 0 0.75rem;
}

.legal-head .lede {
  margin: 0;
  max-width: 36rem;
}

.legal-updated {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.legal-body {
  display: grid;
  gap: 1.75rem;
}

.legal-body section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.legal-body section h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-body p {
  margin: 0;
}

.legal-body p + p {
  margin-top: 0.65rem;
}

.legal-body ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 44rem;
}

.contact-card {
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
  display: grid;
  gap: 0.45rem;
}

.contact-card h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact-mail {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-social h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb-sep {
  opacity: 0.55;
}

.post-entry .entry-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.related-posts {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.related-posts h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.related-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.related-posts-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.related-posts-list a:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.entry-hero {
  margin: 0 0 1.5rem;
}

.entry-hero img,
.entry-content img,
.entry-content figure {
  border-radius: 1.1rem;
}

.entry-content h2,
.entry-content h3 {
  letter-spacing: -0.03em;
}

.pagination {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.pagination a,
.pagination span {
  color: var(--muted);
  text-decoration: none;
}

.blog-index {
  padding-top: 2.25rem;
}

.archive-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.archive-head .page-title {
  margin: 0 0 0.65rem;
}

.archive-head .lede {
  margin: 0;
}

.blog-pager {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.blog-pager .navigation.pagination {
  margin: 0;
  width: 100%;
}

.blog-pager .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-pager .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.blog-pager .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition:
    transform 120ms var(--ease-out),
    color 160ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.blog-pager a.page-numbers:active {
  transform: scale(0.96);
}

.blog-pager .page-numbers.current {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.blog-pager .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  min-width: 1.5rem;
  padding: 0;
  color: var(--muted);
}

.blog-pager .prev,
.blog-pager .next {
  gap: 0.25rem;
  padding-inline: 0.95rem;
}

.anim-in {
  animation: rise 560ms var(--ease-out) both;
}

.anim-delay-1 {
  animation-delay: 70ms;
}
.anim-delay-2 {
  animation-delay: 140ms;
}
.anim-delay-3 {
  animation-delay: 210ms;
}
.anim-delay-4 {
  animation-delay: 280ms;
}

.anim-reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 520ms var(--ease-out),
    transform 520ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.anim-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover,
  .footer-links a:hover {
    color: var(--accent);
  }

  .footer-social-link:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  }
  .text-link:hover {
    color: var(--accent);
  }

  .store-badge:hover {
    transform: translateY(-2px);
  }

  .hero-stage:hover .hero-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 180ms var(--ease),
      visibility 0s linear 0s,
      transform 120ms var(--ease-out),
      background-color 160ms var(--ease),
      border-color 160ms var(--ease);
  }

  .hero-arrow:hover {
    background: var(--bg-elev);
    border-color: color-mix(in srgb, var(--hero-tint) 45%, var(--line));
    color: var(--hero-tint);
  }

  .post-tile:hover,
  .mode-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  }

  .blog-pager a.page-numbers:hover:not(.current) {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  }

  .post-tile,
  .mode-card {
    transition: transform 180ms var(--ease-out), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .hero {
    padding: 1.75rem 0 2.25rem;
  }

  .brand-line {
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    margin-bottom: 0.85rem;
  }

  .hero-title-panels {
    min-height: 6.5rem;
  }

  .hero-desc-panels {
    min-height: 3.5rem;
  }

  .hero-line {
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  }

  .hero-phone-stack {
    --phone-h: min(calc(100svh - var(--header-h) - 4.5rem), 34rem);
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .hero {
    min-height: 0;
    padding: 1.5rem 0 2rem;
    align-items: center;
  }

  .brand-line {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 0.7rem;
  }

  .hero-title-panels {
    min-height: 5.5rem;
  }

  .hero-desc-panels {
    min-height: 3rem;
  }

  .hero-cta .store-badges {
    margin-top: 0;
  }

  .hero-phone-stack {
    --phone-h: min(calc(100svh - var(--header-h) - 3.5rem), 30rem);
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }

  .hero-copy {
    display: contents;
  }

  .hero-seal {
    display: none;
  }

  .brand-line {
    order: 1;
    margin-bottom: 0;
    text-align: center;
  }

  .hero-title-panels {
    order: 2;
    min-height: 0;
    text-align: center;
    justify-items: center;
  }

  .hero-title-panel {
    justify-items: center;
  }

  .hero-line,
  .hero-subtitle {
    max-width: 20ch;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    font-weight: 500;
    max-width: 28ch;
    line-height: 1.4;
  }

  .hero-stage {
    order: 3;
  }

  .hero-desc-panels {
    order: 4;
    min-height: 0;
    margin-top: 0;
  }

  .hero-cta {
    order: 5;
    margin-top: 0;
    justify-items: center;
    text-align: center;
  }

  .hero-cta .hero-dots {
    justify-content: center;
  }

  .feature-row,
  .feature-split,
  .dual-showcase,
  .mode-grid,
  .posts-grid,
  .footer-top,
  .footer-bottom,
  .about-points,
  .contact-grid,
  .showcase {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row-flip,
  .feature-split {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }

  .feature-copy {
    display: contents;
  }

  .feature-heading {
    order: 1;
  }

  .feature-media,
  .phone-pair.fasting-media {
    order: 2;
  }

  .feature-body {
    order: 3;
    margin-top: 0;
  }

  .fasting-section .feature-split {
    gap: 1.75rem;
  }

  .fasting-section .feature-heading {
    margin-bottom: 0.35rem;
  }

  .fasting-section .feature-body {
    gap: 1.15rem;
  }

  .fasting-section .fasting-plans {
    margin-top: 0.35rem;
  }

  .fasting-section .phone-pair.fasting-media {
    margin-top: 0.5rem;
  }

  .feature-row-flip .feature-copy {
    order: unset;
  }

  .feature-media {
    min-height: 0;
  }

  .feature-media .phone {
    width: min(68%, 240px);
  }

  .hero {
    min-height: auto;
    padding: 1.75rem 0 2.5rem;
  }

  .hero-stage {
    min-height: 0;
  }

  .hero-phone-stack {
    --phone-h: min(58svh, 28rem);
    width: min(70%, 280px, calc(var(--phone-h) * 0.475));
  }

  .fasting-media {
    width: min(68%, 240px);
    margin-inline: auto;
    gap: 0.75rem;
    justify-items: center;
    overflow: visible;
    background: transparent;
  }

  .phone-pair.fasting-media {
    grid-template-columns: 1fr;
  }

  .fasting-phone-stack {
    display: grid;
    width: 100%;
    position: relative;
    z-index: 1;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    overflow: visible;
  }

  .fasting-phone-stack .fasting-slide {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    transform: none;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out);
  }

  .fasting-phone-stack .fasting-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
  }

  .fasting-phone-stack .fasting-slide.is-leaving {
    opacity: 0;
    pointer-events: none;
    z-index: 2;
  }

  .fasting-dots {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .fasting-section .feature-split.anim-reveal.is-visible .fasting-media .phone,
  .fasting-section .feature-split.anim-reveal.is-visible .fasting-phone-stack {
    animation: none;
  }

  .fasting-media .fasting-aura {
    display: none;
  }

  .fasting-section .feature-split.anim-reveal.is-visible .fasting-aura {
    animation: none;
  }

  .fasting-media .device-shell {
    box-shadow: var(--shadow);
  }

  .hero-title-panels,
  .hero-desc-panels {
    min-height: 0;
  }

  .hero .store-badges,
  .hero-cta .store-badges {
    justify-content: center;
  }

  .showcase-flip {
    direction: ltr;
  }

  .nav-toggle {
    display: grid;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 18;
    margin: 0;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, #000 72%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition:
      opacity 200ms var(--ease),
      visibility 0s linear 200ms;
  }

  .site-header.is-nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 200ms var(--ease),
      visibility 0s linear 0s;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 22;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px color-mix(in srgb, #000 18%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 200ms var(--ease-out),
      transform 220ms var(--ease-out),
      visibility 0s linear 220ms;
  }

  .nav-panel {
    display: grid;
    gap: 0.1rem;
    width: min(var(--max), calc(100% - 1.5rem));
    margin-inline: auto;
    padding: 0.7rem 0 0.9rem;
    justify-items: center;
    text-align: center;
  }

  .site-header.is-nav-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 200ms var(--ease-out),
      transform 220ms var(--ease-out),
      visibility 0s linear 0s;
  }

  .nav a {
    display: block;
    padding: 0.78rem 0.1rem;
    font-size: 1.05rem;
    color: var(--text);
    text-align: center;
  }

  body.is-nav-open {
    overflow: hidden;
  }
}

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

  .log-meal .check-list {
    grid-template-columns: 1fr;
  }

  .fasting-plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .anim-in,
  .hero-phone-stack,
  .strip-track,
  .anim-reveal,
  .coach-media.anim-reveal.is-visible .coach-phone,
  .coach-media.anim-reveal.is-visible .coach-aura,
  .log-meal.anim-reveal.is-visible .log-meal-phone,
  .log-meal.anim-reveal.is-visible .log-meal-aura,
  .fasting-section .feature-split.anim-reveal.is-visible .fasting-aura,
  .fasting-section .feature-split.anim-reveal.is-visible .fasting-phone-stack,
  body,
  .theme-toggle,
  .theme-toggle-knob,
  .store-badge,
  .post-tile,
  .mode-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .fasting-section .feature-split.anim-reveal.is-visible .fasting-media .phone {
    animation: none !important;
    transform: none !important;
  }

  .top-loader,
  .top-loader-bar {
    transition: none !important;
  }

  .top-loader {
    display: none !important;
  }

  .hero,
  .hero-panel,
  .phone-slide,
  .fasting-slide,
  .hero-subtitle,
  .hero-arrow,
  .coach-aura,
  .log-meal-aura,
  .fasting-aura,
  .coach-section .coach-copy .check-list li,
  .log-meal .check-list li {
    transition: none !important;
  }

  .hero-panel:not(.is-active),
  .phone-slide:not(.is-active):not(.is-leaving) {
    opacity: 0 !important;
    transform: none !important;
  }

  .phone-slide.is-leaving {
    opacity: 0 !important;
  }
}

/* Fasting guide pages */
.fasting-guide {
  max-width: 46rem;
  padding-bottom: 4rem;
}

.fasting-guide-head {
  margin-bottom: 2.25rem;
}

.fasting-guide-head .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.fasting-guide-head .eyebrow a:hover {
  color: var(--accent);
}

.fasting-guide-head .entry-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 18ch;
}

.fasting-guide-head .lede {
  margin: 0;
  max-width: 34rem;
}

.fasting-guide-facts {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.fasting-guide-facts > div {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
}

.fasting-guide-facts dt {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fasting-guide-facts dd {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fasting-guide-body {
  display: grid;
  gap: 2rem;
}

.fasting-guide-body h2 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.fasting-guide-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.fasting-guide-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  line-height: 1.55;
}

.fasting-guide-note {
  margin-top: 0.85rem !important;
  font-size: 0.95rem;
}

.fasting-guide-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.fasting-guide-faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.fasting-guide-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.fasting-guide-faq summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.fasting-guide-faq summary::-webkit-details-marker {
  display: none;
}

.fasting-guide-faq details p {
  margin-top: 0.55rem;
}

.fasting-guide-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.fasting-guide-links a {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
}

.fasting-guide-links a span:first-child {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fasting-guide-links a span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.fasting-guide-links a:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.fasting-guide-cta {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding-top: 0.5rem;
}

.fasting-guide-cta p {
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.fasting-plan-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.fasting-plan-link:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .fasting-guide-facts {
    grid-template-columns: 1fr;
  }

  .fasting-guide-head .entry-title {
    max-width: none;
  }
}
