/* ==========================================================================
   Unpile Website - Redesigned
   Premium, editorial aesthetic for thrift resellers
   ========================================================================== */

/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  /* Brand Colors - Wine Palette */
  --wine: #BE123C;
  --wine-dark: #9F1239;
  --wine-light: #F43F5E;
  --rose: #FDA4AF;
  --rose-light: #FFE4E6;

  /* Functional Colors */
  --success: #22C55E;
  --success-dark: #16A34A;
  --error: #EF4444;

  /* Backgrounds */
  --bg-primary: #FAFAFA;
  --bg-secondary: #F5F5F5;
  --bg-tertiary: #EFEFEF;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1A1A;
  --bg-darker: #0F0F0F;

  /* Text Colors */
  --text-primary: #3D3229;
  --text-secondary: #8B7E74;
  --text-tertiary: #A89F97;
  --text-muted: #C4BDB5;
  --text-inverse: #FFFFFF;

  /* Dividers & Borders */
  --divider: #E8E4E0;
  --border: #D4CFC8;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(61, 50, 41, 0.04);
  --shadow-md: 0 4px 12px rgba(61, 50, 41, 0.08);
  --shadow-lg: 0 8px 24px rgba(61, 50, 41, 0.12);
  --shadow-xl: 0 16px 48px rgba(61, 50, 41, 0.16);
  --shadow-wine: 0 8px 24px rgba(190, 18, 60, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
  --container-content: 720px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Safe area support for notched phones */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent pull-to-refresh on mobile */
  overscroll-behavior-y: contain;
}

/* Native iOS feel for touch interactions */
a, button, label[role="button"], .btn, .nav-toggle, .feature-card, .platform-badge {
  touch-action: manipulation;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.375rem;
  }
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Links
   ========================================================================== */
a {
  color: var(--wine);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--wine-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.container-content {
  max-width: var(--container-content);
}

.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wine);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo:hover {
  color: var(--wine-dark);
  text-decoration: none;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav a:hover {
  color: var(--wine);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--wine);
  color: var(--text-inverse) !important;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-wine);
}

/* Mobile Nav Toggle (Checkbox Hack) */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger to X animation */
.nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-white);
  padding: calc(72px + env(safe-area-inset-top)) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-toggle-checkbox:checked ~ .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-link,
.mobile-nav-link-direct {
  display: block;
  cursor: pointer;
}

.mobile-nav-link a,
.mobile-nav-link-direct {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-4);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast), color var(--transition-fast);
  min-height: 48px;
}

.mobile-nav-link:hover a,
.mobile-nav-link a:focus,
.mobile-nav-link-direct:hover,
.mobile-nav-link-direct:focus {
  background: var(--rose-light);
  color: var(--wine);
  text-decoration: none;
}

.mobile-nav-cta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  min-height: 48px;
}

.mobile-nav-cta img.mobile-app-badge {
  height: 44px;
  width: auto;
}

/* Mobile Nav Overlay - clickable label to close menu */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  cursor: pointer;
}

.nav-toggle-checkbox:checked ~ .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--wine);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--wine-dark);
  box-shadow: var(--shadow-wine);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 2px solid var(--divider);
}

.btn-secondary:hover {
  border-color: var(--wine);
  color: var(--wine);
  background: var(--rose-light);
}

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

.btn-dark:hover {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: 1.125rem;
  border-radius: var(--radius-2xl);
}

.btn-icon {
  width: 24px;
  height: 24px;
}

/* App Store Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--text-primary);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.app-store-btn:hover {
  background: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
  text-decoration: none;
}

.app-store-btn svg {
  width: 28px;
  height: 28px;
}

.app-store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-store-btn .small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
}

.app-store-btn .large {
  font-size: 1.125rem;
  font-weight: 600;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--divider);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body {
  padding: var(--space-8);
}

/* Feature Card */
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--divider);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--rose);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-wine);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-inverse);
}

.feature-card h3 {
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================================================
   Platform Badges
   ========================================================================== */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.platform-badge:hover {
  border-color: var(--wine);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.platform-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Platform Colors */
.platform-depop .dot { background: #FF2300; }
.platform-ebay .dot { background: #0064D2; }
.platform-poshmark .dot { background: #7F0353; }
.platform-grailed .dot { background: #000000; }
.platform-vinted .dot { background: #09B1BA; }
.platform-mercari .dot { background: #4DC5C9; }
.platform-vestiaire .dot { background: #1A1A1A; }
.platform-goat .dot { background: #000000; }

/* ==========================================================================
   App Mockups
   ========================================================================== */
.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: var(--bg-dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .phone-frame {
    width: 320px;
    height: 660px;
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-dark);
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

/* Scanner View Mockup - Realistic App Design */
.scanner-screen {
  background: #0A0A0B !important;
}

.scanner-mockup {
  width: 100%;
  height: 100%;
  background: #0A0A0B;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Scanner Top Bar */
.scanner-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px var(--space-4) var(--space-3);
  position: relative;
  z-index: 10;
}

.scanner-icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  position: relative;
}

.scanner-bucket-btn {
  position: relative;
}

.bucket-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--wine);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.scanner-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 3px;
}

.mode-option {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-option.mode-active {
  background: var(--wine);
  color: #fff;
}

/* Scanner Viewfinder */
.scanner-viewfinder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  position: relative;
}

.scanner-capture-frame {
  width: 85%;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  position: relative;
  background: transparent;
}

/* Corner accents for the capture frame */
.scanner-capture-frame::before,
.scanner-capture-frame::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
}

.scanner-capture-frame::before {
  top: -2px;
  left: -2px;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  border-radius: 12px 0 0 0;
}

.scanner-capture-frame::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 4px solid #fff;
  border-right: 4px solid #fff;
  border-radius: 0 0 12px 0;
}

/* Additional corner accents using pseudo-elements on the viewfinder */
.scanner-viewfinder::before,
.scanner-viewfinder::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.scanner-viewfinder::before {
  top: calc(50% - 42.5% - 2px);
  right: calc(50% - 42.5% - 2px);
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  border-radius: 0 12px 0 0;
}

.scanner-viewfinder::after {
  bottom: calc(50% - 42.5% - 2px);
  left: calc(50% - 42.5% - 2px);
  border-bottom: 4px solid #fff;
  border-left: 4px solid #fff;
  border-radius: 0 0 0 12px;
}

/* Scanner Bottom Controls */
.scanner-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8) var(--space-10);
  background: transparent;
}

.scanner-control-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.scanner-analyze-btn {
  width: auto;
  padding: 0 12px;
  gap: 4px;
  flex-direction: column;
}

.scanner-analyze-btn svg {
  color: #FFD700;
}

.analyze-text {
  font-size: 0.5rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

.scanner-shutter-btn {
  width: 72px;
  height: 72px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shutter-inner {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 3px solid #0A0A0B;
  border-radius: 50%;
}

/* Result Card Mockup */
.result-mockup {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  padding: 40px var(--space-4) var(--space-4);
}

.result-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.result-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #E8E4E0 0%, #D4CFC8 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.result-details {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  border: 1px solid var(--divider);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--divider);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.result-price {
  color: var(--success);
}

.result-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--rose-light);
  color: var(--wine);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Keyboard Mockup */
.keyboard-mockup {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

.keyboard-app-preview {
  flex: 1;
  padding: 40px var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
}

.keyboard-app-header {
  height: 44px;
  background: var(--wine);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.keyboard-textarea {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.5;
  border: 1px solid var(--divider);
}

.keyboard-textarea .typed {
  color: var(--text-primary);
}

.keyboard-textarea .cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--wine);
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.keyboard-extension {
  background: var(--bg-tertiary);
  padding: var(--space-3);
  border-top: 1px solid var(--divider);
}

.keyboard-items {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.keyboard-item {
  flex-shrink: 0;
  width: 100px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  border: 2px solid var(--wine);
  text-align: center;
}

.keyboard-item-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
}

.keyboard-item-title {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.keyboard-bar {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.keyboard-key {
  flex: 1;
  height: 36px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
}

.keyboard-key.space {
  flex: 4;
}

/* ==========================================================================
   VibeCard Mockup (Item Details)
   ========================================================================== */
.vibecard-mockup {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  padding: 44px 12px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* Scroll indicator at bottom */
.vibecard-scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}

/* Section Labels */
.vibecard-section-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}

/* Condition Selector */
.vibecard-condition-section {
  margin-bottom: 4px;
}

.vibecard-condition-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.vibecard-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vibecard-chip:hover {
  border-color: var(--wine);
}

.vibecard-chip-active {
  background: var(--rose-light);
  border-color: var(--wine);
}

.vibecard-chip-custom {
  border-style: dashed;
}

.vibecard-chip-icon {
  font-size: 1rem;
  margin-bottom: 2px;
}

.vibecard-chip-text {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.vibecard-chip-active .vibecard-chip-text {
  color: var(--wine);
}

.vibecard-chip-sub {
  font-size: 0.5rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.vibecard-chip-active .vibecard-chip-sub {
  color: var(--wine-dark);
}

/* Hero Valuation Block */
.vibecard-valuation {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.vibecard-valuation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vibecard-trending-icon {
  width: 14px;
  height: 14px;
  stroke: #059669;
}

.vibecard-big-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #059669;
  line-height: 1;
  margin-bottom: 4px;
}

.vibecard-price-range {
  font-size: 0.75rem;
  font-weight: 600;
  color: #065F46;
}

.vibecard-comps {
  font-size: 0.625rem;
  color: #047857;
  margin-top: 4px;
}

/* Item Identity Grid */
.vibecard-identity {
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 12px;
}

.vibecard-identity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vibecard-regenerate-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--rose-light);
  border-radius: 20px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--wine);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vibecard-regenerate-btn:hover {
  background: var(--wine);
  color: white;
}

.vibecard-regenerate-btn svg {
  stroke: currentColor;
}

.vibecard-identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vibecard-identity-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vibecard-identity-label {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vibecard-identity-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 6px 8px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid transparent;
}

/* Platform Dropdown */
.vibecard-platform {
  display: flex;
  justify-content: flex-start;
}

.vibecard-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #FF2300;
  border-radius: 20px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.vibecard-platform-icon {
  font-size: 0.875rem;
}

.vibecard-platform-name {
  color: white;
}

.vibecard-platform-arrow {
  font-size: 0.5rem;
  opacity: 0.8;
}

/* Description Section */
.vibecard-description {
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 12px;
}

.vibecard-description-text {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Tags Section */
.vibecard-tags {
  margin-bottom: 4px;
}

.vibecard-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vibecard-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 600;
}

.tag-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.tag-purple {
  background: #F3E8FF;
  color: #7C3AED;
}

.tag-amber {
  background: #FEF3C7;
  color: #92400E;
}

.tag-green {
  background: #DCFCE7;
  color: #166534;
}

.tag-pink {
  background: #FCE7F3;
  color: #9D174D;
}

/* Copy Buttons */
.vibecard-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-bottom: 20px;
}

.vibecard-copy-btn {
  padding: 10px 16px;
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.vibecard-copy-btn:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.vibecard-copy-primary {
  background: #FF2300;
  border-color: #FF2300;
  color: white;
}

.vibecard-copy-primary:hover {
  background: #E02000;
  border-color: #E02000;
  color: white;
}

.vibecard-copy-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* ==========================================================================
   Magic Keyboard Mockup (Full Access Version)
   ========================================================================== */
.magic-keyboard-mockup {
  width: 100%;
  height: 100%;
  background: #F2F2F7;
  display: flex;
  flex-direction: column;
}

/* App Area */
.mk-app-area {
  flex: 1;
  padding: 44px 12px 12px;
  display: flex;
  flex-direction: column;
}

.mk-app-header {
  height: 44px;
  background: #FF2300;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.mk-app-title {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

.mk-textarea {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-primary);
  border: 1px solid var(--divider);
  overflow: hidden;
}

.mk-typed {
  color: var(--text-primary);
}

.mk-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: var(--wine);
  animation: blink 1s infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

/* Keyboard Extension */
.mk-keyboard {
  background: #E5E5EA;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Header Row */
.mk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mk-platform-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #FF2300;
  border-radius: 14px;
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
}

.mk-platform-icon {
  font-size: 0.75rem;
}

.mk-dropdown {
  font-size: 0.5rem;
  opacity: 0.7;
}

.mk-platform-active {
  box-shadow: 0 2px 8px rgba(255, 35, 0, 0.3);
}

.mk-templates-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(255, 35, 0, 0.1);
  border-radius: 14px;
  font-size: 0.625rem;
  font-weight: 600;
  color: #FF2300;
}

/* Items Carousel */
.mk-items-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.mk-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mk-item-thumb {
  width: 44px;
  height: 44px;
  background: rgba(255, 35, 0, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.mk-item-selected .mk-item-thumb {
  border-color: #FF2300;
  border-width: 2px;
}

.mk-item-abbr {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FF2300;
}

.mk-item-price {
  font-size: 0.5625rem;
  font-weight: 700;
  color: white;
  background: #FF2300;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Magic Buttons */
.mk-magic-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mk-magic-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  background: #D1D1D6;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mk-magic-active {
  background: rgba(255, 35, 0, 0.15);
}

.mk-magic-icon {
  font-size: 0.875rem;
}

.mk-magic-active .mk-magic-icon {
  color: #FF2300;
}

.mk-magic-label {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mk-magic-active .mk-magic-label {
  color: #FF2300;
}

/* Selected Item Indicator */
.mk-selected-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
}

.mk-indicator-dot {
  width: 6px;
  height: 6px;
  background: #FF2300;
  border-radius: 50%;
}

.mk-indicator-text {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Bottom Bar */
.mk-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  background: #D1D1D6;
  border-radius: 8px;
}

.mk-globe-btn,
.mk-delete-btn {
  width: 36px;
  height: 32px;
  background: white;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.mk-branding {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mk-brand-icon {
  width: 16px;
  height: 16px;
  background: var(--wine);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
}

.mk-brand-text {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

/* Hero Section */
.hero {
  display: flex;
  align-items: flex-start;
  padding: 100px 0 var(--space-16);
  padding-top: calc(100px + env(safe-area-inset-top));
  position: relative;
  overflow: visible;
}

/* Mobile: Stack hero content and visual vertically */
.hero > .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Desktop: Full height hero with centered content */
@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    align-items: center;
    padding: 120px 0 var(--space-16);
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(190, 18, 60, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(253, 164, 175, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  max-width: 640px;
  flex-shrink: 0;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--rose-light);
  color: var(--wine);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.375rem;
  }
}

.hero-cta-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* App Store Badge */
.app-store-link {
  display: inline-block;
  transition: var(--transition-fast);
}

.app-store-link:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.app-store-link:active {
  transform: scale(0.98);
}

.app-store-badge {
  height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .app-store-badge {
    height: 54px;
  }
}

.cta-badge .app-store-badge {
  filter: invert(1);
}

/* Hero Visual - Show on all screen sizes */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 0;
  flex-shrink: 0;
}

/* Mobile: Phone mockup needs minimum 260px width for scanner UI elements */
.hero-visual .phone-frame {
  width: 260px;
  height: 540px;
  flex-shrink: 0;
}

.hero-visual .phone-frame .phone-screen {
  border-radius: 30px;
}

.hero-visual .phone-frame .phone-notch {
  width: 100px;
  height: 24px;
}

@media (min-width: 768px) {
  .hero-visual .phone-frame {
    width: 280px;
    height: 580px;
  }

  .hero-visual .phone-frame .phone-screen {
    border-radius: 32px;
  }

  .hero-visual .phone-frame .phone-notch {
    width: 120px;
    height: 28px;
  }
}

@media (min-width: 1024px) {
  .hero > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }

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

  .hero-visual {
    margin-top: 0;
  }

  .hero-visual .phone-frame {
    width: 320px;
    height: 660px;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--rose-light);
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }
}

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

.step-number {
  width: 64px;
  height: 64px;
  background: var(--wine);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-wine);
}

.step h3 {
  margin-bottom: var(--space-3);
}

.step p {
  font-size: 0.9375rem;
}

/* Connector line between steps */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--wine) 0%, var(--rose) 100%);
    opacity: 0.3;
  }
}

/* Platforms Section */
.platforms-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* App Showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
  }

  .showcase.reverse {
    direction: rtl;
  }

  .showcase.reverse > * {
    direction: ltr;
  }
}

.showcase-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-4);
}

.showcase-content p {
  font-size: 1.0625rem;
  margin-bottom: var(--space-6);
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

/* Showcase phone mockups - mobile responsive */
.showcase-visual .phone-frame {
  width: 240px;
  height: 500px;
}

.showcase-visual .phone-frame .phone-screen {
  border-radius: 28px;
}

.showcase-visual .phone-frame .phone-notch {
  width: 100px;
  height: 24px;
}

@media (min-width: 480px) {
  .showcase-visual .phone-frame {
    width: 280px;
    height: 580px;
  }

  .showcase-visual .phone-frame .phone-screen {
    border-radius: 32px;
  }

  .showcase-visual .phone-frame .phone-notch {
    width: 120px;
    height: 28px;
  }
}

@media (min-width: 768px) {
  .showcase-visual .phone-frame {
    width: 320px;
    height: 660px;
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: var(--text-inverse);
  text-align: center;
  padding: var(--space-16) 0;
  border-radius: var(--radius-3xl);
  margin: var(--space-16) var(--space-6);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-section {
    padding: var(--space-24) 0;
    margin: var(--space-24) var(--space-8);
  }
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
  z-index: 0;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto var(--space-8);
}

.cta-section .btn-secondary {
  background: var(--text-inverse);
  color: var(--wine);
  border: none;
}

.cta-section .btn-secondary:hover {
  background: var(--rose-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--rose);
}

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

/* ==========================================================================
   Legal Pages (Privacy, Terms, Support)
   ========================================================================== */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--space-16);
}

.legal-page h1 {
  margin-bottom: var(--space-4);
}

.legal-page .subtitle {
  margin-bottom: var(--space-4);
}

.effective-date,
.last-updated {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: var(--space-8);
}

.highlight-box {
  background: var(--rose-light);
  border-left: 4px solid var(--wine);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-6) 0;
}

.highlight-box p {
  color: var(--text-primary);
  margin: 0;
}

.content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--divider);
}

.content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.content h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.content ul,
.content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: 0.9375rem;
}

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border: 1px solid var(--divider);
}

th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

td {
  color: var(--text-secondary);
}

/* Contact Box */
.contact-info,
.contact-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.contact-info h3,
.contact-box h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.contact-info p,
.contact-box p {
  margin-bottom: var(--space-2);
}

.contact-info p:last-child,
.contact-box p:last-child {
  margin-bottom: 0;
}

/* Service Items */
.service-item {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--divider);
}

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

.service-name {
  color: var(--wine);
  font-weight: 600;
}

/* Info Box */
.info-box {
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.info-box h3:first-child {
  margin-top: 0;
}

.info-box .cta {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider);
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--bg-white);
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--wine);
  transition: transform var(--transition-fast);
}

.faq-item input[type="checkbox"]:checked + .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 500px;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--divider);
}

.faq-answer p {
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Simple Footer for Legal Pages
   ========================================================================== */
.simple-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--divider);
  padding: var(--space-8) 0;
  margin-top: var(--space-16);
}

.simple-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.simple-footer .footer-links {
  display: flex;
  flex-direction: row;
  gap: var(--space-6);
}

.simple-footer .footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

.simple-footer p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
label[role="button"]:focus,
.mobile-nav-link:focus-within {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

/* Keyboard accessibility for nav toggle */
.nav-toggle:focus {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* Focus visible for better keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--wine);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.max-w-content { max-width: var(--container-content); }

.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.bg-white { background: var(--bg-white); }
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }

.text-wine { color: var(--wine); }
.text-success { color: var(--success); }

/* ==========================================================================
   Mobile-First Responsive Enhancements
   ========================================================================== */

/* Ensure minimum touch target size (44px) */
.btn,
.app-store-link,
.nav a,
.footer-links a,
.platform-badge,
.feature-card {
  min-height: 44px;
}

/* Mobile typography improvements */
@media (max-width: 479px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .step-number {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .feature-card {
    padding: var(--space-5);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  .cta-section {
    padding: var(--space-12) var(--space-4);
    margin: var(--space-12) var(--space-4);
    border-radius: var(--radius-2xl);
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Improve footer on small screens */
  .footer-grid {
    gap: var(--space-6);
  }

  .footer-section h4 {
    font-size: 0.75rem;
    margin-bottom: var(--space-3);
  }

  .footer-links a {
    font-size: 0.875rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Platform badges mobile layout */
@media (max-width: 479px) {
  .platforms-grid {
    gap: var(--space-2);
  }

  .platform-badge {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
  }
}

/* Improve scrolling containers on mobile */
.vibecard-condition-scroll,
.mk-items-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vibecard-condition-scroll::-webkit-scrollbar,
.mk-items-scroll::-webkit-scrollbar {
  display: none;
}

/* Safe area padding for fixed header */
.header {
  padding-top: env(safe-area-inset-top);
}

/* Hero section safe area - handled in main .hero rule */

/* Footer safe area */
.footer {
  padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
}

/* Improve touch feedback */
@media (hover: none) {
  .btn:active,
  .app-store-link:active,
  .feature-card:active,
  .platform-badge:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .header,
  .footer,
  .simple-footer,
  .nav,
  .skip-link,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  a {
    color: black;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
