/* Snap2Meals marketing site — Cal AI structure, Snap2Meals identity.
   Palette from the product. Typography: Bricolage Grotesque + Figtree. */

:root {
  --bg: #f3f5ee;
  --bg-deep: #e8ece1;
  --ink: #142018;
  --ink-soft: #4a554c;
  --ink-faint: #7a857c;
  --forest: #065f46;
  --emerald: #047857;
  --mint: #d8f3e7;
  --lime: #c5e86c;
  --white: #ffffff;
  --line: rgba(20, 32, 24, 0.1);
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem var(--pad) 0;
}

.topbar-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.top-links a:hover {
  color: var(--white);
}

.top-links .btn-sm {
  background: var(--white);
  color: var(--forest);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.top-links .btn-sm:hover {
  color: var(--forest);
  background: #f4fff8;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroSettle 1.4s var(--ease) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 50, 36, 0.35) 0%, rgba(6, 50, 36, 0.15) 35%, rgba(6, 40, 30, 0.72) 72%, rgba(6, 35, 26, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 40, 30, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(2.5rem, 7vh, 4.5rem);
  width: min(100%, var(--max));
  margin-inline: auto;
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero-proof {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  max-width: 10ch;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
}

.btn-primary:hover {
  background: #d4f08a;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost-dark:hover {
  background: rgba(20, 32, 24, 0.04);
  border-color: rgba(20, 32, 24, 0.22);
}

.btn-ghost-on-dark {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Proof strip */
.proof-strip {
  background: var(--forest);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.proof-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 0.85rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.section-muted {
  background: var(--bg-deep);
}

/* Include grid */
.include-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .include-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .include-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.include-item {
  padding: 1.5rem 1.35rem;
  border-radius: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  animation: rise 0.8s var(--ease) both;
}

.include-item:nth-child(2) {
  animation-delay: 0.05s;
}
.include-item:nth-child(3) {
  animation-delay: 0.1s;
}
.include-item:nth-child(4) {
  animation-delay: 0.15s;
}
.include-item:nth-child(5) {
  animation-delay: 0.2s;
}
.include-item:nth-child(6) {
  animation-delay: 0.25s;
}

.include-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.include-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.include-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Why grid */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.why-card {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  animation: rise 0.8s var(--ease) both;
}

.why-card:nth-child(2) {
  animation-delay: 0.08s;
}
.why-card:nth-child(3) {
  animation-delay: 0.16s;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.why-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* Product showcase */
.showcase {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .showcase.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .showcase.reverse .showcase-copy {
    order: 2;
  }

  .showcase.reverse .showcase-visual {
    order: 1;
  }
}

.showcase-copy .eyebrow {
  text-align: left;
}

.showcase-copy h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
}

.showcase-copy p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  max-width: 36ch;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink);
  font-weight: 550;
}

.feature-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--emerald);
}

.showcase-visual {
  position: relative;
}

.phone-frame {
  margin-inline: auto;
  width: min(100%, 320px);
  border-radius: 2rem;
  overflow: hidden;
  background: #0b1210;
  box-shadow: 0 28px 60px rgba(20, 32, 24, 0.18);
  animation: rise 1s var(--ease) both;
}

.phone-frame img {
  width: 100%;
  height: auto;
}

/* FAQ */
.faq-wrap {
  max-width: 720px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-body {
  padding: 0 1.25rem 1.25rem;
}

.faq-body p,
.faq-body li {
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.faq-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.faq-body p:last-child,
.faq-body ul:last-child {
  margin-bottom: 0;
}

/* CTA band */
.cta-band {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(197, 232, 108, 0.18), transparent 55%),
    radial-gradient(800px 400px at 90% 100%, rgba(4, 120, 87, 0.35), transparent 50%),
    var(--forest);
  color: var(--white);
}

.cta-inner {
  max-width: 40rem;
  text-align: center;
  margin-inline: auto;
}

.cta-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 0.9rem;
}

.cta-inner > p {
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  max-width: 38ch;
}

.cta-inner .hero-actions {
  justify-content: center;
}

.cta-fine {
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.cta-fine a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-fine a:hover {
  color: var(--white);
}

/* Footer */
.footer {
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  width: 100%;
  margin: 0.25rem 0 0;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* Legal pages */
.page-top {
  padding: 1.25rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-top .brand {
  color: var(--ink);
}

.legal {
  padding: clamp(2.5rem, 6vw, 4rem) 0 5rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}

.legal .updated {
  color: var(--ink-faint);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.65rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  max-width: 65ch;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSettle {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .top-links a:not(.btn-sm) {
    display: none;
  }
}
