/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  /* ChefOS app theme — deep forest-teal brand + warm neutrals.
     Matches the app's brand-700 / brand-100 / warm-50 / warm-900. */
  --color-teal: #0D5C46;
  --color-teal-light: #D6EAE2;
  --color-gray-apple: #F7F5F0;
  --color-ink: #1C1A14;
  --color-text-muted: #4A4639;
  --color-text-soft: #6E6658;
  --scoop-red: #FF3B30;
  --scoop-green: #34C759;
  --scoop-black: #1C1C1E;
  --scoop-blue: #007AFF;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  --radius-card: 28px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.apple-home { background: var(--color-gray-apple); }

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }


/* ============================================================
   SITE NAV — top 44px global bar
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 44px;
  color: var(--color-text-muted);
  background: rgba(247,245,240,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  width: min(1024px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--color-text-soft);
  font-size: 12px;
}

.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--color-teal); }

.nav-cta {
  padding: 7px 14px;
  color: #fff !important;
  background: var(--color-teal);
  border-radius: 999px;
  font-weight: 600;
}

.nav-login {
  padding: 7px 14px;
  color: var(--color-text-muted) !important;
  border: 1px solid #E3DDD4;
  border-radius: 999px;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.nav-login:hover {
  color: var(--color-teal) !important;
  border-color: var(--color-teal);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  cursor: pointer;
  color: var(--color-ink);
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
  transform-origin: center;
}

/* × close state when menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   PRODUCT NAV — 52px sticky below site-nav
   ============================================================ */
.product-nav {
  position: fixed;
  top: 44px; left: 0; right: 0;
  z-index: 90;
  height: 52px;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.product-nav-inner {
  width: min(1024px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-teal);
}

.product-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: var(--color-text-soft);
}

.product-links a { transition: color 0.2s; }
.product-links a:hover { color: var(--color-teal); }

.product-buy {
  padding: 5px 14px;
  color: #000 !important;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}


/* ============================================================
   CONTAINER UTILITY
   ============================================================ */
.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.center { text-align: center; }


/* ============================================================
   REVEAL ANIMATION BASE
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax] { will-change: transform; }


/* ============================================================
   HERO
   ============================================================ */
.apple-hero {
  padding-top: 130px;
  padding-bottom: 0;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% 92%, rgba(13,92,70,0.08) 0%, transparent 68%),
    var(--color-gray-apple);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apple-hero-copy {
  width: min(1080px, calc(100% - 44px));
  margin: 0 auto;
  text-align: center;
}

.apple-product-kicker {
  margin: 0 0 18px;
  color: var(--color-teal);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.apple-hero h1 {
  margin: 0;
  font-size: clamp(58px, 9.5vw, 120px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.hero-sub {
  max-width: 800px;
  margin: 28px auto 0;
  color: var(--color-text-muted, #4A4639);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.18;
  font-weight: 400;
}

.apple-hero-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 21px;
  font-weight: 400;
}

.apple-hero-actions a {
  color: var(--color-teal);
  transition: opacity 0.2s;
}

.apple-hero-actions a:hover { opacity: 0.8; }
.apple-hero-actions a::after { content: " \203A"; }


/* ============================================================
   HERO DEVICE MOCKUP
   ============================================================ */
.product-stage {
  position: relative;
  width: min(1280px, 108vw);
  margin: 40px auto 0;
  perspective: 1400px;
}

.kps-device {
  position: relative;
  width: min(1100px, 96vw);
  margin: 0 auto;
  transform: rotateX(4deg);
  transform-origin: bottom center;
}

.device-bezel {
  position: relative;
  padding: 16px;
  border-radius: 32px;
  background: linear-gradient(160deg, #58585c 0%, #111 20%, #2a2a2e 80%, #060606 100%);
  box-shadow:
    0 90px 160px rgba(0,0,0,0.85),
    0 0 130px rgba(13,92,70,0.38),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Notch */
.device-bezel::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 90px; height: 8px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: #000;
  z-index: 2;
}

/* ---- App shell inside device ---- */
.screen-ui {
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-gray-apple);
  border: 1px solid #E3DDD4;
  display: flex;
  flex-direction: column;
}

/* App top bar */
.app-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #EDE9E1;
  flex-shrink: 0;
}

.app-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-teal);
  letter-spacing: 0.03em;
  margin-right: 28px;
}

.app-nav-items {
  display: flex;
  gap: 6px;
  flex: 1;
}

.app-nav-item {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.app-nav-item.active {
  background: var(--color-teal-light);
  color: var(--color-teal);
}

.app-topbar-right {
  margin-left: auto;
}

.app-run-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45,125,42,0.12);
  color: #2D7D2A;
  font-size: 12px;
  font-weight: 700;
}

/* Screen body: sidebar + main */
.screen-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: clamp(380px, 48vw, 580px);
}

/* Sidebar */
.screen-sidebar {
  padding: 22px 14px;
  background: #fff;
  border-right: 1px solid #EDE9E1;
}

.sidebar-label {
  padding: 0 10px;
  margin-bottom: 10px;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.station-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background 0.2s;
}

.active-station {
  background: var(--color-teal-light);
  color: var(--color-ink);
}

.station-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: #34C759; }
.dot-amber { background: #FF9F0A; }
.dot-orange { background: #FF6B00; }
.dot-gray { background: #B8B0A0; }
.dot-blue { background: #007AFF; }
.dot-red { background: #FF3B30; }

.station-name-text { flex: 1; font-size: 13px; }
.station-pct { font-size: 11px; color: var(--color-text-soft); font-weight: 600; }
.active-station .station-pct { color: var(--color-teal); }

/* Main screen area */
.screen-main {
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
}

.screen-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.screen-main-label {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.screen-main-title {
  color: var(--color-ink);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1;
}

.screen-main-pct {
  padding: 6px 14px;
  background: var(--color-teal-light);
  border: 1px solid #C2E0D6;
  border-radius: 999px;
  color: var(--color-teal);
  font-size: 13px;
  font-weight: 700;
}

/* Recipe list */
.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.recipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #EDE9E1;
  transition: background 0.2s;
}

.shortage-recipe-row {
  background: rgba(192,57,43,0.06);
  border-color: rgba(192,57,43,0.20);
}

.recipe-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.recipe-station-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tag-protein { background: rgba(45,125,42,0.14); color: #2D7D2A; }
.tag-carb    { background: rgba(180,83,9,0.14); color: #B45309; }
.tag-veg     { background: rgba(29,78,216,0.12);  color: #1D4ED8; }
.tag-sauce   { background: rgba(124,58,237,0.12); color: #7C3AED; }
.tag-pack    { background: #EDE9E1; color: var(--color-text-soft); }

.recipe-info { min-width: 0; }

.recipe-name {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipe-qty {
  color: var(--color-text-soft);
  font-size: 12px;
  margin-top: 2px;
}

.shortage-flag {
  color: #C0392B;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.recipe-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.recipe-progress-bar {
  width: 100px;
  height: 5px;
  border-radius: 999px;
  background: #EDE9E1;
  overflow: hidden;
}

.recipe-progress-fill {
  height: 100%;
  width: var(--rp, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #0D5C46, #117256);
  transition: width 1.4s ease;
}

.recipe-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-complete   { background: rgba(45,125,42,0.14);  color: #2D7D2A; }
.status-inprogress { background: rgba(180,83,9,0.14);   color: #B45309; }
.status-notstarted { background: #EDE9E1;               color: var(--color-text-soft); }
.status-shortage   { background: rgba(192,57,43,0.14);  color: #C0392B; }

/* Bottom stat strip */
.screen-stat-strip {
  display: flex;
  gap: 0;
  margin-top: 14px;
  padding: 14px 0 4px;
  border-top: 1px solid #EDE9E1;
}

.screen-stat {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid #EDE9E1;
}

.screen-stat:last-child { border-right: none; }

.screen-stat-value {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1;
}

.stat-red { color: #C0392B; }

.screen-stat-label {
  font-size: 11px;
  color: var(--color-text-soft);
  margin-top: 4px;
  font-weight: 600;
}

/* Laptop base */
.device-base {
  width: 118%;
  height: 28px;
  margin-left: -9%;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(90deg, #1a1a1c, #78787c 48%, #161618);
  box-shadow: 0 44px 90px rgba(0,0,0,0.9);
}


/* ============================================================
   STATS SECTION
   ============================================================ */
.apple-intro {
  background: var(--color-gray-apple);
  color: #1d1d1f;
  padding: 140px 0;
}

.apple-copy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
}

.apple-copy-grid h2 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.apple-copy-grid p {
  margin: 0;
  color: #6e6e73;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.18;
  font-weight: 600;
}

.apple-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 80px;
}

.apple-stat-row article {
  min-height: 260px;
  padding: 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,0.07);
}

.apple-stat-row strong {
  display: block;
  color: var(--color-ink);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.88;
  font-weight: 800;
}

.apple-stat-row span {
  display: block;
  margin-top: 22px;
  color: var(--color-text-soft);
  font-size: 19px;
  line-height: 1.36;
  font-weight: 600;
}


/* ============================================================
   HIGHLIGHTS — horizontal scroll
   ============================================================ */
.apple-highlights {
  padding: 130px 0 120px;
  color: var(--color-ink);
  background: var(--color-white);
}

.apple-highlights h2 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.apple-highlight-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(380px, 460px);
  gap: 20px;
  overflow-x: auto;
  padding: 52px max(22px, calc((100vw - 1180px) / 2)) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.apple-highlight-strip::-webkit-scrollbar { display: none; }

.apple-highlight-strip > article {
  min-height: 580px;
  padding: 0;
  border-radius: 28px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #EDE9E1;
  box-shadow: 0 28px 80px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.highlight-card-top {
  padding: 30px 30px 22px;
  flex-shrink: 0;
}

.highlight-card-top h3 {
  margin: 0 0 6px;
  color: var(--color-ink);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
  max-width: 320px;
}

.highlight-card-top p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Inner mockup container */
.highlight-mockup {
  flex: 1;
  margin: 0 16px 16px;
  border-radius: 18px;
  background: var(--color-gray-apple);
  border: 1px solid #EDE9E1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #EDE9E1;
  background: #fff;
}

.hm-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}

.hm-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-live   { background: rgba(45,125,42,0.14);  color: #2D7D2A; }
.badge-red    { background: rgba(192,57,43,0.14);  color: #C0392B; }
.badge-teal   { background: var(--color-teal-light); color: var(--color-teal); }


/* ----- Station mockup ----- */
.hm-recipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid #EDE9E1;
  gap: 10px;
}

.hm-recipe-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hm-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(45,125,42,0.14);
  color: #2D7D2A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.hm-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-amber-sm { background: #FF9F0A; }
.dot-gray-sm  { background: #B8B0A0; }

.hm-recipe-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.hm-recipe-meta {
  font-size: 11px;
  color: var(--color-text-soft);
  margin-top: 1px;
}

.hm-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.s-complete   { background: rgba(45,125,42,0.14);  color: #2D7D2A; }
.s-inprogress { background: rgba(180,83,9,0.14); color: #B45309; }
.s-notstarted { background: #F7F5F0; color: var(--color-text-soft); }

.hm-progress-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #EDE9E1;
}

.hm-pfbar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #EDE9E1;
  overflow: hidden;
}

.hm-pfill {
  height: 100%;
  width: var(--hpw, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #0D5C46, #117256);
}

.hm-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-teal);
}


/* ----- Dashboard mockup (rings) ----- */
.dashboard-mockup {
  padding: 12px;
}

.ring-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 8px;
}

.ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ring-wrap {
  position: relative;
  width: 52px; height: 52px;
}

.ring-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: #EDE9E1;
  stroke-width: 4;
}

.ring-arc {
  fill: none;
  stroke: var(--color-teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: calc(113 - (113 * var(--arc-pct) / 100));
  transition: stroke-dashoffset 1.4s ease;
}

.ring-arc-red { stroke: #C0392B; }
.ring-arc-dim { stroke: rgba(13,92,70,0.44); }

.ring-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 10px;
  font-weight: 800;
  color: var(--color-ink);
}

.ring-pct-red { color: #C0392B; }

.ring-alert-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #C0392B;
  border: 2px solid var(--color-gray-apple);
}

.ring-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-soft);
  text-align: center;
}

.ring-label-red { color: #C0392B; }

.dash-overall-bar {
  padding: 8px 16px 14px;
  border-top: 1px solid #EDE9E1;
}

.dash-overall-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}

.dash-overall-label span { color: var(--color-teal); }

.dash-overall-track {
  height: 6px;
  border-radius: 999px;
  background: #EDE9E1;
  overflow: hidden;
}

.dash-overall-fill {
  height: 100%;
  width: var(--dp, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #0D5C46, #117256);
}


/* ----- Shortage mockup ----- */
.shortage-card {
  margin: 12px 14px 8px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(192,57,43,0.10);
  border: 1px solid rgba(192,57,43,0.28);
}

.shortage-card-minor {
  background: rgba(180,83,9,0.08);
  border-color: rgba(180,83,9,0.22);
}

.shortage-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shortage-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(192,57,43,0.14);
  color: #C0392B;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shortage-icon-warn {
  background: rgba(180,83,9,0.14);
  color: #B45309;
}

.shortage-text { flex: 1; }

.shortage-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}

.shortage-item-qty {
  font-size: 11px;
  color: var(--color-text-soft);
  margin-top: 2px;
}

.shortage-label {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(192,57,43,0.14);
  color: #C0392B;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.shortage-label-warn {
  background: rgba(180,83,9,0.14);
  color: #B45309;
}

.shortage-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.sh-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  transition: opacity 0.2s;
}

.sh-btn-primary {
  background: #C0392B;
  color: #fff;
}

.sh-btn-ghost {
  background: #F7F5F0;
  color: var(--color-text-muted);
  border: 1px solid #EDE9E1;
}

.shortage-ok-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  font-size: 12px;
  color: var(--color-text-soft);
}

.ok-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2D7D2A;
  flex-shrink: 0;
}


/* ----- Plating mockup ----- */
.plating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #EDE9E1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s ease var(--delay, 0s), transform 0.5s ease var(--delay, 0s);
}

.plating-row.plating-visible {
  opacity: 1;
  transform: translateX(0);
}

.scoop-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.sdot-red   { background: #FF3B30; }
.sdot-green { background: #34C759; }
.sdot-black { background: #1C1C1E; border: 1px solid rgba(0,0,0,0.15); }
.sdot-blue  { background: #007AFF; }

.sdot-sm { width: 11px; height: 11px; }

.plating-ingredient {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.plating-amount {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-soft);
}

.plating-legend {
  display: flex;
  justify-content: space-around;
  padding: 10px 14px 14px;
  margin-top: auto;
  border-top: 1px solid #EDE9E1;
}

.plating-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-soft);
}


/* ----- Import mockup ----- */
.import-mockup { padding: 0; position: relative; }

.import-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  flex: 1;
  gap: 8px;
  transition: opacity 0.5s;
}

.import-state-loading { }
.import-state-done { display: none; }

.import-spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid #EDE9E1;
  border-top-color: var(--color-teal);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.import-status-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.import-text-done { color: #2D7D2A; }

.import-sub {
  font-size: 11px;
  color: var(--color-text-soft);
}

.import-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.import-progress-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #EDE9E1;
  overflow: hidden;
}

.import-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0D5C46, #117256);
  transition: width 0.15s linear;
}

.import-progress-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-teal);
  min-width: 30px;
}

.import-check {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(45,125,42,0.14);
  color: #2D7D2A;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.import-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1;
}

.import-count-num {
  color: var(--color-teal);
}

.import-updated {
  font-size: 12px;
  color: var(--color-text-soft);
}

.import-detail-rows {
  width: 100%;
  margin-top: 8px;
}

.idr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #EDE9E1;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.idr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-amber { background: #FF9F0A; }


/* ============================================================
   PLATING FEATURE SECTION
   ============================================================ */
.apple-feature {
  padding: 150px 0;
}

.light-feature {
  color: #1d1d1f;
  background: var(--color-gray-apple);
}

.dark-feature {
  color: var(--color-ink);
  background: var(--color-white);
}

.feature-lockup {
  max-width: 980px;
}

.eyebrow-teal {
  margin: 0 0 16px;
  color: var(--color-teal);
  font-size: 21px;
  font-weight: 800;
}

.eyebrow-light {
  margin: 0 0 16px;
  color: var(--color-text-soft);
  font-size: 21px;
  font-weight: 800;
}

.feature-lockup h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.feature-lockup span {
  display: block;
  max-width: 820px;
  margin-top: 24px;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.18;
  font-weight: 600;
  color: var(--color-text-soft);
}

.dark-feature .feature-lockup span {
  color: var(--color-text-soft);
}

/* Plating cinema */
.cinema-card {
  margin-top: 72px;
  border-radius: 40px;
  overflow: hidden;
}

.plating-cinema {
  min-height: 640px;
  padding: clamp(32px, 6vw, 80px);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(13,92,70,0.06), transparent 50%),
    var(--color-gray-apple);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plating-card-xl {
  width: 100%;
  max-width: 700px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid #EDE9E1;
  box-shadow: 0 32px 100px rgba(0,0,0,0.10);
}

.plating-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.plating-card-meal {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1;
}

.plating-card-sub {
  color: var(--color-text-soft);
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}

.plating-meta-badge {
  padding: 6px 13px;
  background: var(--color-teal-light);
  color: var(--color-teal);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.plate-row-xl {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  border-top: 1px solid #EDE9E1;
  font-size: clamp(17px, 2vw, 22px);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s ease var(--delay, 0s), transform 0.6s ease var(--delay, 0s);
}

.plate-row-xl.row-visible {
  opacity: 1;
  transform: translateX(0);
}

.scoop {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

.scoop-red   { background: #FF3B30; }
.scoop-green { background: #34C759; }
.scoop-black { background: #1C1C1E; }
.scoop-blue  { background: #007AFF; }

.plate-row-xl b {
  flex: 1;
  font-weight: 700;
  color: var(--color-ink);
}

.plate-amount {
  color: var(--color-text-soft);
  font-weight: 700;
}

.plating-legend-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-soft);
}


/* ============================================================
   DASHBOARD FEATURE SECTION
   ============================================================ */
.dashboard-cinema {
  margin-top: 72px;
  border-radius: 40px;
  overflow: hidden;
  padding: clamp(32px, 7vw, 88px);
  background:
    radial-gradient(ellipse 60% 50% at 72% 26%, rgba(13,92,70,0.06), transparent 55%),
    var(--color-gray-apple);
  border: 1px solid #EDE9E1;
}

.dashboard-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid #EDE9E1;
  box-shadow: 0 36px 110px rgba(0,0,0,0.10);
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.dp-label {
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.dp-title {
  color: var(--color-ink);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.dp-live-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45,125,42,0.14);
  color: #2D7D2A;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.dp-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  border-top: 1px solid #EDE9E1;
  padding: 0 4px;
}

.dp-station {
  width: 90px;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.dp-bar-wrap {
  flex: 1;
}

.dp-bar {
  height: 10px;
  border-radius: 999px;
  background: #EDE9E1;
  overflow: hidden;
}

.dp-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0D5C46, #117256);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dp-fill-alert {
  background: linear-gradient(90deg, #C0392B, #E05546);
}

.dp-fill-dim {
  background: linear-gradient(90deg, #7FAE9F, #A9C7BC);
}

.dp-pct {
  width: 48px;
  text-align: right;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.dp-pct-alert { color: #C0392B; }

.dp-meta {
  width: 80px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.dp-meta-ok   { color: var(--color-text-soft); }
.dp-meta-done { color: #2D7D2A; }
.dp-meta-short{ color: #B45309; }


/* ============================================================
   PARSLEY INTEGRATION SECTION
   ============================================================ */
.parsley-cinema {
  margin-top: 72px;
  border-radius: 40px;
  overflow: hidden;
  padding: clamp(32px, 6vw, 80px);
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(13,92,70,0.12), transparent 55%),
    linear-gradient(160deg, #fff, #eaeaef);
}

.parsley-panel {
  max-width: 740px;
  margin: 0 auto;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 28px 90px rgba(0,0,0,0.13);
  overflow: hidden;
}

.parsley-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.pp-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-teal);
}

.parsley-sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6e6e73;
}

.pp-spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(13,92,70,0.2);
  border-top-color: var(--color-teal);
  animation: spin 0.9s linear infinite;
}

.parsley-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pf-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,59,48,0.12);
  color: #FF3B30;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pf-info { flex: 1; min-width: 0; }

.pf-name {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-meta {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 2px;
}

.pf-done-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(52,199,89,0.16);
  color: #34C759;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.parsley-count-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: 0;
}

.pc-item { text-align: center; }

.pc-value {
  font-size: 32px;
  font-weight: 800;
  color: #000;
  line-height: 1;
}

.pc-value-green { color: #34C759; }
.pc-value-blue  { color: #007AFF; }

.pc-label {
  font-size: 13px;
  color: #6e6e73;
  font-weight: 600;
  margin-top: 4px;
}

.parsley-station-map {
  padding: 14px 22px 20px;
}

.ps-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ps-row:last-child { border-bottom: none; }

.ps-station-tag {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.ps-count {
  flex: 1;
  font-size: 13px;
  color: #6e6e73;
  font-weight: 600;
}

.ps-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(52,199,89,0.16);
  color: #34C759;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ============================================================
   OPERATORS SECTION
   ============================================================ */
.operator-section {
  padding: 150px 0;
  color: #1d1d1f;
  background: #fff;
}

.operator-section h2 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 920px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}

.operator-grid article {
  padding: 36px;
  border-radius: 28px;
  background: var(--color-gray-apple);
  min-height: 300px;
}

.op-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.operator-grid h3 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.operator-grid p {
  margin: 0;
  color: #6e6e73;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 600;
}


/* ============================================================
   FINAL CTA
   ============================================================ */
.apple-final-cta {
  padding: 140px 0;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,0.14), transparent 55%),
    linear-gradient(160deg, #117256, #0D5C46 40%, #0A4A38);
}

.apple-final-cta h2 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.apple-final-cta p {
  max-width: 620px;
  margin: 24px auto 40px;
  color: rgba(255,255,255,0.78);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.18;
  font-weight: 400;
}

.button-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  background: var(--color-teal);
  color: #fff;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(13,92,70,0.18);
  transition: opacity 0.2s, transform 0.2s;
}

.button-cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* Legacy button class kept for other pages */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s;
}

.button.white { color: #000; background: #fff; border-color: #fff; }
.button.black { color: #fff; background: var(--color-teal); border-color: var(--color-teal); }
.button:hover { transform: translateY(-1px); opacity: 0.86; }


/* ============================================================
   OTHER PAGE UTILITIES (unchanged, kept for features.html etc.)
   ============================================================ */
.section { position: relative; overflow: hidden; padding: 128px 0; }
.section.dark { color: var(--color-ink); background: var(--color-gray-apple); }
.section.light { color: var(--color-ink); background: #fff; }
.section.soft { background: var(--color-gray-apple); }
.eyebrow { margin: 0 0 14px; color: var(--color-teal); font-size: 19px; font-weight: 700; }
.headline-xl { margin: 0; font-size: clamp(50px, 8.8vw, 112px); line-height: 0.94; font-weight: 700; }
.headline-lg { margin: 0; font-size: clamp(44px, 6.7vw, 88px); line-height: 0.96; font-weight: 700; }
.headline-md { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.03; font-weight: 700; }
.subhead { max-width: 790px; margin: 22px auto 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.14; font-weight: 400; }
.body-copy { margin: 24px 0 0; color: #6e6e73; font-size: 21px; line-height: 1.45; }
.dark .body-copy { color: rgba(255,255,255,0.68); }
.muted { color: #6e6e73; }
.narrow { width: min(860px, calc(100% - 44px)); margin: 0 auto; }
.button-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.page-hero { padding: 156px 0 100px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 68px; }
.stat-card { padding: 42px; border-radius: 18px; background: var(--color-gray-apple); }
.stat-value { margin: 0; font-size: clamp(62px, 8vw, 104px); line-height: 0.9; font-weight: 700; }
.plating-layout,.dashboard-layout,.split-row,.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.progress-track { width: min(240px, 34vw); height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.16); }
.progress-fill { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-teal), #29c39b); }
.feature-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.feature-detail,.integration-card,.pricing-card,.faq-item { padding: 34px; border-radius: 28px; background: #fff; border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 24px 70px rgba(0,0,0,0.07); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--color-teal); font-size: 20px; font-weight: 700; }
.feature-detail h2,.integration-card h2,.pricing-card h2,.faq-item h3 { margin: 22px 0 0; font-size: 28px; line-height: 1.1; }
.feature-detail p,.integration-card p,.faq-item p { color: #6e6e73; font-size: 18px; line-height: 1.48; }
.step-number { color: var(--color-teal); font-size: clamp(86px, 13vw, 160px); line-height: 0.82; font-weight: 700; }
.integration-card.featured { grid-column: span 2; background: var(--color-teal-light); }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card.popular { color: #fff; background: var(--color-teal); transform: translateY(-18px); }
.pricing-card.popular li,.pricing-card.popular p { color: rgba(255,255,255,0.82); }
.popular-label { align-self: flex-start; padding: 8px 12px; border-radius: 999px; color: var(--color-teal); background: #fff; font-size: 13px; font-weight: 700; }
.price { margin: 28px 0; font-size: 24px; font-weight: 700; }
.pricing-card ul { padding: 0; margin: 0 0 30px; list-style: none; }
.pricing-card li { padding: 12px 0; border-top: 1px solid rgba(136,135,128,0.2); color: #6e6e73; font-size: 18px; line-height: 1.48; }
.pricing-card .button { margin-top: auto; }
.contact-form { padding: 36px; border-radius: 28px; background: #fff; border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 24px 70px rgba(0,0,0,0.07); }
.form-row { margin-bottom: 18px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
input,select,textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.14); border-radius: 14px; color: #000; background: #fff; font: inherit; transition: all 0.3s; }
textarea { min-height: 130px; resize: vertical; }
input:focus,select:focus,textarea:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 4px rgba(13,92,70,0.14); }
.form-message { margin-top: 14px; min-height: 24px; color: var(--color-teal); font-weight: 700; }
.trust-panel { display: grid; gap: 18px; }
.trust-card { padding: 30px; border-radius: 28px; color: var(--color-ink); background: var(--color-white); box-shadow: 0 1px 3px rgba(28,26,20,0.06); border: 1px solid var(--color-teal-light); }
.trust-card strong { display: block; font-size: 30px; }
.trust-card span { display: block; margin-top: 8px; color: rgba(255,255,255,0.66); }
.audience-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 88px 0; border-top: 1px solid rgba(0,0,0,0.08); }
.audience-visual { min-height: 330px; border-radius: 34px; background: linear-gradient(145deg, #fff, #e8e8ed); border: 1px solid rgba(0,0,0,0.07); }
.step-section { min-height: 78vh; display: grid; align-items: center; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 62px 0 34px; }
.logo-tile { min-height: 144px; padding: 24px; border-radius: 26px; display: grid; place-items: center; text-align: center; background: var(--color-gray-apple); font-size: 22px; font-weight: 700; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.quote { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; font-style: italic; }
.quote cite { display: block; margin-top: 26px; color: rgba(255,255,255,0.62); font-size: 15px; font-style: normal; font-weight: 700; }
.cta-band { color: #fff; background: var(--color-teal); }
.kitchen-meaning { margin-top: 24px; color: var(--color-teal) !important; font-style: italic; font-weight: 700; }


/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /* While the menu is open the header goes solid. Critically, dropping
     backdrop-filter also stops .site-nav from acting as the containing
     block for the fixed .nav-links menu (backdrop-filter establishes one
     in Chrome) — that was resolving the menu's top:44px/bottom:0 against
     the 44px header instead of the viewport, collapsing it to a strip
     and letting the page bleed through. */
  body.menu-open .site-nav {
    background: #f7f5f0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-links {
    position: fixed;
    top: 44px; left: 0; right: 0; bottom: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 26px;
    /* Solid, fully-opaque deep brand-teal panel (brand-900) so it reads
       on-brand with the logo + CTA, and the light page behind the open
       menu never bleeds through. !important guards against the
       dark->light theme sweep recolouring it. */
    background: #08382B !important;
    /* Hide reliably on iOS Safari — visibility+opacity is viewport-independent */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

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

  .nav-links a {
    padding: 18px 0;
    font-size: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    /* Light links on the dark menu panel (overrides the light-theme
       dark link colour from the base/desktop styles). */
    color: #fff !important;
  }
  /* All menu links stay solid white (incl. the active/current page).
     Only hover tints, so 'Overview' on its own page doesn't look grayed. */
  .nav-links a,
  .nav-links a.active {
    color: #fff !important;
  }
  .nav-links a:hover {
    color: var(--color-teal-light) !important;
  }
  /* Keep the filled 'Book a Demo' CTA on brand teal with white text. */
  .nav-links a.nav-cta {
    color: #fff !important;
  }
  /* 'Login' is a bordered pill on desktop — in the stacked dark menu that
     reads as a stray outlined box. Reset it to a plain divider link like
     the others. */
  .nav-links a.nav-login {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    padding: 18px 0;
    font-weight: inherit;
  }

  .nav-cta { justify-self: start; margin-top: 18px; padding: 12px 18px !important; font-size: 16px !important; }

  .product-nav { display: none; }

  .apple-hero { padding-top: 54px; min-height: 104svh; }
  .apple-hero h1 { font-size: clamp(46px, 8vw, 76px); }
  .hero-sub { font-size: 22px; }

  .screen-body { grid-template-columns: 1fr; }
  .screen-sidebar { display: none; }
  .screen-body { min-height: 420px; }

  .apple-copy-grid { grid-template-columns: 1fr; gap: 32px; }
  .apple-stat-row { grid-template-columns: 1fr; }
  .operator-grid { grid-template-columns: 1fr; }

  .apple-intro,.apple-feature,.operator-section,.apple-final-cta { padding: 96px 0; }

  .ring-grid { grid-template-columns: repeat(3, 1fr); }
  .ring-grid .ring-item:nth-child(4) { display: flex; }
  .ring-grid .ring-item:nth-child(5) { display: flex; }

  .plating-layout,.dashboard-layout,.split-row,.contact-layout,
  .feature-detail-grid,.integration-grid,.pricing-grid,.faq-grid,
  .quote-grid,.logo-grid,.audience-row,.stats-grid { grid-template-columns: 1fr; }

  .integration-card.featured { grid-column: auto; }
  .pricing-card.popular { transform: none; }
  .audience-row:nth-child(even) .audience-visual { order: 0; }
  .progress-track { width: 42vw; }
}


/* ============================================================
   RESPONSIVE — 768px  (tablet)
   ============================================================ */
@media (max-width: 768px) {
  /* --- Nav --- */
  .product-title { font-size: 14px; }

  /* --- Sub-page inner hero (features, pricing, contact, etc.) --- */
  .inner-hero { padding: 60px 0 72px !important; }
  .inner-hero h1 { font-size: clamp(38px, 8vw, 64px) !important; }
  .inner-hero .hero-sub { font-size: clamp(17px, 3vw, 22px) !important; }

  /* --- Contact page 2-col → 1-col --- */
  .contact-hero { padding: 60px 0 72px !important; }
  .contact-hero-layout { grid-template-columns: 1fr !important; gap: 40px !important; }
  .contact-h1 { font-size: clamp(34px, 7vw, 56px) !important; }

  /* --- Pricing / FAQ inline-style sections --- */
  .plans-section { padding: 80px 0 !important; }
  .faq-section { padding: 80px 0 !important; }
  .final-cta-section { padding: 80px 0 !important; }
  .features-section { padding: 80px 0 !important; }

  /* --- Pricing / FAQ inline-style grids --- */
  .plans-grid { grid-template-columns: 1fr !important; max-width: 560px; margin-left: auto; margin-right: auto; }
  .plan-card-popular { transform: none !important; }
  .faq-cols { grid-template-columns: 1fr !important; }
  .feature-card-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* --- Hero --- */
  .apple-hero {
    padding-top: 100px;
    padding-bottom: 0;
    min-height: auto;
  }
  .apple-hero h1 {
    font-size: clamp(38px, 9vw, 60px);
    line-height: 1;
  }
  .hero-sub {
    font-size: clamp(18px, 3.5vw, 22px);
    margin-top: 20px;
  }
  .apple-product-kicker { font-size: 17px; }
  .apple-hero-actions {
    font-size: 18px;
    gap: 20px;
    margin-top: 24px;
  }

  /* --- Device mockup: scale it down to prevent overflow --- */
  .product-stage {
    width: 100%;
    overflow: hidden;
    margin-top: 36px;
  }
  .kps-device {
    width: min(700px, 94vw);
    transform: none;
  }
  .device-bezel { padding: 12px; border-radius: 24px; }
  .screen-ui { border-radius: 16px; }
  .screen-main { padding: 16px 18px; }
  .screen-main-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .screen-main-title { font-size: 18px; }
  .screen-main-pct { font-size: 12px; }
  .recipe-name { font-size: 13px; }
  .recipe-qty { font-size: 11px; }
  .recipe-progress-bar { width: 72px; }
  .device-base { display: none; }

  /* --- Stats section --- */
  .apple-intro { padding: 80px 0; }
  .apple-copy-grid h2 { font-size: clamp(36px, 7vw, 56px); }
  .apple-copy-grid p { font-size: clamp(18px, 3vw, 22px); }
  .apple-stat-row { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .apple-stat-row article { min-height: auto; padding: 28px; }
  .apple-stat-row strong { font-size: clamp(48px, 10vw, 72px); }
  .apple-stat-row span { font-size: 17px; margin-top: 14px; }

  /* --- Highlights strip --- */
  .apple-highlights { padding: 80px 0 80px; }
  .apple-highlights h2 { font-size: clamp(34px, 7vw, 56px); }
  .apple-highlight-strip {
    grid-auto-columns: minmax(280px, 80vw);
    padding: 36px max(16px, calc((100vw - 1180px) / 2)) 20px;
    gap: 14px;
  }
  .apple-highlight-strip > article { min-height: 500px; }

  /* --- Feature sections --- */
  .apple-feature { padding: 80px 0; }
  .feature-lockup h2 { font-size: clamp(36px, 7vw, 60px); }
  .feature-lockup span { font-size: clamp(18px, 3vw, 24px); margin-top: 18px; }
  .eyebrow-teal, .eyebrow-light { font-size: 17px; }

  .cinema-card { margin-top: 44px; border-radius: 28px; }
  .plating-cinema { min-height: auto; padding: clamp(24px, 5vw, 48px); }
  .plating-card-xl { padding: 24px; }
  .plating-card-meal { font-size: clamp(22px, 4vw, 32px); }
  .plate-row-xl { font-size: clamp(15px, 2.5vw, 19px); min-height: 58px; }

  .dashboard-cinema { margin-top: 44px; border-radius: 28px; padding: clamp(24px, 5vw, 52px); }
  .dashboard-panel { padding: clamp(20px, 4vw, 36px); }
  .dp-title { font-size: clamp(20px, 4vw, 32px); }
  .dp-meta { display: none; }
  .dp-station { width: 72px; font-size: 14px; }

  .parsley-cinema { margin-top: 44px; border-radius: 28px; padding: clamp(24px, 5vw, 52px); }

  /* --- Operator grid: 2 col on tablet, 1 col at 560 --- */
  .operator-section { padding: 80px 0; }
  .operator-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
  .operator-grid article { padding: 28px; min-height: auto; }
  .operator-grid h3 { font-size: 22px; }
  .operator-grid p { font-size: 17px; }
  .operator-section h2 { font-size: clamp(34px, 6.5vw, 60px); }

  /* --- Final CTA --- */
  .apple-final-cta { padding: 80px 0; }
  .apple-final-cta h2 { font-size: clamp(34px, 6.5vw, 60px); }
  .apple-final-cta p { font-size: clamp(18px, 3vw, 24px); margin-bottom: 32px; }
  .button-cta { padding: 14px 28px; font-size: 17px; }

  /* --- Other-page utilities --- */
  .section { padding: 80px 0; }
  .page-hero { padding: 68px 0 72px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .feature-detail-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .audience-row { gap: 40px; padding: 60px 0; }
  .subhead { font-size: clamp(19px, 3vw, 26px); }
  .body-copy { font-size: 18px; }
}


/* ============================================================
   RESPONSIVE — 560px  (phone)
   ============================================================ */
@media (max-width: 560px) {
  /* --- Layout containers --- */
  .nav-inner,.container,.narrow { width: calc(100% - 28px); }
  .apple-hero-copy { width: calc(100% - 28px); }

  /* --- Hero --- */
  .apple-hero { padding-top: 54px; }
  .apple-hero h1 { font-size: clamp(34px, 10vw, 48px); line-height: 1.02; }
  .apple-product-kicker { font-size: 15px; margin-bottom: 12px; }
  .hero-sub { font-size: clamp(16px, 4.5vw, 20px); margin-top: 16px; }
  .apple-hero-actions {
    flex-direction: column;
    align-items: center;
    font-size: 17px;
    gap: 12px;
    margin-top: 20px;
  }

  /* --- Device mockup --- */
  .product-stage {
    width: 100%;
    overflow: hidden;
    margin-top: 28px;
  }
  .kps-device {
    width: calc(100vw - 20px);
    transform: none;
  }
  .device-bezel { padding: 8px; border-radius: 18px; }
  .screen-ui { border-radius: 12px; }
  .app-topbar { padding: 0 12px; height: 40px; gap: 0; }
  .app-logo { font-size: 13px; margin-right: 10px; }
  .app-nav-item { padding: 4px 8px; font-size: 11px; }
  .app-run-badge { font-size: 10px; padding: 3px 7px; }
  .screen-main { padding: 12px 14px; }
  .screen-main-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .screen-main-title { font-size: 16px; }
  .screen-main-label { font-size: 10px; }
  .screen-main-pct { font-size: 11px; padding: 4px 10px; }
  .recipe-row { padding: 9px 12px; gap: 10px; }
  .recipe-station-tag { font-size: 10px; padding: 2px 6px; }
  .recipe-name { font-size: 12px; }
  .recipe-qty { font-size: 10px; }
  .recipe-progress-bar { width: 56px; height: 4px; }
  .recipe-status { font-size: 10px; padding: 2px 7px; }
  .screen-stat-value { font-size: 16px; }
  .screen-stat-label { font-size: 10px; }
  .device-base { display: none; }

  /* --- Highlights --- */
  .apple-highlights { padding: 64px 0 64px; }
  .apple-highlights h2 { font-size: clamp(30px, 9vw, 44px); }
  .apple-highlight-strip {
    grid-auto-columns: minmax(280px, 88vw);
    padding: 28px 14px 16px;
    gap: 12px;
  }
  .apple-highlight-strip > article { min-height: 480px; }

  /* --- Stats --- */
  .apple-intro { padding: 64px 0; }
  .apple-copy-grid h2 { font-size: clamp(30px, 9vw, 44px); }
  .apple-copy-grid p { font-size: 17px; }
  .apple-stat-row { margin-top: 36px; gap: 14px; }
  .apple-stat-row article { padding: 24px; }
  .apple-stat-row strong { font-size: clamp(44px, 12vw, 64px); }
  .apple-stat-row span { font-size: 15px; margin-top: 10px; }

  /* --- Feature sections --- */
  .apple-feature { padding: 64px 0; }
  .feature-lockup h2 { font-size: clamp(30px, 9vw, 44px); line-height: 1.02; }
  .feature-lockup span { font-size: 17px; margin-top: 14px; }
  .eyebrow-teal, .eyebrow-light { font-size: 15px; }

  .plating-cinema,.dashboard-cinema,.parsley-cinema { border-radius: 22px; }
  .plating-card-xl { padding: 18px; }
  .plating-title-row { flex-direction: column; gap: 10px; }
  .plating-card-meal { font-size: clamp(20px, 6vw, 28px); }
  .plating-legend-row { gap: 16px; margin-top: 20px; }
  .legend-item { font-size: 14px; }
  .plate-row-xl { min-height: 52px; font-size: 15px; gap: 12px; }

  .dashboard-cinema { padding: clamp(16px, 4vw, 28px); }
  .dashboard-panel { padding: 18px; border-radius: 20px; }
  .dp-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .dp-title { font-size: clamp(17px, 5vw, 24px); }
  .dp-meta { display: none; }
  .dp-station { width: 58px; font-size: 13px; }

  .parsley-cinema { padding: clamp(16px, 4vw, 28px); }
  .parsley-count-row { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .pc-value { font-size: 22px; }
  .pc-label { font-size: 11px; }

  /* --- Operator grid --- */
  .operator-section { padding: 64px 0; }
  .operator-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .operator-grid article { padding: 24px; }
  .operator-grid h3 { font-size: 20px; }
  .operator-grid p { font-size: 16px; }
  .operator-section h2 { font-size: clamp(28px, 9vw, 42px); }

  /* --- Final CTA --- */
  .apple-final-cta { padding: 64px 0; }
  .apple-final-cta h2 { font-size: clamp(28px, 9vw, 42px); }
  .apple-final-cta p { font-size: 17px; margin: 18px auto 28px; }
  .button-cta {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 20px;
    font-size: 17px;
  }

  /* --- Ring grid --- */
  .ring-grid { grid-template-columns: repeat(3, 1fr); }

  /* --- Other page utilities --- */
  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0 56px; }
  .stats-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid,.faq-grid,.integration-grid,.feature-detail-grid { grid-template-columns: 1fr; }
  .audience-row { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .progress-track { width: 52vw; }
  .subhead { font-size: clamp(17px, 4.5vw, 22px); }
  .body-copy { font-size: 17px; }
  .headline-xl { font-size: clamp(36px, 10vw, 56px); }
  .headline-lg { font-size: clamp(32px, 9vw, 48px); }
  .headline-md { font-size: clamp(26px, 7vw, 38px); }

  /* --- Sub-page inner hero (features, pricing, contact, etc.) --- */
  .inner-hero { padding: 56px 0 48px !important; }
  .inner-hero h1 { font-size: clamp(32px, 10vw, 52px) !important; }
  .inner-hero .hero-sub { font-size: clamp(16px, 4.5vw, 20px) !important; }

  /* --- Contact page --- */
  .contact-hero { padding: 56px 0 48px !important; }
  .contact-hero-layout { grid-template-columns: 1fr !important; gap: 28px !important; }
  .contact-h1 { font-size: clamp(28px, 9vw, 44px) !important; }
  .contact-sub { font-size: 16px !important; }
  .contact-form-card { padding: 24px !important; }

  /* --- Pricing / FAQ inline-style sections --- */
  .plans-section { padding: 56px 0 !important; }
  .faq-section { padding: 56px 0 !important; }
  .final-cta-section { padding: 64px 0 !important; }
  .features-section { padding: 56px 0 !important; }

  /* --- Pricing / FAQ inline-style grids --- */
  .plans-grid { grid-template-columns: 1fr !important; }
  .plan-card-popular { transform: none !important; }
  .faq-cols { grid-template-columns: 1fr !important; }
  .feature-card-grid { grid-template-columns: 1fr !important; }
  .plan-card { min-height: auto !important; padding: 28px 24px 24px !important; }
  .faq-card { padding: 22px !important; }
}
