/* ============================================================
   DOXUNO — Design System v3
   ============================================================ */

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

:root {
  /* Primitive palette */
  --black: #0A0A0A;
  --gray-900: #1a1a1a;
  --gray-700: #3d3d3d;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50:  #fafafa;
  --white: #ffffff;
  --blue:   #3b82f6;
  --amber:  #f59e0b;
  --green:  #22c55e;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;

  /* Semantic tokens — light mode */
  --bg-body: #ffffff;
  --bg-section: #fafafa;
  --bg-elevated: #ffffff;
  --bg-header: rgba(255,255,255,0.88);
  --bg-input: #ffffff;
  --bg-hover: #f5f5f5;
  --bg-badge: #f5f5f5;
  --text-primary: #0A0A0A;
  --text-secondary: #3d3d3d;
  --text-muted: #6b6b6b;
  --text-faint: #767676;
  --border-default: #e5e5e5;
  --border-strong: #d4d4d4;
  --border-subtle: #f5f5f5;
  --card-bg: #ffffff;
  --card-border: #e5e5e5;
  --card-hover-border: #0A0A0A;
  --btn-primary-bg: #0A0A0A;
  --btn-primary-text: #ffffff;
  --btn-primary-hover-bg: #1a1a1a;
  --search-bg: #ffffff;
  --tag-bg: #f8f8f8;
  --tag-border: #e0e0e0;
  --tag-text: #333333;
  --tag-hover-bg: #0a0a0a;
  --tag-hover-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --hero-gradient: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0,0,0,.04) 0%, transparent 60%), linear-gradient(180deg,#fafafa 0%,#fff 60%);
  --gradient-text-from: #0A0A0A;
  --gradient-text-to: #525252;
  --scrolled-shadow: 0 1px 20px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg-body); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input  { font-family: var(--font); }

/* ─── Layout ──────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ──────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-bottom-color: var(--border-default); box-shadow: var(--scrolled-shadow); }
.header-inner { display: flex; align-items: center; gap: 36px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
/* Logo theme switching: white.svg on dark bg, black.svg on light bg */
.header .logo .logo-dark { display: block; }
.header .logo .logo-light { display: none; }
/* Footer always uses light logo (always dark bg) */
.footer .logo .logo-dark { display: none; }
.footer .logo .logo-light { display: block; }
/* Responsive logo sizing */
@media (max-width: 768px) {
  .header .logo svg { width: 26px; height: 28px; }
  .header .logo-text { font-size: 15px; }
  .footer .logo svg { width: 34px; height: 36px; }
}
@media (max-width: 480px) {
  .header .logo svg { width: 24px; height: 26px; }
  .header .logo-text { font-size: 14px; }
  .footer .logo svg { width: 30px; height: 32px; }
}

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-secondary); padding: 6px 12px; border-radius: var(--radius-sm); transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }

/* ── Nav: Products dropdown ───────────────────────────── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger {
  font-family: inherit; background: none; border: none;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-dropdown-trigger:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-dropdown-trigger svg { opacity: .5; transition: transform .2s; flex-shrink: 0; }
.nav-dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 252px;
  background: var(--card-bg); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 300; animation: menu-in .14s ease;
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: background .15s, color .15s;
  cursor: pointer; width: 100%; border: none; background: none;
  font-family: inherit; text-align: left;
}
.nav-dropdown-item:not(.locked):hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-dropdown-item.locked { opacity: .38; pointer-events: none; }
.nav-dropdown-item-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.nav-dropdown-item-text { flex: 1; min-width: 0; }
.nav-dropdown-item-title { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.nav-dropdown-item-sub { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }

/* ── Premium Badge ────────────────────────────────────── */
.nav-premium-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #000;
  border-radius: 4px; padding: 2px 6px; flex-shrink: 0; line-height: 1.5;
}

/* ── Mobile nav additions ─────────────────────────────── */
.mobile-nav-group-label {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-tertiary); padding: 14px 0 6px;
}
.mobile-nav-sub {
  padding-left: 16px; font-size: 14.5px;
  display: flex; align-items: center; gap: 10px;
}
.mobile-nav-link.locked, .mobile-nav-sub.locked { opacity: .38; pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { background: var(--btn-primary-hover-bg); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-full { width: 100%; }

/* ─── Language Dropdown ───────────────────────────────────── */
.lang-dropdown { position: relative; }

.lang-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  border: 1px solid var(--border-default); background: var(--card-bg);
  transition: all .2s; cursor: pointer;
}
.lang-trigger:hover { background: var(--bg-section); border-color: var(--border-strong); }

.flag-img {
  display: inline-block; border-radius: 2px;
  object-fit: cover; vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* ── flag-icons (fi) span sizing & shadow ─── */
span.fi {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.lang-code { font-size: 12px; font-weight: 700; letter-spacing: .3px; }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px; background: var(--card-bg);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 200;
  animation: menu-in .14s ease;
}
@keyframes menu-in { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  text-align: left; cursor: pointer; transition: background .15s;
}
.lang-option:hover { background: var(--bg-section); color: var(--text-primary); }
.lang-option.active { background: var(--bg-hover); color: var(--text-primary); font-weight: 700; }

/* Mobile */
.mobile-right { display: none; align-items: center; gap: 12px; flex-shrink: 0; }

.mobile-menu-btn { display: flex; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; cursor: pointer; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* Auth icon — transparent bg so it works in all themes */
.mobile-auth-btn {
  display: flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--text-primary);
  transition: background .15s;
  flex-shrink: 0; padding: 0;
}
.mobile-auth-btn:hover { background: var(--bg-hover); }
.mobile-auth-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu { display: none; padding: 12px 24px 20px; border-top: 1px solid var(--border-subtle); background: var(--bg-body); }
.mobile-menu.open { display: block; }
.mobile-nav-link { display: block; padding: 12px 0; font-size: 16px; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
/* ─── Hero ────────────────────────────────────────────────── */
.hero { padding-top: 120px; padding-bottom: 80px; position: relative; }
.hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-gradient);
  pointer-events: none; overflow: hidden;
}
.hero-inner { position: relative; text-align: center; max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px;
  background: var(--bg-hover); border: 1px solid var(--border-default); border-radius: 100px;
  font-size: 14.5px; font-weight: 500; color: var(--text-muted); flex-wrap: wrap; justify-content: center;
}
.badge-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.2)} }

/* ─── Hero Static ─────────────────────────────────────────── */
.hero-static {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-bottom: 12px;
}

.hero-title {
  font-size: clamp(32px, 5.2vw, 54px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px; color: var(--text-primary);
}
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-text-from) 0%, var(--gradient-text-to) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 17px; font-weight: 400; color: var(--text-muted); line-height: 1.65; max-width: 560px; }

/* Search */
.hero-search { width: 100%; max-width: 640px; position: relative; margin-top: 8px; z-index: 10; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--search-bg);
  border: 1.5px solid var(--border-default); border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow-md);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--text-primary); box-shadow: 0 0 0 4px rgba(0,0,0,.06),var(--shadow-md); }
.search-icon { flex-shrink: 0; }
.tw-wrap { position:relative; flex:1; min-width:0; display:flex; align-items:center; }
.search-input { flex:1; border:none; outline:none; font-size:15px; color:var(--text-primary); background:transparent; min-width:0; width:100%; }
.search-input::placeholder { color: var(--text-faint); }

/* ── Typewriter animated placeholder ── */
.tw-overlay {
  position:absolute; inset:0;
  display:flex; align-items:center;
  pointer-events:none; user-select:none;
  font-size:15px; white-space:nowrap; overflow:hidden;
}
.tw-static { color:var(--text-faint); }
.tw-typed  { color:var(--text-secondary); }
.tw-cursor {
  display:inline-block; width:1.5px; height:1em;
  background:var(--text-faint); margin-left:1px; vertical-align:middle;
  animation: tw-blink .8s ease-in-out infinite;
}
@keyframes tw-blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.search-btn { padding:8px 20px; background:var(--btn-primary-bg); color:var(--btn-primary-text); border-radius:var(--radius-md); font-size:14px; font-weight:600; transition:all .2s; }
.search-btn:hover { background:var(--btn-primary-hover-bg); }
.search-suggestions { position:absolute; top:calc(100% + 8px); left:0; right:0; background:var(--card-bg); border:1px solid var(--border-default); border-radius:var(--radius-md); box-shadow:var(--shadow-lg); overflow:hidden; display:none; z-index:9999; max-height:320px; overflow-y:auto; }
.search-suggestions.show { display:block; }
.suggestion-item { display:flex; align-items:center; gap:12px; padding:11px 16px; cursor:pointer; transition:background .15s; font-size:14px; color:var(--text-secondary); }
.suggestion-item:hover { background:var(--bg-section); }
.suggestion-item strong { color:var(--text-primary); font-weight:600; }
.suggestion-tag { margin-left:auto; font-size:11px; padding:2px 8px; background:var(--bg-hover); border-radius:100px; color:var(--text-muted); }

/* Stats */
/* ─── Hero Trust Bar ──────────────────────────────────────── */
.hero-trust { display:flex; align-items:center; gap:20px; }
.trust-dl { display:flex; flex-direction:column; align-items:center; gap:2px; flex-shrink:0; min-width:80px; }
.trust-dl-num { font-size:22px; font-weight:800; letter-spacing:-.5px; line-height:1; }
.trust-dl-label { font-size:11px; color:var(--text-muted); font-weight:500; white-space:nowrap; }
.trust-sep { width:1px; align-self:stretch; background:var(--border-default); flex-shrink:0; }
.trust-body { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.trust-review { font-size:11.5px; color:var(--text-muted); line-height:1.55; margin:0; max-width:380px; text-align:left; }
.trust-badge { display:flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; color:var(--text-primary); }
.trust-badge svg { color:#0d9488; flex-shrink:0; }
.trust-updated { font-size:10.5px; color:var(--text-muted); opacity:.75; text-align:left; }

/* ─── Section Common ──────────────────────────────────────── */
section { padding: 80px 0; }
.section-header { text-align:center; margin-bottom:50px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.section-tag { display:inline-block; padding:4px 12px; background:var(--bg-hover); border-radius:100px; font-size:12px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:var(--text-secondary); }
.section-title { font-size:clamp(26px,4vw,40px); font-weight:800; letter-spacing:-1px; line-height:1.15; color:var(--text-primary); }
.section-subtitle { font-size:17px; color:var(--text-muted); max-width:480px; line-height:1.6; }

/* ─── Find / Filter Section ───────────────────────────────── */
.find-section {
  background: var(--black); padding: 64px 0;
  border-top: 1px solid var(--gray-900);
}
.find-header { text-align:center; margin-bottom:40px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.find-tag { background:rgba(255,255,255,.1); color:rgba(255,255,255,.6); }
.find-title { font-size:clamp(24px,3.5vw,38px); font-weight:800; letter-spacing:-1px; color:var(--white); }
.find-subtitle { font-size:16px; color:rgba(255,255,255,.45); max-width:460px; line-height:1.6; }

.flt-bar {
  display:flex; align-items:flex-end; gap:12px;
  justify-content:center; flex-wrap:wrap;
}

.flt-group { display:flex; flex-direction:column; gap:8px; flex:1; min-width:190px; max-width:260px; }
.flt-label { font-size:11px; font-weight:700; color:rgba(255,255,255,.35); letter-spacing:.6px; text-transform:uppercase; }

/* Custom select */
.flt-select { position:relative; }
.flt-trigger {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  width:100%; padding:12px 14px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-md); color:var(--white);
  font-size:14px; font-weight:500; cursor:pointer; text-align:left;
  transition:background .2s, border-color .2s;
}
.flt-trigger:hover, .flt-trigger.open { background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.28); }
.flt-trigger svg { flex-shrink:0; opacity:.4; transition:transform .2s; }
.flt-trigger.open svg { transform:rotate(180deg); }
.flt-value { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.flt-menu {
  position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:#1c1c1c; border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius-md); overflow:hidden; overflow-y:auto;
  max-height:250px; z-index:100;
  box-shadow:0 16px 48px rgba(0,0,0,.6);
  animation:menu-in .14s ease;
}
.flt-option {
  display:flex; align-items:center; gap:10px;
  padding:10px 14px; font-size:13px; color:rgba(255,255,255,.65);
  cursor:pointer; transition:background .15s;
}
.flt-option:hover { background:rgba(255,255,255,.07); color:var(--white); }
.flt-option.selected { color:var(--white); font-weight:600; background:rgba(255,255,255,.05); }
.flt-option img { border-radius:2px; flex-shrink:0; }

.flt-btn {
  padding:13px 28px; background:var(--white); color:var(--black);
  border-radius:var(--radius-md); font-size:15px; font-weight:700;
  transition:all .2s; flex-shrink:0; align-self:flex-end;
  white-space:nowrap;
}
.flt-btn:hover { background:var(--gray-100); transform:translateY(-1px); }

.flt-results {
  margin-top:28px; width:100%; text-align:center;
  font-size:14px; min-height:28px; color:rgba(255,255,255,.4);
}
.flt-results.has-msg { color:rgba(255,255,255,.55); }
.flt-match-count { color:rgba(255,255,255,.75); font-weight:600; }
.flt-results-count {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.flt-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.flt-result-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.flt-result-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
}
.flt-result-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.flt-result-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 4px;
}
.flt-result-cta {
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
  margin-top: 2px;
}
.flt-no-results {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 20px;
}

/* ─── Popular Docs ────────────────────────────────────────── */
.popular { background:var(--bg-body); }
.docs-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

/* ── Doc Card — dark Figma design ── */
.doc-card {
  position: relative;
  height: 250px;
  background: #1c1c1a;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1);
}
.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.25);
}
.doc-card.flt-hidden { display:none; }

/* SVG decorative image — top right, no padding */
.doc-card-img {
  position: absolute;
  top: 0; right: 0;
  width: 148px; height: 200px;
  object-fit: contain;
  object-position: top right;
  pointer-events: none;
  user-select: none;
}

/* Title */
.doc-title {
  position: absolute;
  left: 19px; top: 16px;
  right: 118px;
  font-size: 22px; font-weight: 600; color: #fff;
  letter-spacing: -.88px; line-height: 1.22;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category tag badge — cyan */
.doc-cat-tag {
  position: absolute;
  left: 19px; top: 124px;
  height: 27px;
  padding: 0 10px;
  background: #c2fbff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  font-size: 12px; font-weight: 500;
  color: #065358;
  letter-spacing: -.24px;
  white-space: nowrap;
  width: auto;
}

/* Meta row — flag + country + pages */
.doc-meta {
  position: absolute;
  left: 19px; bottom: 62px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: nowrap;
}
.doc-country { font-size:12px; color:#eee; display:flex; align-items:center; gap:5px; font-weight:500; }
.doc-meta-sep { color:#555; font-size:10px; }
.doc-pages { font-size:12px; color:#eee; font-weight:500; }

/* CTA button row — two buttons */
.doc-cta-wrap {
  position: absolute;
  left: 19px; bottom: 19px;
  right: 19px;
  display: flex; gap: 10px;
}

/* Use Template button */
.doc-cta-btn {
  flex: 1; height: 34px;
  background: #fff; color: #2a2a2a;
  border: none; border-radius: 3px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: -.24px; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: background .2s ease, gap .2s ease;
  text-decoration: none;
}
.doc-cta-btn:hover { background: #f5f5f5; gap: 8px; }
.doc-btn-arrow {
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.doc-cta-btn:hover .doc-btn-arrow { opacity: 1; transform: translateX(0); }

/* View Sample button */
.doc-sample-btn {
  flex: 1; height: 34px;
  background: #fefeb9; color: #2a2a2a;
  border: none; border-radius: 3px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: -.24px; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  position: relative; overflow: hidden;
  transition: background .2s ease, box-shadow .2s ease;
}
.doc-sample-btn:hover { background: #fdfdb0; box-shadow: 0 0 14px rgba(254,254,100,.45); }
.doc-sample-btn::after {
  content: '';
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  animation: docShimmer 2.4s ease-in-out infinite;
}
@keyframes docShimmer { 0%,100%{left:-120%} 0%{left:-120%} 60%,100%{left:140%} }

.doc-coming {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 34px;
  font-size: 12px; color: #555; font-weight: 500;
  border: 1.5px dashed #333; border-radius: 3px;
}

/* ─── How It Works — Apple style ──────────────────────────── */
.how-it-works { padding:72px 0 80px; background:var(--bg-body); border-top:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle); }
.hiw-header { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; margin-bottom:52px; }
.hiw-header .section-title { font-size:clamp(22px,3.5vw,32px); margin-top:4px; }
.hiw-steps { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:start; gap:0 8px; max-width:900px; margin:0 auto; }
.hiw-step { display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 20px; }
.hiw-icon { width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; transition:transform .25s; }
.hiw-step:hover .hiw-icon { transform:scale(1.07); }
.hiw-icon--1 { background:#eff6ff; color:#2563eb; }
.hiw-icon--2 { background:#f0fdf4; color:#16a34a; }
.hiw-icon--3 { background:#fdf4ff; color:#9333ea; }
.hiw-step-num { font-size:11px; font-weight:700; letter-spacing:.08em; color:var(--text-muted); opacity:.6; margin-bottom:8px; }
.hiw-step-title { font-size:16px; font-weight:700; letter-spacing:-.01em; color:var(--text-primary); margin:0 0 10px; line-height:1.3; }
.hiw-step-desc { font-size:13.5px; color:var(--text-muted); line-height:1.65; margin:0; max-width:260px; }
.hiw-connector { display:flex; align-items:flex-start; padding-top:26px; color:var(--border-default); flex-shrink:0; }
.hiw-connector::after { content:''; display:block; width:40px; height:1px; background:linear-gradient(90deg, var(--border-default) 40%, transparent 100%); border-top:1px dashed var(--border-default); }

/* ─── Countries ───────────────────────────────────────────── */
.countries { padding:28px 0; background:var(--bg-body); border-bottom:1px solid var(--border-subtle); }
.countries-inner { display:flex; align-items:center; gap:20px; flex-wrap:wrap; flex-direction: column; align-items: flex-start; }
.countries-label { font-size:13px; font-weight:600; color:var(--text-muted); white-space:nowrap; }
.countries-list { display:flex; gap:6px; flex-wrap:wrap; }
.country-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; background:var(--bg-section); border:1px solid var(--border-default); border-radius:100px; font-size:13px; font-weight:500; color:var(--text-secondary); white-space:nowrap; }
.country-more-btn {
  cursor: pointer;
  border: 1px solid var(--border-default);
  font-family: inherit;
  transition: all 0.2s ease;
}
.country-more-btn:hover {
  background: var(--bg-hover);
}
.countries-expanded {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-default);
}

/* ─── Live Demo Section ───────────────────────────────────── */
.demo-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.demo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 4px;
}
.demo-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Browser chrome frame */
.demo-chrome {
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1060px;
  margin: 0 auto;
}
.demo-chrome-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border-default);
  padding: 10px 16px;
}
.demo-dots { display: flex; gap: 6px; }
.demo-dot {
  width: 11px; height: 11px; border-radius: 50%;
  flex-shrink: 0;
}
.demo-dot--r { background: #ff5f57; }
.demo-dot--y { background: #febc2e; }
.demo-dot--g { background: #28c840; }
.demo-url {
  flex: 1; text-align: center;
  background: var(--bg-body);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 3px 14px;
  font-size: 12px; color: var(--text-muted);
  max-width: 340px; margin: 0 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Two-panel body */
.demo-body {
  display: grid;
  grid-template-columns: 38fr 62fr;
  height: 440px;
}
.demo-form-panel {
  padding: 22px 26px;
  border-right: 1px solid var(--border-default);
  background: var(--card-bg);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0; overflow: hidden;
}
.demo-preview-panel {
  padding: 0 30px;
  background: var(--bg-section);
  position: relative;
  display: grid; grid-template-rows: auto 1fr;
  min-height: 0;
}
/* The scroll viewport clips content; label stays above it */
.demo-preview-viewport {
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.demo-panel-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  margin-bottom: 4px; width: fit-content;
  flex-shrink: 0; position: relative; z-index: 3;
}
.demo-panel-label--form {
  background: var(--text-primary); color: var(--bg-body);
}
.demo-preview-header {
  display: flex; align-items: center; gap: 8px;
  margin-top: 28px; margin-bottom: 18px;
  flex-shrink: 0; position: relative; z-index: 3;
}
/* Sonar / live-dot outside the teal label */
.demo-live-indicator {
  width: 10px; height: 10px; border-radius: 50%;
  background: #0d9488; flex-shrink: 0;
  animation: live-sonar 2s ease-out infinite;
}
@keyframes live-sonar {
  0%   { box-shadow: 0 0 0 0 rgba(13,148,136,.65); }
  70%  { box-shadow: 0 0 0 8px rgba(13,148,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
}
.demo-panel-label--preview {
  background: #0d9488; color: #fff;
  /* margin handled by .demo-preview-header wrapper */
}
.demo-panel-label--preview::before {
  content: none; /* dot moved outside the label */
}

/* Form fields */
.demo-field { display: flex; flex-direction: column; gap: 5px; }
.demo-field-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.demo-input-box {
  padding: 7px 12px;
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-input);
  min-height: 36px;
  display: flex; align-items: center;
  transition: border-color .2s, box-shadow .2s;
}
.demo-field.active .demo-input-box {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.demo-typed { color: var(--text-primary); font-size: 14px; }
.demo-cursor {
  color: var(--text-primary); font-weight: 300;
  animation: blink-cursor .9s step-end infinite;
  display: none;
}
.demo-field.active .demo-cursor { display: inline; }
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* Reveal keyframe — used by Continue + Download buttons (more reliable than transitions) */
@keyframes demo-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Continue button (form panel) */
.demo-continue-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding: 10px 20px;
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  width: fit-content; cursor: default;
  opacity: 0;
}
.demo-continue-btn.visible { animation: demo-reveal .4s ease forwards; }
.demo-continue-btn.pressed { animation: none; opacity: 0.7; }

/* Download area — pinned absolutely, aligned with Continue button */
.demo-dl-area {
  position: absolute; bottom: 20px; left: 0; right: 0;
  height: 44px;
  display: flex; align-items: center;
  z-index: 5;
  background: var(--bg-section);
}
/* Fill the 20px gap between dl-area and the frame bottom */
.demo-dl-area::after {
  content: '';
  position: absolute; top: 100%; left: 0; right: 0;
  height: 20px;
  background: var(--bg-section);
}
.demo-dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  width: fit-content; cursor: default;
  opacity: 0;
}
.demo-dl-btn.visible { animation: demo-reveal .5s ease forwards; }
.demo-dl-btn.pressed { animation: none; opacity: 0.7; }
.demo-dl-btn.success {
  animation: none;
  background-color: #0d9488 !important; color: #fff !important;
  opacity: 1 !important; transform: none;
}

/* Document preview — scrollable inner wrapper (taller than viewport).
   Natural height intentional — transform scroll trick depends on it. */
.demo-doc-scroll {
  transition: transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.demo-doc { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.demo-doc-content { display: flex; flex-direction: column; gap: 10px; }
.demo-doc-content p {
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.75; margin: 0;
}
.demo-doc-clause strong { color: var(--text-primary); font-weight: 700; }
.demo-doc-faint { color: var(--text-faint) !important; font-size: 11px !important; }

/* Signature block */
.demo-sig-block {
  margin-top: 18px; padding-top: 14px; padding-bottom: 56px;
  border-top: 1px solid var(--border-default);
  display: flex; gap: 24px;
}
.demo-sig-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.demo-sig-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-faint); }
.demo-sig-line {
  height: 30px; border-bottom: 1px solid var(--border-strong);
  display: flex; align-items: flex-end; padding-bottom: 4px;
}
.demo-sig-name {
  font-size: 12px; color: var(--text-faint);
  transition: color .3s, text-shadow .4s;
}
.demo-sig-name.filling {
  color: var(--text-primary); font-weight: 700;
  animation: val-glow 1.4s ease-in-out infinite;
}
.demo-sig-name.filled {
  color: var(--text-primary); font-weight: 700;
  animation: none;
}
.demo-sig-date { font-size: 10px; color: var(--text-faint); margin-top: 2px; opacity: 0; transition: opacity .3s; }

/* Live values inside document */
.demo-val {
  color: var(--text-faint);
  border-bottom: 1px dashed var(--border-strong);
  transition: color .3s, text-shadow .4s, border-color .25s;
  padding: 0 2px;
  border-radius: 2px;
}
.demo-val.filling {
  color: var(--text-primary);
  font-weight: 700;
  border-bottom-color: var(--text-primary);
  animation: val-glow 1.4s ease-in-out infinite;
}
.demo-val.filled {
  color: var(--text-primary);
  font-weight: 700;
  border-bottom-color: transparent;
  animation: none;
}
.demo-val.flash {
  text-shadow: 0 0 8px rgba(0,0,0,.15);
}
@keyframes val-glow {
  0%,100% { text-shadow: none; }
  50%     { text-shadow: 0 0 6px rgba(0,0,0,.15), 0 0 14px rgba(0,0,0,.06); }
}
@keyframes val-glow-dark {
  0%,100% { text-shadow: none; }
  50%     { text-shadow: 0 0 6px rgba(255,255,255,.45), 0 0 14px rgba(255,255,255,.12); }
}

/* Dark mode overrides */
/* Responsive */
@media (max-width: 640px) {
  .demo-body { grid-template-columns: 1fr; height: auto; }
  .demo-form-panel { border-right: none; border-bottom: 1px solid var(--border-default); }
  .demo-preview-panel { height: 320px; }
}

/* ─── Pricing Section — Apple style ───────────────────────── */
.pricing-section {
  background: var(--bg-section);
  padding: 80px 0 72px;
  border-top: 1px solid var(--border-subtle);
}

/* Header */
.pricing-hd {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pricing-headline {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: pre-line;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 4px 0 0;
}
.pricing-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Cards grid */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
  padding-top: 18px; /* room for floating badges above cards */
}

/* Base card */
.pc {
  background: var(--bg-body);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Pro — dark featured card (Apple style) */
.pc--pro {
  background: #0a0a0a;
  border-color: #0a0a0a;
  box-shadow: none;
}

/* Floating badge above card */
.pc-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #111827;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
  white-space: nowrap;
}

/* Amber "Best Deal" badge variant */
.pc-badge--amber {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 1px 6px rgba(245,158,11,.35);
}

/* Plan name */
.pc-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pc--pro .pc-name { color: rgba(255,255,255,.45); }

/* Price — clean single-line display */
.pc-price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.pc--pro .pc-price { color: #fff; }
.pc-mo {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-left: 1px;
}
.pc--pro .pc-mo { color: rgba(255,255,255,.4); }

/* Tagline */
.pc-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.pc--pro .pc-tagline {
  color: rgba(255,255,255,.4);
  border-bottom-color: rgba(255,255,255,.1);
}

/* Feature list */
.pc-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pc-feats li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.pc--pro .pc-feats li { color: rgba(255,255,255,.72); }
.pc-feats li::before {
  content: '';
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M2.5 7.5l3.5 3.5 6.5-7' stroke='%2316a34a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.pc--pro .pc-feats li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' fill='none'%3E%3Cpath d='M2.5 7.5l3.5 3.5 6.5-7' stroke='%234ade80' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* CTA button */
.pc-cta {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #0a0a0a;
  color: #fff;
  border: none;
  transition: opacity .15s;
}
.pc-cta:hover { opacity: .82; }
.pc--pro .pc-cta {
  background: #fff;
  color: #0a0a0a;
}
.pc--pro .pc-cta:hover { opacity: .9; }

/* Trust bar */
.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 40px;
}
.pt-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.pt-item svg { flex-shrink: 0; color: var(--green); }
.pt-sep { color: var(--border-default); font-size: 14px; }

/* ─── Onboarding Popup ────────────────────────────────────── */
.ob-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: overlay-in .2s ease;
}
.ob-overlay[hidden] { display: none; }

.ob-modal {
  position: relative;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 44px 40px 32px;
  width: 100%; max-width: 880px;
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
  animation: modal-in .25s cubic-bezier(.33,1,.68,1);
}

.ob-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); background: none; border: none;
  font-family: var(--font); cursor: pointer;
  transition: background .15s, color .15s;
}
.ob-close:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Header */
.ob-header { text-align: center; margin-bottom: 32px; }
.ob-emoji { font-size: 36px; line-height: 1; margin-bottom: 12px; }
.ob-title {
  font-size: 24px; font-weight: 800; letter-spacing: -.6px;
  color: var(--text-primary); margin: 0 0 8px;
}
.ob-subtitle {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.55; margin: 0; max-width: 480px; margin-inline: auto;
}

/* Plans grid */
.ob-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

/* Base plan card */
.ob-plan {
  position: relative;
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 18px 18px;
  display: flex; flex-direction: column;
  background: var(--card-bg);
  transition: border-color .2s, box-shadow .2s;
}
.ob-plan:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-sm);
}

/* Free plan — featured / inverted (the eye-catcher) */
.ob-plan--free {
  background: #0a0a0a;
  border-color: #0a0a0a;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.ob-plan--free:hover { border-color: #333; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
/* Pro — regular card, just with badge (not dominant) */
.ob-plan--pro { padding-top: 28px; } /* room for badge */

/* Popular badge */
.ob-plan-badge {
  position: absolute; top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary); color: var(--bg-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 11px; border-radius: 20px;
  white-space: nowrap;
}

/* Plan name */
.ob-plan-name {
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
  color: var(--text-secondary); margin-bottom: 10px;
}
.ob-plan--free .ob-plan-name { color: rgba(255,255,255,.5); }
/* Price */
.ob-plan-price {
  display: flex; align-items: flex-start; gap: 1px;
  line-height: 1; margin-bottom: 2px;
}
.ob-price-curr {
  font-size: 13px; font-weight: 700;
  color: var(--text-muted); padding-top: 5px;
}
.ob-price-main {
  font-size: 38px; font-weight: 800;
  letter-spacing: -2px; color: var(--text-primary);
}
.ob-price-dec {
  font-size: 15px; font-weight: 700;
  color: var(--text-muted); padding-top: 8px;
}
.ob-plan--free .ob-price-curr,
.ob-plan--free .ob-price-main,
.ob-plan--free .ob-price-dec { color: #fff; }
/* Period */
.ob-plan-period {
  font-size: 11px; color: var(--text-faint); margin-bottom: 14px;
}
.ob-plan--free .ob-plan-period { color: rgba(255,255,255,.3); }
/* Features */
.ob-feats {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 18px; flex: 1; list-style: none; padding: 0;
}
.ob-feats li {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; line-height: 1.35;
}
.ob-feats li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--border-strong); flex-shrink: 0;
}
.ob-plan--free .ob-feats li { color: rgba(255,255,255,.65); }
.ob-plan--free .ob-feats li::before { background: rgba(255,255,255,.3); }
/* CTA button */
.ob-cta {
  display: block; text-align: center;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font);
  background: var(--bg-hover); color: var(--text-primary);
  transition: background .2s, box-shadow .2s;
}
.ob-cta:hover { background: var(--border-default); }

/* Free CTA — white on dark (inverted, prominent) */
.ob-cta--free { background: #fff; color: #0a0a0a; }
.ob-cta--free:hover { background: #f0f0f0; }
/* Footer note */
.ob-footer-note {
  text-align: center; font-size: 12px;
  color: var(--text-faint); margin: 0; line-height: 1.5;
}

/* Dark mode — modal border */
/* Responsive */
@media (max-width: 760px) {
  .ob-modal { padding: 40px 20px 28px; }
  .ob-plans { grid-template-columns: repeat(2, 1fr); }
  .ob-plan--pro { padding-top: 30px; }
}
@media (max-width: 480px) {
  .ob-plans { grid-template-columns: 1fr; }
  .ob-plan--pro { margin-top: 12px; }
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer { background:var(--black); color:var(--white); padding-top:60px; padding-bottom:36px; }
.footer-top { display:grid; grid-template-columns:240px 1fr; gap:72px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:28px; }
.footer-brand .logo { margin-bottom:14px; }
.footer-desc { font-size:13px; color:rgba(255,255,255,.45); line-height:1.65; margin-bottom:18px; }
.footer-langs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:18px; }
.footer-lang { display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:5px 10px; border-radius:100px; color:rgba(255,255,255,.45); border:1px solid rgba(255,255,255,.12); transition:all .2s; cursor:pointer; background:none; font-family:var(--font); }
.footer-lang:hover, .footer-lang.active { color:var(--white); border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.07); }
.footer-brand-links { display:flex; flex-direction:column; gap:8px; }
.footer-brand-link { font-size:13px; color:rgba(255,255,255,.45); transition:color .2s; text-decoration:none; }
.footer-brand-link:hover { color:var(--white); }
.footer-cols { display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.footer-col-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:rgba(255,255,255,.35); margin-bottom:14px; }
.footer-col-spacer { height:20px; }
.footer-col ul { display:flex; flex-direction:column; gap:9px; }
.footer-col a { font-size:13px; color:rgba(255,255,255,.55); transition:color .2s; }
.footer-col a:hover { color:var(--white); }
.footer-col span { font-size:13px; color:rgba(255,255,255,.35); }
.footer-bottom { display:flex; flex-direction:column; gap:4px; }
.footer-copy { font-size:12px; color:rgba(255,255,255,.3); }
.footer-disclaimer { font-size:11px; color:rgba(255,255,255,.2); max-width:580px; line-height:1.5; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width:1024px) {
  .docs-grid { grid-template-columns:repeat(2,1fr); }
  .pricing-cards { grid-template-columns:1fr; max-width:420px; }
  .pc--pro { transform:none; }
  .pricing-trust { gap:8px 14px; }
  .footer-top { grid-template-columns:1fr; gap:36px; }
  .footer-cols { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .nav { display:none; }
  .header-actions { display:none; }         /* hide ALL desktop actions incl. theme toggle */
  .mobile-right { display:flex; margin-left:auto; } /* show mobile group, push to right */
  .hero { padding-top:100px; padding-bottom:60px; }
  .hero-title { font-size:30px; }
  .flt-bar { flex-direction:column; align-items:stretch; }
  .flt-group { max-width:100%; }
  .flt-btn { align-self:stretch; text-align:center; }
  .docs-grid { grid-template-columns:1fr; }
  .docs-grid .doc-card:nth-child(n+9) { display:none; }  /* show only 8 cards on mobile */
  .demo-section { display:none; }            /* hide live preview section on mobile */
  .hiw-steps { grid-template-columns:1fr; gap:32px 0; max-width:400px; }
  .hiw-connector { display:none; }
  .hiw-step { padding:0; }
  .hiw-step-desc { max-width:100%; }
  .footer-cols { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:480px) {
  .container { padding:0 16px; }
  .hero-title { font-size:26px; letter-spacing:-1px; }
  .hero-trust { flex-wrap:wrap; gap:12px; justify-content:center; }
  .trust-sep { display:none; }
  .trust-dl { align-items:center; }
  .trust-body { align-items:center; }
  .trust-review { max-width:100%; text-align:center; }
  .trust-badge { justify-content:center; }
  .trust-updated { text-align:center; }
  .footer-cols { grid-template-columns:1fr; }
  .lang-code { display:none; }
  .hero-badge { flex-direction:column; border-radius:16px; gap:4px; padding:10px 20px; }
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fade-up { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.hero-badge   { animation:fade-up .5s ease both; animation-delay:.05s; }
.hero-static  { animation:fade-up .6s ease both; animation-delay:.1s; }
.hero-search  { animation:fade-up .6s ease both; animation-delay:.22s; }
.hero-trust   { animation:fade-up .6s ease both; animation-delay:.3s; }

/* ─── Auth — Header Account Button & User Dropdown ───────── */
.user-dropdown-wrap { position:relative; display:inline-flex; }
.account-btn { display:inline-flex; align-items:center; gap:7px; }
.account-avatar {
  width:26px; height:26px; border-radius:50%;
  background:var(--btn-primary-bg); color:var(--btn-primary-text);
  font-size:12px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

/* Plan badge pill */
.user-plan-badge {
  font-size:9px; font-weight:700; letter-spacing:.4px;
  padding:2px 7px; border-radius:20px; text-transform:uppercase;
  line-height:1.6; flex-shrink:0;
}
.user-plan-badge[data-plan="free"]      { background:#f3f4f6; color:#6b7280; }
.user-plan-badge[data-plan="starter"]   { background:#dbeafe; color:#1d4ed8; }
.user-plan-badge[data-plan="pro"]       { background:#ede9fe; color:#6d28d9; }
.user-plan-badge[data-plan="unlimited"] { background:#fef3c7; color:#b45309; }

/* Dropdown panel */
.user-dropdown {
  position:absolute; top:calc(100% + 8px); right:0;
  min-width:168px; background:#fff;
  border:1px solid var(--gray-200,#e5e7eb);
  border-radius:11px; overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  z-index:300;
  animation:dropdown-in .13s ease;
}
@keyframes dropdown-in {
  from { opacity:0; transform:translateY(-5px); }
  to   { opacity:1; transform:translateY(0); }
}
.user-dropdown[hidden] { display:none; }
.user-dropdown-item {
  display:flex; align-items:center; gap:9px;
  width:100%; padding:11px 15px;
  font-size:13.5px; font-weight:500; color:var(--black,#0a0a0a);
  text-decoration:none; background:none; border:none;
  cursor:pointer; white-space:nowrap; text-align:left;
  transition:background .1s;
}
.user-dropdown-item:hover { background:var(--gray-50,#f9fafb); }
.user-dropdown-item svg { flex-shrink:0; color:var(--gray-400,#9ca3af); }
.user-dropdown-signout {
  color:#dc2626;
  border-top:1px solid var(--gray-100,#f3f4f6);
}
.user-dropdown-signout svg { color:#dc2626; }

/* ─── Auth Overlay ────────────────────────────────────────── */
.auth-overlay {
  position:fixed; inset:0; z-index:500;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  padding:16px;
  animation:overlay-in .18s ease;
}
.auth-overlay[hidden] { display:none; }
@keyframes overlay-in { from{opacity:0} to{opacity:1} }

/* ─── Auth Modal (always dark) ────────────────────────────── */
.auth-modal {
  position:relative;
  background:#111;
  border:1px solid #2a2a2a;
  border-radius:28px;
  padding:40px;
  width:100%; max-width:400px;
  box-shadow:0 32px 80px rgba(0,0,0,.5);
  animation:modal-in .22s cubic-bezier(.33,1,.68,1);
}
@keyframes modal-in { from{opacity:0;transform:translateY(20px) scale(.97)} to{opacity:1;transform:translateY(0) scale(1)} }

.auth-close {
  position:absolute; top:16px; right:16px;
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#737373; transition:background .15s, color .15s;
  cursor:pointer; background:none; border:none;
}
.auth-close:hover { background:#222; color:#fff; }

/* Premium notice */
.auth-premium-notice {
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(135deg,#fef9c3,#fef3c7);
  border:1px solid #fde68a; border-radius:var(--radius-md);
  padding:10px 14px; margin-bottom:20px;
  font-size:13px; font-weight:500; color:#92400e;
}
.auth-premium-icon { flex-shrink:0; color:#d97706; }

/* Header */
.auth-header { text-align:center; margin-bottom:24px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.auth-logo-icon { margin-bottom:4px; }
.auth-title { font-size:22px; font-weight:800; letter-spacing:-.5px; color:#fff; margin:0; }
.auth-sub { font-size:14px; color:#737373; max-width:280px; line-height:1.5; margin:0; }

/* Google button */
.btn-google {
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:11px 18px;
  background:#1a1a1a; color:#fff;
  border:1.5px solid #333; border-radius:12px;
  font-size:14px; font-weight:600; cursor:pointer;
  transition:background .2s, border-color .2s;
  font-family:Inter,system-ui,sans-serif;
}
.btn-google:hover { background:#222; border-color:#444; }

/* OR divider */
.auth-or {
  display:flex; align-items:center; gap:12px;
  margin:18px 0; color:#555; font-size:12px; font-weight:500;
}
.auth-or::before,.auth-or::after { content:''; flex:1; height:1px; background:#2a2a2a; }

/* Form fields */
.auth-form { display:flex; flex-direction:column; gap:12px; }
.auth-field { display:flex; flex-direction:column; gap:5px; }
.auth-field label { font-size:12px; font-weight:600; color:#999; }
.auth-field input {
  padding:10px 14px; border:1.5px solid #333;
  border-radius:8px; font-size:14px; color:#fff;
  background:#1a1a1a; outline:none; font-family:Inter,system-ui,sans-serif;
  transition:border-color .2s, box-shadow .2s;
}
.auth-field input:focus { border-color:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.08); }
.auth-field input::placeholder { color:#555; }
.auth-field input.error { border-color:#ef4444; }

.auth-error {
  padding:10px 14px; background:#2d1111; border:1px solid #5c2020;
  border-radius:8px; font-size:13px; color:#f87171; font-weight:500;
}

/* Switch link */
.auth-switch { text-align:center; margin-top:16px; font-size:13px; color:#737373; }
.auth-switch-btn { color:#fff; font-weight:700; font-size:13px; text-decoration:underline; text-underline-offset:2px; cursor:pointer; background:none; border:none; font-family:Inter,system-ui,sans-serif; }
.auth-switch-btn:hover { opacity:.7; }
#authSubmit { width:100%;padding:12px;background:#fff;color:#0a0a0a;border:none;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;font-family:Inter,system-ui,sans-serif;transition:opacity .15s; }
#authSubmit:hover { opacity:.88; }
#authSubmit:disabled { opacity:.5;cursor:default; }

/* ─── Theme Toggle ───────────────────────────────────────── */
/* Icon based on VISUAL state (data-theme), not logical mode.
   Site looks light  → moon shown  (click → dark)
   Site looks dark   → sun shown   (click → light)
   System icon only in mobile label, not in the toggle button. */
/* ─── Dark Mode — Component Overrides ────────────────────── */

/* Search bar — subtle glow border */
/* Filter section — deeper contrast, glow on selects */
/* Popular docs — card emphasis */
/* How It Works — dark mode icon backgrounds */
/* Countries */
/* Pricing dark mode — pro card slightly lighter so it stands out from dark bg */
/* Trust section check icons */
/* Auth modal is always dark - no theme override needed */

/* Hero badge subtle glow */
/* Search icon color */
/* Stat numbers */
/* Logo theme switching handled by .logo-dark / .logo-light classes */

/* Section title spacing fix after removing section-tag */
.section-header .section-title,
.hiw-header .section-title { margin-top:0; }
.trust-content .section-title { margin:0 0 28px; }
