/* Lisl landing — warm cream, amber accent, Fredoka + Nunito.
   Tokens come from docs/design/corporate-identity.md. */

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype');
  font-weight: 800;
}

:root {
  --bg: #f7f0de;
  --surface: #fffdf6;
  --surface-2: #f1e8d3;
  --ink: #26332c;
  --ink-2: #5e6c63;
  --hairline: rgba(38, 51, 44, .11);
  --accent: #f5c51e;
  --on-accent: #2a2308;
  --accent-ink: #8a5e08;
  --accent-soft: #fbe7a6;
  --radius: 24px;
  --shadow: 0 28px 64px -26px rgba(38, 51, 44, .28);
  --shadow-soft: 0 14px 36px -22px rgba(38, 51, 44, .2);
  --max: 72rem;

  /* Category pastel tints */
  --tint-produce: #e7f3dc;
  --tint-bakery: #faecd6;
  --tint-dairy: #e3eff9;
  --tint-pantry: #f4eadc;
  --tint-sweets: #efe5f6;
  --tint-drinks: #dff2ef;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181715;
    --surface: #23211e;
    --surface-2: #2d2a26;
    --ink: #f2ece1;
    --ink-2: #b0a79c;
    --hairline: rgba(242, 236, 225, .12);
    --accent: #f7ce3e;
    --on-accent: #241d06;
    --accent-ink: #f7ce3e;
    --accent-soft: rgba(247, 206, 62, .16);
    --shadow: 0 28px 64px -24px rgba(0, 0, 0, .65);
    --shadow-soft: 0 14px 36px -20px rgba(0, 0, 0, .5);

    --tint-produce: rgba(127, 177, 60, .18);
    --tint-bakery: rgba(200, 138, 60, .18);
    --tint-dairy: rgba(78, 147, 207, .18);
    --tint-pantry: rgba(186, 132, 86, .18);
    --tint-sweets: rgba(154, 111, 194, .18);
    --tint-drinks: rgba(47, 163, 154, .18);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 'Nunito', ui-rounded, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, .display {
  font-family: 'Fredoka', ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
}

a { color: inherit; }

.container {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  height: 4.1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-size: 1.2rem;
  font-family: 'Fredoka', sans-serif; font-weight: 600;
}

.brand img { width: 2rem; height: 2rem; border-radius: 26%; display: block; }

.nav-links {
  display: none; gap: 1.6rem; margin-left: auto;
  font-weight: 700; font-size: .94rem;
}

@media (min-width: 46rem) { .nav-links { display: flex; } }

.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex; margin-left: auto;
  padding: .2rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  font-weight: 800; font-size: .78rem; letter-spacing: .04em;
}

.lang-switch a {
  padding: .34rem .75rem; border-radius: 999px; color: var(--ink-2);
  text-decoration: none; transition: background .2s, color .2s;
}

.lang-switch a.is-active { background: var(--accent); color: var(--on-accent); }

@media (min-width: 46rem) { .lang-switch { margin-left: .5rem; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.8rem, 6vw, 4.8rem) 0 clamp(2rem, 4.5vw, 3.4rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10% 0 auto 0;
  height: 38rem;
  background:
    radial-gradient(40rem 28rem at 76% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%),
    radial-gradient(28rem 22rem at 16% 24%, rgba(127, 177, 60, .10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid; gap: clamp(2.2rem, 5vw, 3.8rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 4.8rem);
  margin: 0 0 1.15rem;
  letter-spacing: -.025em;
}

.hero h1 em {
  font-style: normal; color: var(--accent-ink);
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

.hero h1 em::after {
  content: ''; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .24em;
  background: var(--accent-soft); z-index: -1; border-radius: .2em;
}

.hero .lede {
  font-size: clamp(1.08rem, 1.9vw, 1.26rem); color: var(--ink-2);
  max-width: 31rem; margin: 0 0 1.9rem; font-weight: 600;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.55rem; border-radius: 999px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-accent {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 12px 28px -12px rgba(169, 124, 0, .58);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(169, 124, 0, .65); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero phone (real screenshots carousel) ---------- */

.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phone {
  position: relative;
  width: min(19.5rem, 78vw);
  border-radius: 3rem;
  padding: .5rem;
  background: linear-gradient(155deg, #2d3430, #121417);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.12);
}

.phone-viewport {
  position: relative;
  border-radius: 2.55rem;
  overflow: hidden;
  aspect-ratio: 780 / 1696;
  background: #f5efe0;
}

.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .55s ease, transform .65s ease;
  pointer-events: none;
}

.phone-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.screen-dots {
  display: inline-flex;
  gap: .35rem;
  padding: .25rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}

.screen-dot {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  padding: .34rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.screen-dot:hover { color: var(--ink); }

.screen-dot.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- icon marquee strip ---------- */

.marquee-section {
  padding: 1rem 0 .4rem;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1rem;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: .75rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.icon-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: .42rem .9rem .42rem .5rem;
  font-size: .85rem; font-weight: 700; color: var(--ink);
  box-shadow: 0 4px 12px -8px rgba(38,51,44,.18);
  flex: none;
}

.icon-chip img {
  width: 1.75rem; height: 1.75rem; object-fit: contain; display: block;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track .is-dup { display: none; }
  .phone-slide { transition: none; transform: none; }
}

/* ---------- features ---------- */

.section { padding: clamp(3rem, 7vw, 5.2rem) 0 0; }

.section-eyebrow {
  font-weight: 800; letter-spacing: .15em; text-transform: uppercase; font-size: .75rem;
  color: var(--accent-ink); margin: 0 0 .8rem; text-align: center;
}

.section h2 {
  text-align: center; font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 38rem; margin-inline: auto;
}

.card-grid {
  margin-top: 2.5rem;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.55rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--ink) 20%, transparent);
}

.card .icon-box {
  width: 3.3rem; height: 3.3rem; border-radius: 1rem;
  background: var(--accent-soft);
  display: grid; place-items: center;
  padding: .45rem;
}

.card .icon-box.t-produce { background: var(--tint-produce); }
.card .icon-box.t-bakery { background: var(--tint-bakery); }
.card .icon-box.t-dairy { background: var(--tint-dairy); }
.card .icon-box.t-pantry { background: var(--tint-pantry); }
.card .icon-box.t-sweets { background: var(--tint-sweets); }
.card .icon-box.t-drinks { background: var(--tint-drinks); }

.card .icon-box img { width: 100%; height: 100%; object-fit: contain; display: block; }

.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }

/* ---------- CTA band ---------- */

.band {
  margin-top: clamp(3rem, 8vw, 5rem);
  border-radius: 2.1rem;
  background: var(--ink); color: var(--bg);
  padding: clamp(2.4rem, 6vw, 3.8rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  position: relative; overflow: hidden;
}

.band::after {
  content: ''; position: absolute; inset: auto -20% -55% -20%;
  height: 85%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 206, 62, .35), transparent);
  pointer-events: none;
}

.band-icons {
  display: flex; justify-content: center; gap: .6rem;
  margin-bottom: 1.2rem; position: relative; z-index: 1;
}

.band-icons span {
  width: 2.8rem; height: 2.8rem; border-radius: .9rem;
  background: rgba(255, 253, 246, .12);
  border: 1px solid rgba(255, 253, 246, .14);
  display: grid; place-items: center; padding: .35rem;
}

.band-icons img { width: 100%; height: 100%; object-fit: contain; display: block; }

.band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: inherit; position: relative; z-index: 1; }
.band p { color: color-mix(in srgb, var(--bg) 82%, transparent); max-width: 31rem; margin: .9rem auto 1.6rem; position: relative; z-index: 1; }
.band .btn { position: relative; z-index: 1; }

/* ---------- footer ---------- */

footer { margin-top: clamp(3rem, 8vw, 5rem); border-top: 1px solid var(--hairline); }

.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  justify-content: space-between; align-items: center;
  padding: 1.6rem 0 2rem;
  color: var(--ink-2); font-size: .9rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: center; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--ink); }

.footer-fine {
  width: 100%; border-top: 1px solid var(--hairline);
  padding-top: 1.1rem; text-align: center;
  color: var(--ink-2); font-size: .8rem;
  display: flex; flex-direction: column; gap: .3rem; align-items: center;
}

.footer-fine a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-fine a:hover { color: var(--ink); }

/* ---------- legal (prose) ---------- */

.legal { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem); }
.legal-inner { max-width: 52rem; margin-inline: auto; }

.legal-head { text-align: center; margin-bottom: 2.6rem; }
.legal-head .eyebrow { justify-content: center; }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 1.2rem 0 .7rem; }
.legal-head p { color: var(--ink-2); margin: 0; }

.prose h2 {
  font-size: 1.32rem; font-weight: 600; font-family: 'Fredoka';
  margin: 2.4rem 0 .7rem; letter-spacing: -.005em;
}
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: .7rem 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: .7rem 0; display: grid; gap: .45rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  padding: .85rem 1rem; border-radius: 0 12px 12px 0;
  margin: 1.2rem 0; font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .prose .note { background: rgba(247, 206, 62, .14); }
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
