/* ============================
   ViBi Share Web — styles.css
   ============================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #0e0e14;
  color: #f0f0f5;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

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

textarea {
  font: inherit;
}

/* --- T019: Font utility classes --- */
.font-inter, .font-system { font-family: 'Inter', 'DM Sans', system-ui, sans-serif; }
.font-system { font-family: system-ui, -apple-system, sans-serif; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.font-mono { font-family: 'Space Mono', 'IBM Plex Mono', monospace; }
.font-sora { font-family: 'Outfit', 'Sora', sans-serif; }
.font-grotesk { font-family: 'Space Grotesk', sans-serif; }
.font-orbitron { font-family: 'Space Mono', 'Orbitron', monospace; }
.font-marker { font-family: 'Cabin Sketch', 'DM Sans', sans-serif; }
.font-elite { font-family: 'Space Mono', 'Special Elite', monospace; }
.font-glitch { font-family: 'Space Mono', monospace; }
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }
.font-outfit { font-family: 'Outfit', 'DM Sans', sans-serif; }
.font-caveat { font-family: 'Caveat', 'DM Sans', cursive; }

/* --- T009: Theme CSS custom properties --- */
.share-page {
  --accent: #ff5f93;
  --profile-bg: #101018;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --card-bg: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --overlay: rgba(0, 0, 0, 0.5);
  --success: #4ade80;
  --error: #f87171;
  --warn: #fbbf24;
  background: var(--profile-bg);
  color: var(--text-primary);
}

/* --- T010: Landing page — Redesign (vibi.social) --- */

/* Base overrides for landing page */
body {
  background: #F3F1FF;
}

/* Patrick Hand for headings */
h1, h2, h3, .hand {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
}

/* ---- Nav ---- */
.landing-page {
  --landing-gutter: clamp(16px, 5vw, 32px);
  --section-y: clamp(56px, 8vw, 96px);
  overflow-x: hidden;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--landing-gutter);
  max-width: 1204px;
  margin: 0 auto;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #2A1B12;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  background: #7C6EFF;
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 24px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 14px;
  color: #4A4E7A;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #7C6EFF;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  max-width: 1204px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) var(--landing-gutter) var(--section-y);
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100svh - 88px));
  background: #F3F1FF;
}

.hero-blur {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

.hero-blur.purple {
  left: 40px;
  top: 80px;
  background: #7C6EFF;
  opacity: 0.1;
}

.hero-blur.dark {
  right: 40px;
  bottom: 80px;
  background: #5B4FCC;
  opacity: 0.1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: clamp(40px, 7vw, 80px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 540px;
}

.hero-text h1 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 5.5rem;
  line-height: 1.15;
  color: #2A1B12;
  font-weight: 400;
  letter-spacing: 0.44px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #4A4E7A;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px clamp(24px, 4vw, 40px);
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #7C6EFF;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background: #6B5DE8;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: #0E0F1F;
  border: 1.67px solid #C4C1E8;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
  background: #f8f7ff;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: #7C6EFF;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.btn-dark {
  background: #08090F;
  color: #F0F1F8;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.community-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.avatar-stack {
  display: flex;
}

.avatar-stack-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.67px solid #F3F1FF;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

.avatar-stack-item.purple { background: #7C6EFF; }
.avatar-stack-item.dark { background: #0E0F1F; }
.avatar-stack-item.mid { background: #5B4FCC; }
.avatar-stack-item.muted { background: #4A4E7A; }

.avatar-stack-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4A4E7A;
  border: 1.67px solid #F3F1FF;
  margin-left: -12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.community-text {
  font-size: 14px;
  font-weight: 500;
  color: #4A4E7A;
}

/* Hero right visual */
.hero-visual {
  flex: 1 1 420px;
  position: relative;
  min-width: min(420px, 100%);
  height: clamp(430px, 48vw, 580px);
}

.hero-phone-mock {
  position: absolute;
  width: clamp(220px, 28vw, 280px);
  aspect-ratio: 280 / 580;
  height: auto;
  background: #000;
  border: 5.84px solid #000;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.hero-phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.emoji-float {
  position: absolute;
  font-size: 36px;
  opacity: 0.74;
  z-index: 2;
}

.emoji-float.fire { top: -20px; left: -30px; font-size: 48px; opacity: 0.95; }
.emoji-float.eyes { top: 128px; right: -10px; }
.emoji-float.thought { bottom: 20px; left: 16px; }

/* ---- Brand Poster ---- */
.brand-section {
  max-width: 1204px;
  margin: 0 auto;
  padding: var(--section-y) var(--landing-gutter);
  text-align: center;
  background: #F3F1FF;
  position: relative;
}

.brand-blur {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.brand-blur.purple {
  left: -96px;
  top: 76px;
  background: #7C6EFF;
  opacity: 0.06;
}

.brand-blur.yellow {
  right: -60px;
  bottom: 40px;
  background: #F5C518;
  opacity: 0.05;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 9999px;
  background: #fff;
  border: 0.83px solid #C4C1E8;
  font-size: 14px;
  font-weight: 600;
  color: #5B4FCC;
  margin-bottom: 24px;
}

.brand-section h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 4.5rem;
  line-height: 1.05;
  color: #2A1B12;
  font-weight: 400;
  letter-spacing: 0.72px;
  margin-bottom: 16px;
}

.brand-section h2 .highlight {
  color: #7C6EFF;
}

.brand-underline {
  display: inline-block;
  border-bottom: 3.68px solid #F5C518;
  padding-bottom: 2px;
}

.brand-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #4A4E7A;
  max-width: 640px;
  margin: 0 auto 48px;
}

.brand-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}

.brand-card-main {
  background: #fff;
  border: 1.67px solid #2A1B12;
  box-shadow: 4px 4px 0 #2A1B12;
  border-radius: 28px;
  padding: clamp(16px, 3vw, 24px);
  transform: rotate(-1deg);
  flex: 1 1 520px;
  max-width: 100%;
}

.brand-card-main img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

.brand-palette-preview {
  background: linear-gradient(135deg,#F3F1FF,#E8E4FF);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
}

.brand-card-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 320px;
  max-width: 100%;
}

.brand-card-small {
  background: #fff;
  border: 1.67px solid #2A1B12;
  box-shadow: 4px 4px 0 #2A1B12;
  border-radius: 28px;
  padding: 16px 24px;
  transform: rotate(1.5deg);
}

.brand-card-small img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-card-quote {
  background: #FFE89B;
  border: 1.67px solid #2A1B12;
  box-shadow: 4px 4px 0 #2A1B12;
  border-radius: 28px;
  padding: 25px;
  transform: rotate(-1deg);
  flex: 1;
}

.brand-card-quote p {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 24px;
  line-height: 1.3;
  color: #2A1B12;
  max-width: 420px;
}

/* ---- Stats ---- */
.stats-section {
  background: #08090F;
  padding: clamp(48px, 7vw, 64px) var(--landing-gutter);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  max-width: 1204px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 3.75rem;
  line-height: 1.15;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.stat-number.white { color: #F0F1F8; }
.stat-number.purple { color: #7C6EFF; }

.stat-label {
  font-size: 18px;
  color: #9A9EC8;
}

/* ---- How it works (App Showcase) ---- */
.showcase-section {
  background: #F3F1FF;
  padding: var(--section-y) var(--landing-gutter);
}

.showcase-content {
  max-width: 1204px;
  margin: 0 auto;
  text-align: center;
}

.showcase-content h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 3.75rem;
  color: #0E0F1F;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.showcase-content > p {
  font-size: 20px;
  color: #4A4E7A;
  margin-bottom: 48px;
}

.phone-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.phone-step {
  text-align: center;
  min-width: 0;
}

.phone-mock {
  width: min(252px, 100%);
  aspect-ratio: 252 / 522;
  height: auto;
  background: #000;
  border: 5.26px solid #000;
  border-radius: 36px;
  box-shadow: 0 22.5px 45px -10.8px rgba(0,0,0,0.25);
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
}

.phone-mock-notch {
  width: 108px;
  height: 25px;
  background: #000;
  border-radius: 0 0 14.4px 14.4px;
  margin: 0 auto;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #fff;
  border: 1.67px solid #C4C1E8;
  border-radius: 16px;
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 30px;
  color: #7C6EFF;
  margin-top: 12px;
}

/* ---- Features (why vibi?) ---- */
.features-section {
  background: #08090F;
  padding: var(--section-y) var(--landing-gutter);
}

.features-content {
  max-width: 1204px;
  margin: 0 auto;
  text-align: center;
}

.features-content h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 3.75rem;
  color: #F0F1F8;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.features-content > p {
  font-size: 20px;
  color: #9A9EC8;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: #10131E;
  border: 0.83px solid #2E3450;
  border-radius: 24px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: #7C6EFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124,110,255,0.15);
}

.feature-card:focus-visible {
  outline: 2px solid #7C6EFF;
  outline-offset: 2px;
}

.feature-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #7C6EFF;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.icon-wrap svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 24px;
  color: #F0F1F8;
  font-weight: 400;
  letter-spacing: 0.12px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #9A9EC8;
}

/* ---- Media Recommendations ---- */
.media-section {
  background: #08090F;
  padding: var(--section-y) var(--landing-gutter);
}

.media-content {
  max-width: 1204px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(40px, 8vw, 96px);
}

.media-visual {
  flex: 0 0 280px;
  position: relative;
}

.media-phone {
  width: min(280px, 100%);
  aspect-ratio: 280 / 580;
  height: auto;
  background: #000;
  border: 5.84px solid #000;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.media-phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(124,110,255,0.125);
  border: 0.83px solid rgba(124,110,255,0.25);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #7C6EFF;
  margin-bottom: 20px;
}

.media-badge .icon-wrap {
  width: 16px;
  height: 16px;
}

.media-text h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 3.5rem;
  line-height: 1.15;
  color: #F0F1F8;
  font-weight: 400;
  letter-spacing: 0.28px;
  margin-bottom: 20px;
}

.media-text > p {
  font-size: 18px;
  line-height: 1.6;
  color: #9A9EC8;
  margin-bottom: 32px;
  max-width: 512px;
}

.media-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.media-step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.media-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(124,110,255,0.125);
  border: 0.83px solid rgba(124,110,255,0.25);
  border-radius: 14px;
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 14px;
  color: #7C6EFF;
  flex-shrink: 0;
}

.media-step p {
  font-size: 16px;
  color: #F0F1F8;
}

.media-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.media-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #10131E;
  border: 0.83px solid #2E3450;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #F0F1F8;
}

.media-tag .icon-wrap {
  width: 16px;
  height: 16px;
}

/* ---- Anonymous Drawing ---- */
.drawing-section {
  background: #F3F1FF;
  padding: var(--section-y) var(--landing-gutter);
  position: relative;
  overflow: hidden;
}

.drawing-blur {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #7C6EFF;
  opacity: 0.06;
  filter: blur(80px);
  left: -160px;
  top: -160px;
  pointer-events: none;
}

.drawing-content {
  max-width: 1204px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.drawing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: #fff;
  border: 0.83px solid #C4C1E8;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #5B4FCC;
  margin-bottom: 24px;
}

.drawing-badge .icon-wrap,
.profile-badge .icon-wrap {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.drawing-content h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 3rem;
  line-height: 1.1;
  color: #2A1B12;
  font-weight: 400;
  letter-spacing: 0.24px;
  margin-bottom: 20px;
  max-width: 540px;
}

.drawing-content > p {
  font-size: 18px;
  line-height: 1.6;
  color: #4A4E7A;
  max-width: 520px;
  margin-bottom: 32px;
}

.drawing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 480px;
}

.drawing-feat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 0.83px solid #C4C1E8;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #2A1B12;
}

.drawing-feat-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #7C6EFF;
  flex-shrink: 0;
}

.drawing-feat-icon .icon-wrap svg {
  width: 100%;
  height: 100%;
}

/* ---- Profile Upgrades ---- */
.profile-section {
  background: linear-gradient(180deg, #F3F1FF 0%, #E8E4FF 100%);
  padding: var(--section-y) var(--landing-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-blur-top {
  position: absolute;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  background: radial-gradient(70.71% 70.71% at 50% 50%, rgba(124,110,255,0.25), transparent 70%);
  filter: blur(40px);
  left: 40px;
  top: 80px;
  pointer-events: none;
}

.profile-blur-bottom {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: radial-gradient(70.71% 70.71% at 50% 50%, rgba(91,79,204,0.2), transparent 70%);
  filter: blur(40px);
  right: 40px;
  bottom: 40px;
  pointer-events: none;
}

.profile-content {
  max-width: 1204px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.7);
  border: 0.83px solid rgba(124,110,255,0.3);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #5B4FCC;
  margin-bottom: 24px;
}

.profile-content h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 3.75rem;
  line-height: 1.1;
  color: #08090F;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.profile-content > p {
  font-size: 18px;
  color: #5A5A6E;
  max-width: 576px;
  margin: 0 auto 48px;
}

.profile-showcase {
  width: min(100%, 520px);
  margin: 0 auto;
  position: relative;
}

.profile-photo-stage {
  position: relative;
  height: 271px;
  margin: 0 auto -32px;
  isolation: isolate;
}

.profile-photo-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2px;
  background: #0A0A0A;
  border: 1.2px solid #222;
  border-radius: 16px;
  overflow: hidden;
}

.profile-photo-card-main {
  width: 158px;
  height: 198px;
  left: 50%;
  top: 17px;
  z-index: 3;
  border-color: #444;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: translateX(-50%);
}

.profile-photo-card-left {
  width: 85px;
  height: 130px;
  left: calc(50% - 170px);
  top: 50px;
  z-index: 1;
}

.profile-photo-card-right {
  width: 96px;
  height: 130px;
  left: calc(50% + 120px);
  top: 51px;
  z-index: 1;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  flex: none;
  align-self: stretch;
}

.profile-photo-one,
.profile-photo-two {
  opacity: 0.8;
}

.profile-photo-main {
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,0.18) 0 8%, transparent 8.5%),
    radial-gradient(circle at 35% 34%, rgba(255,255,255,0.2) 0 5%, transparent 5.5%),
    linear-gradient(145deg, rgba(124,110,255,0.95), rgba(255,95,147,0.65) 54%, rgba(10,10,10,0.9)),
    #17171f;
}

.profile-photo-one {
  background:
    linear-gradient(160deg, rgba(10,10,10,0) 45%, rgba(10,10,10,0.72)),
    radial-gradient(circle at 50% 26%, rgba(255,255,255,0.22) 0 10%, transparent 10.5%),
    linear-gradient(135deg, #7C6EFF, #6BCB77);
}

.profile-photo-two {
  background:
    linear-gradient(160deg, rgba(10,10,10,0) 42%, rgba(10,10,10,0.72)),
    radial-gradient(circle at 58% 22%, rgba(255,255,255,0.24) 0 9%, transparent 9.5%),
    linear-gradient(135deg, #FFD93D, #FF6B9D 55%, #7C6EFF);
}

.profile-card {
  max-width: 420px;
  margin: 0 auto;
  background: #101018;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(14,15,31,0.22), 0 0 0 1px rgba(124,110,255,0.08);
  padding: 24px;
  text-align: center;
  position: relative;
  z-index: 4;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 18px;
}

.profile-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C6EFF, #5B4FCC);
  box-shadow: 0 8px 24px rgba(124,110,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.profile-card-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #F0F0F5;
  margin-bottom: 4px;
}

.profile-card-bio {
  font-size: 14px;
  color: #A0A0B0;
  margin-bottom: 0;
}

.profile-card-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
  padding: 12px 18px;
  margin-bottom: 20px;
}

.profile-card-stat {
  text-align: center;
}

.profile-card-stat strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #F0F0F5;
}

.profile-card-stat span {
  font-size: 11px;
  font-weight: 500;
  color: #A0A0B0;
}

.profile-card-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.profile-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  text-align: left;
  transition: all 0.2s;
}

.profile-card-btn.primary {
  background: #7C6EFF;
  color: #fff;
  box-shadow: 0 10px 28px rgba(124,110,255,0.35);
  cursor: pointer;
}

.profile-card-btn.primary:hover {
  background: #6B5DE8;
  transform: translateY(-2px);
}

.profile-card-btn.primary:focus-visible {
  outline: 2px solid #7C6EFF;
  outline-offset: 2px;
}

.profile-card-btn.primary .btn-icon {
  background: rgba(255,255,255,0.2);
}

.profile-card-btn.secondary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #F0F0F5;
  box-shadow: none;
  cursor: pointer;
}

.profile-card-btn.secondary:hover {
  border-color: #7C6EFF;
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.profile-card-btn.secondary:focus-visible {
  outline: 2px solid #7C6EFF;
  outline-offset: 2px;
}

.profile-card-btn.secondary .btn-icon {
  background: rgba(255,255,255,0.06);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  flex-shrink: 0;
}

.btn-icon .icon-wrap {
  width: 20px;
  height: 20px;
}

.profile-card-btn-text {
  flex: 1;
}

.profile-card-btn-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.profile-card-btn-text span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
}

.profile-card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #A0A0B0;
}

/* ---- Privacy First (Ask/Recommend/Express) ---- */
.privacy-section {
  background: #F3F1FF;
  padding: var(--section-y) var(--landing-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.privacy-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(61.09% 87.03% at 50% 50%, #7C6EFF 0.08%, transparent 80%);
  opacity: 0.04;
  pointer-events: none;
}

.privacy-content {
  max-width: 1204px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(124,110,255,0.1);
  border: 0.83px solid rgba(124,110,255,0.3);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #7C6EFF;
  margin-bottom: 24px;
}

.privacy-content h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 3.5rem;
  color: #0E0F1F;
  font-weight: 400;
  letter-spacing: 0.28px;
  margin-bottom: 16px;
}

.privacy-content > p {
  font-size: 18px;
  color: #4A4E7A;
  margin-bottom: 32px;
}

.privacy-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.privacy-tab {
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 14.7px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.privacy-tab.active {
  background: #7C6EFF;
  color: #fff;
  border: 0.88px solid #7C6EFF;
}

.privacy-tab:not(.active) {
  background: #fff;
  color: #4A4E7A;
  border: 0.83px solid #C4C1E8;
}

.privacy-demo {
  max-width: 672px;
  margin: 0 auto;
}

.privacy-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.privacy-panel.hidden {
  display: none;
}

.privacy-question-card {
  background: #0E0F1F;
  border: 0.83px solid rgba(124,110,255,0.25);
  border-radius: 24px;
  padding: 21px;
  text-align: left;
}

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

.privacy-q-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124,110,255,0.145);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.privacy-q-info {
  flex: 1;
}

.privacy-q-info strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7C6EFF;
}

.privacy-q-info span {
  font-size: 12px;
  color: #5A5F85;
}

.privacy-q-text {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 16px;
  color: #F0F1F8;
}

.privacy-movie-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.movie-title {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #F0F1F8;
  line-height: 22px;
}

.movie-meta {
  font-size: 14px;
  color: #5A5F85;
  line-height: 20px;
}

.movie-quote {
  font-size: 14px;
  font-style: italic;
  color: #9A9EC8;
  line-height: 23px;
}

.privacy-drawing-canvas {
  width: 100%;
  background: #191E2E;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 406 / 110;
}

.privacy-drawing-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.privacy-panel-text {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #0E0F1F;
}

.privacy-conversation-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  justify-content: center;
}

.privacy-line {
  flex: 1;
  height: 1px;
  background: #C4C1E8;
  max-width: 308px;
}

.privacy-down-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7C6EFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.privacy-answer-card {
  background: rgba(124,110,255,0.094);
  border: 0.83px solid rgba(124,110,255,0.314);
  border-radius: 24px;
  padding: 21px;
  text-align: left;
  align-self: flex-end;
  max-width: 448px;
}

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

.privacy-a-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7C6EFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.privacy-a-text {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 16px;
  color: #0E0F1F;
}

.privacy-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.privacy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C4C1E8;
}

.privacy-dot.active {
  width: 24px;
  background: #7C6EFF;
  border-radius: 9999px;
}

/* ---- Download CTA ---- */
.cta-section {
  background: linear-gradient(135deg, #7C6EFF 0%, #5B4FCC 100%);
  padding: var(--section-y) var(--landing-gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-emoji {
  position: absolute;
  font-size: 96px;
  opacity: 0.2;
  pointer-events: none;
}

.cta-emoji.fire { top: 40px; right: 60px; }
.cta-emoji.thought { bottom: 40px; left: 40px; }

.cta-glow {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(64px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-content {
  max-width: 896px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: 'Patrick Hand', 'DM Sans', sans-serif;
  font-size: 4.5rem;
  line-height: 1.15;
  color: #2A1B12;
  font-weight: 400;
  letter-spacing: 0.36px;
  margin-bottom: 24px;
}

.cta-content > p {
  font-size: 24px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-top: 24px;
}

/* ---- Footer ---- */
.landing-footer {
  background: #F3F1FF;
  border-top: 0.83px solid #C4C1E8;
  padding: clamp(40px, 6vw, 48px) var(--landing-gutter) 24px;
}

.footer-content {
  max-width: 1204px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: #4A4E7A;
  margin-top: 8px;
}

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

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: #4A4E7A;
  text-decoration: none;
}

.footer-links a:hover {
  color: #7C6EFF;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E8E5FF;
  color: #4A4E7A;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: #D6D1FF;
}

.footer-bottom {
  border-top: 0.83px solid #C4C1E8;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #4A4E7A;
}

/* ---- Landing page responsive ---- */
@media (max-width: 1024px) {
  .landing-page {
    --section-y: 72px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .community-row {
    justify-content: center;
  }
  .hero-visual {
    flex: none;
    width: min(100%, 360px);
    min-width: 0;
    height: 460px;
  }
  .hero-phone-mock {
    width: 220px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-content {
    flex-direction: column;
    text-align: center;
  }
  .media-steps {
    align-items: center;
  }
  .media-tags {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .landing-page {
    --section-y: 64px;
  }
  .hero-section {
    min-height: 0;
  }
  .hero-text h1 {
    font-size: 4rem;
  }
  .hero-sub,
  .cta-content > p {
    font-size: 1.125rem;
  }
  .brand-section h2,
  .cta-content h2 {
    font-size: 3.25rem;
  }
  .showcase-content h2,
  .features-content h2,
  .profile-content h2 {
    font-size: 3rem;
  }
  .media-text h2,
  .privacy-content h2 {
    font-size: 2.875rem;
  }
  .drawing-content h2 {
    font-size: 2.5rem;
  }
  .brand-card-main {
    flex: 1 1 100%;
    transform: none;
  }
  .brand-card-side {
    flex: 1 1 100%;
  }
  .brand-card-small,
  .brand-card-quote {
    transform: none;
  }
  .brand-cards {
    flex-direction: column;
    align-items: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .phone-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .landing-nav {
    padding: 16px;
  }
  .nav-links {
    display: none;
  }
  .emoji-float {
    display: none;
  }
}

@media (max-width: 560px) {
  .landing-page {
    --landing-gutter: 16px;
    --section-y: 48px;
    padding: 0;
  }
  .landing-nav {
    padding: 14px var(--landing-gutter);
  }
  .brand-lockup {
    font-size: 20px;
  }
  .hero-section {
    padding-top: 24px;
  }
  .hero-content {
    gap: 32px;
  }
  .hero-text h1 {
    font-size: 3rem;
    line-height: 1.08;
    margin-bottom: 18px;
  }
  .hero-buttons,
  .cta-buttons {
    width: 100%;
  }
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
  }
  .community-row {
    justify-content: center;
    gap: 14px;
  }
  .community-text {
    width: 100%;
  }
  .hero-visual {
    width: min(100%, 280px);
    height: 390px;
  }
  .hero-phone-mock {
    width: 196px;
    border-radius: 32px;
  }
  .hero-phone-notch,
  .media-phone-notch {
    width: 92px;
    height: 22px;
  }
  .brand-section h2,
  .cta-content h2 {
    font-size: 2.625rem;
  }
  .showcase-content h2,
  .features-content h2,
  .profile-content h2,
  .media-text h2,
  .privacy-content h2 {
    font-size: 2.375rem;
  }
  .drawing-content h2 {
    font-size: 2.125rem;
  }
  .brand-sub,
  .showcase-content > p,
  .features-content > p,
  .media-text > p,
  .drawing-content > p,
  .profile-content > p,
  .privacy-content > p {
    font-size: 1rem;
  }
  .brand-card-main,
  .brand-card-small,
  .brand-card-quote,
  .feature-card,
  .privacy-question-card,
  .privacy-answer-card {
    border-radius: 20px;
  }
  .brand-card-main {
    padding: 12px;
    box-shadow: 3px 3px 0 #2A1B12;
  }
  .brand-palette-preview {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .brand-palette-preview > div:first-child {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 10px !important;
  }
  .brand-palette-preview > div:nth-child(2) {
    font-size: 1.625rem !important;
  }
  .brand-palette-preview > div:nth-child(3) {
    font-size: 0.9375rem;
  }
  .brand-card-quote p {
    font-size: 1.25rem;
  }
  .stats-grid {
    gap: 20px 12px;
  }
  .stat-number {
    font-size: 2.875rem;
  }
  .stat-label {
    font-size: 0.9375rem;
  }
  .phone-step {
    max-width: 252px;
    margin: 0 auto;
  }
  .feature-card {
    padding: 22px;
  }
  .media-visual {
    width: 100%;
    flex-basis: auto;
  }
  .media-phone {
    width: 220px;
    border-radius: 32px;
  }
  .media-steps {
    width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
  }
  .media-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    justify-content: center;
    align-items: center;
    text-align: left;
  }
  .media-step-num {
    justify-self: center;
  }
  .drawing-features {
    max-width: none;
  }
  .drawing-feat {
    width: 100%;
  }
  .profile-card {
    width: 100%;
    padding: 28px 20px 24px;
    border-radius: 24px;
  }
  .profile-photo-stage {
    width: min(100%, 360px);
    height: 236px;
    margin-bottom: -26px;
  }
  .profile-photo-card-main {
    width: 142px;
    height: 178px;
    top: 12px;
  }
  .profile-photo-card-left {
    width: 76px;
    height: 116px;
    left: calc(50% - 135px);
    top: 48px;
  }
  .profile-photo-card-right {
    width: 86px;
    height: 116px;
    left: calc(50% + 82px);
    top: 49px;
  }
  .profile-card-stats {
    gap: 12px;
    padding: 12px 14px;
  }
  .profile-card-btn {
    padding: 14px;
  }
  .privacy-tabs {
    justify-content: stretch;
  }
  .privacy-tab {
    flex: 1 1 120px;
    padding-inline: 12px;
  }
  .privacy-answer-card {
    max-width: none;
    align-self: stretch;
  }
  .cta-emoji {
    display: none;
  }
  .footer-links,
  .footer-social {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 2.625rem;
  }
  .brand-section h2,
  .cta-content h2 {
    font-size: 2.25rem;
  }
  .hero-visual {
    display: none;
  }
  .profile-photo-card-left {
    left: calc(50% - 124px);
  }
  .profile-photo-card-right {
    left: calc(50% + 72px);
  }
  .profile-card-header {
    align-items: flex-start;
  }
  .profile-card-stats {
    border-radius: 22px;
    flex-wrap: wrap;
  }
  .profile-card-divider {
    display: none;
  }
  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* --- T011: Landing page animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

/* Spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* --- T012: Share page profile layout --- */
.share-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.share-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: clip;
}

.ambient-ring {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

/* Avatar stage */
.avatar-stage {
  position: relative;
  width: min(100%, 390px);
  height: 228px;
  margin: -6px 0 2px;
}

.avatar-stage.has-stack {
  padding: 0;
}

.main-avatar {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 190px;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0A0A;
  color: #fff;
  font-size: 58px;
  font-weight: 700;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  transform: translateX(-50%);
  z-index: 2;
}

.main-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.side-avatar {
  position: absolute;
  top: 44px;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.14);
  cursor: pointer;
  transition: all 0.2s;
  padding: 1.2px;
  background: #0A0A0A;
  z-index: 1;
}

.side-avatar:hover {
  border-color: var(--accent);
}

.side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  image-rendering: auto;
}

.side-1 {
  left: max(0px, calc(50% - 210px));
}

.side-2 {
  right: max(0px, calc(50% - 210px));
}

.avatar-stage.avatar-count-1 .main-avatar {
  top: 10px;
  width: 214px;
  height: 214px;
}

.avatar-stage.avatar-count-2 .main-avatar {
  left: calc(50% + 7px);
  top: 28px;
  width: 168px;
  height: 168px;
  border-radius: 16px;
  transform: none;
}

.avatar-stage.avatar-count-2 .side-avatar {
  top: 28px;
  width: 168px;
  height: 168px;
  border-radius: 16px;
}

.avatar-stage.avatar-count-2 .side-avatar img {
  border-radius: 14px;
  image-rendering: auto;
}

.avatar-stage.avatar-count-2 .side-1 {
  left: calc(50% - 177px);
}

.avatar-stage.avatar-count-2 .side-2 {
  display: none;
}

/* Profile header */
.profile-header {
  text-align: center;
  width: 100%;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.name-row h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.handle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  margin-top: 8px;
}

.status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 360px;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
}

.stats-row div {
  text-align: center;
}

.stats-row strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.stats-row span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- T013: Ask card form --- */
.ask-panel {
  width: 100%;
}

.ask-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ask-panel label {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.ask-panel textarea {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}

.ask-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.ask-panel textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.ask-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.anonymous-hint {
  display: flex;
  align-items: center;
  gap: 6px;
}

.anonymous-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.char-count.warn {
  color: var(--warn);
}

.char-count.danger {
  color: var(--error);
}

.send-question {
  padding: 12px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
}

.send-question:hover {
  opacity: 0.9;
}

.send-question:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.honeypot {
  position: absolute;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

.form-message.success {
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.15);
  font-size: 14px;
  font-weight: 500;
  animation: successPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-message.success::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes successPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-message.error {
  color: var(--error);
}


.disabled-note {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- T014: Social links row --- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-row a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-row a span {
  font-size: 11px;
  font-weight: 700;
}

/* --- T015: Recent answers section --- */
.answers-section {
  width: 100%;
}

.answers-section h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.answer-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  min-width: 0;
  overflow: hidden;
}

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

.answer-card .question-line {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
}

.answer-card > p {
  font-size: 14px;
  line-height: 1.5;
}

.answer-card span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.question-line strong,
.answer-card > p strong {
  font-weight: 700;
}

/* --- Drawing card --- */
.answer-card.drawing .drawing-image-wrap {
  margin: 8px 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  aspect-ratio: 1 / 1;
}

.answer-card.drawing .drawing-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* --- Recommendation card --- */
.answer-card.recommendation .rec-content {
  display: flex;
  gap: 12px;
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
}

.answer-card.recommendation .rec-poster-wrap {
  flex-shrink: 0;
  width: 72px;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.answer-card.recommendation .rec-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.answer-card.recommendation .rec-info {
  flex: 1;
  min-width: 0;
}

.answer-card.recommendation .rec-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.answer-card.recommendation .rec-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.answer-card.recommendation .rec-overview {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-more-answers {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.show-more-answers:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.download-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}

.download-modal.hidden {
  display: none;
}

.download-modal-card {
  position: relative;
  width: min(100%, 380px);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: #111827;
  padding: 24px 20px 20px;
  text-align: center;
}

.download-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.download-modal-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.success-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--success);
  color: #000;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  animation: successPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.download-modal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.download-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
}

.download-link.primary {
  background: var(--accent);
  color: #fff;
}

.download-link.secondary {
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* Share tools */
.share-tools {
  width: 100%;
  text-align: center;
}

.share-url-button {
  width: 100%;
  padding: 10px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.share-url-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}

.share-tools p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
  word-break: break-all;
}

/* Powered by footer */
.powered-by {
  width: 100%;
  text-align: center;
}

.powered-by a {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.powered-by a:hover {
  opacity: 1;
}

/* --- T016: Loading spinner and error states --- */
.state-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.loading-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent, #ff5f93);
  animation: spin 0.8s linear infinite;
}

.loading-card p {
  font-size: 15px;
  color: #a0a0b0;
  animation: pulse 1.5s ease-in-out infinite;
}

.error-card {
  text-align: center;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.15);
  color: var(--error);
  font-size: 28px;
  font-weight: 700;
}

.error-card h1 {
  font-size: 22px;
  font-weight: 700;
}

.error-card p {
  font-size: 14px;
  color: #a0a0b0;
  line-height: 1.6;
}

.error-card .hero-actions {
  margin-top: 8px;
}

/* --- T017: Mobile-first responsive breakpoints --- */
@media (max-width: 600px) {
  .landing-page {
    padding: 0;
  }

  .landing-nav {
    padding: 14px var(--landing-gutter);
  }

  .nav-links {
    display: none;
  }

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

  .feature-card {
    padding: 20px;
  }

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

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

  .cta-section {
    padding: var(--section-y) var(--landing-gutter);
  }

  .share-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .stats-row {
    gap: 20px;
  }

  .avatar-stage {
    height: 206px;
    margin-top: -2px;
  }

  .main-avatar {
    width: 168px;
    height: 168px;
    border-radius: 14px;
    font-size: 52px;
  }

  .avatar-stage.has-stack {
    padding: 0;
  }

  .side-avatar {
    top: 40px;
    width: 98px;
    height: 98px;
    border-radius: 10px;
  }

  .side-avatar img {
    border-radius: 8px;
  }

  .avatar-stage.avatar-count-1 .main-avatar {
    top: 8px;
    width: 184px;
    height: 184px;
  }

  .avatar-stage.avatar-count-2 .main-avatar {
    left: calc(50% + 7px);
    top: 30px;
    width: 140px;
    height: 140px;
    border-radius: 14px;
    transform: none;
  }

  .avatar-stage.avatar-count-2 .side-avatar {
    top: 30px;
    width: 140px;
    height: 140px;
    border-radius: 14px;
  }

  .avatar-stage.avatar-count-2 .side-avatar img {
    border-radius: 12px;
  }

  .avatar-stage.avatar-count-2 .side-1 {
    left: calc(50% - 148px);
  }

  .social-row a {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 540px) {
  .share-card {
    padding: 40px 32px 32px;
  }
}

/* --- T018: Accessible focus states and reduced motion --- */
:focus-visible {
  outline: 2px solid var(--accent, #ff5f93);
  outline-offset: 2px;
}

.landing-page :focus-visible {
  outline-color: #7C6EFF;
}

.privacy-tab:focus-visible {
  outline: 2px solid #7C6EFF;
  outline-offset: 2px;
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-card.tilted-card {
    transform: none;
  }

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

  .social-row a:hover {
    transform: none;
  }
}
