@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Syne:wght@700;800&display=swap");

:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --secondary: #ff9a3d;
  --secondary-soft: rgba(255, 154, 61, 0.16);
  --bg: #eeeeee;
  --bg-soft: #f2f5fa;
  --bg-deep: #e7ecf4;
  --surface: #ffffff;
  --panel: #eef1f6;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #445468;
  --border: rgba(28, 41, 64, 0.11);
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 20px;
  --shadow: 0 8px 28px rgba(15, 36, 84, 0.06);
  --max: 1120px;
  --content: 760px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-wordmark: "Fraunces", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --header-h: 96px;
  --section-y: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 36, 84, 0.05);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-wordmark);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0.45rem;
  align-items: center;
  margin-right: 1.75rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.site-nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.36rem 0.92rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
  white-space: nowrap;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus-visible,
.site-nav a.nav-cta.active {
  color: #fff;
  background: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--primary-soft);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#features,
#closer-look,
#community,
#faq,
#plans,
#get-calspire {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

body.nav-locked {
  overflow: hidden;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* —— Home hero (full-bleed) —— */
.hero-bleed {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  padding-bottom: 10.5vh;
}

.hero-bleed__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right,
      rgba(0, 0, 0, 0.56) 0%,
      rgba(0, 0, 0, 0.30) 24%,
      rgba(0, 0, 0, 0) 48%),
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.50) 18%,
      rgba(0, 0, 0, 0.24) 36%,
      rgba(0, 0, 0, 0.08) 52%,
      rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.12) 100%),
    url("/assets/hero-kitchen-couple-large.jpg") 58% 48% / cover no-repeat;
  filter: saturate(1.04) contrast(1.03) brightness(1.05);
  transform: scale(1.02);
  animation: hero-zoom 22s ease-in-out infinite alternate;
}

.hero-bleed__orb {
  display: none;
}

.hero-bleed__content {
  position: relative;
  z-index: 2;
  width: min(38rem, calc(100% - 2rem));
  margin: 0 auto 0 0;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  padding: 2rem 0 0.25rem;
}

.hero-brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-wordmark);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-variation-settings: "SOFT" 40, "WONK" 0.7;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.hero-brand span {
  color: #fff;
}

.hero-headline {
  margin: 0 0 1.35rem;
  max-width: 11.4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.028em;
  line-height: 1.16;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 2.15rem;
  max-width: 32.5rem;
  padding: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.48);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.store-badge {
  display: inline-flex;
  line-height: 0;
}

.store-badge:hover {
  text-decoration: none;
  opacity: 0.92;
}

.store-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.store-badge img[alt="Get it on Google Play"] {
  height: 58px;
  margin-block: -9px;
}

.hero-note {
  margin: 1.25rem 0 0;
  max-width: 32.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.reveal,
.hero-brand,
.hero-headline,
.hero-lead,
.hero-actions,
.store-badges,
.hero-note {
  opacity: 0;
  transform: translateY(22px);
}

.hero-brand {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-headline {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero-lead {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero-actions {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.store-badges {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-note {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Dashboard preview —— */
.section-glance .section-head h2 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.section-glance .section-head p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38rem;
}
.section {
  padding: var(--section-y) 0;
}

.section.section-glance {
  padding: var(--section-y) 0 3.5rem;
  background: var(--bg);
}

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

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.dashboard-preview {
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.15rem;
  align-items: stretch;
}

.dash-panel {
  border-radius: 20px;
  padding: 1.4rem 1.45rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  min-width: 0;
}

.dash-panel--ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dash-panel h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.dash-panel p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.dash-panel--macros {
  display: flex;
  flex-direction: column;
}

.dash-panel--ring p:not(.ring-goal) {
  max-width: 32ch;
}

.calorie-ring {
  --progress: 0;
  width: min(100%, 228px);
  aspect-ratio: 1;
  margin: 0.15rem auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle closest-side, #fff 64%, transparent 65% 100%),
    conic-gradient(var(--primary) calc(var(--progress) * 1%), var(--bg-deep) 0);
}

.calorie-ring__inner {
  text-align: center;
}

.calorie-ring__inner strong {
  display: block;
  font-family: var(--font-body);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.calorie-ring__inner span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.ring-goal {
  margin: 0.85rem 0 0 !important;
  color: var(--muted);
  font-size: 0.82rem !important;
  font-weight: 500;
}

.macro-bars {
  display: grid;
  grid-template-rows: repeat(3, max-content);
  gap: 1.15rem;
  padding-top: 0.35rem;
  padding-bottom: 0.2rem;
  flex: 1;
  min-height: 0;
  align-content: space-between;
}

.macro-row {
  display: grid;
  gap: 0.42rem;
}

.macro-row header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.macro-row header span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.macro-row header span:last-child {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.swatch.protein { background: #2aa8a0; }
.swatch.carbs { background: var(--secondary); }
.swatch.fat { background: #a855f7; }

.bar {
  height: 9px;
  border-radius: 999px;
  background: var(--bg-deep);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.bar > i.protein { background: #2aa8a0; }
.bar > i.carbs { background: var(--secondary); }
.bar > i.fat { background: #a855f7; }

.dashboard-preview.is-animated .bar > i {
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-preview.is-animated .bar > i.protein { transform: scaleX(0.78); transition-delay: 0.05s; }
.dashboard-preview.is-animated .bar > i.carbs { transform: scaleX(0.62); transition-delay: 0.16s; }
.dashboard-preview.is-animated .bar > i.fat { transform: scaleX(0.54); transition-delay: 0.27s; }

.snapshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.snapshot {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.snapshot strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.snapshot span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* —— Feature story rows —— */
.section-routines {
  padding: 3.5rem 0 var(--section-y);
  background: #ffffff;
}

.routines-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--card);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.routines-copy {
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.4rem);
}

.routines-copy .section-head {
  margin-bottom: 1.6rem;
}

.section-routines .section-head p,
.section-routines .story p {
  color: #2f3b4f;
  font-weight: 500;
}

.section-routines .story h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: #0b1220;
}

.routines-portrait {
  margin: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 0.35rem 0.9rem 0 0.15rem;
}

.routines-portrait img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(15, 36, 84, 0.08));
}

.story-list {
  display: grid;
  gap: 1.25rem;
}

.story {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 0.35rem 0;
}

.story-media {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-deep);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story:hover .story-media img {
  transform: scale(1.05);
}

.story h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.story p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

/* —— App showcase —— */
.section-showcase {
  background: var(--bg);
  padding: calc(var(--section-y) + 1.15rem) 0;
  overflow-x: hidden;
}

.showcase-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding-left: 3.5rem;
  padding-right: 1.5rem;
  min-width: 0;
}

.showcase-copy {
  flex: 0 1 22rem;
  width: 22rem;
  min-width: 16.5rem;
  order: 2;
  margin-left: 1rem;
  position: relative;
  left: 0.85rem;
}

.showcase-copy .section-head {
  margin-bottom: 0;
  margin-left: 0;
  max-width: none;
}

.showcase-copy .section-head h2 {
  font-size: clamp(1.95rem, 3.7vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin-bottom: 0.8rem;
}

.showcase-copy .section-head p {
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  line-height: 1.5;
}

.showcase-phones {
  display: flex;
  flex: 0 1 auto;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  min-width: 0;
  padding: 0;
  order: 1;
}

.showcase-phone {
  margin: 0;
  width: auto;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 0;
}

.showcase-phone img {
  display: block;
  width: auto;
  height: clamp(15.6rem, 27.2vw, 22rem);
  max-width: none;
  filter: none;
}

.showcase-phone--progress {
  z-index: 1;
  margin-right: -1.6rem;
  transform: rotate(-8deg);
  transform-origin: 80% 100%;
}

.showcase-phone--progress img,
.showcase-phone--today img {
  height: clamp(15.3rem, 26.6vw, 21.4rem);
}

.showcase-phone--style {
  z-index: 3;
  transform: none;
}

.showcase-phone--style img {
  height: clamp(16.7rem, 29vw, 23.5rem);
}

.showcase-phone--today {
  z-index: 2;
  margin-left: -1.95rem;
  transform: rotate(8deg);
  transform-origin: 20% 100%;
}

@media (max-width: 900px) {
  .showcase-split {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2.5rem;
    padding-inline: 0;
  }

  .showcase-copy,
  .showcase-phones {
    order: 0;
    width: auto;
    flex: none;
    min-width: 0;
  }

  .showcase-copy {
    margin-left: 0;
    left: 0;
  }

  .showcase-copy .section-head {
    max-width: 28rem;
    margin-left: 0;
  }

  .showcase-copy .section-head h2 {
    font-size: clamp(1.8rem, 5.4vw, 2.35rem);
  }

  .showcase-phones {
    padding: 0;
  }

  .showcase-phone img,
  .showcase-phone--progress img,
  .showcase-phone--today img {
    height: clamp(14rem, 24vw, 18.8rem);
  }

  .showcase-phone--style img {
    height: clamp(15.2rem, 26vw, 20.4rem);
  }
}

@media (max-width: 720px) {
  :root {
    --section-y: 3.25rem;
  }

  .section.section-glance {
    padding-bottom: 2.5rem;
  }

  .section-routines {
    padding-top: 2.5rem;
    padding-bottom: var(--section-y);
  }

  .section-showcase {
    padding: calc(var(--section-y) + 0.75rem) 0;
  }

  .showcase-phones {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0.7rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .showcase-phone {
    width: auto;
  }

  .showcase-phone--progress,
  .showcase-phone--style,
  .showcase-phone--today {
    flex: 0 0 auto;
    transform: none;
    z-index: 1;
    scroll-snap-align: center;
  }

  .showcase-phone img,
  .showcase-phone--progress img,
  .showcase-phone--style img,
  .showcase-phone--today img {
    height: min(58vw, 19.4rem);
  }
}

/* —— Community —— */
.section-community {
  padding: var(--section-y) 0;
  background: #ffffff;
}

.community-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--card);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.community-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(0.85rem, 1.6vw, 1.1rem) clamp(1.35rem, 2.8vw, 2.2rem) clamp(1.5rem, 3vw, 2.4rem);
  background: var(--panel);
  order: 1;
}

.community-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.community-copy .section-head {
  margin-bottom: 1.2rem;
}

.community-copy .section-head h2 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.community-cards {
  display: grid;
  gap: 0.75rem;
  flex: 1;
}

.community-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.95rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 36, 84, 0.04);
}

.community-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.community-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.community-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.community-card:nth-child(1) { transition-delay: 0.06s; }
.community-card:nth-child(2) { transition-delay: 0.14s; }
.community-card:nth-child(3) { transition-delay: 0.22s; }
.community-card:nth-child(4) { transition-delay: 0.3s; }

.community-card-photo--connection {
  object-position: 50% 46%;
}

.community-photo {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  order: 2;
}

.community-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 28%;
  display: block;
  transform: scale(1.08);
  transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.community-photo.is-visible img {
  transform: scale(1);
}

/* —— FAQ —— */
.section.section-faq {
  background: var(--bg);
  padding: var(--section-y) 0;
}

.section-faq .section-head {
  margin-bottom: 1.85rem;
  margin-inline: auto;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 42rem;
  margin-inline: auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(55, 75, 102, 0.14);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 36, 84, 0.04);
  overflow: hidden;
}

.faq-item,
.faq-trigger,
.faq-panel,
.faq-panel-inner {
  background-color: #ffffff;
}

.faq-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 1.05rem 1.15rem;
  border: none;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--primary);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  max-width: none;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-panel a {
  color: var(--primary);
  font-weight: 600;
}

.faq-panel a:hover {
  text-decoration: underline;
}

/* —— Free vs Pro —— */
.section.section-plans {
  background: #ffffff;
  padding: var(--section-y) 0;
}

.section-plans .section-head {
  max-width: 22.5rem;
  margin-bottom: 2rem;
  margin-inline: auto;
  text-align: center;
}

.section-plans .section-head h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-plans .section-head p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.55;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 52rem;
  margin-inline: auto;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem 1.5rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(55, 75, 102, 0.24);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 36, 84, 0.04);
}

.plan-card--pro {
  position: relative;
  z-index: 1;
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow:
    0 12px 26px rgba(15, 36, 84, 0.09),
    0 3px 8px rgba(37, 99, 235, 0.05);
  background-image: linear-gradient(#a89068, #a89068);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 0;
}

.plan-card-head {
  margin-bottom: 1.15rem;
  text-align: center;
}

.plan-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
}

.plan-card--pro h3 {
  color: var(--primary);
}

.plan-trial {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-align: center;
}

.plan-groups {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.plan-group h4 {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.plan-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* —— CTA —— */
#get-calspire {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--bg);
}

.cta-finale {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.6rem) clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(115deg, #0c234f 0%, #16357a 42%, #1e4cb8 78%, #a89068 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.22);
}

.cta-finale h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.cta-finale p {
  margin: 0;
  opacity: 0.92;
  font-size: 1.02rem;
}

.cta-finale-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.cta-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.cta-stores .store-badge {
  opacity: 1;
  transform: none;
  animation: none;
}

.cta-support {
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.cta-support:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* —— Interior pages —— */
.page-hero {
  position: relative;
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

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

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.05rem;
}

.legal-layout {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 960px) {
  .legal-layout.has-aside {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}

@media (max-width: 959px) {
  .legal-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: baseline;
  }

  .legal-aside h2 {
    width: 100%;
  }

  .legal-aside a {
    display: inline-block;
    padding: 0.2rem 0;
  }
}

.legal-aside h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.legal-aside a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.legal-aside a:hover {
  color: var(--primary);
  text-decoration: none;
}

.legal-card,
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 0;
}

.legal-card {
  max-width: none;
}

.form-shell {
  max-width: var(--content);
  margin: 0 auto 3rem;
}

.form-card h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.form-card h2:first-of-type {
  margin-top: 0.25rem;
}

.legal-body {
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-body section {
  margin-bottom: 1.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-body h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.legal-body h4 {
  color: var(--text);
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
}

.legal-body p,
.legal-body li {
  margin: 0 0 0.75rem;
}

.legal-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-body strong {
  color: var(--text);
}

.alert {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.steps {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--primary);
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 2.25rem 0;
  margin-top: auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}

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

.footer-social-link {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  text-decoration: none;
  transform: scale(1.12);
}

.footer-social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-social-link[data-social="instagram"] svg {
  transform: scale(1.08);
  transform-origin: center;
}

.footer-social-link[data-social="tiktok"] svg {
  transform: scale(1.16);
  transform-origin: center;
}

.footer-social-link[data-social="instagram"],
.footer-social-link[data-social="tiktok"],
.footer-social-link[data-social="youtube"] {
  overflow: visible;
}

.footer-social-link[data-social="youtube"] svg {
  transform: scale(1.48);
  transform-origin: center;
}

.footer-social-link.is-pending {
  cursor: default;
}

.hidden {
  display: none !important;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, -18px); }
}

@keyframes ring-fill {
  from { filter: saturate(0.7); transform: scale(0.94); opacity: 0.6; }
  to { filter: saturate(1); transform: scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .dash-grid,
  .story,
  .routines-split,
  .community-split {
    grid-template-columns: 1fr;
  }

  .community-copy,
  .community-photo {
    order: 0;
  }

  .macro-bars {
    flex: 0 0 auto;
    align-content: start;
  }

  .story-media {
    width: min(100%, 220px);
  }

  .routines-portrait {
    min-height: 380px;
    max-height: 480px;
    padding: 0 1rem;
    justify-content: center;
  }

  .routines-portrait img {
    height: 100%;
    width: auto;
    max-height: 480px;
  }

  .community-photo {
    min-height: 380px;
    max-height: 480px;
  }

  .hero-bleed {
    min-height: calc(100svh - var(--header-h));
    align-items: flex-end;
    padding-bottom: 8.5vh;
  }

  .hero-bleed__media {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.06) 30%,
        rgba(0, 0, 0, 0.34) 68%,
        rgba(0, 0, 0, 0.54) 100%),
      linear-gradient(90deg,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.14) 42%,
        rgba(0, 0, 0, 0) 72%),
      url("/assets/hero-kitchen-couple-large.jpg") 66% 46% / cover no-repeat;
    filter: saturate(1.04) contrast(1.03) brightness(0.98);
  }

  .hero-bleed__content {
    margin-left: 1rem;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 720px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }

  .plan-card--pro {
    transform: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 51;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.2rem;
    margin-right: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(15, 36, 84, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header.is-nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.75rem 0.9rem;
  }

  .site-nav a.nav-cta {
    margin-top: 0.2rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .snapshot-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    padding: 0.95rem;
  }

  .dash-panel {
    padding: 1.15rem 1.05rem 1.1rem;
  }

  .macro-row header {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .macro-row header span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .hero-bleed__content {
    padding-top: 1.5rem;
    padding-bottom: 0.35rem;
  }

  .faq-trigger {
    font-size: 1rem;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
  }

  .faq-panel p {
    padding: 0 1rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero-brand,
  .hero-headline,
  .hero-lead,
  .hero-actions,
  .store-badges,
  .hero-note {
    opacity: 1;
    transform: none;
  }

  .calorie-ring {
    --progress: 72;
  }

  .bar > i.protein { transform: scaleX(0.78); }
  .bar > i.carbs { transform: scaleX(0.62); }
  .bar > i.fat { transform: scaleX(0.54); }

  .community-photo img {
    transform: none;
  }
}
