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

:root {
  /* Primary — Olive / Dark Gold (matches app AppColors.primary) */
  --color-primary: #8B7E56;
  --color-primary-dark: #6E6544;
  --color-primary-light: #A69A74;
  --color-primary-subtle: #E8E2D9;
  /* Accent — Gold (badges, stars, premium) */
  --color-accent: #D4A843;
  --color-accent-muted: #D4A843;
  /* Backgrounds — Warm cream / beige (matches app) */
  --color-bg: #EAE5DC;
  --color-bg-gradient-top: #EDE8E0;
  --color-bg-gradient-bottom: #E7E2DA;
  /* Surface — Light warm white */
  --color-surface: #F2EDE5;
  --color-surface-warm: #E5E0D8;
  /* Text */
  --color-text: #2D2D2D;
  --color-text-secondary: #8A857D;
  --color-text-muted: #B5B0A8;
  /* Borders */
  --color-border: #DDD8CE;
  --color-border-light: #E8E3DB;
  /* Semantic */
  --color-success: #7B9B6F;
  --color-error: #D05050;
  --color-danger: #D05050;
  --color-danger-bg: #fff3cd;
  --color-danger-border: #ffc107;
  /* Radii (matches app AppRadius) */
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-primary-dark);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(234, 229, 220, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 22%;
}

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

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-store-badge {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary,
.nav-links .btn-primary {
  background: var(--color-primary);
  color: #fff !important;
}

.btn-primary:hover,
.nav-links .btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-pill);
}

/* Image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.showcase-card img,
.hero-photo img,
.feature-visual img,
.builder-visual img,
.step-image img,
.style-card img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ═══════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════ */

.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero-cta {
  margin-bottom: 40px;
}

/* Before/After comparison */
.hero-visual {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.hero-photo {
  flex: 1;
  max-width: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44, 40, 32, 0.12);
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.hero-photo-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(234, 229, 220, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.hero-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-garment {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(44, 40, 32, 0.15);
  border: 2px solid var(--color-primary);
  background: var(--color-surface);
}

.hero-garment img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-arrow-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════
   Showcase Gallery (auto-scrolling)
   ═══════════════════════════════════════════════ */

.showcase {
  padding: 40px 0 50px;
  overflow: hidden;
}

.showcase-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.showcase-row {
  display: flex;
  gap: 10px;
  width: max-content;
}

.showcase-row-top {
  transform: rotate(-1.5deg);
  margin-bottom: 10px;
  animation: scroll-left 40s linear infinite;
}

.showcase-row-bottom {
  transform: rotate(1.5deg);
  animation: scroll-right 40s linear infinite;
}

@keyframes scroll-left {
  0% { transform: rotate(-1.5deg) translateX(0); }
  100% { transform: rotate(-1.5deg) translateX(-33.333%); }
}

@keyframes scroll-right {
  0% { transform: rotate(1.5deg) translateX(-33.333%); }
  100% { transform: rotate(1.5deg) translateX(0); }
}

.showcase-card {
  width: 140px;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(44, 40, 32, 0.08);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════
   Style Exploration Section
   ═══════════════════════════════════════════════ */

.styles-section {
  padding: 60px 0;
}

.styles-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.styles-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.styles-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.style-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  box-shadow: 0 4px 16px rgba(44, 40, 32, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44, 40, 32, 0.14);
}

.style-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   Features Section
   ═══════════════════════════════════════════════ */

.features {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.feature-visual {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  gap: 6px;
  align-items: stretch;
  min-height: 200px;
}

.feature-visual img {
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.feature-visual-single {
  flex: 1;
}

.feature-visual-single img {
  width: 100%;
  height: 100%;
}

/* Builder visual: before + garments + after */
.builder-visual {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-height: 200px;
}

.builder-before,
.builder-after {
  flex: 2;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.builder-before img,
.builder-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-garments {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.builder-garment {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44, 40, 32, 0.08);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.builder-garment img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.builder-plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.builder-arrow {
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Extra features grid (small cards) */
.extra-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.extra-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.extra-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.extra-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.extra-feature p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════
   How it Works
   ═══════════════════════════════════════════════ */

.how-it-works {
  padding: 60px 0;
}

.steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.step-image {
  width: 120px;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: 0 2px 12px rgba(44, 40, 32, 0.08);
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════
   Social Proof
   ═══════════════════════════════════════════════ */

.social-proof {
  padding: 60px 0;
}

.rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.rating-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-stars {
  color: var(--color-accent);
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.rating-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.review-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-verified {
  font-size: 0.75rem;
  color: var(--color-success);
  font-weight: 500;
}

.review-stars {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.metric-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.metric-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-primary-subtle);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  width: fit-content;
}

.metric-badge-icon {
  font-size: 1.2rem;
}

.metric-badge-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════
   About
   ═══════════════════════════════════════════════ */

.about {
  padding: 60px 0;
}

.about h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.about p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════
   Download
   ═══════════════════════════════════════════════ */

.download {
  padding: 80px 0;
  text-align: center;
  background: var(--color-primary-subtle);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.download h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badges a {
  transition: opacity 0.2s, transform 0.1s;
}

.store-badges a:hover {
  opacity: 0.85;
}

.store-badges a:active {
  transform: scale(0.97);
}

.store-badge img {
  height: 60px;
  width: auto;
  display: block;
}

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */

footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* ═══════════════════════════════════════════════
   Legal pages
   ═══════════════════════════════════════════════ */

.legal {
  padding: 48px 0 64px;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.legal h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.legal h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.legal p,
.legal li {
  margin-bottom: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal a {
  color: var(--color-primary-dark);
}

.legal strong {
  color: var(--color-text);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  color: var(--color-text-secondary);
}

.legal th {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}

/* Warning / info boxes */
.warning {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

.warning p {
  color: var(--color-text);
  margin-bottom: 0;
}

.info-box {
  background: #e8f4fd;
  border: 1px solid #b3d9f2;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

.info-box p {
  color: var(--color-text);
  margin-bottom: 0;
}

/* Support page */
.support {
  padding: 48px 0 64px;
  max-width: 720px;
  margin: 0 auto;
}

.support h1 {
  margin-bottom: 8px;
}

.support .subtitle {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.support h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.support h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.support p,
.support li {
  margin-bottom: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.support ul {
  padding-left: 24px;
}

.support a {
  color: var(--color-primary-dark);
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}

.contact-card p {
  margin-bottom: 8px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* Delete account page */
.delete-account {
  padding: 48px 0 64px;
  max-width: 720px;
  margin: 0 auto;
}

.delete-account h1 {
  margin-bottom: 16px;
}

.delete-account p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.delete-account h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.delete-account ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.delete-account li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.delete-account a {
  color: var(--color-primary-dark);
}

/* 404 */
.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found h1 {
  font-size: 4rem;
  margin-bottom: 8px;
}

.not-found p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

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

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    flex-direction: column;
    gap: 16px;
  }

  .hero-photo {
    max-width: 200px;
  }

  .hero-arrow {
    flex-direction: row;
    gap: 12px;
  }

  .hero-garment {
    width: 60px;
    height: 80px;
  }

  .builder-visual {
    min-height: 160px;
  }

  .extra-features {
    grid-template-columns: 1fr;
  }

  .rating-badge {
    flex-direction: column;
    gap: 8px;
  }

  .rating-info {
    align-items: center;
  }

  .styles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  #nav-download {
    display: none;
  }

  .nav-store-badge {
    display: flex !important;
  }

  .nav-store-badge img {
    height: 36px;
    width: auto;
    display: block;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .showcase-card {
    width: 110px;
    height: 160px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-image {
    width: 100px;
    height: 130px;
  }

  .feature-visual,
  .builder-visual {
    min-height: 150px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .legal,
  .support,
  .delete-account {
    padding: 32px 0 48px;
  }

  .legal table {
    font-size: 0.8rem;
  }

  .legal th,
  .legal td {
    padding: 8px 10px;
  }

  .download {
    padding: 50px 0;
  }

  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .style-card-label {
    font-size: 0.72rem;
    padding: 16px 6px 8px;
  }

  .metric-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════
   Share Demo Section
   ═══════════════════════════════════════════════ */

.share-demo {
  padding: 60px 0;
}

.share-demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Phone mockup */
.phone-mockup {
  width: 260px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.phone-mockup[data-phase] {
  opacity: 1;
  transform: scale(1);
}

.phone-bezel {
  background: #1C1C1E;
  border-radius: 32px;
  padding: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1C1C1E;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 0.48;
  background: #fff;
}

/* Shopping UI */
.shopping-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.shopping-ui.active {
  opacity: 1;
}

.shopping-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 44px 12px 8px;
}

.share-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: default;
  transition: all 0.3s ease;
}

.share-icon-btn.highlighted {
  background: rgba(139, 126, 86, 0.15);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.shopping-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  overflow: hidden;
}

.shopping-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.shopping-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px 16px;
}

.shopping-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.shopping-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

/* Outfii UI */
.outfii-ui {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.outfii-ui.active {
  opacity: 1;
}

.outfii-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outfii-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.outfii-after.visible {
  opacity: 1;
}

.shimmer-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  background: linear-gradient(
    110deg,
    rgba(229, 224, 216, 0.1) 0%,
    rgba(229, 224, 216, 0.1) 40%,
    rgba(242, 237, 229, 0.5) 50%,
    rgba(229, 224, 216, 0.1) 60%,
    rgba(229, 224, 216, 0.1) 100%
  );
  background-size: 200% 100%;
  pointer-events: none;
}

.shimmer-overlay.active {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.garment-card-mini {
  position: absolute;
  right: 8px;
  bottom: 50px;
  width: 52px;
  height: 68px;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  border: 0.5px solid var(--color-border-light);
  overflow: hidden;
  z-index: 4;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.outfii-ui.active .garment-card-mini {
  opacity: 1;
  transform: scale(1);
}

.garment-card-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.status-pill.active {
  opacity: 1;
}

.pill-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.pill-spinner.done {
  border: none;
  animation: none;
  background: var(--color-success);
  position: relative;
}

.pill-spinner.done::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1.5px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

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

#pillText {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
}

.status-pill.done #pillText {
  color: var(--color-success);
}

/* Share sheet */
.share-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #F2F2F7;
  border-radius: 16px 16px 0 0;
  padding: 12px 0 20px;
  z-index: 6;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.share-sheet.active {
  transform: translateY(0);
}

.share-sheet-handle {
  width: 36px;
  height: 4px;
  background: #C7C7CC;
  border-radius: 2px;
  margin: 0 auto 14px;
}

.share-sheet-apps {
  display: flex;
  justify-content: space-evenly;
  padding: 0 8px;
}

.share-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.share-app span {
  font-size: 9px;
  color: #8E8E93;
}

.share-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-app-outfii-icon {
  background: transparent;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 8px rgba(139, 126, 86, 0.3);
  overflow: hidden;
  padding: 0;
}

.share-app-outfii-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.share-app-outfii span {
  color: var(--color-primary);
  font-weight: 600;
}

.share-app-outfii.glow .share-app-outfii-icon {
  box-shadow: 0 0 12px rgba(139, 126, 86, 0.5);
}

/* Tap indicators */
.tap-indicator {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 126, 86, 0.25);
  border: 2px solid rgba(139, 126, 86, 0.5);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
}

.tap-indicator.active {
  opacity: 1;
  animation: pulse-tap 0.6s ease-in-out infinite alternate;
}

.tap-share {
  top: 50px;
  right: 16px;
}

.tap-outfii {
  bottom: 56px;
  left: 50%;
  transform: translateX(8px);
}

@keyframes pulse-tap {
  from { transform: scale(0.8); opacity: 0.6; }
  to { transform: scale(1.2); opacity: 1; }
}

.tap-outfii.active {
  animation: pulse-tap-outfii 0.6s ease-in-out infinite alternate;
}

@keyframes pulse-tap-outfii {
  from { transform: translateX(8px) scale(0.8); opacity: 0.6; }
  to { transform: translateX(8px) scale(1.2); opacity: 1; }
}

/* Feature pills */
.share-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.share-pills.active {
  opacity: 1;
  transform: translateY(0);
}

.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.share-pill svg {
  flex-shrink: 0;
  color: var(--color-primary);
  stroke: var(--color-primary);
}

/* Responsive for share demo */
@media (max-width: 640px) {
  .phone-mockup {
    width: 220px;
  }

  .share-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* ═══════════════════════════════════════════════
   Quick Answer Block
   ═══════════════════════════════════════════════ */

.quick-answer {
  padding: 56px 0 0;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.answer-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.answer-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.answer-block h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.answer-block p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .answer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .answer-block {
    padding: 22px 20px;
  }
}

/* ═══════════════════════════════════════════════
   FAQ Section
   ═══════════════════════════════════════════════ */

.faq-section {
  padding: 60px 0;
}

.faq-card {
  max-width: 720px;
  margin: 36px auto 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 18px 28px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: var(--color-primary-subtle);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  flex-shrink: 0;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238B7E56' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 2v10M2 7h10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease, background-image 0.2s ease;
}

.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238B7E56' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 7h10'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

.faq-item[open] summary {
  background: var(--color-primary-subtle);
}

.faq-answer {
  padding: 0 28px 20px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

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

.faq-answer a:hover {
  color: var(--color-primary-dark);
}

@media (max-width: 640px) {
  .faq-card {
    margin-top: 28px;
    border-radius: var(--radius-md);
  }

  .faq-item summary {
    padding: 16px 20px;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 20px 16px;
    font-size: 0.9rem;
  }
}

/* Footer updated */
.footer-updated {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Pause animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .showcase-row-top,
  .showcase-row-bottom {
    animation: none;
  }

  .shimmer-overlay.active {
    animation: none;
  }

  .tap-indicator.active,
  .tap-outfii.active {
    animation: none;
    opacity: 1;
  }
}
