/* ============================================
   Simplifier — style.css
   Design: Modern SaaS · Dark hero · Blue/Cyan
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-xlight: #eff6ff;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #cffafe;

  /* Backgrounds */
  --bg-hero: #0c1a2e;
  --bg-light: #f0f9ff;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --bg-gray-2: #f1f5f9;

  /* Text */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-blue: 0 8px 24px rgba(37,99,235,0.25);

  /* Spacing (8px base) */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 32px; --sp-2xl: 48px; --sp-3xl: 64px; --sp-4xl: 96px;

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;

  /* Radius */
  --r-sm: 6px; --r: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 9999px;

  /* Transitions */
  --t: 200ms ease;
  --t-slow: 400ms ease;

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-dark); background: var(--bg-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-body); line-height: 1.7; }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-xl); }
.section { padding: var(--sp-4xl) 0; }
.section-sm { padding: var(--sp-3xl) 0; }
.section-alt { background: var(--bg-light); }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-hero); color: var(--white); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.section-header { text-align: center; margin-bottom: var(--sp-3xl); }
.section-header h2 { margin-bottom: var(--sp-md); }
.section-header p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: var(--r-full); margin-bottom: var(--sp-md); }
.tag-dark { background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3); color: var(--accent); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-full); font-size: 0.75rem; font-weight: 700; }
.badge-blue { background: var(--primary-light); color: var(--primary-dark); }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-cyan { background: var(--accent-light); color: var(--accent-dark); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-full);
  font-weight: 600; font-size: 0.9375rem; font-family: var(--font);
  transition: all var(--t); position: relative; overflow: hidden;
  white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 20px; font-size: 0.875rem; }

.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-blue); }

.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }

.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--primary-xlight); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-dark { background: var(--text-dark); color: var(--white); border-color: var(--text-dark); }
.btn-dark:hover { background: #1e293b; transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-actions { display: flex; gap: var(--sp-md); align-items: center; flex-wrap: wrap; }
.btn-actions-center { justify-content: center; }

/* App Store Badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text-dark); color: var(--white);
  padding: 12px 22px; border-radius: var(--r-lg);
  font-weight: 600; font-size: 0.9375rem;
  transition: all var(--t);
}
.appstore-badge:hover { background: #1e293b; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.appstore-badge svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.appstore-badge-white { background: var(--white); color: var(--text-dark); }
.appstore-badge-white:hover { background: var(--bg-gray-2); }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.header-dark { background: transparent; }
.header-dark.scrolled {
  background: rgba(12,26,46,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header-light { background: var(--bg-white); border-bottom: 1px solid var(--border); }
.header-light.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--primary); color: var(--white); border-radius: 9px; font-size: 1rem; font-weight: 900; flex-shrink: 0; }
.header-dark .nav-logo { color: var(--white); }
.header-light .nav-logo { color: var(--text-dark); }

.nav-links { display: flex; align-items: center; gap: var(--sp-xl); }
.nav-links a { font-size: 0.9375rem; font-weight: 500; transition: color var(--t); padding: 4px 0; position: relative; }
.header-dark .nav-links a { color: rgba(255,255,255,0.75); }
.header-dark .nav-links a:hover, .header-dark .nav-links a.active { color: var(--white); }
.header-light .nav-links a { color: var(--text-muted); }
.header-light .nav-links a:hover, .header-light .nav-links a.active { color: var(--text-dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; border-radius: 2px; transition: all var(--t); }
.header-dark .hamburger span { background: var(--white); }
.header-light .hamburger span { background: var(--text-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-hero); z-index: 999;
  flex-direction: column; padding: var(--sp-xl) var(--sp-xl) var(--sp-2xl);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.85); font-size: 1.125rem; font-weight: 600; padding: var(--sp-lg) 0; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color var(--t); }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .btn { margin-top: var(--sp-xl); width: 100%; justify-content: center; }

/* ===== HERO — DARK ===== */
.hero {
  background: var(--bg-hero);
  padding: calc(var(--nav-h) + var(--sp-4xl)) 0 var(--sp-4xl);
  position: relative; overflow: hidden; color: var(--white);
}
.hero::before {
  content: ''; position: absolute; top: -250px; right: -150px;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -120px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3xl); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: var(--sp-lg); }
.hero h1 span { color: var(--accent); }
.hero-sub { font-size: 1.1875rem; color: rgba(255,255,255,0.72); margin-bottom: var(--sp-2xl); max-width: 500px; line-height: 1.65; }
.hero-trust { margin-top: var(--sp-xl); font-size: 0.8125rem; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 6px; }

/* Phone Mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-wrap { position: relative; filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5)); }
.phone-mockup {
  width: 268px; background: #0a1628; border-radius: 44px;
  border: 1.5px solid rgba(255,255,255,0.12); overflow: hidden;
}
.phone-notch { width: 110px; height: 24px; background: #0a1628; border-radius: 0 0 16px 16px; margin: 0 auto; }
.phone-screen {
  background: linear-gradient(180deg, #0f2244 0%, #0c1a2e 100%);
  margin: 0 8px 8px; border-radius: 32px; padding: 16px;
  min-height: 460px; display: flex; flex-direction: column; gap: 10px;
}
.phone-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.phone-bar-title { font-size: 0.6875rem; color: rgba(255,255,255,0.45); font-weight: 600; letter-spacing: 0.05em; }
.phone-status { display: flex; align-items: center; gap: 4px; }
.phone-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; }
.phone-doc {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 11px;
}
.phone-doc-icon { font-size: 1.125rem; margin-bottom: 7px; }
.phone-doc-name { font-size: 0.625rem; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 8px; }
.phone-line { height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-bottom: 5px; }
.phone-line-s { width: 60%; }
.phone-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.phone-mode {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 8px 6px; text-align: center;
  font-size: 0.5625rem; color: rgba(255,255,255,0.6); font-weight: 600;
}
.phone-mode-e { display: block; font-size: 0.9375rem; margin-bottom: 2px; }
.phone-mode.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.phone-result {
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2);
  border-radius: 10px; padding: 11px; flex: 1;
}
.phone-result-lbl { font-size: 0.5rem; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.phone-result-line { height: 5px; background: rgba(6,182,212,0.2); border-radius: 3px; margin-bottom: 5px; }
.phone-result-line-s { width: 65%; }

/* Floating badges */
.float-badge {
  position: absolute; background: var(--white); border-radius: 10px;
  padding: 7px 11px; box-shadow: var(--shadow-lg);
  font-size: 0.75rem; font-weight: 600; color: var(--text-dark); white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.float-left { left: -80px; top: 28%; }
.float-right { right: -75px; top: 62%; }

/* Hero — Light (inner pages) */
.hero-light {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
  padding: calc(var(--nav-h) + var(--sp-3xl)) 0 var(--sp-3xl);
  border-bottom: 1px solid var(--border);
}
.hero-page { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-page h1 { color: var(--text-dark); margin-bottom: var(--sp-lg); }
.hero-page p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: var(--sp-2xl); }

/* ===== USE CASE CARDS ===== */
.use-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); }
.use-case {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-2xl);
  transition: all var(--t); position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.use-case::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.use-case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.use-case-icon { width: 54px; height: 54px; background: var(--primary-light); border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-lg); font-size: 1.5rem; }
.use-case h3 { margin-bottom: var(--sp-sm); }
.use-case p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: var(--sp-lg); flex: 1; }
.use-case-link { color: var(--primary); font-weight: 600; font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 4px; }
.use-case-link::after { content: '→'; transition: transform var(--t); }
.use-case:hover .use-case-link::after { transform: translateX(4px); }

/* ===== FEATURE CARDS ===== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); }
.feature-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-2xl); transition: all var(--t);
}
.feature-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.fi { width: 50px; height: 50px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: var(--sp-lg); }
.fi-blue { background: #dbeafe; }
.fi-cyan { background: #cffafe; }
.fi-green { background: #dcfce7; }
.fi-purple { background: #ede9fe; }
.fi-orange { background: #ffedd5; }
.fi-rose { background: #ffe4e6; }
.feature-card h3 { margin-bottom: var(--sp-sm); }
.feature-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; }
.feature-list { margin-top: var(--sp-lg); display: flex; flex-direction: column; gap: 7px; }
.feature-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: var(--text-body); }
.feature-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ===== HOW IT WORKS — STEPS ===== */
.steps { display: flex; flex-direction: column; gap: var(--sp-4xl); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3xl); align-items: center; }
.step:nth-child(even) .step-vis { order: -1; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; background: var(--primary);
  color: var(--white); border-radius: var(--r-full);
  font-size: 1.25rem; font-weight: 800; margin-bottom: var(--sp-lg);
}
.step-body h3 { font-size: 1.375rem; margin-bottom: var(--sp-md); }
.step-body p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; margin-bottom: var(--sp-lg); }
.step-vis {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
  border-radius: var(--r-xl); height: 280px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.step-vis-inner { text-align: center; }
.step-vis-inner span { font-size: 3.5rem; display: block; margin-bottom: var(--sp-md); }
.step-vis-inner p { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-xl); }
.stat { text-align: center; padding: var(--sp-xl); }
.stat-n { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: var(--sp-sm); }
.stat-l { font-size: 0.9375rem; color: var(--text-muted); }

/* ===== TRUST ===== */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
.trust-card { text-align: center; padding: var(--sp-2xl); }
.trust-icon { width: 64px; height: 64px; background: var(--primary-light); border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto var(--sp-lg); }
.trust-card h3 { margin-bottom: var(--sp-sm); font-size: 1.125rem; }
.trust-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ===== LANGUAGE CHIPS ===== */
.lang-wrap { display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: center; max-width: 800px; margin: var(--sp-2xl) auto 0; }
.lang-chip { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r-full); padding: 6px 16px; font-size: 0.875rem; color: var(--text-body); font-weight: 500; }

/* ===== PRICING ===== */
.pricing-toggle-row { display: flex; align-items: center; justify-content: center; gap: var(--sp-md); margin-bottom: var(--sp-3xl); }
.pricing-toggle { display: flex; background: var(--bg-gray-2); border-radius: var(--r-full); padding: 4px; gap: 2px; }
.toggle-btn { padding: 8px 20px; border-radius: var(--r-full); font-size: 0.875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all var(--t); background: transparent; font-family: var(--font); }
.toggle-btn.active { background: var(--white); color: var(--text-dark); box-shadow: var(--shadow-sm); }
.save-pill { background: #dcfce7; color: #15803d; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); }

.pricing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); align-items: start; }
.p-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-2xl);
  display: flex; flex-direction: column; transition: all var(--t); position: relative;
}
.p-card:hover { box-shadow: var(--shadow-lg); }
.p-card.featured { border: 2px solid var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.08); }
.p-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white);
  font-size: 0.6875rem; font-weight: 700; padding: 4px 14px;
  border-radius: var(--r-full); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em;
}
.p-tier { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: var(--sp-md); }
.p-price { margin-bottom: var(--sp-sm); }
.p-amount { font-size: 2.75rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.p-per { font-size: 0.875rem; color: var(--text-muted); margin-left: 2px; }
.p-note { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--sp-sm); height: 1.2em; }
.p-trial { font-size: 0.8125rem; color: var(--primary); font-weight: 600; margin-bottom: var(--sp-xl); }
.p-features { flex: 1; display: flex; flex-direction: column; gap: 9px; margin-bottom: var(--sp-xl); }
.p-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: var(--text-body); }
.p-yes { color: var(--primary); flex-shrink: 0; font-weight: 700; }
.p-no { color: var(--text-light); flex-shrink: 0; }
.p-card .btn { width: 100%; justify-content: center; }

/* Comparison Table */
.ct-wrap { overflow-x: auto; margin-top: var(--sp-3xl); }
.ct { width: 100%; border-collapse: collapse; }
.ct th, .ct td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.ct th { font-weight: 700; background: var(--bg-gray); font-size: 0.8125rem; }
.ct td:first-child, .ct th:first-child { text-align: left; }
.ct td:first-child { font-weight: 500; color: var(--text-body); }
.ct tbody tr:hover td { background: var(--bg-light); }
.ct .featured-col { background: rgba(37,99,235,0.04); }
.ct-yes { color: var(--primary); font-weight: 700; }
.ct-no { color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-sm); max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-xl); cursor: pointer; background: var(--bg-white);
  transition: background var(--t); font-weight: 600; font-size: 0.9375rem;
  gap: var(--sp-lg); text-align: left; width: 100%; font-family: var(--font);
}
.faq-q:hover { background: var(--bg-light); }
.faq-plus { width: 26px; height: 26px; background: var(--primary-light); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); font-size: 1.125rem; transition: transform var(--t), background var(--t), color var(--t); }
.faq-item.open .faq-plus { transform: rotate(45deg); background: var(--primary); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 var(--sp-xl) var(--sp-xl); color: var(--text-muted); line-height: 1.75; font-size: 0.9375rem; }
.faq-item.open .faq-a { max-height: 500px; }

/* FAQ Categories */
.faq-cats { display: flex; gap: var(--sp-sm); flex-wrap: wrap; justify-content: center; margin-bottom: var(--sp-2xl); }
.faq-cat {
  padding: 8px 20px; border: 1px solid var(--border); border-radius: var(--r-full);
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all var(--t); background: var(--bg-white); font-family: var(--font);
}
.faq-cat:hover, .faq-cat.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-lg); }
.form-group label { font-weight: 600; font-size: 0.875rem; color: var(--text-dark); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: 1rem; color: var(--text-dark);
  background: var(--bg-white); transition: border-color var(--t), box-shadow var(--t); width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }
.field-err { font-size: 0.8125rem; color: #ef4444; display: none; }
.form-group input.err, .form-group textarea.err { border-color: #ef4444; }
.form-group input.err ~ .field-err, .form-group textarea.err ~ .field-err { display: block; }
.form-success { background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--r); padding: var(--sp-2xl); text-align: center; color: #15803d; font-weight: 600; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #1e40af 100%);
  color: var(--white); text-align: center; padding: var(--sp-4xl) 0; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); }
.cta-banner h2 { color: var(--white); margin-bottom: var(--sp-md); }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: var(--sp-2xl); }
.cta-banner .btn-actions { justify-content: center; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-hero); padding: var(--sp-4xl) 0 var(--sp-2xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-3xl); margin-bottom: var(--sp-3xl); }
.footer-logo { display: flex; align-items: center; gap: 9px; color: var(--white); font-weight: 800; font-size: 1.125rem; margin-bottom: var(--sp-md); }
.footer-tagline { font-size: 0.9375rem; line-height: 1.65; color: rgba(255,255,255,0.5); margin-bottom: var(--sp-xl); max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: var(--sp-lg); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.9375rem; transition: color var(--t); }
.footer-col ul li a:hover { color: var(--white); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: var(--sp-xl); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.875rem; }
.footer-legal { display: flex; gap: var(--sp-xl); }
.footer-legal a { color: rgba(255,255,255,0.35); font-size: 0.875rem; transition: color var(--t); }
.footer-legal a:hover { color: var(--white); }

/* ===== WEB APP ===== */
.app-shell {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
}
.app-panel { padding: var(--sp-2xl); display: flex; flex-direction: column; min-height: 560px; }
.app-panel-left { background: var(--bg-gray); border-right: 1px solid var(--border); }
.app-panel-right { background: var(--bg-white); }
.app-panel-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: var(--sp-xl); color: var(--text-dark); }

.tab-row { display: flex; gap: 6px; margin-bottom: var(--sp-xl); }
.tab-btn { flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: var(--r); font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all var(--t); background: var(--bg-white); font-family: var(--font); text-align: center; }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.tab-panel { display: none; flex: 1; flex-direction: column; }
.tab-panel.active { display: flex; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  padding: var(--sp-3xl) var(--sp-xl); text-align: center;
  cursor: pointer; transition: all var(--t);
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-xlight); }
.upload-zone-icon { font-size: 2.5rem; margin-bottom: var(--sp-md); }
.upload-zone-title { font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.upload-zone-sub { font-size: 0.8125rem; color: var(--text-muted); }
.upload-input { display: none; }

.text-area {
  flex: 1; padding: var(--sp-lg); border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: 0.9375rem; color: var(--text-dark);
  background: var(--bg-white); resize: vertical; min-height: 180px; line-height: 1.6;
  width: 100%;
}
.text-area:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: var(--sp-lg) 0; }
.mode-btn {
  padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--r);
  cursor: pointer; text-align: center; transition: all var(--t);
  background: var(--bg-white); font-family: var(--font);
}
.mode-btn:hover { border-color: var(--primary); background: var(--primary-xlight); }
.mode-btn.active { background: var(--primary); border-color: var(--primary); }
.mode-btn-icon { display: block; font-size: 1.25rem; margin-bottom: 3px; }
.mode-btn-lbl { display: block; font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); }
.mode-btn.active .mode-btn-lbl { color: rgba(255,255,255,0.85); }

.ask-row { margin-top: var(--sp-sm); display: none; }
.ask-row.show { display: block; }
.ask-field { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r); font-family: var(--font); font-size: 0.875rem; color: var(--text-dark); }
.ask-field:focus { outline: none; border-color: var(--primary); }

.analyze-wrap { margin-top: var(--sp-lg); }
.app-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--r); padding: var(--sp-md); margin-top: var(--sp-md); font-size: 0.875rem; color: #dc2626; display: none; }
.app-error.show { display: block; }

/* Results */
.result-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-muted); padding: var(--sp-2xl); }
.result-empty-icon { font-size: 3rem; margin-bottom: var(--sp-md); opacity: 0.4; }
.result-loading { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: var(--sp-md); }
.result-loading.show { display: flex; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-out { flex: 1; display: none; flex-direction: column; }
.result-out.show { display: flex; }
.result-mode-hdr { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: var(--sp-md); font-size: 0.9375rem; }
.result-body { background: var(--bg-light); border-radius: var(--r); padding: var(--sp-xl); flex: 1; color: var(--text-body); font-size: 0.9375rem; line-height: 1.75; overflow-y: auto; }
.upgrade-note { background: var(--primary-xlight); border: 1px solid var(--primary-light); border-radius: var(--r); padding: var(--sp-lg); margin-top: var(--sp-lg); font-size: 0.875rem; text-align: center; color: var(--text-muted); }
.upgrade-note a { color: var(--primary); font-weight: 700; }
.upgrade-note strong { color: var(--text-dark); }

/* ===== HOW-TO PAGES ===== */
.howto-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-3xl); align-items: start; }
.howto-sidebar { position: sticky; top: calc(var(--nav-h) + var(--sp-xl)); }
.sidebar-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-xl); margin-bottom: var(--sp-lg); }
.sidebar-card h4 { margin-bottom: var(--sp-md); font-size: 0.9375rem; color: var(--text-dark); }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { font-size: 0.875rem; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 6px; transition: color var(--t); }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--primary); }
.sidebar-links a::before { content: '→'; color: var(--primary); font-size: 0.75rem; }

.howto-steps { display: flex; flex-direction: column; gap: var(--sp-xl); margin: var(--sp-2xl) 0; }
.howto-step { display: flex; gap: var(--sp-lg); align-items: flex-start; }
.howto-num { width: 34px; height: 34px; background: var(--primary); color: var(--white); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; margin-top: 2px; }
.howto-step-body h4 { margin-bottom: 4px; }
.howto-step-body p { color: var(--text-muted); font-size: 0.9375rem; }

.example-box { background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-xl); margin: var(--sp-xl) 0; }
.example-title { font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-md); font-size: 0.9375rem; display: flex; align-items: center; gap: 8px; }
.example-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border-light); gap: var(--sp-md); }
.example-row:last-child { border-bottom: none; }
.ex-label { font-size: 0.875rem; color: var(--text-muted); flex-shrink: 0; }
.ex-value { font-size: 0.875rem; color: var(--text-dark); font-weight: 500; text-align: right; }

.highlight-box { background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%); border-left: 4px solid var(--primary); border-radius: 0 var(--r) var(--r) 0; padding: var(--sp-xl); margin: var(--sp-xl) 0; }
.highlight-title { font-weight: 700; color: var(--primary); margin-bottom: var(--sp-sm); font-size: 0.875rem; }
.highlight-box p { color: var(--text-body); font-size: 0.9375rem; }
.warn-box { background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 0 var(--r) var(--r) 0; padding: var(--sp-xl); margin: var(--sp-xl) 0; }
.warn-title { font-weight: 700; color: #d97706; margin-bottom: var(--sp-sm); font-size: 0.875rem; }
.warn-box p { color: var(--text-body); font-size: 0.9375rem; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.related-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r); padding: var(--sp-xl); transition: all var(--t); }
.related-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.related-tag { font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: var(--sp-sm); }
.related-card h4 { font-size: 0.9375rem; margin-bottom: 4px; line-height: 1.4; }
.related-card p { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== GUIDE PAGES ===== */
.guide-layout { display: grid; grid-template-columns: 1fr 280px; gap: var(--sp-3xl); align-items: start; }
.guide-sidebar { position: sticky; top: calc(var(--nav-h) + var(--sp-xl)); }
.guide-meta { display: flex; align-items: center; gap: var(--sp-lg); flex-wrap: wrap; margin: var(--sp-lg) 0 var(--sp-2xl); }
.guide-meta-item { font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.toc-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--r); padding: var(--sp-xl); margin-bottom: var(--sp-lg); }
.toc-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--sp-md); }
.toc-links { display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.toc-links li { counter-increment: toc; }
.toc-links li a { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; transition: color var(--t); line-height: 1.4; }
.toc-links li a::before { content: counter(toc) "."; color: var(--primary); font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.toc-links li a:hover { color: var(--primary); }

.guide-body { }
.guide-body h2 { font-size: 1.5rem; margin: var(--sp-3xl) 0 var(--sp-lg); padding-top: var(--sp-md); border-top: 1px solid var(--border); }
.guide-body h2:first-child { border-top: none; margin-top: 0; }
.guide-body h3 { font-size: 1.125rem; margin: var(--sp-2xl) 0 var(--sp-md); }
.guide-body p { margin-bottom: var(--sp-lg); font-size: 1.0625rem; color: var(--text-body); }
.guide-body ul, .guide-body ol { margin: var(--sp-lg) 0; padding-left: var(--sp-xl); display: flex; flex-direction: column; gap: 8px; }
.guide-body li { font-size: 1.0625rem; color: var(--text-body); }
.guide-body ul li { list-style-type: disc; }
.guide-body ol li { list-style-type: decimal; }
.guide-body .highlight-box { margin: var(--sp-2xl) 0; }
.guide-body .example-box { margin: var(--sp-2xl) 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--sp-xl); flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.bc-sep { color: var(--text-light); }

/* ===== LEGAL ===== */
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal-wrap h2 { font-size: 1.375rem; margin: var(--sp-2xl) 0 var(--sp-md); color: var(--text-dark); padding-top: var(--sp-md); border-top: 1px solid var(--border); }
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.legal-wrap h3 { font-size: 1.0625rem; margin: var(--sp-xl) 0 var(--sp-sm); color: var(--text-dark); }
.legal-wrap p { color: var(--text-body); margin-bottom: var(--sp-md); font-size: 0.9375rem; line-height: 1.8; }
.legal-wrap ul { margin: var(--sp-md) 0 var(--sp-lg); padding-left: var(--sp-xl); display: flex; flex-direction: column; gap: 8px; }
.legal-wrap ul li { font-size: 0.9375rem; color: var(--text-body); list-style-type: disc; }
.legal-wrap a { color: var(--primary); text-decoration: underline; }
.legal-summary { background: var(--bg-light); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--r); padding: var(--sp-xl); margin-bottom: var(--sp-2xl); }
.legal-summary h3 { margin: 0 0 var(--sp-md); font-size: 1rem; color: var(--text-dark); }
.legal-summary ul { margin: 0; padding-left: var(--sp-lg); gap: 6px; }
.legal-summary ul li { font-size: 0.9rem; }

/* ===== HOW-TO CONTENT ===== */
.howto-content h2 { font-size: 1.375rem; font-weight: 700; margin: var(--sp-2xl) 0 var(--sp-md); color: var(--text-dark); }
.howto-content h2:first-child { margin-top: 0; }
.howto-content p { color: var(--text-body); line-height: 1.8; margin-bottom: var(--sp-md); font-size: 0.9375rem; }
.howto-content ul { margin: var(--sp-md) 0 var(--sp-xl); padding-left: var(--sp-xl); display: flex; flex-direction: column; gap: 8px; }
.howto-content ul li { color: var(--text-body); font-size: 0.9375rem; list-style-type: disc; }
.howto-content a { color: var(--primary); text-decoration: underline; }
.howto-example { background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-xl); margin: var(--sp-xl) 0; }
.howto-example-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: var(--sp-md); }
.howto-example p { font-size: 0.875rem; margin-bottom: 10px; }
.howto-example p:last-child { margin-bottom: 0; }
.howto-cta-box { background: linear-gradient(135deg, var(--primary-xlight), var(--accent-light)); border: 1px solid var(--primary-light); border-radius: var(--r-xl); padding: var(--sp-2xl); margin-top: var(--sp-3xl); text-align: center; }
.howto-cta-box h3 { margin-bottom: var(--sp-sm); }
.howto-cta-box p { color: var(--text-muted); margin-bottom: var(--sp-xl); }
.sidebar-app { text-align: center; background: var(--bg-hero) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
.sidebar-app-icon { width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto var(--sp-md); }
.sidebar-app p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: var(--sp-md); }
.legal-date { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.8125rem; font-weight: 600; padding: 4px 14px; border-radius: var(--r-full); margin-bottom: var(--sp-xl); }
.legal-body h2 { font-size: 1.375rem; margin: var(--sp-2xl) 0 var(--sp-md); color: var(--text-dark); padding-top: var(--sp-md); border-top: 1px solid var(--border); }
.legal-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-body h3 { font-size: 1rem; margin: var(--sp-xl) 0 var(--sp-sm); }
.legal-body p { color: var(--text-body); margin-bottom: var(--sp-md); font-size: 0.9375rem; line-height: 1.75; }
.legal-body ul { margin: var(--sp-md) 0; padding-left: var(--sp-xl); display: flex; flex-direction: column; gap: 6px; }
.legal-body ul li { font-size: 0.9375rem; color: var(--text-body); list-style-type: disc; }
.legal-body a { color: var(--primary); text-decoration: underline; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3xl); }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-xl); }
.contact-method { display: flex; gap: var(--sp-lg); align-items: flex-start; }
.contact-icon { width: 50px; height: 50px; background: var(--primary-light); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-method h4 { margin-bottom: 4px; }
.contact-method p { font-size: 0.9375rem; color: var(--text-muted); }
.contact-method a { color: var(--primary); font-weight: 600; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ===== MISC ===== */
hr.divider { border: none; border-top: 1px solid var(--border); margin: var(--sp-3xl) 0; }

/* File Type Grid */
.file-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-lg); text-align: center; }
.file-type { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-xl) var(--sp-lg); transition: all var(--t); }
.file-type:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.file-type-icon { font-size: 2rem; margin-bottom: var(--sp-sm); }
.file-type-name { font-weight: 600; font-size: 0.9375rem; }
.file-type-ext { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Inline content body styles */
.content-body h2 { font-size: 1.5rem; font-weight: 700; margin: var(--sp-2xl) 0 var(--sp-md); color: var(--text-dark); }
.content-body h3 { font-size: 1.125rem; font-weight: 600; margin: var(--sp-xl) 0 var(--sp-sm); color: var(--text-dark); }
.content-body p { color: var(--text-body); margin-bottom: var(--sp-lg); font-size: 1rem; line-height: 1.75; }
.content-body ul { margin: var(--sp-lg) 0; padding-left: var(--sp-xl); display: flex; flex-direction: column; gap: 8px; }
.content-body ul li { color: var(--text-body); list-style-type: disc; }
