/* ============================================
   My Kitchen Pal — Landing Page
   ============================================ */

:root {
  --green: #58CC02;
  --green-dark: #46A302;
  --orange: #FF9600;
  --blue: #1CB0F6;
  --text: #1C1C1E;
  --text-secondary: #5A5A5A;
  --text-muted: #8A8A8A;
  --cream: #FAF8F5;
  --warm-white: #FFFFFF;
  --border: #E8E4DF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.2rem;
  font-weight: 900;
}

p {
  color: var(--text-secondary);
}

.section-desc {
  font-size: 1.1rem;
  max-width: 520px;
  margin-top: 12px;
  margin-bottom: 48px;
}

/* ============================================
   NAV
   ============================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-logo-mark {
  width: auto;
  height: 32px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-cta {
  background: var(--text);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.1s;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

/* ============================================
   HERO — Headline + App Store badge + 5 phones
   ============================================ */

.hero {
  position: relative;
  background: var(--cream);
  padding: 72px 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: var(--text);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 36px;
}

/* ---- App Store badge ---- */

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  margin-bottom: 14px;
  transition: transform 0.1s;
}

.hero-trial {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 56px;
}

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

.app-store-badge-apple {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.app-store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.app-store-badge-small {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.92;
}

.app-store-badge-large {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---- Phones row ---- */

.phones-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0 0;
}

.phone {
  width: clamp(140px, 16vw, 220px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* ============================================
   RECIPES (the menu) — preserved
   ============================================ */

.recipes {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 100px 0 80px;
}

.recipes .section-inner {
  margin-bottom: 40px;
  text-align: center;
}

.recipes .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.recipe-marquee-wrap {
  overflow: hidden;
  padding: 8px 0;
}

.recipe-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
}

.recipe-marquee-1 {
  animation: marqueeLeft 50s linear infinite;
}

.recipe-marquee-2 {
  animation: marqueeRight 55s linear infinite;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.recipe-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.recipe-card:hover {
  transform: scale(1.04) rotate(-1deg);
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.recipe-card span {
  display: block;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.82rem;
}

.recipe-count {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 24px;
}

/* ============================================
   BELT PATH (interactive curriculum browser)
   ============================================ */

.belts {
  background: var(--cream);
  padding: 100px 0;
}

.belts .section-inner {
  text-align: center;
}

.belts .section-desc {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

/* Nav: prev arrow + banner + next arrow */

.belt-nav {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: left;
}

.belt-arrow {
  flex-shrink: 0;
  width: 52px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.08s;
  font-family: inherit;
}

.belt-arrow svg {
  width: 22px;
  height: 22px;
}

.belt-arrow:hover {
  background: #F5F2EE;
}

.belt-arrow:active {
  transform: scale(0.95);
}

.belt-banner {
  flex: 1;
  background: var(--belt, var(--text));
  color: var(--belt-text, #fff);
  border-radius: 14px;
  padding: 14px 22px;
  border-bottom: 4px solid rgba(0, 0, 0, 0.16);
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.belt-banner-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  opacity: 0.82;
  margin-bottom: 2px;
}

.belt-banner-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
  font-family: inherit;
}

.belt-banner-tagline {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0.92;
  line-height: 1.35;
}

/* Path with zigzag nodes */

.belt-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 8px 0 16px;
  min-height: 200px;
}

.belt-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.belt-node-trophy {
  margin-bottom: 4px;
  color: #F5A623;
  display: flex;
}

.belt-node-trophy svg {
  width: 22px;
  height: 22px;
}

.belt-node-bubble {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--ring, var(--border));
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s;
}

.belt-node-bubble:hover {
  transform: scale(1.05);
}

.belt-node-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.belt-node-label {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  max-width: 140px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ============================================
   COOK ALONG WALKTHROUGH
   ============================================ */

.walkthrough {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 100px 0;
}

.walkthrough .section-inner {
  text-align: center;
}

.walkthrough .section-desc {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Recipe header card */

.recipe-header {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: left;
}

.recipe-header-image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.recipe-header-info {
  flex: 1;
}

.recipe-header-info h3 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.recipe-header-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.recipe-header-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--border);
}

/* Steps timeline */

.cook-steps {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  padding: 0;
}

.cook-step {
  display: flex;
  gap: 22px;
  padding-bottom: 36px;
  position: relative;
}

.cook-step:last-child {
  padding-bottom: 0;
}

.cook-step::before {
  content: '';
  position: absolute;
  top: 50px;
  bottom: -4px;
  left: 23px;
  width: 2px;
  background: var(--border);
  z-index: 1;
}

.cook-step:last-child::before {
  display: none;
}

.cook-step-num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}

.cook-step-body {
  flex: 1;
  padding-top: 6px;
}

.cook-step-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.cook-step-head h4 {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.cook-step-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F2F2F2;
  padding: 5px 11px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  border: 0;
  font-family: inherit;
  transition: background 0.15s, transform 0.08s;
}

.cook-step-time:hover {
  background: #EBEBEB;
}

.cook-step-time:active {
  transform: scale(0.97);
}

.cook-step-time.done {
  background: rgba(88, 204, 2, 0.16);
  color: var(--green-dark);
}

.cook-step-time.done::before {
  display: none;
}

.cook-step-check {
  width: 16px;
  height: 16px;
  display: block;
}

.cook-step-time::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.cook-step-time.prep {
  color: var(--blue);
}
.cook-step-time.prep::before {
  background: var(--blue);
}

.cook-step-time.cook {
  color: var(--orange);
}
.cook-step-time.cook::before {
  background: var(--orange);
}

.cook-step-time.plate {
  color: var(--green);
}
.cook-step-time.plate::before {
  background: var(--green);
}

.cook-step-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.cook-step-tip {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cook-step-tip-miso {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.cook-step-tip-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.cook-step-tip strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.cook-step-tip p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Progress dots — only visible on mobile */
.cook-progress {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.cook-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}

.cook-progress-dot.active {
  background: var(--text);
  width: 26px;
  border-radius: 4px;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  background: var(--cream);
  padding: 56px 0 48px;
  text-align: center;
}

.final-cta .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-miso {
  width: 72px;
  height: auto;
  margin-bottom: 8px;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.final-cta .app-store-badge {
  margin-bottom: 12px;
}

.final-cta .hero-trial {
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 28px;
  width: auto;
  display: block;
}

.footer-wordmark {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-sep {
  color: var(--border);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .phones-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 24px 24px 0;
    gap: 14px;
  }
  .phone {
    width: calc(50% - 7px);
    max-width: 200px;
  }
  .belt-banner-title {
    font-size: 1.2rem;
  }
  .belt-banner-tagline {
    font-size: 0.8rem;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }
  .nav-inner {
    padding: 0 16px;
    gap: 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .hero {
    padding: 36px 16px 0;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
    margin-bottom: 28px;
  }
  .app-store-badge {
    margin-bottom: 12px;
  }
  .hero-trial {
    margin-bottom: 40px;
  }
  .recipes {
    padding: 56px 0;
  }
  .recipes .section-inner {
    padding: 0 20px;
  }
  .recipe-card {
    width: 140px;
  }
  .belts {
    padding: 56px 0;
  }
  .belts .section-inner {
    padding: 0 16px;
  }
  .belt-nav {
    gap: 8px;
    margin-bottom: 24px;
  }
  .belt-arrow {
    width: 44px;
  }
  .belt-banner {
    padding: 12px 16px;
    min-height: 76px;
  }
  .belt-banner-title {
    font-size: 1.05rem;
  }
  .belt-banner-tagline {
    font-size: 0.78rem;
  }
  .belt-node-bubble {
    width: 70px;
    height: 70px;
  }
  .belt-node-label {
    font-size: 0.78rem;
    max-width: 120px;
  }
  .walkthrough {
    padding: 56px 0;
  }
  .walkthrough .section-inner {
    padding: 0 20px;
  }
  .recipe-header {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }
  .recipe-header-image {
    width: 100%;
    height: 180px;
  }
  .recipe-header-meta {
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
  }
  /* Horizontal snap-carousel of cook steps on mobile */
  .cook-steps {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 22px 4px;
    margin: 0 -20px;
    scroll-padding-left: 22px;
    max-width: none;
  }
  .cook-steps::-webkit-scrollbar {
    display: none;
  }
  .cook-step {
    flex: 0 0 calc(100vw - 80px);
    max-width: 360px;
    scroll-snap-align: center;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 22px 24px;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(20, 14, 4, 0.04);
  }
  .cook-step::before {
    display: none;
  }
  .cook-step-num {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
    margin-bottom: 14px;
  }
  .cook-step-body {
    padding-top: 0;
    flex: 1;
  }
  .cook-step-head {
    margin-bottom: 10px;
  }
  .cook-step-head h4 {
    font-size: 1.08rem;
  }
  .cook-step-desc {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }
  .cook-step-tip {
    padding: 12px 14px;
    gap: 10px;
  }
  .cook-step-tip-miso {
    width: 34px;
    height: 34px;
  }
  .cook-step-tip strong {
    font-size: 0.9rem;
  }
  .cook-step-tip p {
    font-size: 0.84rem;
  }
  .cook-progress {
    display: flex;
  }
  .final-cta {
    padding: 48px 16px;
  }
  .final-cta h2 {
    font-size: 1.85rem;
    margin-bottom: 18px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2rem;
  }
  .phone {
    width: calc(50% - 7px);
  }
  .belt-arrow {
    width: 40px;
  }
  .belt-banner {
    padding: 10px 14px;
  }
  .belt-banner-title {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recipe-marquee-1,
  .recipe-marquee-2 {
    animation: none;
  }
  .belt-node {
    transition: none;
  }
}
