/* Lil'Bambino marketing site — tokens mirror lib/core/theme/ */

:root {
  --color-primary: #1a1815;
  --color-on-primary: #f8f1e5;
  --color-primary-container: #2b2722;
  --color-on-primary-container: #f4d6bc;
  --color-secondary: #e9a77f;
  --color-secondary-container: #f4d6bc;
  --color-on-secondary-container: #3a1f0f;
  --color-tertiary: #c66e2e;
  --color-surface: #eadfcb;
  --color-surface-variant: #f8f1e5;
  --color-on-surface: #1a1815;
  --color-outline: #6b5e51;

  --radius-card: 24px;
  --radius-large: 32px;
  --radius-pill: 999px;

  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-page: clamp(20px, 5vw, 64px);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-surface);
  color: var(--color-on-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

h1 em {
  font-style: normal;
  color: var(--color-tertiary);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 24, 21, 0.18);
}

.btn-dark {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9rem;
}

.pill-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pill-badge-peach {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--space-page);
  background: rgba(234, 223, 203, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  border-radius: 12px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--space-page) clamp(48px, 7vw, 104px);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-outline);
  max-width: 34em;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badges img {
  height: 56px;
  width: auto;
  transition: transform 0.15s ease;
}

.store-badges a:hover img {
  transform: translateY(-2px);
}

.hero-phone {
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  width: min(100%, 320px);
  height: auto;
  border-radius: 36px;
  box-shadow: 0 30px 60px rgba(26, 24, 21, 0.28);
  transform: rotate(2deg);
}

/* ---------- Features ---------- */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-page) clamp(48px, 7vw, 96px);
}

.section-title {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface-variant);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.card p {
  margin: 0;
  color: var(--color-outline);
  font-size: 0.95rem;
}

.card-dark {
  background: var(--color-primary);
  color: var(--color-on-primary-container);
}

.card-dark h3 {
  color: var(--color-on-primary);
}

.card-dark p {
  color: rgba(244, 214, 188, 0.8);
}

.card-peach {
  background: var(--color-secondary-container);
}

.card-peach p {
  color: var(--color-on-secondary-container);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

/* ---------- Screenshots ---------- */

.screens {
  padding: 0 var(--space-page) clamp(32px, 5vw, 64px);
  overflow-x: clip;
}

.screens .section-title {
  padding: 0;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.carousel {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  outline: none;
}

.carousel--wide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 72px;
  box-sizing: border-box;
}

.carousel-viewport {
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track.is-jumping {
  transition: none;
}

.carousel-slide {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}

.carousel-slide-inner {
  display: block;
  width: 100%;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease,
    filter 0.5s ease;
  filter: drop-shadow(0 6px 12px rgba(26, 24, 21, 0.1));
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 24px;
}

.carousel-slide figcaption {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-outline);
  min-height: 1.35em;
  transition: opacity 0.3s ease;
}

.carousel--wide .carousel-slide:not(.is-active) figcaption {
  visibility: hidden;
}

.carousel--wide .carousel-slide.is-active .carousel-slide-inner {
  transform: scale(1);
  opacity: 1;
  filter: drop-shadow(0 10px 20px rgba(26, 24, 21, 0.14));
}

.carousel--wide .carousel-slide.is-near .carousel-slide-inner {
  transform: scale(0.84);
  opacity: 0.82;
}

.carousel--wide .carousel-slide.is-far .carousel-slide-inner {
  transform: scale(0.72);
  opacity: 0.62;
}

.carousel--wide .carousel-slide.is-offscreen .carousel-slide-inner {
  transform: scale(0.68);
  opacity: 0.2;
}

.carousel--three .carousel-slide.is-active .carousel-slide-inner {
  transform: scale(1);
  opacity: 1;
  filter: drop-shadow(0 5px 8px rgba(26, 24, 21, 0.11));
}

.carousel--three .carousel-slide.is-near .carousel-slide-inner {
  transform: scale(0.86);
  opacity: 0.72;
}

.carousel--three .carousel-slide.is-offscreen .carousel-slide-inner {
  transform: scale(0.72);
  opacity: 0.25;
}

.carousel-btn {
  position: absolute;
  top: var(--carousel-btn-top, 42%);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(26, 24, 21, 0.22);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn-prev {
  left: -18px;
}

.carousel-btn-next {
  right: -18px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-outline);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  opacity: 1;
  transform: scale(1.25);
  background: var(--color-primary);
}

@media (max-width: 520px) {
  .carousel-btn-prev {
    left: 4px;
  }

  .carousel-btn-next {
    right: 4px;
  }
}

@media (min-width: 900px) {
  .carousel-btn {
    width: 52px;
    height: 52px;
    font-size: 1.85rem;
  }

  .carousel-btn-prev {
    left: 0;
  }

  .carousel-btn-next {
    right: 0;
  }

  .carousel-dots {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-slide-inner,
  .carousel-slide figcaption {
    transition: none;
  }
}

/* ---------- Premium ---------- */

.premium {
  scroll-margin-top: 80px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius-large);
  max-width: var(--max-width);
  margin: 0 auto clamp(48px, 7vw, 96px);
  padding: clamp(40px, 6vw, 72px) var(--space-page);
}

.premium-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.premium h2 {
  color: var(--color-on-primary);
}

.premium p {
  color: var(--color-on-primary-container);
  margin-bottom: 28px;
}

.premium .store-badges {
  justify-content: center;
}

@media (max-width: 1180px) {
  .premium {
    margin-left: var(--space-page);
    margin-right: var(--space-page);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 0 var(--space-page) 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-brand img {
  border-radius: 9px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 18px;
}

.footer-links a {
  color: var(--color-outline);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-on-surface);
  text-decoration: underline;
}

.footer-note {
  color: var(--color-outline);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .store-badges {
    justify-content: center;
  }

  .hero-screenshot {
    max-width: 260px;
    transform: none;
  }
}
