/* ===================== RESET & BASE ===================== */
:root {
  --canvas: #fff;
  --ink: #1c1c1c;
  --muted: rgba(28, 28, 28, 0.56);
  --accent: #ea3202;
  --secondary: #4d1101;
  --secondary-light: #7a2c18;
  --chip-bg: #eedabe;
  --chip-fg: #80541f;
  --good: #ddefd8;
  --bad: #f7d2c8;
  --protein: #ff9d8e;
  --carb: #ba7b06;
  --fat: #fdd974;
  --glass: rgba(255, 255, 255, 0.86);
  --stroke: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.06);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

.page {
  /* Keep full-width carousel and rotated artwork inside the page's horizontal bounds. */
  overflow-x: clip;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* ===================== FLOATING NAV ===================== */
.floating-nav {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 136px;
  padding: 3px 15px;
  border: 1px solid var(--stroke);
  border-radius: 9999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px var(--shadow);
  overflow: hidden;
  transition:
    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.floating-nav-expanded {
  max-width: calc(100% - 32px);
  padding: 5px 8px 5px 16px;
  transition:
    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-nav > .content {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.floating-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px;
}
.floating-nav-logo img { width: auto; height: 26px; transition: filter 0.3s; }
.floating-nav-expanded .floating-nav-logo img { filter: brightness(0) opacity(0.8); }
.floating-nav-cta {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 10px 22px 10px 18px;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-light));
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.15s;
}
.floating-nav-cta span { font-size: 16px; font-weight: 600; }
.floating-nav-cta-icon { width: auto; height: 18px; filter: invert(1); }
.floating-nav-expanded .floating-nav-cta {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s 0.2s;
}

/* ===================== SHARED ===================== */
.script-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12em;
  font-weight: 700;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===================== HERO ===================== */
.hero-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 155px 16px 0;
  background:
    radial-gradient(ellipse at 50% 125px, rgba(77, 17, 1, 0.46) 0%, rgba(77, 17, 1, 0.28) 28%, rgba(77, 17, 1, 0) 58%),
    linear-gradient(180deg, rgba(234, 50, 2, 0) 0%, rgba(234, 50, 2, 0.06) 60%, var(--canvas) 94%, var(--canvas) 100%),
    url(../assets/background.png),
    linear-gradient(180deg, #ea3202 0%, #ea3202 60%, var(--canvas) 94%);
  /* A white base prevents orange bleed at fractional-pixel background edges. */
  background-color: var(--canvas);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: visible;
}
.hero-section::after {
  /* Paint across the boundary, including subpixel seams from the masked phone. */
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--canvas) 70%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 2px 18px rgba(77, 17, 1, 0.42), 0 1px 2px rgba(77, 17, 1, 0.28);
}
.hero-heading {
  margin: 0;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.15;
}
.hero-subtext {
  max-width: 480px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 500;
  line-height: 1.5;
}
.hero-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}
.landing-download-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  height: 54px;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 73px;
  box-shadow: 0 12px 26px var(--shadow), inset 0 -1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.landing-download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(77, 17, 1, 0.12), inset 0 -1px 3px rgba(0, 0, 0, 0.04);
}
.landing-download-button span { color: var(--secondary); font-size: 18px; font-weight: 700; }
.landing-button-icon { width: 24px; height: 24px; object-fit: contain; }

.hero-phone-area {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 500px;
}
.hero-phone {
  position: relative;
  z-index: 2;
  width: min(76%, 320px);
  aspect-ratio: 448 / 916;
  filter: drop-shadow(0 24px 36px rgba(77, 17, 1, 0.16));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.72) 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.72) 88%, rgba(0, 0, 0, 0) 100%);
}
/* The frame's 402 × 874 screen opening starts at (24, 21) in its 448 × 916 viewBox. */
.hero-phone-screen {
  position: absolute;
  left: 5.357142857%;
  top: 2.292576419%;
  width: 89.732142857%;
  height: 95.41484716%;
  border-radius: 15.68% / 7.21%;
  overflow: hidden;
  background: #fff;
}
.hero-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===================== RECIPE HIGHLIGHTS ===================== */
.recipe-highlight-section,
.features-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 60px 16px 48px;
  background: var(--canvas);
}
.recipe-highlight-content,
.features-header {
  margin: 0 auto;
  text-align: center;
}
.recipe-highlight-content h2,
.features-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.3;
}
.recipe-highlight-content .script-text,
.features-header .script-text {
  color: var(--accent);
  font-size: 1.22em;
}
.recipe-highlight-content p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 600;
  line-height: 1.55;
}
.source-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 980px);
  min-height: 460px;
  margin: 42px auto 0;
  padding: 18px 8px 0;
}
.source-card,
.source-recipe-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(77, 17, 1, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(77, 17, 1, 0.08);
}
.source-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(48vw, 190px);
  min-height: 148px;
  padding: 16px;
}
.source-card-domain {
  color: rgba(77, 17, 1, 0.52);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.source-card-title {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 800;
}
.source-card-line {
  display: block;
  width: 100%;
  height: 9px;
  background: rgba(77, 17, 1, 0.08);
  border-radius: 999px;
}
.source-card-line.short { width: 68%; }
.source-card-news { justify-self: start; transform: rotate(-4deg); }
.source-card-video { justify-self: end; transform: rotate(3deg); }
.source-card-short { justify-self: start; margin-left: 16%; transform: rotate(4deg); }
.source-card-social { justify-self: end; margin-right: 7%; transform: rotate(-3deg); }
.source-card-blog { justify-self: start; margin-left: 4%; transform: rotate(2deg); }
.source-card-media {
  isolation: isolate;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--secondary);
}
.source-card-video,
.source-card-short,
.source-card-social { min-height: 0; }
.source-card-video { width: min(66vw, 250px); aspect-ratio: 16 / 9; }
.source-card-short { width: min(42vw, 150px); aspect-ratio: 9 / 16; }
.source-card-social { width: min(54vw, 190px); aspect-ratio: 1; }
.source-card-photo,
.source-card-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.source-card-photo {
  z-index: -2;
  object-fit: cover;
}
.source-card-social .source-card-photo { object-position: center bottom; }
.source-card-media::after {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 12, 4, 0.02) 10%, rgba(28, 12, 4, 0.24) 40%, rgba(28, 12, 4, 0.88) 100%);
}
.source-card-media .source-card-domain,
.source-card-media .source-card-title {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.source-card-media .source-card-title { line-height: 1.15; }
.source-card-media:hover,
.source-card-media:focus-visible { z-index: 5; }
.source-card-media:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.source-board-connector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  order: 6;
}
.source-board-connector span {
  padding: 7px 12px;
  color: var(--chip-fg);
  background: var(--chip-bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.source-recipe-card {
  order: 7;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 24px;
  text-align: left;
}
.source-recipe-tags span {
  width: max-content;
  padding: 7px 12px;
  color: #fff;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-light));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.source-recipe-card h3 {
  margin: 0;
  color: var(--secondary);
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  line-height: 1.08;
}
.source-recipe-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.source-recipe-meta {
  display: flex;
  gap: 20px;
}
.source-recipe-meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.source-recipe-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.source-recipe-meta strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.source-recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.private-shelf {
  width: min(100%, 680px);
  margin: 48px auto 0;
  padding-top: 18px;
}
.cookbook-stack {
  position: relative;
  width: min(calc(100% - 44px), 360px);
  margin: 0 auto;
  padding-top: 48px;
  isolation: isolate;
}
.cookbook-card {
  border: 1px solid rgba(77, 17, 1, 0.09);
  border-radius: 24px;
  text-align: left;
  box-shadow: 0 18px 42px rgba(77, 17, 1, 0.08);
}
.cookbook-card-back,
.cookbook-card-mid {
  position: absolute;
  inset: 0 4px 30px;
  padding: 16px 22px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
}
.cookbook-card-back {
  z-index: -2;
  background: #eedabe;
  transform: rotate(-6deg);
}
.cookbook-card-mid {
  z-index: -1;
  inset: 23px -4px 14px;
  background: #f7e7df;
  transform: rotate(4deg);
  text-align: right;
}
.cookbook-card-front {
  position: relative;
  padding: 22px;
  background: #fff;
  transform: rotate(-1deg);
}
.cookbook-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cookbook-card-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cookbook-card-top h3 {
  color: var(--secondary);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.1;
}
.cookbook-lock {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-light));
  border-radius: 50%;
}
.cookbook-lock svg { width: 21px; height: 21px; }
.cookbook-recipes { display: grid; gap: 12px; }
.cookbook-recipe {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookbook-recipe img {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center 65%;
  border-radius: 13px;
}
.cookbook-recipe strong {
  display: block;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}
.cookbook-recipe-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.cookbook-recipe-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-light));
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}
.private-shelf-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.private-shelf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--secondary);
  background: #fff;
  border: 1px solid rgba(77, 17, 1, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(77, 17, 1, 0.04);
}
.private-shelf-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-carousel {
  width: 100vw;
  margin: 36px calc(50% - 50vw) -8px;
  padding: 32px 0 40px;
  background: transparent;
  overflow: hidden;
}
.share-carousel-track {
  display: flex;
  width: max-content;
  animation: share-carousel-slide 34s linear infinite;
}
.share-carousel-set {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding-right: clamp(18px, 3vw, 36px);
}
.share-carousel-image {
  flex: 0 0 auto;
  width: clamp(156px, 22vw, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 10px 24px rgba(77, 17, 1, 0.07);
  transform: rotate(var(--tilt, 0deg));
}
.share-carousel-image:nth-child(6n + 1) { --tilt: -3.5deg; }
.share-carousel-image:nth-child(6n + 2) { --tilt: 2.4deg; }
.share-carousel-image:nth-child(6n + 3) { --tilt: -1.8deg; }
.share-carousel-image:nth-child(6n + 4) { --tilt: 3.2deg; }
.share-carousel-image:nth-child(6n + 5) { --tilt: -2.6deg; }
.share-carousel-image:nth-child(6n + 6) { --tilt: 1.6deg; }
@keyframes share-carousel-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== FEATURES ===================== */
.features-header { margin-bottom: 32px; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "import" "ai" "map" "plan" "organize";
  gap: 16px;
}
.feature-card-import { grid-area: import; }
.feature-card-ai { grid-area: ai; }
.feature-card-map { grid-area: map; }
.feature-card-plan { grid-area: plan; }
.feature-card-organize { grid-area: organize; }

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 16px 32px var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.feature-card-import {
  background:
    linear-gradient(120deg, rgba(238, 218, 190, 0.86), rgba(255, 255, 255, 0.72)),
    linear-gradient(180deg, rgba(234, 50, 2, 0.08), rgba(255, 255, 255, 0.16));
}
.feature-card h3 {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.feature-card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-width: 0;
}
.feature-card-text-group { display: flex; flex-direction: column; gap: 8px; }
.feature-card-image { width: 100%; height: auto; object-fit: contain; border-radius: 12px; }

/* import card */
.feature-card-import { padding-bottom: 0; }
.feature-card-import .feature-card-text { justify-content: space-between; padding-bottom: 24px; }
.feature-card-import .feature-card-text p { max-width: 289px; }
.feature-card-import .feature-card-image { border-radius: 12px 12px 0 0; }

.source-badges { display: flex; flex-wrap: wrap; gap: 8px; max-width: 360px; }
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 5px;
  color: var(--chip-fg);
  background: var(--chip-bg);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
}
.badge-dot { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.src-recipes { background: var(--accent); }
.src-ingredients { background: var(--protein); }
.src-web { background: var(--fat); }
.src-notes { background: var(--good); }
.src-shot { background: var(--carb); }
.src-maps { background: linear-gradient(45deg, var(--secondary), var(--secondary-light)); }

/* ai card */
.feature-card-ai { padding: 32px; }
.feature-card-ai .feature-card-text { position: relative; z-index: 1; gap: 8px; }
.feature-card-ai .feature-card-image {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  max-height: 170px;
  margin-top: auto;
  margin-bottom: auto;
}
.feature-card-ai h3 { color: var(--secondary); }
.feature-card-ai p { max-width: 270px; }
.feature-card-icon { width: 32px; height: 32px; }
.ai-cloud-decoration {
  position: absolute;
  top: 15px;
  right: 0;
  z-index: 0;
  width: 180px;
  height: auto;
  pointer-events: none;
  transform: scaleX(-1);
}

/* plan / organize / map */
.feature-card-plan { justify-content: space-between; padding-bottom: 0; }
.feature-card-plan p { max-width: 289px; }
.feature-card-plan .feature-card-image { border-radius: 0; width: calc(100% + 64px); margin: 0 -32px; }
.feature-card-organize p { max-width: 289px; }
.feature-card-map { gap: 12px; }

/* ===================== FOOD MEMORY LOOP ===================== */
.memory-loop-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 48px 16px 60px;
}
.memory-loop-header { margin-bottom: 32px; text-align: center; }
.memory-loop-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}
.memory-loop-header .script-text { color: var(--accent); font-size: 1.18em; }
.memory-loop {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.memory-loop::before {
  content: none;
  position: absolute;
  inset: 38px 18px;
  z-index: 0;
  border: 2px solid rgba(234, 50, 2, 0.18);
  border-radius: 999px;
}
.memory-loop-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  padding: 24px 24px 24px 64px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 12px 24px var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.memory-loop-index {
  position: absolute;
  top: 24px;
  left: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-light));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.memory-loop-card h3 {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
}
.memory-loop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
/* ===================== CTA ===================== */
.cta-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 16px 52px;
  background: var(--canvas);
}
.cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}
.cta-heading {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 900;
  line-height: 0.96;
  text-align: right;
}
.cta-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}
.cta-buttons .landing-download-button {
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 64px;
  padding: 8px 28px 8px 22px;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-light));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  box-shadow: 0 12px 26px rgba(77, 17, 1, 0.12), inset 0 -1px 3px rgba(0, 0, 0, 0.08);
}
.cta-buttons .landing-download-button span { color: #fff; font-size: 20px; font-weight: 700; }
.cta-buttons .landing-download-button .landing-button-icon { filter: invert(1); }

/* ===================== FOOTER ===================== */
.footer {
  position: relative;
  width: 100%;
  padding: 0 16px 24px;
  background: var(--canvas);
  overflow: visible;
}
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  text-align: center;
}
.footer-copyright { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-link { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-link:hover { color: var(--secondary); }
.footer-logo-row { display: flex; justify-content: center; align-items: center; width: 100%; }
.footer-logo { width: auto; height: 28px; opacity: 1; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px) {
  /* Scale the desktop card composition to the board's available width. */
  .source-board {
    container-type: inline-size;
    display: block;
    aspect-ratio: 720 / 440;
    min-height: 0;
    padding: 0;
  }
  .source-card,
  .source-recipe-card {
    position: absolute;
    border-radius: 3.333cqw;
    box-shadow: 0 2.5cqw 5.833cqw rgba(77, 17, 1, 0.08);
  }
  .source-card {
    width: 25cqw;
    min-height: 20.556cqw;
    gap: 1.389cqw;
    padding: 2.222cqw;
  }
  .source-card-domain { font-size: 1.667cqw; }
  .source-card-title { font-size: 2.222cqw; }
  .source-card-line { height: 1.25cqw; }
  .source-card-news { top: 3.889cqw; left: 3%; }
  .source-card-video {
    top: 3.056cqw;
    right: 8%;
    width: 33.333cqw;
    min-height: 0;
  }
  .source-card-short {
    top: 26.111cqw;
    left: 16%;
    width: 19.722cqw;
    min-height: 0;
    margin-left: 0;
  }
  .source-card-social {
    top: 25.556cqw;
    right: 2%;
    min-height: 0;
    margin-right: 0;
  }
  .source-card-blog { right: 24%; bottom: 1.667cqw; margin-left: 0; }
  .source-board-connector {
    position: absolute;
    top: 23.889cqw;
    left: 50%;
    width: 20.833cqw;
    gap: 1.111cqw;
    transform: translateX(-50%);
  }
  .source-board-connector span {
    padding: 0.972cqw 1.667cqw;
    font-size: 1.806cqw;
  }
  .source-recipe-card {
    top: 12.778cqw;
    left: 50%;
    width: 41.667cqw;
    margin: 0;
    padding: 3.333cqw;
    gap: 1.944cqw;
    transform: translateX(-50%) rotate(-1deg);
  }
  .source-recipe-tags span {
    padding: 0.972cqw 1.667cqw;
    font-size: 1.667cqw;
  }
  .source-recipe-card h3 { font-size: 3.889cqw; }
  .source-recipe-description { font-size: 1.944cqw; }
  .source-recipe-meta { gap: 2.778cqw; }
  .source-recipe-meta > div { gap: 0.417cqw; }
  .source-recipe-meta span { font-size: 1.389cqw; }
  .source-recipe-meta strong { font-size: 2.083cqw; }
  .source-recipe-tags { gap: 1.111cqw; }
}

@media (min-width: 768px) {
  .floating-nav { top: 30px; }
  .floating-nav-expanded { max-width: 774px; }

  .hero-section { padding: 120px 24px 0; }
  .hero-phone-area { max-width: 760px; }
  .hero-buttons { flex-direction: row; justify-content: center; gap: 16px; }
  .landing-download-button { width: auto; padding: 0 32px; }

  .recipe-highlight-section {
    padding: 80px 24px 60px;
  }
  .source-board {
    display: block;
    min-height: 440px;
    padding: 24px 0;
  }
  .source-card,
  .source-recipe-card {
    position: absolute;
  }
  .source-card { width: 180px; }
  .source-card-video { width: 240px; }
  .source-card-short { width: 142px; }
  .source-card-social { width: 180px; }
  .source-card-news { top: 28px; left: 3%; }
  .source-card-video { top: 22px; right: 8%; }
  .source-card-short { top: 188px; left: 16%; margin-left: 0; }
  .source-card-social { top: 184px; right: 2%; margin-right: 0; }
  .source-card-blog { right: 24%; bottom: 12px; margin-left: 0; }
  .source-board-connector {
    position: absolute;
    top: 172px;
    left: 50%;
    width: 150px;
    transform: translateX(-50%);
  }
  .source-recipe-card {
    top: 92px;
    left: 50%;
    width: 300px;
    margin: 0;
    transform: translateX(-50%) rotate(-1deg);
  }
  .features-section { padding: 80px 24px 60px; }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "import import" "ai map" "plan organize";
    gap: 20px;
  }
  .feature-card { padding: 32px; }
  .feature-card-import { flex-direction: row; align-items: stretch; padding: 32px 0 0 32px; }
  .feature-card-import .feature-card-text { flex: 1; min-width: 0; padding-bottom: 32px; padding-right: 16px; }
  .feature-card-import .feature-card-image {
    flex-shrink: 0;
    align-self: flex-end;
    width: 280px;
    height: 336px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px 0 0 0;
  }

  .memory-loop-section { padding: 60px 24px 80px; }
  .memory-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "log save"
      "revisit revisit";
    gap: 18px;
  }
  .memory-loop::before { content: ""; inset: 84px 10% 84px; }
  .memory-loop-card {
    min-height: 230px;
    padding: 28px;
  }
  .memory-loop-card-log { grid-area: log; }
  .memory-loop-card-save { grid-area: save; }
  .memory-loop-card-revisit {
    grid-area: revisit;
    max-width: 420px;
    justify-self: center;
  }
  .memory-loop-index {
    position: static;
    margin-bottom: 8px;
  }
  .cta-section { padding: 36px 24px 60px; }
  .cta-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .cta-heading {
    max-width: 680px;
    text-align: left;
  }
  .cta-buttons { flex-direction: row; align-items: center; gap: 16px; width: auto; }
  .cta-buttons .landing-download-button { width: auto; max-width: 320px; height: 54px; }
  .cta-buttons .landing-download-button span { font-size: 15.5px; }

  .footer { padding: 0 24px 24px; }
  .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-logo-row { display: none; }
  .footer-logo { display: none; }
  .footer-copyright { order: -1; }
  .footer-links { order: 0; justify-content: flex-end; margin-left: auto; }
}

@media (min-width: 1200px) {
  .floating-nav-expanded { max-width: 1200px; }

  .hero-section { padding: 120px 40px 0; }
  .hero-phone-area { max-width: 760px; }

  .recipe-highlight-section { padding: 100px 0 60px; }
  .source-board { min-height: 470px; }
  .source-card { width: 200px; }
  .source-card-video { width: 260px; }
  .source-card-short { width: 156px; }
  .source-card-social { width: 200px; }
  .source-card-news { left: 5%; }
  .source-card-video { right: 10%; }
  .source-card-short { left: 19%; }
  .source-card-social { right: 5%; }
  .source-card-blog { right: 27%; }
  .source-recipe-card { width: 330px; }

  .features-section { padding: 100px 0 60px; }
  .features-grid {
    grid-template-columns: 3fr 3fr 4fr;
    grid-template-areas: "import import ai" "plan organize map";
  }
  .feature-card { border-radius: 28px; padding: 32px; }
  .feature-card-import { padding: 32px 0 0 32px; }
  .feature-card-import .feature-card-text { padding-bottom: 32px; }

  .memory-loop-section { padding: 60px 0 80px; }
  .memory-loop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "log . save"
      ". revisit .";
    gap: 24px;
    align-items: center;
  }
  .memory-loop::before { inset: 58px 15% 96px; }
  .cta-section { padding: 44px 40px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .share-carousel-track { animation: none; }
}
