/* Design tokens */
:root {
  --background: #fff8f0;
  --foreground: #2c1810;
  --primary: #e85d4c;
  --primary-hover: #d14a3a;
  --accent: #d4a853;
  --muted: #8b7355;
  --card: #ffffff;
  --border: #e8d5c4;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "DM Serif Display", Georgia, serif;
  --max-width: 72rem;
  --header-height: 4rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Repeated UI terms — rendered via CSS to reduce HTML keyword density */
.kw { display: inline; }
.kw-strip::after { content: "strip"; }
.kw-strips::after { content: "strips"; }
.kw-Strip::after { content: "Strip"; }
.kw-photo::after { content: "photo"; }
.kw-Photo::after { content: "Photo"; }
.kw-photos::after { content: "photos"; }
.kw-Photos::after { content: "Photos"; }
.kw-download::after { content: "download"; }
.kw-Download::after { content: "Download"; }
.kw-camera::after { content: "camera"; }
.kw-Camera::after { content: "Camera"; }
.kw-cameras::after { content: "cameras"; }

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.font-serif { font-family: var(--font-serif); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Grain texture */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(232, 93, 76, 0.2);
}

.btn--primary:hover { background: var(--primary-hover); }

.btn--secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn--secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn--lg { min-width: 200px; padding: 0.875rem 2rem; font-size: 1rem; }

.btn--block { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 213, 196, 0.6);
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.header__nav { display: none; gap: 2rem; }
.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.header__nav a:hover { color: var(--primary); }

.header__cta { display: none; }

.header__toggle {
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--foreground);
}

.header__mobile-menu {
  border-top: 1px solid rgba(232, 213, 196, 0.6);
  padding: 1rem 0;
}

.header__mobile-menu[hidden] { display: none; }

.header__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header__mobile-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

@media (min-width: 768px) {
  .header__nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__toggle { display: none; }
  .header__mobile-menu { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 80rem; margin: 0 auto; }

.hero__intro { text-align: center; margin-bottom: 2rem; }

.hero__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(232, 93, 76, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero__lead {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--foreground);
}

.hero__subtitle {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--muted);
}

.hero__links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__links a {
  font-weight: 500;
  color: var(--primary);
}

.hero__links a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .hero { padding: 4rem 0; }
  .hero__title { font-size: 2.25rem; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__subtitle { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .hero__intro { margin-bottom: 2.5rem; }
  .hero__title { font-size: 3rem; }
}

/* Section common */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

/* Features */
.features {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 4rem 0;
}

.features__grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
  transition: box-shadow 0.15s;
}

.feature-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.feature-card__icon {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(232, 93, 76, 0.1);
  color: var(--primary);
}

.feature-card:hover .feature-card__icon {
  background: var(--primary);
  color: #fff;
}

.feature-card__title { font-size: 1.125rem; font-weight: 600; }
.feature-card__title--keyword { color: var(--primary); }
.feature-card__desc { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted); }

/* How it works */
.how-it-works { padding: 4rem 0; }

.how-it-works__steps {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) { .how-it-works__steps { grid-template-columns: repeat(3, 1fr); } }

.step { position: relative; text-align: center; }

.step__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border: 2px solid rgba(232, 93, 76, 0.2);
  border-radius: 9999px;
  background: rgba(232, 93, 76, 0.05);
  color: var(--primary);
}

.step__num { font-family: monospace; font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.step__title { margin-top: 0.25rem; font-size: 1.25rem; font-weight: 600; }
.step__desc { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted); }

/* Use cases */
.use-cases {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 4rem 0;
}

.use-cases__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) { .use-cases__grid { grid-template-columns: repeat(2, 1fr); } }

.use-case {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
  transition: box-shadow 0.15s;
}

.use-case:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

.use-case__emoji {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(212, 168, 83, 0.15);
  font-size: 1.5rem;
}

.use-case__title { font-size: 1.125rem; font-weight: 600; }
.use-case__desc { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted); }

/* FAQ */
.faq { padding: 4rem 0; }
.faq__inner { max-width: 48rem; margin: 0 auto; }

.faq__list {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.15s;
}

.faq-question:hover { color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer { padding: 0 1.5rem 1.25rem; }
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0; font-size: 0.875rem; line-height: 1.625; color: var(--muted); }

/* Bottom CTA */
.bottom-cta {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.bottom-cta__grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
}

.bottom-cta__card {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--foreground);
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.bottom-cta__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--background);
}

.bottom-cta__text {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(255, 248, 240, 0.7);
}

.bottom-cta__action { margin-top: 2rem; }

@media (min-width: 640px) {
  .bottom-cta__card { padding: 4rem 3rem; }
  .bottom-cta__title { font-size: 2.25rem; }
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--foreground);
  color: var(--background);
}

.footer__inner { padding: 3rem 0; }

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer__name { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; }
.footer__tagline { margin-top: 0.5rem; max-width: 20rem; font-size: 0.875rem; color: rgba(255,248,240,0.7); }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) { .footer__links { flex-direction: row; gap: 2rem; } }

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,248,240,0.7);
  transition: color 0.15s;
}

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

.footer__copy {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,248,240,0.2);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,248,240,0.5);
}

/* Legal pages */
.legal-page { padding: 4rem 0; max-width: 48rem; margin: 0 auto; }
.legal-page h1 { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; }
.legal-page__date { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.legal-page__content { margin-top: 2rem; }
.legal-page__content section { margin-bottom: 1.5rem; }
.legal-page__content h2 { font-size: 1.25rem; font-weight: 600; }
.legal-page__content p { margin-top: 0.5rem; line-height: 1.625; color: var(--muted); }
.legal-page__back { margin-top: 2rem; }
.legal-page__back a { font-size: 0.875rem; font-weight: 500; color: var(--primary); }

/* ========== PHOTOBOOTH ========== */
.booth { width: 100%; }

.booth__grid {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 640px) { .booth__grid { gap: 1rem; } }

@media (max-width: 1023px) {
  .booth__grid {
    grid-template-columns: minmax(0, 1fr) min(38vw, 148px);
    grid-template-rows: auto minmax(280px, auto);
  }

  .booth__templates {
    order: unset;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .booth__camera {
    order: unset;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .booth__preview {
    order: unset;
    grid-column: 2;
    grid-row: 2;
    height: 100%;
  }

  .booth__templates .booth__side-col {
    max-width: none;
    margin: 0;
  }

  .booth__preview .booth__side-col {
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .booth__preview .booth__col-header {
    display: none;
  }

  .booth__templates .booth__col-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 0;
    margin-bottom: 0.375rem;
  }

  .booth__templates .booth__col-sublabel {
    display: none;
  }

  .booth__camera .booth__col-header {
    min-height: 0;
    margin-bottom: 0.25rem;
  }

  .booth__camera-sublabel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .booth__camera-frame {
    min-height: 280px;
    height: 100%;
  }

  .booth__camera-aspect {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
  }

  .booth__strip {
    max-height: none;
    height: 100%;
    min-height: 280px;
    padding: 0.25rem;
  }
}

@media (min-width: 1024px) {
  .booth__grid {
    grid-template-columns: 1fr minmax(320px, 1.5fr) 1fr;
    gap: 2rem;
  }
}

.booth__col-label {
  margin-bottom: 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.booth__col-sublabel {
  margin-bottom: 0;
  font-size: 10px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  text-align: center;
}

@media (min-width: 1024px) {
  .booth__col-sublabel {
    text-align: left;
  }
}

/* Template picker */
.booth__templates { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .booth__templates { order: 1; } }

.booth__col-header {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  min-height: 2.625rem;
}

.booth__col-sublabel--spacer {
  visibility: hidden;
  user-select: none;
}

.booth__side-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

@media (min-width: 640px) { .booth__side-col { max-width: 240px; } }

@media (min-width: 1024px) {
  .booth__side-col {
    width: 220px;
    margin-left: auto;
    margin-right: 0;
  }
}

.template-desktop {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,0.5);
}

@media (min-width: 1024px) {
  .booth__col-body {
    flex: 1;
    min-height: 520px;
  }

  .template-desktop {
    display: flex;
    min-height: 520px;
    max-height: 520px;
  }
}

.template-desktop__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

.template-desktop__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.template-desktop__footer {
  flex-shrink: 0;
  padding: 0.625rem;
  border-top: 1px solid var(--border);
  background: rgba(255,248,240,0.6);
}

.template-mobile { display: block; }
@media (min-width: 1024px) { .template-mobile { display: none; } }

.template-mobile__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.template-mobile__more-inline {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--background);
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

@media (min-width: 1024px) {
  .template-mobile__more-inline { display: none; }
}

.template-mobile__more-inline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.template-mobile__scroll {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.125rem 0.25rem 0.25rem;
  scrollbar-width: none;
}

.template-mobile__scroll::-webkit-scrollbar { display: none; }

.template-btn { transition: transform 0.15s; }
.template-btn:hover { transform: scale(1.05); }

.template-btn--desktop { width: 112px; }
.template-btn--mobile {
  flex-shrink: 0;
  width: 88px;
  scroll-snap-align: start;
}

@media (min-width: 640px) { .template-btn--mobile { width: 96px; } }

.template-btn--mobile.is-selected .template-btn__inner {
  box-shadow: 0 0 0 2px var(--primary);
}

.template-btn--mobile:not(.is-selected) { opacity: 0.85; }

.template-btn__inner {
  position: relative;
  padding: 2px;
  border-radius: 0.5rem;
}

.template-btn__inner.is-selected {
  box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px var(--card);
}

.template-btn__inner img { width: 100%; height: auto; border-radius: 0.375rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

.template-btn__check {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.template-btn__name {
  display: block;
  margin-top: 0.25rem;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-more-btn {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--background);
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.template-more-btn:hover { border-color: var(--primary); color: var(--primary); }

.template-mobile .template-more-btn {
  margin-top: 0.625rem;
  padding: 0.625rem;
  font-size: 0.875rem;
}

@media (max-width: 639px) {
  .template-mobile .template-more-btn { display: none; }
}

/* Camera panel */
.booth__camera { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .booth__camera { order: 2; } }

.booth__camera-label { text-align: center; }
.booth__camera-sublabel { text-align: center; }
@media (min-width: 1024px) {
  .booth__camera-label { text-align: left; }
  .booth__camera-sublabel { text-align: left; }
}

.booth__camera-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 1rem;
  background: #000;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.booth__camera-aspect {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}

@media (min-width: 1024px) {
  .booth__camera-frame { min-height: 520px; }
  .booth__camera-aspect {
    aspect-ratio: auto;
    height: 100%;
    min-height: 520px;
  }
}

.booth__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.booth__video.is-hidden { visibility: hidden; }

.booth__camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.booth__camera-overlay[hidden] { display: none; }

.booth__camera-overlay--idle,
.booth__camera-overlay--closed {
  background: rgba(44, 24, 16, 0.9);
  color: rgba(255, 248, 240, 0.7);
  font-size: 0.875rem;
}

.booth__camera-overlay--loading {
  background: rgba(44, 24, 16, 0.9);
  color: rgba(255, 248, 240, 0.7);
}

.booth__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border: 2px solid rgba(255,248,240,0.3);
  border-top-color: var(--accent);
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.booth__countdown-num {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  color: #fff;
  animation: pulse 1s ease-in-out infinite;
}

@media (min-width: 640px) { .booth__countdown-num { font-size: 8rem; } }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.booth__countdown-overlay {
  background: rgba(0,0,0,0.4);
}

.booth__countdown-shot {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.booth__flash { background: #fff; }

.booth__actions-overlay {
  background: rgba(0,0,0,0.35);
  z-index: 10;
}

.booth__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.booth__actions .btn {
  width: 100%;
  min-width: 0;
  max-width: 240px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

@media (min-width: 640px) {
  .booth__actions .btn {
    width: auto;
    min-width: 200px;
    max-width: none;
  }
}

.booth__actions .btn--secondary.btn--white {
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.95);
}

.booth__guide-frame {
  position: absolute;
  inset: 1rem;
  border: 2px dashed rgba(255,255,255,0.35);
  border-radius: 0.75rem;
  pointer-events: none;
}

.booth__guide-frame[hidden] { display: none; }

.booth__rec-dot {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}

.booth__rec-dot[hidden] { display: none; }

.booth__rec-dot-inner {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.9);
}

.booth__close-btn {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}

.booth__close-btn:hover { background: rgba(0,0,0,0.7); }
.booth__close-btn[hidden] { display: none; }

/* Strip preview */
.booth__preview { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .booth__preview { order: 3; } }

@media (min-width: 1024px) {
  .booth__preview .booth__side-col {
    margin-left: 0;
    margin-right: auto;
  }
}

.booth__strip {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  max-height: 520px;
}

@media (min-width: 1024px) {
  .booth__strip.booth__col-body {
    min-height: 520px;
  }
}

.booth__strip-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 2px;
}

@media (min-width: 640px) { .booth__strip-content { gap: 4px; } }

.strip-panel {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 2px;
}

.strip-panel img { width: 100%; height: 100%; object-fit: cover; }

.strip-panel--empty,
.strip-panel--waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed;
}

.strip-placeholder-icon { width: 1.25rem; height: 1.25rem; opacity: 0.3; }
.strip-panel__num { font-family: monospace; font-size: 9px; opacity: 0.4; margin-top: 2px; }
.strip-ready { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; animation: pulse 1s ease-in-out infinite; }

.strip-final { width: 100%; height: 100%; border-radius: 0.375rem; object-fit: contain; }

.strip-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
}

.strip-svg svg,
.strip-svg__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.booth__sprockets {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  padding: 0.75rem 0;
}

.booth__sprockets--left { left: -4px; }
.booth__sprockets--right { right: -4px; }

.booth__sprockets[hidden] { display: none; }

.booth__sprocket-hole {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255,248,240,0.25);
}

/* Seat count control */
.seat-control {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  border-top: 1px solid rgba(232,213,196,0.33);
}

.seat-control[hidden] { display: none; }

.seat-control__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  max-width: 64px;
  width: 100%;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: filter 0.15s, transform 0.1s;
}

.seat-control__btn:hover:not(:disabled) { filter: brightness(1.1); }
.seat-control__btn:active:not(:disabled) { transform: scale(0.95); }
.seat-control__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.seat-control__btn--plus { justify-self: end; }

@media (max-width: 1023px) {
  .seat-control {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    gap: 0.125rem;
  }

  .seat-control__btn {
    height: 2rem;
    max-width: 52px;
    font-size: 1rem;
  }

  .seat-control__count {
    font-size: 0.75rem;
  }
}

/* Template gallery dialog */
.gallery-dialog {
  width: 100%;
  max-width: none;
  max-height: min(88vh, 720px);
  margin: auto 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  background: var(--background);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
}

@media (min-width: 640px) {
  .gallery-dialog {
    width: min(640px, 92vw);
    max-height: 85vh;
    margin: auto;
    border-radius: 1rem;
    border-bottom: 1px solid var(--border);
  }
}

.gallery-dialog::backdrop { background: rgba(44, 24, 16, 0.4); }

.gallery-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.gallery-dialog__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.gallery-dialog__close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.gallery-dialog__close:hover {
  background: rgba(232,213,196,0.5);
  color: var(--foreground);
}

.gallery-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.gallery-tab {
  flex-shrink: 0;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.gallery-tab:hover { background: rgba(232,93,76,0.1); color: var(--primary); }
.gallery-tab.is-active { background: var(--primary); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  max-height: calc(min(88vh, 720px) - 132px);
  overflow-y: auto;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    max-height: calc(85vh - 140px);
  }
}

.gallery-item {
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: transform 0.15s, background 0.15s;
}

.gallery-item:hover { transform: scale(1.05); background: var(--card); }
.gallery-item.is-selected { box-shadow: 0 0 0 2px var(--primary); }

.gallery-item img {
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gallery-item span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .features, .how-it-works, .use-cases, .faq, .bottom-cta { padding: 6rem 0; }
}
