/* Design read: cute/playful SaaS landing, same friendly language as the
   product itself, but its OWN palette — sunny coral + sky blue + butter
   yellow, instead of the tenant demo theme's bubblegum pink + lavender +
   mint (see backend/database/seeders/CatalogSeeder.php). The core SaaS
   brand and a white-labeled tenant's own kiosk should never look like the
   same product. Dials: VARIANCE 7 / MOTION 6 / DENSITY 4. */
:root {
  --bg: #fff8ea;
  --bg-soft: #ffffff;
  --text: #3d3226;
  --text-muted: #3d322699;
  --accent: #ff7a59;
  --accent-soft: #ff7a5920;
  --accent2: #5fbce0;
  --accent2-soft: #5fbce020;
  --accent3: #ffcb61;
  --accent3-soft: #ffcb6130;
  --border: #3d322614;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-sm: clamp(0.9rem, 0.7rem + 0.8vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --space-lg: clamp(2.5rem, 1.8rem + 2.8vw, 4.5rem);
  --space-xl: clamp(4rem, 2.6rem + 5.6vw, 8rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav__links a:not(.btn):hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .nav__links a:not(.btn) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px #ff7a5999;
}

.btn--ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding-block: var(--space-xl) var(--space-lg);
  position: relative;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 380px at 85% -10%, var(--accent2-soft), transparent 70%),
    radial-gradient(500px 320px at -5% 25%, var(--accent3-soft), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent3-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

.hero h1 .flash {
  color: var(--accent);
}

.hero p.lead {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 var(--space-md);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: var(--space-sm);
}

.hero__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero visual: layered photo-strip motif in the new palette */
.hero__visual {
  position: relative;
  height: clamp(300px, 32vw, 420px);
}

.strip {
  position: absolute;
  width: clamp(140px, 15vw, 180px);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 24px 50px -20px #3d322640;
}

.strip .cell {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
}

.strip .cell:last-child {
  margin-bottom: 0;
}

.strip--coral {
  background: #ffe3d9;
  top: 6%;
  left: 6%;
  transform: rotate(-7deg);
  z-index: 2;
}

.strip--coral .cell {
  background: var(--accent-soft);
}

.strip--sky {
  background: #e3f4fb;
  top: 18%;
  right: 4%;
  transform: rotate(6deg);
  z-index: 1;
}

.strip--sky .cell {
  background: var(--accent2-soft);
}

.strip--butter {
  background: #fff3d6;
  bottom: 0;
  left: 24%;
  transform: rotate(-2deg);
  z-index: 3;
}

.strip--butter .cell {
  background: var(--accent3-soft);
}

/* Sections */
section {
  padding-block: var(--space-lg);
}

.section__head {
  max-width: 58ch;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.section__kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.section__head h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.section__head p {
  color: var(--text-muted);
  margin: 0;
}

/* Bento feature grid — asymmetric, not three equal columns */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}

.bento .card {
  grid-column: span 3;
}

.bento .card--wide {
  grid-column: span 4;
}

.bento .card--narrow {
  grid-column: span 2;
}

@media (max-width: 860px) {
  .bento .card,
  .bento .card--wide,
  .bento .card--narrow {
    grid-column: span 6;
  }
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 12px 30px -18px #3d322633;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
}

.tint-coral {
  background: #ffe3d9;
}

.tint-sky {
  background: #e3f4fb;
}

.tint-butter {
  background: #fff3d6;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  counter-reset: step;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: var(--space-md);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: #fff;
  margin-inline: var(--space-md);
}

.cta h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.cta p {
  margin: 0 0 var(--space-sm);
  opacity: 0.95;
  max-width: 50ch;
  margin-inline: auto;
}

.cta .btn--primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 14px 30px -12px #ffffff88;
}

/* Footer */
footer {
  padding-block: var(--space-lg) var(--space-md);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer__brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.footer__links {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Motion-driven reveal targets — JS toggles the entered state via
   opacity/transform inline styles (Motion's animate()), this just sets
   the at-rest starting point so nothing pops in instantly. */
[data-reveal] {
  opacity: 0;
}
