/* Marketing homepage — aligned to loveable-code-reference/src/routes/index.tsx */

:root {
  --radius: 1.25rem;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui;
  --font-reading: "Plus Jakarta Sans", ui-sans-serif, system-ui;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --background: #f8fbfc;
  --foreground: #2b4457;
  --card: #ffffff;
  --card-foreground: #2b4457;
  --primary: #2f9aa8;
  --primary-foreground: #fcfcfc;
  --secondary: #e4f1f5;
  --secondary-foreground: #1a4a6e;
  --muted: #eef5f7;
  --muted-foreground: #365a6d;
  --accent: #5cbdb9;
  --accent-foreground: #0c2340;
  --border: #d7e8ed;
  --heading: #0e2c33;
  --ink: #0c2340;

  --gradient-ocean: linear-gradient(135deg, #2f9aa8, #5cbdb9);
  --gradient-warm: linear-gradient(135deg, #e4f1f5, #d7e8ed);
  --shadow-soft: 0 24px 60px -30px rgb(12 35 64 / 0.25);
  --shadow-lift: 0 6px 0 0 rgb(26 74 110 / 0.9); /* legacy: plus-billing pages */
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv11", "ss01";
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

h1, h2 {
  color: var(--heading, #0e2c33);
}

h1 {
  letter-spacing: -0.03em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.font-display {
  font-family: var(--font-display);
}

/* —— Layout shells —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem 1.5rem;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--foreground);
}

.site-nav-word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.site-nav-brand img {
  height: 2rem;
  width: auto;
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: var(--card);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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

/* Legacy dark footers on friends / plus billing pages */
.pricing-footer,
.plus-billing-footer.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.7);
  padding: 2rem 1.5rem;
}

.pricing-footer a,
.plus-billing-footer a {
  color: inherit;
}

.pricing-footer a:hover,
.plus-billing-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 75ms ease, box-shadow 75ms ease, background 150ms ease;
}

.btn svg,
.btn .btn-icon {
  width: 1.25rem; /* Lovable DownloadButtons: Apple/Smartphone size-5 */
  height: 1.25rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--card) 90%, transparent);
}

.btn-ghost {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--muted);
}

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

.btn-white:hover {
  background: rgb(255 255 255 / 0.9);
}

.btn-cta {
  background: var(--primary-foreground);
  color: var(--primary);
  padding: 1rem 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.btn-lg {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
  }
}

.mini-cta {
  margin-top: 3.5rem;
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-mid {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

.h-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--foreground);
}

.h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--foreground);
}

.lede {
  margin-top: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .lede {
    font-size: 1.25rem;
  }
}

.muted {
  color: var(--muted-foreground);
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--secondary) 60%, transparent), var(--background));
  padding: 3.5rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0;
  }
}

.hero-ambient {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.hero-ambient-a {
  left: -6rem;
  top: -6rem;
  width: 24rem;
  height: 24rem;
}

.hero-ambient-b {
  right: 0;
  bottom: -10rem;
  width: 30rem;
  height: 30rem;
}

.hero-inner {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.brand-mark {
  display: block;
  width: 4rem; /* Lovable size-16 */
  height: 4rem;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-mark-sm {
  width: 2rem; /* Lovable nav wordmark h-8 */
  height: 2rem;
}

.brand-mark-white {
  filter: brightness(0) invert(1);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--foreground);
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* —— Pain cards —— */
.pain-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-card {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  padding: 1.25rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.pain-visual {
  position: relative;
  height: 9rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--secondary) 60%, transparent);
}

.pain-visual img {
  position: absolute;
  object-fit: cover;
}

.pain-scatter .photo-a {
  left: 1rem;
  bottom: 1rem;
  height: 5rem;
  width: 4.5rem;
  border-radius: 1rem;
  transform: rotate(-6deg);
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.12);
  outline: 2px solid #fff;
}

.pain-scatter .photo-b {
  left: 50%;
  top: 1rem;
  z-index: 1;
  height: 5.5rem;
  width: 5rem;
  border-radius: 1rem;
  transform: translateX(-50%) rotate(1deg);
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.12);
  outline: 2px solid #fff;
}

.pain-scatter .photo-c {
  right: 1rem;
  bottom: 1rem;
  height: 5rem;
  width: 4.5rem;
  border-radius: 1rem;
  transform: rotate(6deg);
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.12);
  outline: 2px solid #fff;
}

.pain-q {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
}

.pain-math img {
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / 0.15));
}

.pain-math .ing-a {
  left: 2rem;
  top: 2rem;
  height: 5rem;
  transform: rotate(-12deg);
}

.pain-math .ing-b {
  left: 50%;
  top: 1.5rem;
  height: 6rem;
  transform: translateX(-50%) rotate(6deg);
}

.pain-math .ing-c {
  right: 2rem;
  top: 2.25rem;
  height: 5rem;
  transform: rotate(12deg);
}

.pain-bag img {
  left: 50%;
  bottom: 0.25rem;
  height: 8rem;
  width: auto;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgb(0 0 0 / 0.18));
}

.pain-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.pain-card p {
  margin-top: 0.375rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* —— Ocean band —— */
.ocean-band {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  text-align: center;
  background: var(--gradient-ocean);
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .ocean-band {
    padding: 7rem 0;
  }
}

.ocean-band h2 {
  color: var(--primary-foreground);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.ocean-band p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: color-mix(in srgb, #fff 90%, transparent);
}

@media (min-width: 768px) {
  .ocean-band p {
    font-size: 1.25rem;
  }
}

.ocean-blob {
  position: absolute;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.1);
}

.ocean-blob-a {
  left: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
}

.ocean-blob-b {
  right: -5rem;
  bottom: -7rem;
  width: 20rem;
  height: 20rem;
}

/* —— How it works —— */
.how-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.625rem;
  aspect-ratio: 1;
  width: 100%;
  max-width: 15rem;
  border-radius: 1.5rem;
  background: var(--secondary);
  padding: 1rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 1.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.how-step h3 {
  margin-top: 0.75rem;
  font-size: 1.25rem;
}

.how-step > p {
  margin-top: 0.25rem;
  max-width: 16rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.step-paste {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 0.75rem;
}

.step-paste-row,
.step-saved,
.step-list-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.icon-tile svg {
  width: 1rem;
  height: 1rem;
}

.icon-tile-soft {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.step-paste p {
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.25;
}

.step-saved {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.625rem;
}

.step-saved img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}

.step-saved .title {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-saved .ok {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--primary);
}

.step-saved .ok svg {
  width: 0.75rem;
  height: 0.75rem;
}

.step-sheet {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem 0.75rem;
}

.step-sheet-title {
  padding-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
}

.step-sheet-list {
  border-top: 1px solid var(--border);
}

.step-list-row {
  padding: 0.375rem 0;
  border-top: 1px solid var(--border);
}

.step-list-row:first-child {
  border-top: none;
}

.step-list-row img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.step-list-row .name {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-list-row .meta {
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.check-dot {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.check-dot svg {
  width: 0.625rem;
  height: 0.625rem;
}

.aisle-kicker {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.aisle-line {
  padding: 0.375rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 700;
}

.aisle-line:first-of-type {
  border-top: none;
}

.aisle-merged {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--primary);
}

.aisle-merged svg {
  width: 0.75rem;
  height: 0.75rem;
}

.aisle-skip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0;
  border-top: 1px solid var(--border);
}

.aisle-skip span:first-child {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.pill-pantry {
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  padding: 0.125rem 0.5rem;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--primary);
}

.shop-cta-primary {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 1rem;
  background: var(--primary);
  padding: 0.75rem;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
}

.shop-cta-secondary {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
}

.shop-cta-secondary .icon-tile {
  width: 2.25rem;
  height: 2.25rem;
}

.shop-cta-secondary .chev {
  margin-left: auto;
  color: var(--muted-foreground);
}

.shop-cta-primary .chev {
  margin-left: auto;
}

/* —— Recipe book —— */
.recipe-book {
  overflow: hidden;
  background: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.recipe-book-grid {
  display: grid;
  align-items: center;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .recipe-book-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.recipe-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 28.75rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .recipe-mosaic {
    order: 1;
  }

  .recipe-book-copy {
    order: 2;
  }
}

.recipe-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.recipe-tile:nth-child(even) {
  transform: translateY(2rem);
}

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

.recipe-tile .tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--background) 90%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  backdrop-filter: blur(6px);
}

.recipe-tile figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 800;
}

.recipe-book-copy p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.recipe-book-ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .recipe-book-ctas {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .recipe-book-ctas {
    align-items: flex-start;
  }
}

/* —— Magic / pantry —— */
.magic {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.magic-blob {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.magic-blob-a {
  right: -5rem;
  top: -5rem;
  width: 20rem;
  height: 20rem;
}

.magic-blob-b {
  left: 2.5rem;
  bottom: 0;
  width: 14rem;
  height: 14rem;
}

.magic-eyebrow {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

@media (min-width: 768px) {
  .magic-eyebrow {
    font-size: 1.5rem;
  }
}

.pantry-card {
  width: 100%;
  max-width: 27.5rem;
  margin: 3.5rem auto 0;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.pantry-card > p {
  font-size: 1.25rem;
  font-weight: 800;
}

.pantry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.pantry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--secondary) 60%, transparent);
  padding: 0.5rem 0.5rem 0.75rem;
  transition: transform 220ms ease;
}

.pantry-item:hover {
  transform: translateY(-4px) scale(1.02);
}

.pantry-item img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.pantry-item.is-need img {
  opacity: 0.4;
  filter: grayscale(1);
}

.pantry-item .name {
  font-size: 0.875rem;
  font-weight: 700;
}

.pantry-item .status {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.pantry-item.is-home .status {
  color: var(--primary);
}

.smart-intro {
  margin-top: 3.5rem;
}

.smart-intro .h2 {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.smart-intro .lede {
  max-width: 42rem;
}

.smart-intro .lede strong {
  font-weight: 700;
  color: var(--primary);
}

.compare {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.compare-card > p {
  font-size: 1.25rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--muted-foreground) 80%, transparent);
}

.compare-rows {
  flex: 1;
  margin-top: 0.75rem;
  border-top: 1px dashed color-mix(in srgb, var(--border) 70%, transparent);
}

.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-top: 1px dashed color-mix(in srgb, var(--border) 70%, transparent);
  font-size: 1rem;
  color: var(--muted-foreground);
}

.compare-row:first-child {
  border-top: none;
}

.compare-note {
  border-radius: 9999px;
  background: var(--muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--muted-foreground) 80%, transparent);
}

.compare-foot {
  margin-top: 1rem;
  border-radius: 1rem;
  background: var(--muted);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--muted-foreground) 80%, transparent);
}

.smart-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--primary);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  outline: 4px solid color-mix(in srgb, var(--primary) 20%, transparent);
  color: #fff;
}

@media (min-width: 768px) {
  .smart-card {
    transform: translateY(-0.5rem);
  }
}

.smart-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgb(255 255 255 / 0.15) 48%,
    transparent 70%
  );
  transform: translateX(-110%);
  animation: sc-smart-sweep 7s ease-in-out infinite;
}

.smart-glow {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.1);
  filter: blur(24px);
}

.smart-glow-a {
  right: -4rem;
  top: -4rem;
  width: 12rem;
  height: 12rem;
}

.smart-glow-b {
  left: -2.5rem;
  bottom: -5rem;
  width: 10rem;
  height: 10rem;
  background: rgb(255 255 255 / 0.05);
}

.smart-card > p {
  position: relative;
  font-size: 1.25rem;
  font-weight: 800;
}

.smart-body {
  position: relative;
  margin-top: 0.75rem;
  flex: 1;
}

.smart-aisle {
  margin-bottom: 1rem;
}

.smart-aisle:last-child {
  margin-bottom: 0;
}

.smart-aisle h3 {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
}

.smart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.15);
}

.smart-item:first-child {
  border-top: none;
}

.smart-item .qty {
  font-weight: 800;
  color: rgb(255 255 255 / 0.8);
}

.smart-item .name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.smart-item .merged {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.7);
}

.smart-item .merged svg {
  width: 0.75rem;
  height: 0.75rem;
  color: rgb(255 255 255 / 0.9);
}

.smart-skip .name {
  color: rgb(255 255 255 / 0.6);
  text-decoration: line-through;
}

.smart-skip .badge {
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.2);
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
}

/* —— Checkout paths —— */
.checkout-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.checkout-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.checkout-card > p {
  margin-top: 0.625rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.list-demo {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 16.25rem;
  margin: 2rem auto 0;
  border-radius: 1.5rem;
  background: var(--secondary);
}

.float-card {
  position: absolute;
  width: 62%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem;
  box-shadow: 0 10px 20px rgb(12 35 64 / 0.06);
  animation: sc-list-float 6s ease-in-out infinite;
}

.float-card-a {
  left: 2%;
  top: 4%;
  transform: rotate(-3deg);
}

.float-card-b {
  right: 0;
  top: 34%;
  width: 64%;
  transform: rotate(2deg);
  animation-delay: -2s;
}

.float-card-c {
  left: 14%;
  bottom: 5%;
  width: 54%;
  transform: rotate(-1deg);
  animation-delay: -4s;
}

.float-card .aisle {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.float-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.float-check {
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.float-check svg {
  width: 0.625rem;
  height: 0.625rem;
}

.float-empty {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 2px solid var(--border);
}

.delivery-demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 1;
  width: 100%;
  max-width: 15rem;
  margin: 2rem auto 0;
  border-radius: 1.5rem;
  background: var(--secondary);
  padding: 1rem;
}

.delivery-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem 0.75rem;
}

.delivery-step svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--primary);
}

.delivery-step .label {
  flex: 1;
  min-width: 0;
  font-size: 0.625rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-step .num {
  flex-shrink: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 0.125rem 0.375rem;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.delivery-rail {
  margin-left: 0.75rem;
  width: 1px;
  height: 0.375rem;
  background: var(--border);
}

.delivery-fill {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.5rem 0.75rem;
}

.delivery-fill-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.delivery-recipes {
  margin-top: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.delivery-recipe {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.delivery-recipe img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.delivery-recipe span {
  flex: 1;
  min-width: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delivery-recipe svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--primary);
}

.delivery-ready {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background: var(--primary);
  padding: 0.5rem 0.75rem;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary-foreground);
  animation: sc-cart-ready 3.8s ease-in-out infinite;
}

.delivery-ready svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--primary-foreground);
}

.delivery-ready .label {
  flex: 1;
  font-size: 0.625rem;
  font-weight: 800;
}

/* —— Final CTA —— */
.final {
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .final {
    padding-bottom: 6rem;
  }
}

.final-card {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: var(--gradient-ocean);
}

@media (min-width: 768px) {
  .final-card {
    padding: 4rem;
  }
}

.final-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-card h2 {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-foreground);
}

.final-card p {
  margin-top: 0.75rem;
  max-width: 32rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.8);
}

.final-card .cta-row {
  margin-top: 2rem;
}

.final-blob {
  position: absolute;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.1);
}

.final-blob-a {
  left: -5rem;
  top: -5rem;
  width: 16rem;
  height: 16rem;
}

.final-blob-b {
  right: -6rem;
  bottom: -6rem;
  width: 20rem;
  height: 20rem;
}

/* —— Motion —— */
.sc-hero-enter {
  animation: sc-hero-enter 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sc-hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sc-ambient {
  animation: sc-ambient 14s ease-in-out infinite;
}

.sc-ambient-slow {
  animation-duration: 18s;
  animation-direction: reverse;
}

@keyframes sc-ambient {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -10px, 0);
  }
}

.sc-card-lift {
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.sc-card-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft), 0 10px 24px color-mix(in srgb, var(--primary) 10%, transparent);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready [data-reveal][data-delay="1"] {
  transition-delay: 70ms;
}
.motion-ready [data-reveal][data-delay="2"] {
  transition-delay: 140ms;
}
.motion-ready [data-reveal][data-delay="3"] {
  transition-delay: 210ms;
}
.motion-ready [data-reveal][data-delay="4"] {
  transition-delay: 280ms;
}

@keyframes sc-list-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@keyframes sc-smart-sweep {
  0%,
  72% {
    transform: translateX(-110%);
  }
  88%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes sc-cart-ready {
  0%,
  78%,
  100% {
    transform: scale(1);
  }
  86% {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sc-hero-enter,
  .sc-ambient,
  .float-card,
  .smart-card::after,
  .delivery-ready {
    animation: none;
  }

  .sc-card-lift,
  .pantry-item {
    transition: none;
  }

  .btn-primary:active {
    transform: none;
  }
}

/* —— Homepage login modal (ocean glass, image reference) —— */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(14, 44, 51, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.login-modal[hidden] {
  display: none !important;
}

.login-modal-card {
  position: relative;
  width: min(92vw, 28rem);
  max-height: min(92vh, 52rem);
  overflow: auto;
  border-radius: 1.5rem;
  padding: 0;
  color: #0e3a55;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e9f0f4;
  box-shadow: 0 25px 50px -12px rgba(12, 35, 64, 0.35);
}

.login-modal-hero {
  padding: 2rem 1.75rem 1.5rem;
  background-color: #0e3a55;
  background-image: linear-gradient(118deg, #2c4560 0%, #0e3a55 42%, #2f8fa2 100%);
  color: #ffffff;
}

.login-modal-brand {
  margin: 0 0 1rem;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.login-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.login-modal-close:hover,
.login-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.login-modal-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 1rem;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.login-modal-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.login-modal-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.login-modal-hero h2,
.login-modal-card h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.15;
}

.login-modal-lede {
  margin: 0.75rem auto 0;
  max-width: 22rem;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d3e4ec;
}

.login-modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.login-modal-form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.35rem;
}

.login-modal-form label {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d6b80;
}

.login-modal-form .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: #5f8394;
}

.login-modal-form input[type="email"],
.login-modal-form input[type="password"],
.login-modal-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dde9ee;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans, "Plus Jakarta Sans", ui-sans-serif, system-ui);
  font-size: 0.9375rem;
  background: #f2f7f9;
  color: #0e3a55;
  -webkit-text-fill-color: #0e3a55;
  caret-color: #0e3a55;
  outline: none;
  color-scheme: light;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.login-modal-form input::placeholder {
  color: #8aa6b3;
  -webkit-text-fill-color: #8aa6b3;
}

.login-modal-form input:focus,
.login-modal-form input:focus-visible {
  border-color: #2b8a99;
  background: #ffffff;
  color: #0e3a55;
  -webkit-text-fill-color: #0e3a55;
  box-shadow: 0 0 0 3px rgba(43, 138, 153, 0.18);
}

.login-modal-form input:-webkit-autofill,
.login-modal-form input:-webkit-autofill:hover,
.login-modal-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0e3a55;
  caret-color: #0e3a55;
  border-color: #dde9ee;
  box-shadow: 0 0 0 1000px #f2f7f9 inset;
  transition: background-color 9999s ease-out 0s;
}

.login-modal-signin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 0.35rem;
}

.login-modal-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #3d6b80;
  cursor: pointer;
}

.login-modal-signin-row .login-modal-remember {
  margin: 0;
}

.login-modal-forgot {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2b8a99;
  cursor: pointer;
}

.login-modal-forgot:hover,
.login-modal-forgot:focus-visible {
  text-decoration: underline;
  outline: none;
}

.login-modal-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #2b8a99;
}

.login-modal-status {
  min-height: 1.2em;
  margin: 0.4rem 0 0.15rem;
  font-size: 0.875rem;
  color: #3d6b80;
}

.login-modal-status.error {
  color: #c45c4a;
  font-weight: 600;
}

.login-modal-card .btn {
  width: 100%;
  margin-top: 0.65rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans, "Plus Jakarta Sans", ui-sans-serif, system-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.95rem 1.25rem;
  min-height: 3rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.login-modal-card .btn-cta {
  background: #2b8a99;
  color: #ffffff;
}

.login-modal-card .btn-cta:hover {
  background: #247a87;
}

.login-modal-card .btn-ghost {
  border: 1.5px solid #d7e8ed;
  background: transparent;
  color: #0e3a55;
}

.login-modal-card .btn-ghost:hover {
  background: #f2f7f9;
}

.login-modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aa6b3;
}

.login-modal-divider::before,
.login-modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e9f0f4;
}

.login-modal-switch {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: #3d6b80;
}

.login-modal-switch button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #0e3a55;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.login-modal[data-mode="signin"] .login-switch-to-signin,
.login-modal[data-mode="signup"] .login-switch-to-signup {
  display: none;
}

.login-modal[data-mode="signin"] #login-modal-signup,
.login-modal[data-mode="signup"] #login-modal-signin {
  display: none !important;
}

.login-modal-reset {
  display: none;
}

.login-modal[data-panel="verify"] .login-modal-auth,
.login-modal[data-panel="auth"] .login-modal-verify,
.login-modal[data-panel="reset"] .login-modal-auth,
.login-modal[data-panel="reset"] .login-modal-verify {
  display: none;
}

.login-modal[data-panel="reset"] .login-modal-reset {
  display: flex;
}

.login-modal[data-cart-checkout="1"] .login-modal-icon {
  display: none;
}

.login-modal[data-cart-checkout="1"] .login-modal-remember {
  display: none;
}

.login-modal-verify .verify-code-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 1rem 0;
}

.login-modal-verify input.verify-code-input {
  width: 2.45rem;
  height: 2.9rem;
  text-align: center;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0e3a55;
  -webkit-text-fill-color: #0e3a55;
  caret-color: #0e3a55;
  background: #f2f8fa;
  border: 1px solid #dde9ee;
  border-radius: 12px;
  color-scheme: light;
}

.login-modal-verify input.verify-code-input:focus,
.login-modal-verify input.verify-code-input:focus-visible {
  outline: 2px solid rgba(43, 138, 153, 0.45);
  border-color: #2b8a99;
  background: #ffffff;
}
