/* ===== Hungry Shelf — landing ===== */

:root {
  --ink: #10231a;
  --forest-900: #0b1f15;
  --forest-800: #0f2a1c;
  --forest-700: #143423;
  --amber: #f5a00b;
  --amber-soft: #ffb733;
  --cream: #f7f3ea;
  --paper: #fbf9f4;
  --sand: #f1ece1;
  --muted: #5d6c62;
  --muted-dark: rgba(247, 243, 234, 0.64);
  --line: rgba(16, 35, 26, 0.09);
  --line-dark: rgba(247, 243, 234, 0.13);

  --r-lg: 28px;
  --pad-section: clamp(4.5rem, 7.5vw, 7rem);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1140px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ===== Type ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.07;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.95rem, 3.3vw, 2.8rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b9760a;
  margin-bottom: 0.85rem;
}

.hero .eyebrow, .cta .eyebrow { color: var(--amber); }

/* ===== Nav ===== */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 21, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--cream); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.015em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted-dark);
}

.nav-links a:hover { color: var(--cream); }

.nav-cta {
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--forest-900) !important;
  font-weight: 650;
}

.nav-cta:hover { background: var(--amber-soft); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 500px at 84% 14%, rgba(245, 160, 11, 0.20), transparent 62%),
    radial-gradient(620px 460px at 4% 84%, rgba(31, 79, 48, 0.55), transparent 68%),
    linear-gradient(158deg, var(--forest-900) 0%, var(--forest-800) 55%, #0d2618 100%);
  color: var(--cream);
  padding-top: clamp(3rem, 5.5vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--amber); }

.hero-lead {
  margin: 1.3rem 0 2rem;
  max-width: 31rem;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: var(--muted-dark);
}

.hero-note {
  margin: 1.1rem 0 0;
  font-size: 0.84rem;
  color: rgba(247, 243, 234, 0.45);
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.65rem;
  padding: 0;
  list-style: none;
}

.promise-row li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(247, 243, 234, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
}

/* Store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 1.2rem;
  border-radius: 14px;
  background: var(--cream);
  color: var(--forest-900);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.store-badge:hover { transform: translateY(-2px); }
.store-badge small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.58;
  line-height: 1.25;
}
.store-badge strong { display: block; font-size: 0.98rem; font-weight: 650; line-height: 1.25; }

.store-badge.ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-dark);
  box-shadow: none;
}
.store-badge.ghost:hover { border-color: rgba(247, 243, 234, 0.32); }

/* Hero device cluster — whole phones, nothing cropped.
   Widths are percentages of the column and the overlap comes from negative
   margins, so the cluster scales down with the column instead of clipping. */
.device-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 0 2.25rem;
}

.device-cluster .phone { flex: 0 0 auto; }
.device-cluster .phone.side { width: 30%; z-index: 1; }
.device-cluster .phone.lead { width: 40%; z-index: 3; }
.device-cluster .phone.left { transform: rotate(-8deg); margin-right: -9%; }
.device-cluster .phone.right { transform: rotate(8deg); margin-left: -9%; }

/* ===== Phone frame ===== */
.phone {
  border-radius: 30px;
  background: linear-gradient(150deg, #26382c, #0a1610);
  padding: 7px;
  box-shadow:
    0 34px 64px -20px rgba(4, 14, 9, 0.62),
    0 0 0 1px rgba(247, 243, 234, 0.1) inset;
}

.phone > img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #fff;
}

.phone.lg { border-radius: 34px; padding: 8px; }
.phone.lg > img { border-radius: 27px; }

/* ===== Source strip ===== */
.tag-strip {
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
  padding: 1.5rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.tag-strip-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.34);
}

.tag-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(247, 243, 234, 0.72);
}

/* ===== Spotlight: the two headline features ===== */
.spotlight {
  padding: var(--pad-section) 0;
  color: var(--cream);
  background:
    radial-gradient(680px 420px at 12% 6%, rgba(245, 160, 11, 0.16), transparent 64%),
    linear-gradient(180deg, #0a1c13, var(--forest-800));
}

.spotlight-head {
  max-width: 40rem;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  text-align: center;
}

.spotlight-head p {
  margin: 1rem 0 0;
  color: var(--muted-dark);
  font-size: 1.03rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.spot-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.6vw, 2.35rem);
  background:
    radial-gradient(460px 300px at 50% 100%, rgba(245, 160, 11, 0.14), transparent 72%),
    linear-gradient(168deg, #fdfbf7, var(--sand));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}

.spot-tag {
  align-self: flex-start;
  padding: 0.34rem 0.8rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(245, 160, 11, 0.16);
  color: #8f5c05;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spot-card h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.12;
}

.spot-card > p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Pushes the device to the bottom so both cards line their phones up. */
.spot-visual {
  margin-top: auto;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  place-items: center;
}

.spot-visual .phone { width: min(238px, 68%); }

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.97rem;
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex: 0 0 auto;
  transform: translateY(-2px);
}

/* Phone + floating UI sheet */
.stack { position: relative; width: min(238px, 68%); }
.stack .phone { width: 100%; }

.sheet-card {
  position: absolute;
  left: -18%;
  bottom: 7%;
  width: 82%;
  margin: 0;
  aspect-ratio: 460 / 340;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 26px 46px -16px rgba(4, 14, 9, 0.35),
    0 0 0 1px rgba(16, 35, 26, 0.06);
}

/* The Add-recipe capture has empty space above the sheet — anchor to the bottom */
.sheet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* ===== Light bands (how it works, secondary features) ===== */
.band { padding: var(--pad-section) 0; }
.band.alt { background: var(--sand); border-block: 1px solid var(--line); }

.band-head { max-width: 34rem; margin-bottom: clamp(1.9rem, 3.5vw, 2.75rem); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-grid li {
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -22px rgba(4, 14, 9, 0.35);
}

.card-grid p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-grid a { color: #a86a08; text-decoration: underline; text-underline-offset: 2px; }

.legal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.legal-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -22px rgba(4, 14, 9, 0.35);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 106, 8, 0.35);
}

.legal-card p {
  margin: 0.55rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.96rem;
  flex: 1;
}

.legal-card span {
  font-size: 0.86rem;
  font-weight: 650;
  color: #a86a08;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.55rem;
}

/* ===== CTA ===== */
.cta-band { padding: clamp(3rem, 5vw, 4.5rem) 0; }

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.1rem, 3.6vw, 3rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(560px 300px at 90% 8%, rgba(245, 160, 11, 0.26), transparent 64%),
    linear-gradient(150deg, var(--forest-900), var(--forest-700));
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-copy { display: flex; gap: 1.15rem; align-items: center; }
/* The icon is dark green, so it needs a ring to read against the dark panel. */
.cta-copy img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(247, 243, 234, 0.22);
}
.cta h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.cta p { margin: 0.4rem 0 0; color: var(--muted-dark); font-size: 0.97rem; }

/* ===== Footer ===== */
.footer {
  background: var(--forest-900);
  color: rgba(247, 243, 234, 0.6);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand strong { color: var(--cream); display: block; font-size: 0.95rem; }
.footer-brand span { font-size: 0.82rem; }

.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer nav a:hover { color: var(--cream); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Legal pages ===== */
.legal {
  width: min(720px, calc(100% - 3rem));
  margin: 2.5rem auto 4rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin-bottom: 0.5rem; }
.legal h2 {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1.06rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  letter-spacing: -0.005em;
}
.legal h3 { font-family: var(--font-body); font-weight: 600; font-size: 0.97rem; margin-top: 1.6rem; }
.legal p, .legal li { color: #35423a; font-size: 0.96rem; }
.legal p { margin: 0.7rem 0; }
.legal ul, .legal ol { margin: 0.7rem 0; padding-left: 1.25rem; }
.legal li { margin: 0.35rem 0; }
.legal .meta { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0; }
.legal a { color: #a86a08; text-decoration: underline; text-underline-offset: 2px; }

.legal code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.88em;
  background: var(--sand);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: #35423a;
}

.legal th { font-weight: 650; background: var(--sand); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .device-cluster { max-width: 520px; margin-inline: auto; }

  .spotlight-grid,
  .card-grid,
  .legal-cards { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .device-cluster .phone.side { display: none; }
  .device-cluster .phone.lead { width: min(226px, 62vw); }
  .device-cluster { padding: 1.25rem 0 1.75rem; }
  .stack, .spot-visual .phone { width: min(230px, 74%); }
  .sheet-card { left: -12%; width: 88%; }
  .cta { flex-direction: column; align-items: flex-start; }
}
