/* ============================================================
   AI Chinese Tattoo Advisor — Landing Page Styles
   Style: MODERN ORIENTAL LUXURY (confirmed 2026-09-04)
   — Scene A: Deep Ink Black Studio (#0F0F0F / #1A1A1A)
   — Typography: Playfair Display serif headlines · Inter body · Noto Serif SC 汉字
   — Primary Accent: Champagne Gold #C9A45C
   — Retained auxiliary: Ink Teal #1F3A3D (墨黛), Cinnabar #A03A2C (warn), Seal Red #8C1C13
   ============================================================ */

:root {
  /* Scene A (default): dark studio */
  --cta-bg-dark:    #0F0F0F;
  --cta-card-dark:  #1A1A1A;
  --cta-ivory:      #F5F1E8;
  --cta-ivory-soft: #BFBAB1;
  /* Scene B (rice paper): only used where explicitly classed (not default here) */
  --cta-paper:      #F6F1E7;
  --cta-ink:        #161616;
  --cta-ink-soft:   #4A4A4A;
  --cta-divider:    rgba(245,241,232,0.12);
  /* Accent: GOLD */
  --cta-gold:       #C9A45C;
  --cta-gold-soft:  #8B7355;
  --cta-gold-glow:  rgba(201,164,92,0.22);
  --cta-seal:       #8C1C13;
  --cta-warn:       #A03A2C;
  --cta-ink-teal:   #1F3A3D; /* retained auxiliary */
  /* Geometry */
  --cta-radius-md:  16px;
  --cta-radius-pill: 999px;
}

* { box-sizing: border-box; }

/* Fonts: Playfair Display (luxury headlines) + Inter + Noto Serif SC — LOCAL offline (no CDN) */
@import url('./assets/fonts/_font-face.css');

html, body {
  margin: 0;
  padding: 0;
  background: var(--cta-bg-dark);
  color: var(--cta-ivory);
  font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.section { display: none; }
.section.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Header / Brandbar ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
}
.brand-logo { width: 40px; height: 40px; filter: drop-shadow(0 0 2px rgba(201,164,92,0.2)); }
.brand-name {
  font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--cta-ivory);
}

/* ---------- Typography Scale (Luxury Serif Headlines, ivory body on dark) ---------- */
.text-display, h1.text-display {
  font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  font-size: 56px; line-height: 1.08; font-weight: 700; letter-spacing: -0.005em;
  color: var(--cta-ivory); margin: 0 0 24px;
}
.text-display .accent-gold { color: var(--cta-gold); }

.text-title-lg, h2.text-title-lg {
  font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.002em;
  color: var(--cta-ivory); margin: 0 0 24px;
}

.step-title {
  font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  font-size: 34px; line-height: 1.2; font-weight: 600;
  color: var(--cta-ivory); margin: 0 0 28px;
}

.text-body-lg { font-size: 19px; line-height: 1.7; color: var(--cta-ivory-soft); margin: 0 0 36px; }
.text-body    { font-size: 16px; color: var(--cta-ivory-soft); }
.text-caption { font-size: 13px; color: var(--cta-ivory-soft); letter-spacing: 0.02em; }
.char         { font-family: 'Noto Serif SC', serif; font-weight: 600; }
.serif        { font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif; }

@media (max-width: 480px) {
  .text-display { font-size: 40px; }
  .text-title-lg { font-size: 30px; }
  .step-title { font-size: 28px; }
  .text-body-lg { font-size: 17px; }
}

/* ---------- Buttons — PREMIUM GOLD STROKE (16px radius — NOT pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 34px;
  border-radius: var(--cta-radius-md);
  font-size: 17px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

/* ======== Main CTA: btn-premium (1px gold stroke; press → invert) ======== */
.btn-primary,
.btn-premium {
  background: transparent;
  color: var(--cta-gold);
  border: 1px solid var(--cta-gold);
  box-shadow: 0 8px 24px rgba(201,164,92,0.06);
}
.btn-primary:active,
.btn-primary.is-active,
.btn-premium:active {
  background: var(--cta-gold);
  color: #0F0F0F;
  box-shadow: 0 12px 32px var(--cta-gold-glow);
  transform: scale(0.985);
}

/* ======== Secondary: gold stroke + gold text ======== */
.btn-secondary {
  background: transparent;
  color: var(--cta-gold);
  border: 1px solid var(--cta-gold);
  font-weight: 500;
}
.btn-secondary:active { background: var(--cta-gold); color: #0F0F0F; }

.btn-minimal {
  background: transparent; color: var(--cta-ivory-soft); font-weight: 500;
  padding: 16px 24px; font-size: 15px; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-block { width: 100%; }

/* ---------- Hero (NEW: Giant gold 人 symbol + Luxury story tagline) ---------- */
.hero { padding: 24px 0 48px; text-align: center; }

.hero-symbol-wrap { margin-bottom: 24px; display: flex; justify-content: center; }
.hero-symbol-char {
  font-family: 'Noto Serif SC', serif; font-weight: 600;
  font-size: 120px; line-height: 1;
  color: var(--cta-gold);
  text-shadow: 0 4px 48px rgba(201,164,92,0.22);
  user-select: none;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cta-gold); opacity: 0.92;
  margin-bottom: 18px;
}

.hero-subtitle {
  color: var(--cta-ivory-soft); margin-bottom: 40px;
  font-size: 18px; line-height: 1.75; max-width: 520px; margin-left: auto; margin-right: auto;
}
.hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.hero-cta .btn { min-width: 280px; }
.hero-meta { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cta-ivory-soft); }
.check-gold { color: var(--cta-gold); font-weight: 700; }

.rule-gold { height: 1px; background: linear-gradient(90deg, transparent, rgba(201,164,92,0.5), transparent); opacity: 0.7; margin: 12px 0 28px; }

/* ---------- Question Steps (Quiz) ---------- */
.question-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cta-gold); margin-bottom: 16px;
}
.step-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; flex-wrap: wrap; gap: 12px; }

/* Trait cards — Scene A dark styling (not white bg) */
.trait-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.trait-card {
  padding: 20px 16px;
  border: 1px solid rgba(245,241,232,0.1);
  border-radius: var(--cta-radius-md);
  background: var(--cta-card-dark);
  color: var(--cta-ivory);
  cursor: pointer; transition: all 0.15s ease;
  text-align: center;
}
.trait-card:hover { border-color: rgba(201,164,92,0.45); }
.trait-card.selected {
  border-color: var(--cta-gold);
  background: rgba(201,164,92,0.08);
  color: var(--cta-gold);
  box-shadow: 0 8px 24px rgba(201,164,92,0.12);
}
.trait-card.selected .trait-sub { color: rgba(201,164,92,0.75); }
.trait-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.trait-sub  { font-size: 12px; color: var(--cta-ivory-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* Text areas (Story + Intent steps) — deep dark inputs */
.story-area {
  width: 100%; min-height: 180px;
  padding: 20px; font-size: 16px; font-family: inherit; line-height: 1.65;
  background: var(--cta-card-dark); color: var(--cta-ivory);
  border: 1px solid rgba(245,241,232,0.12); border-radius: var(--cta-radius-md);
  resize: vertical; transition: border-color 0.15s ease;
}
.story-area::placeholder { color: rgba(191,186,177,0.55); }
.story-area:focus { outline: none; border-color: var(--cta-gold); }
.story-hint { margin-top: 12px; font-size: 14px; color: var(--cta-ivory-soft); }
.example {
  display: block; margin-top: 12px; padding: 14px 18px;
  background: var(--cta-card-dark);
  border-left: 3px solid var(--cta-gold); border-radius: 6px;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 14px; color: var(--cta-ivory-soft);
}

/* ---------- Analyzing ritual (Golden Scene C glow) ---------- */
.analyzing-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center;
}
.analyzing-step {
  font-size: 20px; color: var(--cta-ivory); margin: 16px 0;
  opacity: 0; transform: translateY(8px);
  animation: reveal 0.8s forwards;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.005em;
}
.analyzing-step:nth-child(2) { animation-delay: 1.0s; }
.analyzing-step:nth-child(3) { animation-delay: 2.0s; }
.analyzing-dot { display: inline-block; animation: blink 1.0s infinite; margin-left: 4px; color: var(--cta-gold); }
.analyzing-char-reveal {
  margin-top: 48px;
  font-family: 'Noto Serif SC', serif; font-weight: 600;
  font-size: 96px; color: var(--cta-gold);
  text-shadow: 0 0 80px rgba(201,164,92,0.42);
  opacity: 0; animation: reveal 1.2s 3.0s forwards;
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Paywall — Dark cards + GOLD Popular border/badge ---------- */
.paywall-head { text-align: center; margin-bottom: 40px; }
.paywall-head .eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cta-gold); font-weight: 700; margin-bottom: 12px;
}
.paywall-char-blur {
  position: relative; display: inline-block;
  font-family: 'Noto Serif SC', serif; font-weight: 600;
  font-size: 140px; color: var(--cta-gold);
  filter: blur(10px) opacity(0.62);
  text-shadow: 0 0 48px rgba(201,164,92,0.2);
  margin: 24px 0 8px;
}
.paywall-char-reveal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.paywall-char-reveal span {
  padding: 6px 14px;
  background: var(--cta-gold); color: #0F0F0F;
  border-radius: var(--cta-radius-md);
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  filter: none; font-family: 'Inter', sans-serif;
}
.paywall-pinyin {
  font-size: 16px; color: var(--cta-ivory-soft); letter-spacing: 0.12em;
  margin-bottom: 24px; text-transform: uppercase;
}
.paywall-hint { color: var(--cta-ivory-soft); margin-bottom: 8px; }

/* Three Tier Cards — DARK luxury style */
.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 32px 0;
}
.tier-card {
  background: var(--cta-card-dark);
  border: 1px solid rgba(245,241,232,0.1);
  border-radius: var(--cta-radius-md);
  padding: 28px 24px 24px;
  position: relative;
  display: flex; flex-direction: column;
}
.tier-card.popular {
  border-color: var(--cta-gold);
  box-shadow: 0 16px 48px rgba(201,164,92,0.18);
  transform: translateY(-6px);
}
.tier-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--cta-gold); color: #0F0F0F;
  border-radius: var(--cta-radius-pill);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tier-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cta-ivory-soft); margin-bottom: 6px;
}
.tier-price {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700; color: var(--cta-gold); margin-bottom: 4px;
}
.tier-card.popular .tier-price { color: var(--cta-gold); }
.tier-price-sub { font-size: 13px; color: var(--cta-ivory-soft); margin-bottom: 16px; }
.tier-features { list-style: none; padding: 0; margin: 0 0 24px; }
.tier-features li {
  padding: 8px 0; font-size: 14px; color: var(--cta-ivory-soft);
  display: flex; align-items: flex-start; gap: 10px;
}
.tier-features li::before { content: '✦'; color: var(--cta-gold); font-weight: 700; flex-shrink: 0; }
.tier-card .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 96px; padding-top: 24px;
  border-top: 1px solid rgba(245,241,232,0.1);
  font-size: 13px; color: var(--cta-ivory-soft); text-align: center;
}
