/* ===== VOCA LANDING PAGE SHARED STYLES ===== */

/* Icons (Lucide via data-lucide — sized after SVG replaces <i>) */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

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

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 40px; height: 40px; }

.icon-primary { color: var(--primary); }
.icon-on-primary { color: rgba(255, 255, 255, 0.95); }
.icon-muted { color: var(--ink-secondary); }
.icon-success { color: var(--success); }

.inline-icon-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

:root {
  --primary: #4E7FA0;
  --primary-light: #7BA4C1;
  --primary-dark: #3A5F78;
  --secondary: #EED679;
  --secondary-dark: #D1B84D;
  --bg: #F3F9FF;
  --card: #FFFFFF;
  --ink: #1A1C1E;
  --ink-secondary: #6C727A;
  --ink-disabled: #9CA3AF;
  --divider: #E5EEF5;
  --error: #E25C5C;
  --success: #4CAF50;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 2px 12px rgba(78, 127, 160, 0.08);
  --shadow-hover: 0 6px 24px rgba(78, 127, 160, 0.14);

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ===== NAVIGATION ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 249, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--divider);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--primary);
}

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

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

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

.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-nav:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-1px);
}

.voca-lang-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.voca-lang-select {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: white;
  border: 1px solid var(--divider);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  cursor: pointer;
  max-width: 148px;
}

.voca-lang-select:hover {
  border-color: var(--primary-light);
  color: var(--ink);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(78, 127, 160, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(78, 127, 160, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(238, 214, 121, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  box-shadow: 0 6px 20px rgba(238, 214, 121, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: white; }

.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ===== SECTIONS ===== */
section { padding: 80px 24px; }

.container {
  max-width: 960px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  background: rgba(78, 127, 160, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ink);
}

.section-subtitle {
  font-size: 17px;
  color: var(--ink-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 20px; }
  nav { padding: 0 16px; }
}

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

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

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

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

.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
}

.footer-brand .app-name {
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-links h4 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: white; }

/* ===== PAGE HEADER (for sub-pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 24px 64px;
  text-align: center;
}

.page-header .breadcrumb {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.page-header .breadcrumb a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
}

.page-header .breadcrumb a:hover { opacity: 1; }

.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-header .subtitle {
  font-size: 17px;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== PROSE (for legal/support pages) ===== */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
}

.prose h2:first-of-type { border-top: none; margin-top: 16px; }

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.prose p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  margin: 12px 0 16px 24px;
}

.prose li {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose a { color: var(--primary); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose .callout {
  background: rgba(78, 127, 160, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.prose .callout p { margin: 0; color: var(--ink); font-size: 14px; }

/* ===== MISC ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(238, 214, 121, 0.25);
  color: #8B6C00;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(238, 214, 121, 0.6);
}

.tag {
  display: inline-flex;
  background: rgba(78, 127, 160, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

/* Word card mockup */
.word-card-mockup {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-hover);
  max-width: 320px;
}

.word-card-mockup .word-pos {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.word-card-mockup .word-text {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 4px;
}

.word-card-mockup .word-meaning {
  font-size: 18px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.word-card-mockup .word-sentence-en {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 4px;
  font-style: italic;
}

.word-card-mockup .word-sentence-zh {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Streak pill */
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  color: #7A5F00;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(238, 214, 121, 0.4);
}

.streak-pill .icon-wrap {
  color: #b45309;
}

/* Language flags row */
.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Number feature */
.stat-block {
  text-align: center;
}

.stat-block .stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-block .stat-label {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* Feature icon */
.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(78, 127, 160, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* How it works steps */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 14px;
}

/* Widget mockup */
.widget-mockup-sm {
  background: linear-gradient(135deg, #1A2B3C 0%, #243447 100%);
  border-radius: 22px;
  padding: 16px;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.widget-mockup-sm .w-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3px;
}

.widget-mockup-sm .w-word {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
}

.widget-mockup-sm .w-pos {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.widget-mockup-sm .w-meaning {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
}

/* Pricing card */
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(78, 127, 160, 0.18);
}

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

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-badge.pricing-badge--lifetime {
  background: var(--secondary);
  color: var(--ink);
  border: 1px solid var(--secondary-dark);
}

.pricing-plan-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
}

.pricing-price sub {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-secondary);
  vertical-align: bottom;
  margin-bottom: 8px;
  display: inline-block;
}

.pricing-desc {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.pricing-features li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: var(--success);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--divider);
  margin: 0;
}

/* Announcement bar */
.announcement-bar {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-bar strong { font-weight: 700; }

.announcement-bar .icon-wrap {
  color: rgba(255, 255, 255, 0.95);
}

.hero-tag .icon-wrap.icon-primary {
  color: var(--primary);
}

.app-store-btn .as-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-store-btn .as-icon-wrap svg.lucide {
  width: 28px;
  height: 28px;
}

.cta-banner .app-store-btn .as-icon-wrap svg.lucide {
  width: 28px;
  height: 28px;
}

.phone-actions .phone-btn {
  color: var(--ink-secondary);
}

.phone-actions .phone-btn svg.lucide {
  width: 18px;
  height: 18px;
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.link-with-icon:hover {
  text-decoration: underline;
}

.link-with-icon.link-primary-strong {
  color: var(--primary);
  font-weight: 600;
}

.lang-tag-plain {
  display: inline-flex;
  align-items: center;
  background: rgba(78, 127, 160, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.lang-tag-plain .lang-abbr {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.65;
  letter-spacing: 0.05em;
  margin-right: 6px;
  min-width: 1.75em;
}

.feature-progress-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-weight: 600;
}
