/* ============================================================
   YumnAI — Main Design System
   Warm editorial fashion/beauty aesthetic
   Matches reference screenshots exactly
   ============================================================ */

/* ─── Google Fonts (loaded via HTML) ─── */

/* ─── CSS Custom Properties ─── */
:root {
  /* Colors */
  --bg: #FAF7F5;
  --bg-hero: #FCEEE9;
  --bg-card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-muted: #6B6B6B;
  --ink-faint: #9A9A9A;
  --border: #E4D9D2;
  --border-light: #EDE5DF;
  --accent: #C4704A;
  /* terracotta — italic "Vibe", season name */
  --accent-soft: #F5EAE3;
  --btn-primary-bg: #1A1A1A;
  --btn-primary-text: #FFFFFF;
  --btn-outline-border: #1A1A1A;
  --btn-outline-text: #1A1A1A;
  --progress-fill: #E8A090;

  /* Mobile App Milestone 01 Tokens */
  --yn-blush-bg: #FDF0EB;
  --yn-dusty-rose: #B76E79;
  --yn-dusty-rose-hover: #A6616C;
  --yn-dusty-rose-shadow: rgba(183, 110, 121, 0.35);
  --yn-card-bg: #FFFFFF;
  --yn-card-border: rgba(225, 195, 190, 0.5);
  --yn-icon-badge-bg: rgba(244, 218, 214, 0.65);
  --yn-bottom-nav-bg: #FFFFFF;
  --yn-bottom-nav-inactive: #8E8E93;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Layout */
  --section-py: 80px;
  --container: 1200px;
  --yn-hero-height: 590px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

button {
  font-family: var(--font-sans);
  cursor: pointer;
}

/* ─── Container ─── */
.yn-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.yn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-hero, #FCEEE9);
  border-bottom: none;
  height: 64px;
  display: flex;
  align-items: center;
}

.yn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Logo */
.yn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.yn-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.yn-logo-wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
}

/* Desktop Nav */
.yn-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.yn-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.yn-nav a:hover {
  color: var(--ink);
}

/* Product Dropdown */
.yn-dropdown {
  position: relative;
}

.yn-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  font-family: var(--font-sans);
}

.yn-dropdown-toggle:hover {
  color: var(--ink);
}

.yn-dropdown-toggle svg {
  transition: transform 0.2s;
}

.yn-dropdown.open .yn-dropdown-toggle svg {
  transform: rotate(180deg);
}

.yn-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 200;
}

.yn-dropdown.open .yn-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.yn-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.yn-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

/* Contact Button */
.yn-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 9999px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-btn);
}

.yn-btn-contact:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Hamburger */
.yn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.yn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.yn-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.yn-mobile-menu.open {
  display: flex;
}

.yn-mobile-menu a,
.yn-mobile-menu button.yn-mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-family: var(--font-sans);
}

.yn-mobile-menu a:last-child {
  border-bottom: none;
}

.yn-mobile-menu .yn-btn-contact {
  margin-top: 12px;
  justify-content: center;
  width: 100%;
}

/* ============================================================
   HERO SECTION — FIXED PERSISTENT BACKGROUND ARCHITECTURE
   ============================================================ */
.yn-hero {
  position: relative;
  background-color: var(--bg-hero);
  height: var(--yn-hero-height);
  min-height: var(--yn-hero-height);
  max-height: var(--yn-hero-height);
  overflow: hidden;
}

/* Dedicated fixed background layer — exactly one instance across all states */
.yn-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('/main_image/bg-hero.png');
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right center;
  pointer-events: none;
  z-index: 0;
}

/* Diagonal line texture */
.yn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
      rgba(180, 140, 120, 0.08) 0px,
      rgba(180, 140, 120, 0.08) 1px,
      transparent 1px,
      transparent 14px);
  pointer-events: none;
  z-index: 1;
}

/* Foreground state container */
.yn-hero-state {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: var(--yn-hero-height);
  display: block;
}

.yn-hero-state:not(.active) {
  display: none !important;
}

.yn-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  max-height: var(--yn-hero-height);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Left content column */
.yn-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 40px 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* ─── Landing State ─── */
#hero-landing .yn-hero-content {
  text-align: center;
  align-items: center;
}

#hero-landing .yn-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

#hero-landing .yn-hero-heading em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

#hero-landing .yn-hero-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}

/* ─── Step Indicator ─── */
.yn-step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.yn-step-indicator svg {
  flex-shrink: 0;
}

/* ─── Step Headings ─── */
.yn-step-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.yn-step-sub {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Step 1 heading & subtitle center alignment */
#hero-upload .yn-hero-content {
  padding: 24px 40px 24px 0;
  justify-content: center;
}

#hero-upload .yn-step-indicator {
  margin-bottom: 8px;
}

#hero-upload .yn-step-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  line-height: 1.12;
  margin-bottom: 4px;
}

#hero-upload .yn-step-sub {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ─── Hero Right Panel (color palette) ─── */
.yn-hero-right-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 40px 40px;
  gap: 20px;
}

.yn-colors-heading {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.yn-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 10px;
}

.yn-color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.yn-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.yn-info-card-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

/* ─── Hero Model Image (right col) ─── */
.yn-hero-model-col {
  position: relative;
  display: flex;
  align-items: stretch;
}

.yn-hero-model-col img.yn-model-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Palette + model side-by-side in step screens */
.yn-hero-right-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  height: 100%;
  align-items: stretch;
}

.yn-hero-palette-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px 40px 0;
  gap: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

/* Primary — black full-width pill */
.yn-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  width: 100%;
  max-width: 340px;
}

.yn-btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Outlined secondary */
.yn-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 13px 32px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  width: 100%;
  max-width: 340px;
}

.yn-btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ─── Button group ─── */
.yn-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

/* ============================================================
   GENDER SELECTION CARDS
   ============================================================ */
.yn-gender-cards {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.yn-gender-card {
  flex: 1;
  max-width: 160px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}

.yn-gender-card:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.yn-gender-card.selected {
  border-color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.yn-gender-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--ink);
}

.yn-gender-card-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-serif);
}

.yn-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ============================================================
   CATEGORY SELECTION
   ============================================================ */
.yn-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.yn-category-chip {
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.yn-category-chip:hover {
  border-color: var(--ink);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.yn-category-chip.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ============================================================
   UPLOAD CONTROLS (Step 1)
   ============================================================ */
.yn-upload-controls {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.yn-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.6);
  padding: 18px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 80px;
  max-width: 340px;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.yn-upload-zone:hover,
.yn-upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
}

.yn-upload-zone-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.yn-upload-zone input[type="file"] {
  display: none;
}

/* Tip chips */
.yn-tips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.yn-tip-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 12px;
  font-size: 0.775rem;
  color: var(--ink-muted);
}

/* Privacy note */
.yn-privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  color: var(--ink-faint);
}

.yn-privacy-note svg {
  flex-shrink: 0;
}

.yn-upload-controls .yn-privacy-note {
  margin-top: 10px;
  text-align: center;
  justify-content: center;
}

/* Preview */
.yn-preview {
  display: none;
  margin-bottom: 10px;
  max-width: 340px;
  width: 100%;
}

.yn-preview.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.yn-preview-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 14px;
  overflow: hidden;
  width: 85px;
  height: 85px;
  max-width: 85px;
  max-height: 85px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 2px solid #fff;
  flex-shrink: 0;
}

.yn-preview-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.yn-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
}

.yn-preview-remove:hover {
  background: rgba(200, 50, 50, 0.9);
  transform: scale(1.1);
}

.yn-upload-controls .yn-btn-group {
  gap: 7px;
  width: 100%;
  max-width: 340px;
}

.yn-upload-controls .yn-btn-primary,
.yn-upload-controls .yn-btn-outline {
  padding: 11px 24px;
  font-size: 0.82rem;
}

/* ============================================================
   ANALYZING STATE
   ============================================================ */
.yn-progress-bar-bg {
  height: 6px;
  background: var(--border-light);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.yn-progress-bar-fill {
  height: 100%;
  background: var(--progress-fill);
  border-radius: 9999px;
  transition: width 0.4s ease;
  width: 0%;
}

.yn-progress-pct {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: right;
  margin-bottom: 16px;
}

.yn-progress-wrapper {
  margin-bottom: 4px;
}

.yn-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.yn-progress-row .yn-progress-bar-bg {
  flex: 1;
  margin-bottom: 0;
}

.yn-tip-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.825rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-top: 16px;
}

/* ============================================================
   RESULT STATE
   ============================================================ */
.yn-result-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.yn-result-season-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 4px;
}

#result-season-emoji {
  font-size: 1em;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.yn-result-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.yn-result-desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Result selfie card */
.yn-selfie-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--accent-soft);
  aspect-ratio: 3/4;
  max-width: 240px;
  margin: 0 auto;
}

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

/* ============================================================
   HERO VIEW MANAGEMENT
   ============================================================ */
.yn-hero-state {
  display: none;
}

.yn-hero-state.active {
  display: grid;
  animation: ynFadeIn 0.4s ease-out;
}

/* ============================================================
   FEATURE CARDS (below hero)
   ============================================================ */
.yn-feature-section {
  background: var(--bg);
  padding: 0;
  border-top: 1px solid var(--border-light);
}

.yn-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-light);
}

.yn-feature-card {
  padding: 48px 40px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  background: #fff;
  transition: background 0.2s;
}

.yn-feature-card:last-child {
  border-right: none;
}

.yn-feature-card:hover {
  background: var(--accent-soft);
}

.yn-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--ink-muted);
}

.yn-feature-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.yn-feature-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================================
   CONTENT SECTIONS (restyled existing content)
   ============================================================ */

/* ─── Section wrapper ─── */
.yn-section {
  padding: var(--section-py) 0;
}

.yn-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.yn-section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}

.yn-section-body {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ─── Card grid ─── */
.yn-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.yn-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* ─── Base content card ─── */
.yn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.yn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.yn-card-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.yn-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.yn-card-body {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ─── Two-column section ─── */
.yn-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.yn-two-col-wider {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

/* ─── Dark section (Workflow) ─── */
.yn-section-dark {
  background: #1A1A1A;
  color: #fff;
  padding: var(--section-py) 0;
}

.yn-section-dark .yn-section-label {
  color: var(--progress-fill);
}

.yn-section-dark .yn-section-heading {
  color: #fff;
}

.yn-section-dark .yn-section-body {
  color: #B0A09A;
}

.yn-card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.yn-card-dark .yn-card-num {
  color: var(--progress-fill);
}

.yn-card-dark .yn-card-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.yn-card-dark .yn-card-body {
  color: #B0A09A;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ─── Pricing section ─── */
.yn-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.yn-pricing-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.yn-pricing-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.yn-pricing-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ─── FAQ ─── */
.yn-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 12px;
}

.yn-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.yn-faq-q svg {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--ink-muted);
}

.yn-faq-item.open .yn-faq-q svg {
  transform: rotate(45deg);
}

.yn-faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.yn-faq-item.open .yn-faq-a {
  display: block;
}

/* ─── CTA Banner ─── */
.yn-cta-banner {
  background: #1A1A1A;
  border-radius: var(--radius-xl);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 0 24px;
}

.yn-cta-banner-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--progress-fill);
  margin-bottom: 12px;
}

.yn-cta-banner-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.yn-cta-banner-body {
  font-size: 0.9375rem;
  color: #B0A09A;
  line-height: 1.7;
  max-width: 500px;
}

.yn-cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.yn-btn-primary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #1A1A1A;
  border: none;
  border-radius: 9999px;
  padding: 13px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.yn-btn-primary-light:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.yn-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 13px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.yn-btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* ─── Blog highlight strip ─── */
.yn-blog-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.yn-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 13px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.yn-btn-accent:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ─── Best-fit highlighted card ─── */
.yn-card-accent-border {
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--bg-card);
}

/* ─── List items ─── */
.yn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.yn-list li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.yn-list li::before {
  content: '●';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.55rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.yn-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 0;
}

.yn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}



.yn-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.yn-footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.yn-footer-logo-text {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.yn-footer-desc {
  font-size: 0.825rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 220px;
}

.yn-footer-socials {
  display: flex;
  gap: 12px;
}

.yn-footer-socials a {
  color: var(--ink-muted);
  transition: color 0.2s;
}

.yn-footer-socials a:hover {
  color: var(--ink);
}

.yn-footer-socials svg {
  width: 18px;
  height: 18px;
}

.yn-footer-col-heading {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.yn-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yn-footer-links li a {
  font-size: 0.825rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.yn-footer-links li a:hover {
  color: var(--ink);
}

/* Newsletter */
.yn-newsletter-desc {
  font-size: 0.825rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.yn-newsletter-form {
  display: flex;
  gap: 8px;
}

.yn-newsletter-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.yn-newsletter-input:focus {
  border-color: var(--ink);
}

.yn-newsletter-input::placeholder {
  color: var(--ink-faint);
}

.yn-newsletter-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.yn-newsletter-btn:hover {
  opacity: 0.8;
}

.yn-footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  text-align: center;
  font-size: 0.775rem;
  color: var(--ink-faint);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes ynFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================================
   PRODUCT DISCOVERY PAGE
   ============================================================ */
.yn-page-hero {
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border-light);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.yn-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
      rgba(180, 140, 120, 0.08) 0px,
      rgba(180, 140, 120, 0.08) 1px,
      transparent 1px,
      transparent 14px);
  pointer-events: none;
}

.yn-season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.yn-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.yn-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.yn-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.yn-product-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--accent-soft);
}

.yn-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.yn-product-card:hover .yn-product-image img {
  transform: scale(1.03);
}

.yn-product-info {
  padding: 16px;
}

.yn-product-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.yn-product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.yn-product-color {
  font-size: 0.775rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.yn-product-cta {
  display: block;
  text-align: center;
  background: var(--btn-primary-bg);
  color: #fff;
  border-radius: 9999px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.yn-product-cta:hover {
  opacity: 0.8;
}

/* Category tabs */
.yn-category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.yn-tab {
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.yn-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

/* Load more */
.yn-load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .yn-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .yn-footer-grid> :first-child {
    grid-column: 1 / -1;
  }

  .yn-hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .yn-cards-3 {
    grid-template-columns: 1fr 1fr;
  }

  .yn-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .yn-cta-banner-body {
    max-width: 100%;
  }

  .yn-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
    --yn-hero-height: auto;
  }

  .yn-nav {
    display: none;
  }

  .yn-hamburger {
    display: flex;
  }

  .yn-btn-contact {
    display: none;
  }

  .yn-hero {
    height: auto;
    min-height: 520px;
    max-height: none;
  }

  .yn-hero-state {
    height: auto;
    max-height: none;
  }

  .yn-hero-inner {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .yn-hero-content {
    padding: 36px 0;
    height: auto;
  }

  .yn-hero-right-split {
    grid-template-columns: 1fr;
  }

  .yn-hero-palette-col {
    padding: 24px 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .yn-color-grid {
    grid-template-columns: repeat(6, 36px);
  }

  .yn-feature-grid {
    grid-template-columns: 1fr;
  }

  .yn-feature-card {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .yn-feature-card:last-child {
    border-bottom: none;
  }

  .yn-cards-3,
  .yn-cards-2,
  .yn-two-col,
  .yn-two-col-wider {
    grid-template-columns: 1fr;
  }

  .yn-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .yn-footer-grid> :first-child {
    grid-column: 1 / -1;
  }

  .yn-cta-banner {
    padding: 36px 28px;
    margin: 0 12px;
  }

  .yn-blog-strip {
    flex-direction: column;
    padding: 32px 28px;
  }

  .yn-gender-cards {
    flex-wrap: wrap;
  }

  .yn-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yn-product-meta-color,
  .yn-product-meta-tag.yn-product-meta-color,
  .yn-product-card .yn-product-meta-color {
    display: none !important;
  }

  .yn-selfie-card {
    max-width: 180px;
  }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .yn-footer-grid {
    grid-template-columns: 1fr;
  }

  .yn-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yn-color-grid {
    grid-template-columns: repeat(4, 36px);
  }

  .yn-hero-image {
    height: 240px;
  }

  .yn-gender-card {
    max-width: 140px;
  }
}


/* ============================================================
   MOBILE MOCKUP RECREATION
   Matches Mobile_1_screen.png and Mobile_2_screen(1).png
   All styles override the basic responsive rules above.
   Desktop remains completely untouched.
   ============================================================ */

/* ─── Responsive Content Switching ─── */
.yn-mobile-only,
.yn-mobile-welcome,
.yn-mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 768px) {
  .yn-desktop-only {
    display: none !important;
  }

  .yn-mobile-only {
    display: block !important;
  }

  /* Mobile-only: Remove all content below the cutoff points (Feature cards, marketing sections, workflow, footer) */
  .yn-feature-section,
  .yn-section,
  .yn-section-dark,
  .yn-footer {
    display: none !important;
  }

  h1.yn-mobile-only {
    display: block !important;
  }

  p.yn-mobile-only {
    display: block !important;
  }

  button.yn-mobile-only {
    display: inline-flex !important;
  }

  div.yn-tips-row.yn-mobile-only {
    display: flex !important;
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE WELCOME / SPLASH SCREEN (Strictly 3s with fade)
     ═══════════════════════════════════════════════════════════ */
  .yn-mobile-welcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    height: 100vh;
    background-color: var(--yn-blush-bg, #FDF0EB);
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  }

  .yn-mobile-welcome.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    display: none !important;
  }

  .yn-welcome-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .yn-welcome-img {
    max-width: 100vw;
    max-height: 100dvh;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE HEADER — Matches Android Reference Proportions
     Left: Hamburger | Center: Trajan YUMNAI + Tag | Right: Profile
     ═══════════════════════════════════════════════════════════ */
  .yn-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 58px;
    padding: 0 14px;
    background: var(--yn-blush-bg, #FDF0EB);
    border-bottom: none !important;
    box-shadow: none !important;
  }

  .yn-header-inner,
  .mobile-header {
    display: grid !important;
    grid-template-columns: 44px 1fr 44px !important;
    align-items: center !important;
    justify-content: stretch !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    box-sizing: border-box !important;
  }

  /* Desktop nav hidden from grid layout */
  .yn-header-inner > nav,
  .mobile-header > nav {
    display: none !important;
  }

  /* Column 1: Hamburger icon */
  .yn-hamburger.yn-mobile-only {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 102;
    -webkit-tap-highlight-color: transparent;
  }

  .yn-hamburger.yn-mobile-only span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink, #1A1A1A);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
  }

  .yn-hamburger.yn-mobile-only[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .yn-hamburger.yn-mobile-only[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .yn-hamburger.yn-mobile-only[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Column 2: Logo / Centered YUMNAI Wordmark */
  .yn-logo,
  .mobile-wordmark {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    justify-self: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
    text-decoration: none !important;
  }

  .yn-logo img {
    display: none !important;
  }

  .yn-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    transform: translateY(6px);
  }

  .yn-mobile-brand-title {
    font-family: var(--font-serif);
    font-size: 1.42rem;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: var(--ink, #1A1A1A);
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    margin: 0;
    display: inline-block;
  }

  .yn-mobile-brand-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 3px;
  }

  .yn-mobile-brand-sub .yn-brand-line {
    display: inline-block;
    height: 1px;
    width: 22px;
    background: rgba(183, 110, 121, 0.45);
  }

  .yn-mobile-brand-sub .yn-brand-text {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #8A5A5C;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* Column 3: Spacer (balances hamburger to keep logo exactly centered) */
  .yn-header-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    pointer-events: none !important;
  }

  .yn-mobile-profile-btn {
    display: none !important;
  }

  /* Mobile menu dropdown */
  .yn-mobile-menu {
    top: 58px;
    z-index: 9999;
    background: #FFFDFD;
    border-bottom: 1.5px solid rgba(225, 195, 190, 0.65);
    border-radius: 0 0 20px 20px;
    padding: 10px 14px 16px;
    box-shadow: 0 12px 32px rgba(183, 110, 121, 0.15);
    gap: 2px;
  }

  .yn-mobile-menu.open {
    display: flex !important;
  }

  .yn-mobile-menu a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1E1A1A;
    text-decoration: none;
    border-radius: 12px;
    border-bottom: 1px solid rgba(225, 195, 190, 0.35);
    transition: background 0.15s ease, color 0.15s ease;
    font-family: var(--font-sans);
  }

  .yn-mobile-menu a:last-child {
    border-bottom: none;
  }

  .yn-mobile-menu a:hover,
  .yn-mobile-menu a:active {
    background: rgba(244, 218, 214, 0.4);
    color: var(--yn-dusty-rose, #B76E79);
  }

  .yn-mobile-menu a svg {
    color: #B76E79;
    flex-shrink: 0;
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE HERO — Seamless Blush Background
     ═══════════════════════════════════════════════════════════ */
  .yn-hero-bg {
    background-image: none !important;
    background-color: var(--yn-blush-bg, #FDF0EB) !important;
  }

  .yn-hero::before {
    display: none;
  }

  .yn-hero {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    background-color: var(--yn-blush-bg, #FDF0EB);
    padding-bottom: 20px;
  }

  .yn-hero-state {
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .yn-hero-inner {
    grid-template-columns: 1fr !important;
    height: auto;
    max-height: none;
    min-height: auto;
    padding: 0 16px;
    align-content: start;
  }

  .yn-hero-model-col {
    display: none !important;
  }

  .yn-hero-content {
    padding: 0 !important;
    height: auto;
    text-align: center;
    align-items: center;
    width: 100%;
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE HOME FLOW (Matches Android Reference Exactly)
     Artwork -> Intro -> CTA -> 4 Requirement Cards
     ═══════════════════════════════════════════════════════════ */
  #hero-landing .yn-hero-inner {
    align-content: start;
    padding-top: 10px;
    padding-bottom: 16px;
  }

  .yn-mobile-home-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  /* 1. Hero Artwork */
  .yn-mobile-hero-artwork {
    width: 100%;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px auto 8px auto;
  }

  .yn-mobile-hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 941 / 1188;
    object-fit: contain;
    display: block;
    pointer-events: none;
  }

  /* 2. Intro Copy */
  .yn-mobile-intro {
    text-align: center;
    margin-bottom: 12px;
    padding: 0 8px;
  }

  .yn-mobile-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 5vw, 1.92rem);
    font-weight: 700;
    line-height: 1.14;
    color: var(--ink, #1A1A1A);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }

  .yn-mobile-desc {
    font-family: var(--font-sans);
    font-size: clamp(0.74rem, 2.1vw, 0.82rem);
    line-height: 1.42;
    color: #5A5555;
    max-width: 310px;
    margin: 0 auto;
  }

  /* 3. Primary CTA Button */
  .yn-mobile-cta-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    padding: 0 10px;
  }

  .yn-mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 310px;
    padding: 12px 24px;
    background: var(--yn-dusty-rose, #B76E79);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 20px var(--yn-dusty-rose-shadow, rgba(183, 110, 121, 0.35));
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .yn-mobile-cta-btn:active {
    transform: scale(0.98);
  }

  /* 4. Requirement Cards (4-card horizontal layout) */
  .yn-mobile-req-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 420px;
    margin: 16px auto 16px auto;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .yn-req-card {
    background: var(--yn-card-bg, #FFFFFF);
    border: 1px solid var(--yn-card-border, rgba(225, 195, 190, 0.5));
    border-radius: 18px;
    padding: 12px 3px 10px 3px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    min-width: 0;
  }

  .yn-req-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yn-icon-badge-bg, rgba(244, 218, 214, 0.65));
    color: var(--yn-dusty-rose, #B76E79);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .yn-req-title {
    font-family: var(--font-sans);
    font-size: clamp(0.6rem, 1.8vw, 0.72rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink, #1A1A1A);
    text-transform: uppercase;
    margin-bottom: 3px;
    word-break: break-word;
  }

  .yn-req-sub {
    font-family: var(--font-sans);
    font-size: clamp(0.5rem, 1.5vw, 0.6rem);
    line-height: 1.25;
    color: #7A7575;
    word-break: break-word;
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE BOTTOM NAVIGATION (Fixed, Safe Area, Active Tab)
     ═══════════════════════════════════════════════════════════ */
  .yn-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--yn-bottom-nav-bg, #FFFFFF);
    border-top: 1px solid rgba(225, 195, 190, 0.4);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
  }

  .yn-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--yn-bottom-nav-inactive, #8E8E93);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
  }

  .yn-bottom-nav-item svg {
    transition: transform 0.15s ease;
  }

  .yn-bottom-nav-item.active {
    color: var(--yn-dusty-rose, #B76E79);
    font-weight: 700;
  }

  .yn-bottom-nav-item.active svg {
    color: var(--yn-dusty-rose, #B76E79);
  }

  body {
    background-color: var(--yn-blush-bg, #FDF0EB);
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE UPLOAD STATE — Selfie screen
     ═══════════════════════════════════════════════════════════ */
  #hero-upload .yn-hero-inner {
    align-content: start;
    padding-top: 16px;
    padding-bottom: 24px;
    min-height: auto;
  }

  #hero-upload .yn-hero-content {
    justify-content: flex-start;
  }

  /* Hide step indicator on mobile */
  #hero-upload .yn-step-indicator {
    display: none;
  }

  /* Upload heading — large editorial serif */
  #hero-upload .yn-step-heading {
    font-size: 2.2rem;
    text-align: center;
    line-height: 1.12;
    margin-bottom: 6px;
  }

  /* Upload subtitle */
  #hero-upload .yn-step-sub {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--ink-muted);
  }

  /* ─── Circular upload zone (mockup match) ─── */
  .yn-upload-zone {
    width: 220px;
    height: 220px;
    min-height: auto;
    max-width: none;
    border-radius: 50%;
    padding: 0;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px dashed rgba(195, 180, 170, 0.55);
  }

  .yn-upload-zone-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--ink-faint);
  }

  .yn-upload-zone-icon svg {
    width: 28px;
    height: 28px;
  }

  /* Upload controls full width */
  .yn-upload-controls {
    max-width: 100%;
    padding: 0;
  }

  .yn-upload-controls .yn-btn-group {
    max-width: 100%;
    gap: 12px;
  }

  /* Primary button — Take a Selfie style */
  .yn-upload-controls .yn-btn-primary {
    max-width: 100%;
    padding: 16px 24px;
    font-size: 0.9rem;
    border-radius: 14px;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 600;
  }

  /* Secondary button — Upload from Gallery */
  .yn-upload-controls .yn-btn-outline {
    max-width: 100%;
    padding: 16px 24px;
    font-size: 0.9rem;
    border-radius: 14px;
    text-transform: none;
    font-weight: 500;
  }

  /* Guidance tip chips */
  .yn-tips-row.yn-mobile-only {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 4px;
  }

  .yn-tip-chip {
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  /* Privacy note spacing */
  .yn-upload-controls .yn-privacy-note {
    margin-top: 24px;
    font-size: 0.8rem;
    justify-content: center;
  }

  /* Hide back button on upload */
  #hero-upload button[onclick*="reset"] {
    margin-top: 4px;
    font-size: 0.75rem;
  }

  /* ─── Preview constraints ─── */
  .yn-preview-wrapper {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
  }

  /* Continue button wrapper */
  #yn-analyze-wrapper {
    width: 100%;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE GENDER STATE
     ═══════════════════════════════════════════════════════════ */
  #hero-gender .yn-hero-content {
    text-align: center;
    align-items: center;
  }

  #hero-gender .yn-step-heading {
    text-align: center;
    font-size: 1.8rem;
  }

  #hero-gender .yn-step-sub {
    text-align: center;
    max-width: 300px;
    margin: 0 auto 20px;
  }

  .yn-gender-cards {
    justify-content: center;
    width: 100%;
  }

  .yn-gender-card {
    flex: 0 1 140px;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE CATEGORY STATE
     ═══════════════════════════════════════════════════════════ */
  #hero-category .yn-hero-content {
    text-align: center;
    align-items: center;
  }

  #hero-category .yn-step-heading {
    text-align: center;
    font-size: 1.8rem;
  }

  #hero-category .yn-step-sub {
    text-align: center;
  }

  .yn-category-grid {
    justify-content: center;
  }

  .yn-category-chip {
    padding: 10px 18px;
    font-size: 0.85rem;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE ANALYZING STATE
     ═══════════════════════════════════════════════════════════ */
  #hero-analyzing .yn-hero-content {
    text-align: center;
    align-items: center;
  }

  #hero-analyzing .yn-step-heading {
    text-align: center;
    font-size: 1.6rem;
  }

  #hero-analyzing .yn-step-sub {
    text-align: center;
  }

  .yn-progress-row {
    width: 100%;
  }

  .yn-tip-card {
    text-align: left;
    width: 100%;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE RESULT STATE — Ordered Sequence:
     1. Selfie -> 2. Season -> 3. Best Colors -> 4. Action Buttons -> 5. Info Card
     ═══════════════════════════════════════════════════════════ */
  #hero-result .yn-hero-state {
    min-height: auto;
  }

  #hero-result .yn-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  /* Flatten wrapper containers into the flex flow */
  #hero-result .yn-hero-content {
    display: contents !important;
  }

  #hero-result .yn-hero-right-panel {
    display: contents !important;
  }

  #hero-result .yn-hero-right-panel>div:first-child {
    display: contents !important;
  }

  /* 1. USER SELFIE — FIRST */
  #hero-result .yn-hero-model-col {
    order: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
  }

  #hero-result .yn-selfie-card {
    max-width: 140px;
    margin: 0 auto;
  }

  /* 2. SEASON — SECOND */
  #hero-result .yn-result-label {
    order: 2 !important;
    margin: 0 auto 8px auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  #hero-result .yn-result-headline {
    order: 3 !important;
    text-align: center !important;
    margin: 0 auto 4px auto !important;
  }

  #hero-result .yn-result-season-name {
    order: 4 !important;
    text-align: center !important;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    margin: 0 auto 8px auto !important;
  }

  #hero-result .yn-result-desc {
    order: 5 !important;
    text-align: center !important;
    max-width: 320px;
    margin: 0 auto 20px auto !important;
    line-height: 1.5;
  }

  /* 3. BEST COLORS — THIRD */
  #hero-result .yn-colors-heading {
    order: 6 !important;
    text-align: center !important;
    margin: 0 auto 10px auto !important;
  }

  #hero-result .yn-color-grid {
    order: 7 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 0 auto 24px auto !important;
    gap: 8px;
    max-width: 300px;
  }

  /* 4. ACTION BUTTONS — FOURTH */
  #hero-result .yn-btn-group {
    order: 8 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 20px auto !important;
  }

  #hero-result .yn-btn-primary,
  #hero-result .yn-btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  /* 5. EVERYTHING ELSE (INFO CARD) — FIFTH */
  #hero-result .yn-info-card {
    order: 9 !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    text-align: left !important;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE ERROR STATE
     ═══════════════════════════════════════════════════════════ */
  #hero-error .yn-hero-content {
    text-align: center;
    align-items: center;
    padding: 40px 0 !important;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE FEATURE CARDS — Capture / Analyze / Discover
     Stacked vertically with bordered card treatment
     ═══════════════════════════════════════════════════════════ */
  .yn-feature-section {
    border-top: none;
    padding: 32px 0;
    background: var(--bg);
  }

  .yn-feature-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 16px;
    border-bottom: none;
  }

  .yn-feature-card {
    border-right: none !important;
    border-bottom: none !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px;
    padding: 40px 24px;
    background: #fff;
  }

  .yn-feature-card:last-child {
    border: 1px solid var(--border) !important;
    border-radius: 16px;
  }

  .yn-feature-card:hover {
    background: #fff;
    transform: none;
  }

  .yn-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0 auto 20px;
  }

  .yn-feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .yn-feature-desc {
    max-width: 280px;
    margin: 0 auto;
    font-size: 0.875rem;
    line-height: 1.6;
  }

  p.yn-feature-desc.yn-mobile-only {
    display: block !important;
    max-width: 280px;
    margin: 0 auto;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE PRODUCT GRID — 2-column optimized
     ═══════════════════════════════════════════════════════════ */
  .yn-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .yn-product-info {
    padding: 10px 10px 12px;
  }

  .yn-product-category {
    font-size: 0.6rem;
    margin-bottom: 3px;
  }

  .yn-product-title {
    font-size: 0.78rem;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
  }

  .yn-product-color {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .yn-product-cta {
    padding: 8px 12px;
    font-size: 0.75rem;
  }


  /* ═══════════════════════════════════════════════════════════
     MOBILE LOWER PAGE SECTIONS
     ═══════════════════════════════════════════════════════════ */
  .yn-section {
    padding: 48px 0;
  }

  .yn-container {
    padding: 0 20px;
  }

  .yn-footer {
    padding-top: 40px;
  }

  .yn-footer-grid {
    gap: 24px;
    padding-bottom: 32px;
  }


  /* ═══════════════════════════════════════════════════════════
     PREVENT HORIZONTAL OVERFLOW
     ═══════════════════════════════════════════════════════════ */
  html,
  body {
    overflow-x: clip;
    max-width: 100vw;
  }

  .yn-hero,
  .yn-hero-inner,
  .yn-hero-content,
  .yn-upload-controls,
  .yn-btn-group {
    max-width: 100%;
    box-sizing: border-box;
  }

  .yn-feature-section,
  .yn-feature-grid {
    max-width: 100vw;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
  }
}


/* ─── Extra compact for small phones ─── */
@media (max-width: 390px) {
  .yn-mobile-title {
    font-size: 1.7rem;
  }

  .yn-mobile-desc {
    font-size: 0.8rem;
    max-width: 275px;
  }

  .yn-mobile-hero-artwork {
    max-width: 280px;
  }

  .yn-mobile-cta-btn {
    padding: 13px 22px;
    font-size: 0.82rem;
  }

  .yn-req-card {
    padding: 10px 3px 10px 3px;
    border-radius: 14px;
  }

  .yn-req-icon-wrap {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  .yn-req-icon-wrap svg {
    width: 17px;
    height: 17px;
  }

  .yn-req-title {
    font-size: 0.6rem;
  }

  .yn-req-sub {
    font-size: 0.5rem;
  }

  #hero-upload .yn-step-heading {
    font-size: 1.85rem;
  }

  .yn-upload-zone {
    width: 190px;
    height: 190px;
  }

  .yn-upload-controls .yn-btn-primary,
  .yn-upload-controls .yn-btn-outline {
    padding: 14px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 340px) {
  .yn-mobile-req-cards {
    gap: 4px;
    padding: 0 2px;
  }

  .yn-req-title {
    font-size: 0.55rem;
  }

  .yn-req-sub {
    font-size: 0.46rem;
  }
}

/* ============================================================
   MILESTONE 02: ANALYZER SELECTION (MOBILE + DESKTOP)
   ============================================================ */

/* ─── Shared Toast Notifications ─── */
.yn-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26, 26, 26, 0.94);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10000;
  max-width: 90vw;
  text-align: center;
}

.yn-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Desktop (min-width: 769px): Analysis is mobile-only for V1 ─── */
@media (min-width: 769px) {
  #hero-selection,
  #hero-selection.active,
  #hero-upload,
  #hero-upload.active,
  #hero-analyzing,
  #hero-analyzing.active,
  #hero-result,
  #hero-result.active,
  #hero-error,
  #hero-error.active,
  #hero-gender,
  #hero-gender.active,
  #hero-category,
  #hero-category.active,
  .yn-selection-desktop,
  .yn-desktop-analyzing-card,
  #color-result-screen-root,
  .yn-color-result {
    display: none !important;
  }

  /* Desktop landing hero and marketing sections always visible */
  #hero-landing {
    display: grid !important;
  }

  .yn-header {
    display: flex !important;
  }

  .yn-feature-section,
  .yn-section,
  .yn-section-dark,
  .yn-footer {
    display: block !important;
  }

  .yn-hero-bg {
    display: block !important;
  }

  #yn-hero-section {
    height: var(--yn-hero-height) !important;
    min-height: var(--yn-hero-height) !important;
    max-height: var(--yn-hero-height) !important;
    overflow: hidden !important;
    background-color: var(--bg-hero) !important;
  }

  .yn-selection-desktop-container {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 24px 24px;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
  }

  .yn-desktop-selection-title {
    text-align: center;
    font-size: clamp(2.1rem, 3.8vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 8px;
    color: var(--ink);
  }

  .yn-desktop-selection-sub {
    text-align: center;
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 32px;
  }

  .yn-desktop-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 980px;
    margin: 0 auto 24px auto;
  }

  .yn-desktop-selection-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 32px 28px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }

  .yn-desktop-selection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
  }

  .yn-desktop-selection-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .yn-desktop-card-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
  }

  .yn-desktop-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
  }

  .yn-desktop-card-desc {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 22px;
    flex-grow: 1;
  }

  .yn-desktop-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    transition: gap 0.2s ease;
  }

  .yn-desktop-selection-card:hover .yn-desktop-card-action {
    gap: 12px;
  }

  .yn-desktop-selection-footer {
    margin-top: 8px;
  }

  .yn-back-home-btn {
    background: none;
    border: none;
    font-size: 0.88rem;
    color: var(--ink-faint);
    cursor: pointer;
    font-family: var(--font-sans);
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s ease;
  }

  .yn-back-home-btn:hover {
    color: var(--ink);
  }

  .yn-back-home-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

/* ─── Mobile Analyzer Selection (max-width: 768px) ─── */
@media (max-width: 768px) {
  /* Scoping for focused flow screen */
  body[data-flow-state="selection"] .yn-header {
    display: none !important;
  }

  body[data-flow-state="selection"] #yn-mobile-bottom-nav {
    display: none !important;
  }

  body[data-flow-state="selection"] .yn-feature-section,
  body[data-flow-state="selection"] .yn-section,
  body[data-flow-state="selection"] .yn-section-dark,
  body[data-flow-state="selection"] .yn-footer {
    display: none !important;
  }

  body[data-flow-state="selection"] .yn-hero-bg {
    display: none !important;
  }

  body[data-flow-state="selection"] #yn-hero-section {
    background-color: var(--yn-blush-bg, #FDF0EB) !important;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
  }

  #hero-selection.active {
    display: block !important;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--yn-blush-bg, #FDF0EB);
  }

  .yn-selection-mobile {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--yn-blush-bg, #FDF0EB);
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  /* 1. Mobile Flow Header (Matches Android: Arrow left, Y U M N A I centered) */
  .yn-selection-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 12px;
    padding-top: env(safe-area-inset-top, 0px);
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
  }

  .yn-selection-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #1A1A1A;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    border-radius: 50%;
  }

  .yn-selection-back-btn:active {
    opacity: 0.65;
  }

  .yn-selection-mobile-logo {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.38em;
    margin-right: -0.38em;
    color: #1A1A1A;
    text-align: center;
    flex: 1;
    user-select: none;
  }

  .yn-selection-header-spacer {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  /* 2. Centered Title Section (Matches Android: lines + CHOOSE YOUR ANALYSIS) */
  .yn-selection-title-wrap {
    text-align: center;
    padding: 24px 20px 24px 20px;
    box-sizing: border-box;
  }

  .yn-selection-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .yn-selection-line {
    display: block;
    height: 1px;
    width: 32px;
    background-color: #D4A59A;
    opacity: 0.85;
  }

  .yn-selection-badge-text {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #B2685F;
    text-transform: uppercase;
  }

  .yn-selection-sub {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.48;
    color: #555050;
    text-align: center;
    margin: 0 auto;
    max-width: 320px;
  }

  /* 3. Selection Cards */
  .yn-selection-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .yn-selection-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFDFD;
    border: 1.5px solid rgba(225, 195, 190, 0.65);
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow: 0 4px 16px rgba(183, 110, 121, 0.08);
    text-align: left;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
  }

  .yn-selection-card:active {
    transform: scale(0.985);
    background: #FAF3F0;
  }

  .yn-selection-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(244, 218, 214, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .yn-selection-card-body {
    flex: 1;
    min-width: 0;
  }

  .yn-selection-card-title {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1E1A1A;
    margin-bottom: 5px;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .yn-selection-card-desc {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    line-height: 1.38;
    color: #635E5E;
    margin: 0;
  }

  .yn-selection-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(244, 218, 214, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ─── Compact Phone Adjustments (<= 390px) ─── */
@media (max-width: 390px) {
  .yn-selection-cards {
    padding: 0 12px;
    gap: 14px;
  }

  .yn-selection-card {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 18px;
  }

  .yn-selection-card-icon {
    width: 46px;
    height: 46px;
  }

  .yn-selection-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .yn-selection-card-title {
    font-size: 0.95rem;
  }

  .yn-selection-card-desc {
    font-size: 0.71rem;
  }

  .yn-selection-card-arrow {
    width: 28px;
    height: 28px;
  }
}

/* ─── Very Small Phone Adjustments (<= 340px) ─── */
@media (max-width: 340px) {
  .yn-selection-title-wrap {
    padding: 16px 10px 18px 10px;
  }

  .yn-selection-line {
    width: 20px;
  }

  .yn-selection-badge-text {
    font-size: 0.65rem;
  }

  .yn-selection-sub {
    font-size: 0.78rem;
  }

  .yn-selection-cards {
    padding: 0 8px;
    gap: 10px;
  }

  .yn-selection-card {
    padding: 14px 10px;
    gap: 10px;
  }

  .yn-selection-card-icon {
    width: 40px;
    height: 40px;
  }

  .yn-selection-card-icon svg {
    width: 19px;
    height: 19px;
  }

  .yn-selection-card-title {
    font-size: 0.88rem;
  }

  .yn-selection-card-desc {
    font-size: 0.66rem;
  }
}


/* ============================================================
   MILESTONE 03: MOBILE COLOR ANALYSIS SELFIE SCREEN
   Matches Android Reference — Mobile Only
   ============================================================ */

/* ─── Upload Flow State Scoping (Mobile) ─── */
@media (max-width: 768px) {

  /* Hide main header, bottom nav, page sections when in upload flow */
  body[data-flow-state="upload"] .yn-header {
    display: none !important;
  }

  body[data-flow-state="upload"] #yn-mobile-bottom-nav {
    display: none !important;
  }

  body[data-flow-state="upload"] .yn-feature-section,
  body[data-flow-state="upload"] .yn-section,
  body[data-flow-state="upload"] .yn-section-dark,
  body[data-flow-state="upload"] .yn-footer {
    display: none !important;
  }

  body[data-flow-state="upload"] .yn-hero-bg {
    display: none !important;
  }

  body[data-flow-state="upload"] #yn-hero-section {
    background-color: var(--yn-blush-bg, #FDF0EB) !important;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
  }

  body[data-flow-state="upload"] {
    padding-bottom: 0 !important;
  }

  /* Override hero-state to block layout for mobile selfie screen */
  #hero-upload.active {
    display: block !important;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--yn-blush-bg, #FDF0EB);
  }

  /* Hide existing desktop upload inner on mobile */
  #hero-upload .yn-hero-inner {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE SELFIE SCREEN CONTAINER
     ═══════════════════════════════════════════════════════════ */
  .yn-selfie-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--yn-blush-bg, #FDF0EB);
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  /* ─── Flow Header: ← YUMNAI ─── */
  .yn-selfie-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 12px;
    padding-top: env(safe-area-inset-top, 0px);
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
  }

  .yn-selfie-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #1A1A1A;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    border-radius: 50%;
  }

  .yn-selfie-back-btn:active {
    opacity: 0.65;
  }

  .yn-selfie-mobile-logo {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.38em;
    margin-right: -0.38em;
    color: #1A1A1A;
    text-align: center;
    flex: 1;
    user-select: none;
  }

  .yn-selfie-header-spacer {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  /* ─── 3-Step Progress Indicator ─── */
  .yn-selfie-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 310px;
    padding: 8px 20px 20px;
    box-sizing: border-box;
  }

  .yn-selfie-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .yn-selfie-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(183, 110, 121, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-faint, #9A9A9A);
    background: transparent;
    transition: all 0.2s ease;
  }

  .yn-selfie-step-circle.active {
    background: var(--yn-dusty-rose, #B76E79);
    border-color: var(--yn-dusty-rose, #B76E79);
    color: #FFFFFF;
  }

  .yn-selfie-step-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-faint, #9A9A9A);
    text-transform: uppercase;
  }

  .yn-selfie-step-label.active {
    color: var(--yn-dusty-rose, #B76E79);
  }

  .yn-selfie-step-connector {
    flex: 1;
    height: 0;
    border-top: 1.5px dashed rgba(183, 110, 121, 0.3);
    margin-top: 16px;
    min-width: 20px;
  }

  /* ─── Title ─── */
  .yn-selfie-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink, #1A1A1A);
    text-align: center;
    margin: 0 0 8px 0;
    padding: 0 20px;
  }

  /* ─── Subtitle ─── */
  .yn-selfie-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.78rem, 2.2vw, 0.88rem);
    line-height: 1.48;
    color: #5A5555;
    text-align: center;
    margin: 0 0 10px 0;
    padding: 0 24px;
    max-width: 340px;
  }

  /* ─── Privacy Row ─── */
  .yn-selfie-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
  }

  .yn-selfie-privacy svg {
    color: var(--yn-dusty-rose, #B76E79);
    flex-shrink: 0;
  }

  .yn-selfie-privacy span {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--yn-dusty-rose, #B76E79);
    letter-spacing: 0.02em;
  }

  /* ─── Upload Card (dashed rectangular) ─── */
  .yn-selfie-upload-card {
    width: calc(100% - 40px);
    max-width: 360px;
    min-height: 185px;
    border: 2px dashed rgba(200, 170, 160, 0.55);
    border-radius: 22px;
    background: rgba(255, 253, 251, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    margin: 0 auto 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
  }

  .yn-selfie-upload-card:active {
    background: rgba(255, 248, 245, 0.9);
    border-color: var(--yn-dusty-rose, #B76E79);
  }

  .yn-selfie-upload-icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(244, 218, 214, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yn-dusty-rose, #B76E79);
  }

  .yn-selfie-upload-plus {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--yn-dusty-rose, #B76E79);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
  }

  .yn-selfie-upload-heading {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink, #1A1A1A);
    text-align: center;
    margin: 0;
  }

  .yn-selfie-upload-hints {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    line-height: 1.45;
    color: #7A7575;
    text-align: center;
    margin: 0;
  }

  /* ─── Image Preview (after selection) ─── */
  .yn-selfie-preview-wrap {
    width: calc(100% - 40px);
    max-width: 360px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .yn-framing-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .yn-framing-header {
    text-align: center;
    margin-bottom: 2px;
    padding: 0 8px;
  }

  .yn-framing-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--yn-dusty-rose, #B76E79);
    margin: 0 0 4px 0;
    text-transform: uppercase;
  }

  .yn-framing-sub {
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.8rem;
    color: #7A6F6D;
    margin: 0;
    line-height: 1.35;
  }

  .yn-selfie-preview-card.yn-framing-viewport {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 340px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #181312;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    border: 2px solid rgba(200, 170, 160, 0.45);
    box-shadow: 0 8px 32px rgba(40, 20, 15, 0.12);
    cursor: grab;
  }

  .yn-selfie-preview-card.yn-framing-viewport:active {
    cursor: grabbing;
  }

  .yn-framing-img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
    pointer-events: none;
    display: block;
    max-width: none !important;
    max-height: none !important;
  }

  .yn-framing-guide-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .yn-framing-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(18, 12, 12, 0.52);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    box-sizing: border-box;
  }

  .yn-framing-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    pointer-events: none;
  }

  .yn-framing-hint {
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    pointer-events: none;
  }

  .yn-framing-reset-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(30, 20, 20, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .yn-framing-reset-btn:active {
    transform: scale(0.95);
    background: rgba(30, 20, 20, 0.85);
  }

  .yn-selfie-preview-card:not(.yn-framing-viewport) {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(200, 170, 160, 0.4);
    background: rgba(255, 253, 251, 0.65);
  }

  .yn-selfie-preview-card:not(.yn-framing-viewport) img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
  }

  .yn-selfie-actions-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .yn-selfie-change-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 24px;
    border: 1.5px solid rgba(183, 110, 121, 0.45);
    border-radius: 14px;
    background: transparent;
    color: var(--yn-dusty-rose, #B76E79);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }

  .yn-selfie-change-btn:active {
    background: rgba(244, 218, 214, 0.35);
  }

  .yn-selfie-continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px 24px;
    background: var(--yn-dusty-rose, #B76E79);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .yn-selfie-continue-btn:active {
    transform: scale(0.98);
  }

  /* ─── OR Separator ─── */
  .yn-selfie-or {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: calc(100% - 40px);
    max-width: 360px;
    margin: 0 auto 16px;
  }

  .yn-selfie-or-line {
    flex: 1;
    height: 1px;
    background: rgba(200, 170, 160, 0.45);
  }

  .yn-selfie-or-text {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: #9A9090;
    letter-spacing: 0.08em;
  }

  /* ─── Gallery Button ─── */
  .yn-selfie-gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 40px);
    max-width: 360px;
    padding: 14px 24px;
    background: rgba(244, 218, 214, 0.35);
    color: var(--yn-dusty-rose, #B76E79);
    border: none;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
    margin: 0 auto;
  }

  .yn-selfie-gallery-btn svg {
    color: var(--yn-dusty-rose, #B76E79);
    flex-shrink: 0;
  }

  .yn-selfie-gallery-btn:active {
    background: rgba(244, 218, 214, 0.55);
  }
}

/* ─── M03 Compact Phone Adjustments (≤ 390px) ─── */
@media (max-width: 390px) {
  .yn-selfie-progress {
    max-width: 280px;
    padding: 6px 16px 16px;
  }

  .yn-selfie-step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .yn-selfie-step-connector {
    margin-top: 14px;
    min-width: 16px;
  }

  .yn-selfie-step-label {
    font-size: 0.55rem;
  }

  .yn-selfie-title {
    font-size: 1.5rem;
  }

  .yn-selfie-upload-card {
    min-height: 165px;
    padding: 24px 16px;
  }

  .yn-selfie-upload-icon-wrap {
    width: 50px;
    height: 50px;
  }

  .yn-selfie-upload-icon-wrap svg {
    width: 24px;
    height: 24px;
  }
}

/* ─── M03 Very Small Phone Adjustments (≤ 340px) ─── */
@media (max-width: 340px) {
  .yn-selfie-progress {
    max-width: 260px;
    padding: 4px 10px 14px;
  }

  .yn-selfie-step-circle {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .yn-selfie-step-label {
    font-size: 0.5rem;
  }

  .yn-selfie-title {
    font-size: 1.35rem;
  }

  .yn-selfie-subtitle {
    font-size: 0.76rem;
  }

  .yn-selfie-upload-card {
    width: calc(100% - 24px);
    min-height: 150px;
    padding: 20px 14px;
    border-radius: 18px;
  }

  .yn-selfie-gallery-btn,
  .yn-selfie-or {
    width: calc(100% - 24px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   MILESTONE 04: FACE VALIDATION UI (Mobile + Desktop)
   Matches Android Reference — Invisible on success, clear on error
   ═══════════════════════════════════════════════════════════════ */

.yn-selfie-preview-card {
  position: relative;
}

/* ─── Checking Overlay (Brief validation state) ─── */
.yn-selfie-checking-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 248, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  z-index: 10;
  border-radius: 20px;
  box-sizing: border-box;
}

.yn-checking-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(183, 110, 121, 0.2);
  border-top-color: var(--yn-dusty-rose, #B76E79);
  border-radius: 50%;
  animation: yn-spin 0.8s linear infinite;
  margin-bottom: 14px;
}

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

.yn-checking-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E1418;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

.yn-checking-sub {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.78rem;
  color: #7A696F;
  margin: 0;
}

/* ─── Error Overlay (Matches Android Studio Reference) ─── */
.yn-selfie-error-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 248, 247, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  z-index: 12;
  border-radius: 20px;
  box-sizing: border-box;
  pointer-events: auto;
  animation: yn-fade-in 0.2s ease;
}

@keyframes yn-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.yn-error-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FDE8E6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #9E5664;
  flex-shrink: 0;
}

.yn-error-heading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E1418;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.yn-error-description {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.82rem;
  color: #55484D;
  line-height: 1.45;
  margin: 0 0 20px 0;
  max-width: 250px;
  white-space: pre-line;
}

.yn-error-retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #B16572;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 12px 38px;
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(177, 101, 114, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  position: relative;
  z-index: 100;
}

.yn-error-retry-btn:hover {
  background: #A05562;
  transform: translateY(-1px);
}

.yn-error-retry-btn:active {
  transform: scale(0.97);
}

/* ─── Desktop Error Card ─── */
.yn-desktop-error-card {
  background: #FFF9F8;
  border: 1.5px solid rgba(183, 110, 121, 0.35);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(183, 110, 121, 0.12);
  animation: yn-fade-in 0.2s ease;
}

.yn-desktop-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  margin-top: 12px;
  background: rgba(244, 218, 214, 0.3);
  border-radius: 12px;
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yn-dusty-rose, #B76E79);
}

.yn-btn-disabled {
  opacity: 0.55 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* ============================================================
   MILESTONE 05: COLOR ANALYSIS — AI ANALYSIS LOADING SCREEN
   Matches Android Studio Reference (Mobile) & Desktop
   ============================================================ */

/* ─── Analyzing Flow State Scoping (Mobile) ─── */
@media (max-width: 768px) {

  /* Hide main header, bottom nav, page sections when in analyzing flow */
  body[data-flow-state="analyzing"] .yn-header {
    display: none !important;
  }

  body[data-flow-state="analyzing"] #yn-mobile-bottom-nav {
    display: none !important;
  }

  body[data-flow-state="analyzing"] .yn-feature-section,
  body[data-flow-state="analyzing"] .yn-section,
  body[data-flow-state="analyzing"] .yn-section-dark,
  body[data-flow-state="analyzing"] .yn-footer {
    display: none !important;
  }

  body[data-flow-state="analyzing"] .yn-hero-bg {
    display: none !important;
  }

  body[data-flow-state="analyzing"] #yn-hero-section {
    background-color: var(--yn-blush-bg, #FDF0EB) !important;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
  }

  body[data-flow-state="analyzing"] {
    padding-bottom: 0 !important;
  }

  /* Override hero-state to block layout for mobile analyzing screen */
  #hero-analyzing.active {
    display: block !important;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--yn-blush-bg, #FDF0EB);
  }

  /* Hide desktop analyzing inner on mobile */
  #hero-analyzing .yn-hero-inner {
    display: none !important;
  }

  /* ─── Mobile Analyzing Screen Container ─── */
  .yn-analyzing-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--yn-blush-bg, #FDF0EB);
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  /* ─── Completed & Active Step Indicator Styles ─── */
  .yn-selfie-step-circle.completed {
    background: var(--yn-dusty-rose, #B76E79);
    border-color: var(--yn-dusty-rose, #B76E79);
    color: #FFFFFF;
  }

  .yn-selfie-step-label.completed {
    color: #7A696F;
  }

  .yn-selfie-step-circle.active {
    background: #FFFFFF;
    border: 1.5px solid var(--yn-dusty-rose, #B76E79);
    color: var(--yn-dusty-rose, #B76E79);
  }

  .yn-selfie-step-label.active {
    color: var(--yn-dusty-rose, #B76E79);
  }

  /* ─── Contextual Title/Subtitle in Analyzing View ─── */
  .yn-analyzing-header-title {
    margin-bottom: 4px;
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .yn-analyzing-header-subtitle {
    margin-bottom: 8px;
  }

  .yn-analyzing-header-privacy {
    margin-bottom: 12px;
  }

  /* ─── Main Analyzing Card ─── */
  .yn-analyzing-card {
    width: calc(100% - 40px);
    max-width: 350px;
    aspect-ratio: 4 / 4.7;
    max-height: calc(100dvh - 380px);
    min-height: 290px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 10px 32px rgba(183, 110, 121, 0.12);
    border: 1px solid rgba(230, 218, 206, 0.6);
    margin: 0 auto 12px auto;
    box-sizing: border-box;
  }

  .yn-analyzing-selfie-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none !important;
  }

  .yn-analyzing-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(253, 246, 244, 0.38);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    box-sizing: border-box;
    z-index: 2;
    animation: yn-fade-in 0.3s ease;
  }

  /* ─── Circular Loading Indicator (Matches Android Reference B) ─── */
  .yn-analyzing-spinner {
    width: 38px;
    height: 38px;
    border: 3.5px solid rgba(183, 110, 121, 0.22);
    border-top-color: var(--yn-dusty-rose, #B76E79);
    border-radius: 50%;
    animation: yn-spin 0.9s linear infinite;
    margin-bottom: 14px;
    box-sizing: border-box;
  }

  .yn-analyzing-title {
    font-family: var(--font-sans, 'Outfit', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1A1A1A;
    margin: 0 0 6px 0;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
  }

  .yn-analyzing-subtitle {
    font-family: var(--font-sans, 'Outfit', sans-serif);
    font-size: 0.84rem;
    font-weight: 400;
    color: #4A3E43;
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
  }

  /* ─── Inactive Buttons Matching Android Reference B ─── */
  .yn-analyzing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 350px;
    margin: 4px auto 8px auto;
  }

  .yn-analyzing-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 9999px;
    border: 1.5px solid rgba(183, 110, 121, 0.22);
    background: rgba(255, 255, 255, 0.5);
    color: #A8959A;
    font-family: var(--font-sans, 'Outfit', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: default;
    pointer-events: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .yn-analyzing-btn-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border-radius: 9999px;
    border: none;
    background: #F7EAE6;
    color: #A8959A;
    font-family: var(--font-sans, 'Outfit', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: default;
    pointer-events: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .yn-analyzing-btn-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(168, 149, 154, 0.35);
    border-top-color: #A8959A;
    border-radius: 50%;
    animation: yn-spin 0.8s linear infinite;
  }
}

/* ─── Default Hide Mobile Analyzing Screen on Desktop ─── */
@media (min-width: 769px) {
  .yn-analyzing-mobile {
    display: none !important;
  }
}

/* ─── Desktop Analyzing Card ─── */
.yn-desktop-analyzing-card {
  width: 340px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  background: #FFFFFF;
  border: 1px solid rgba(230, 218, 206, 0.6);
}

.yn-desktop-analyzing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yn-desktop-analyzing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 246, 244, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE SUBPAGES (How It Works, Prices, Features, Legal, Contact)
   ═══════════════════════════════════════════════════════════ */
.yn-subpage {
  background-color: var(--yn-blush-bg, #FDF0EB);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px calc(84px + env(safe-area-inset-bottom, 0px)) 16px;
  box-sizing: border-box;
}

.yn-subpage-inner {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yn-subpage-header {
  text-align: center;
  padding: 8px 8px 4px 8px;
}

.yn-subpage-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.yn-subpage-badge-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #B2685F;
  text-transform: uppercase;
}

.yn-subpage-line {
  display: block;
  height: 1px;
  width: 28px;
  background-color: #D4A59A;
  opacity: 0.85;
}

.yn-subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 4.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink, #1A1A1A);
  margin-bottom: 8px;
}

.yn-subpage-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.48;
  color: #555050;
  margin: 0 auto;
  max-width: 330px;
}

.yn-subpage-card {
  background: #FFFDFD;
  border: 1.5px solid rgba(225, 195, 190, 0.65);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 4px 16px rgba(183, 110, 121, 0.08);
  box-sizing: border-box;
}

.yn-subpage-card-accent {
  background: #FFFDFD;
  border: 2px solid var(--yn-dusty-rose, #B76E79);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.14);
  box-sizing: border-box;
  position: relative;
}

.yn-subpage-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.yn-subpage-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(244, 218, 214, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #A45B50;
}

.yn-subpage-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E1A1A;
  margin: 0;
  line-height: 1.25;
}

.yn-subpage-card-step {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #B2685F;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.yn-subpage-card-body {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #555050;
  margin: 0;
}

.yn-subpage-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yn-subpage-list li {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4A4545;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.yn-subpage-list li svg {
  color: #B76E79;
  flex-shrink: 0;
  margin-top: 2px;
}

.yn-subpage-price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 6px 0;
}

.yn-subpage-price-val {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1;
}

.yn-subpage-price-unit {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #7A7575;
}

.yn-subpage-badge-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(183, 110, 121, 0.15);
  color: var(--yn-dusty-rose, #B76E79);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.yn-subpage-cta-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.yn-subpage-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 330px;
  padding: 13px 24px;
  background: var(--yn-dusty-rose, #B76E79);
  color: #FFFFFF !important;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.35);
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yn-subpage-cta-btn:active {
  transform: scale(0.98);
}