:root {
  --bg: #f9f4ec;
  --card: #fffaf5;
  --accent: #d6393f;
  --accent-dark: #b52831;
  --muted: #7c5b46;
  --text: #2f1b1c;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, 
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overscroll-behavior: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at 20% 20%, #fff6ea 0, #f6ede2 45%, #f2e6d8 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

button {
  font: inherit;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

main.page {
  flex: 1 0 auto;
}

.centered h1,
.centered h2,
.centered h3 {
  text-align: center;
}

.centered .cta-row {
  justify-content: center;
}

.centered .section-header {
  justify-content: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(249, 244, 236, 0.9);
  border-bottom: 1px solid rgba(92, 56, 38, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(214, 57, 63, 0.12);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid rgba(92, 56, 38, 0.15);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: inline-block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.hero {
  display: grid;
  gap: 32px;
  padding: 36px 0 28px;
}

.hero .visual-stack {
  margin-top: 36px;
}

.hero .subhead {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(214, 57, 63, 0.12);
  color: var(--accent-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin: 0 0 12px;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

ul,
ol,
li {
  color: var(--muted);
}

h3 {
  font-weight: 600;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 8px;
  justify-content: center;
}

.store-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.store-badges img {
  height: 70px;
  width: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.store-badges a:nth-child(2) img {
  height: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 30px rgba(214, 57, 63, 0.3);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(92, 56, 38, 0.12);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.visual-stack {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.visual-stack.stacked {
  display: block;
  max-width: 460px;
  width: clamp(280px, 92vw, 460px);
  margin: 0 auto;
  height: clamp(420px, 70vw, 620px);
}

.visual-card {
  background: var(--card);
  padding: 14px 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(320px, 100%);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.visual-stack.stacked .visual-card {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0.82;
  --dx: 0px;
  --dy: 0px;
  --rot: -2deg;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(var(--scale, 0.98));
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.visual-stack.stacked .visual-card.active {
  opacity: 1;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.05);
  box-shadow: var(--shadow);
}

.visual-stack.stacked .visual-card:nth-child(1) { --dx: -10px; --dy: -8px; --rot: -3deg; z-index: 7; }
.visual-stack.stacked .visual-card:nth-child(2) { --dx: 8px; --dy: 6px; --rot: 3deg; z-index: 6; }
.visual-stack.stacked .visual-card:nth-child(3) { --dx: -6px; --dy: 14px; --rot: -2deg; z-index: 5; }
.visual-stack.stacked .visual-card:nth-child(4) { --dx: 12px; --dy: 18px; --rot: 4deg; z-index: 4; }
.visual-stack.stacked .visual-card:nth-child(5) { --dx: -14px; --dy: 20px; --rot: -3deg; z-index: 3; }
.visual-stack.stacked .visual-card:nth-child(6) { --dx: 10px; --dy: -4px; --rot: 2deg; z-index: 2; }
.visual-stack.stacked .visual-card:nth-child(7) { --dx: -4px; --dy: 10px; --rot: -1deg; z-index: 1; }

.visual-card img {
  border-radius: 14px;
  width: 100%;
  flex: 1;
  object-fit: cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(92, 56, 38, 0.08);
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature-card img {
  margin-bottom: 12px;
}

.create-tiles .grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.create-tiles .card.feature-card {
  max-width: 320px;
  margin: 0 auto;
  padding: 14px;
}

.create-tiles .card.feature-card img {
  max-height: 180px;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

.how-it-works .grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.section {
  margin-top: 54px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-page-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.faq-entries details {
  scroll-margin-top: 100px;
}

.gallery-page-tile {
  position: relative;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.gallery-page-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-page-tile:hover,
.gallery-page-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  outline: none;
}

.gallery-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 6px;
  width: 100%;
  max-width: 100vw;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overflow-y: hidden;
}

.gallery-tile {
  flex: 0 0 auto;
  width: 130px;
  height: 130px;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  outline: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  background: #fffaf5;
  border-radius: var(--radius);
  padding: 16px 46px;
  max-width: min(90vw, 720px);
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
}

.lightbox img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.lightbox-title {
  margin: 12px 0 0;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}

.gallery-item::after {
  content: 'Preview';
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

details {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  float: right;
  font-weight: 700;
  color: var(--accent);
}

details[open] summary::after {
  content: '–';
}

.legal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.legal h3 {
  margin-top: 18px;
}

footer {
  background: #f1e5d7;
  padding: 32px 20px;
  border-top: 1px solid rgba(92, 56, 38, 0.08);
  margin-top: 60px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inline {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.notice {
  background: rgba(214, 57, 63, 0.08);
  color: var(--accent-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    inset: 62px 16px auto 16px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  h1 {
    font-size: 2rem;
  }

  .visual-stack.stacked {
    width: clamp(240px, 94vw, 380px);
    max-width: 380px;
    height: clamp(440px, 110vw, 680px);
  }

  .visual-card {
    width: 94%;
    min-height: 460px;
  }

  .gallery-slider {
    gap: 10px;
    padding: 8px 4px 4px;
    max-width: 100vw;
  }

  .gallery-tile {
    width: 120px;
    height: 120px;
  }

  .gallery-page-grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .how-it-works .grid.two {
    grid-template-columns: 1fr;
  }

  .store-badges {
    margin-top: 70px;
    margin-bottom: 12px;
  }

  .store-badges img {
    height: 60px;
  }

  .store-badges a:nth-child(2) img {
    height: 80px;
  }
}

@media (min-width: 900px) {
  .visual-stack.stacked {
    max-width: 560px;
    width: clamp(360px, 55vw, 560px);
    height: 620px;
  }

  .section {
    margin-top: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .btn:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
}
