/* =========================================================
   SnapFBA — Design System
   Modern utility SaaS for Amazon sellers
   ========================================================= */

:root {
  /* Brand */
  --brand: #FF9900;
  --brand-600: #F08800;
  --brand-700: #D97706;
  --brand-50:  #FFF7ED;
  --brand-100: #FFEDD5;

  --ink:        #0B1220;
  --ink-2:      #111827;
  --muted:      #6B7280;
  --muted-2:    #9CA3AF;
  --line:       #E5E7EB;
  --line-2:     #EEF2FF;

  --bg:         #FFFFFF;
  --bg-soft:    #F8FAFC;
  --bg-tint:    #FFF8EE;
  --card:       #FFFFFF;

  --indigo:     #6366F1;
  --indigo-50:  #EEF2FF;
  --indigo-100: #E0E7FF;
  --green:      #10B981;
  --red:        #EF4444;
  --amber:      #F59E0B;
  --sky:        #0EA5E9;

  /* Surface */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04);
  --shadow:    0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md: 0 10px 30px -10px rgba(15,23,42,.18);
  --shadow-lg: 0 20px 50px -20px rgba(15,23,42,.25);
  --ring:      0 0 0 4px rgba(255,153,0,.15);

  /* Radius */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;

  /* Type */
  --font: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', 'Satoshi', -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

html[data-theme="dark"] {
  --ink:        #F8FAFC;
  --ink-2:      #E2E8F0;
  --muted:      #94A3B8;
  --muted-2:    #64748B;
  --line:       #1F2937;
  --line-2:     #1E293B;
  --bg:         #0B1220;
  --bg-soft:    #0F172A;
  --bg-tint:    #1A1206;
  --card:       #111827;
  --brand-50:   #2A1A05;
  --brand-100:  #3A2207;
  --indigo-50:  #1E1B4B;
  --indigo-100: #312E81;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 10px 30px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 20px 50px -20px rgba(0,0,0,.7);
}

* { margin:0; padding:0; box-sizing:border-box; }
*::selection { background: var(--brand); color:#fff; }

html, body { height:100%; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration:none; }
img, svg, video { max-width:100%; display:block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background:none; border:0; cursor:pointer; }
ul { list-style:none; }
input, textarea, select { outline:none; }

/* ============ Container ============ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px){ .container { padding: 0 18px; } }

/* ============ Type ============ */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing:-0.02em; line-height:1.15; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size: 12px; font-weight:600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50); padding: 6px 12px; border-radius: 999px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.gradient-text {
  background: linear-gradient(90deg, #FF9900 0%, #FF6A00 50%, #6366F1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 11px 18px; border-radius: var(--r);
  font-weight: 600; font-size: 14.5px;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .2s var(--ease), color .15s var(--ease);
  white-space: nowrap; user-select:none;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #FFAA2B 0%, #FF8A00 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(255,138,0,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 12px 24px -10px rgba(255,138,0,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--bg); }
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink-2); color:#fff; }
.btn-dark:hover { background: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display:flex; align-items:center; justify-content: space-between; gap: 20px;
}
.logo { display:flex; align-items:center; gap:10px; font-weight: 800; font-size: 18px; letter-spacing:-0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #FFB547 0%, #FF7A00 100%);
  display:grid; place-items:center; color:#fff; font-weight: 800; box-shadow: 0 4px 10px -2px rgba(255,122,0,.4);
}
.nav-links { display:flex; align-items:center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; color: var(--ink); font-size: 14.5px; font-weight:500;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-actions { display:flex; align-items:center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display:grid; place-items:center;
  background: transparent; color: var(--ink); transition: background .15s var(--ease);
}
.icon-btn:hover { background: var(--bg-soft); }

/* User menu (logged-in state) */
.user-menu { position: relative; }
.user-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 600; font-size: 13.5px; color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.user-trigger:hover { border-color: var(--ink); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #FFB547, #FF7A00); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0;
  box-shadow: 0 2px 6px -2px rgba(255,138,0,.5);
}
.user-avatar.lg { width: 42px; height: 42px; font-size: 14px; }
.user-name { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 260px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  z-index: 70;
}
.user-menu.open .user-pop { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.user-pop-head {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 10px; background: var(--bg-soft);
  margin-bottom: 4px;
}
.user-pop a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.user-pop a:hover { background: var(--bg-soft); color: var(--ink); }
.user-pop-out { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px !important; color: var(--red) !important; }
.user-pop-out:hover { background: #FEF2F2 !important; }
html[data-theme="dark"] .user-pop-out:hover { background: #2A0808 !important; }
@media (max-width: 700px){
  .user-name { display: none; }
  .user-trigger { padding: 4px; border-radius: 999px; }
  .user-trigger svg { display: none; }
}

.hamburger { display:none; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .nav-actions .btn:not(.btn-primary) { display:none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 60;
  padding: 24px;
  transform: translateY(-100%); opacity: 0; pointer-events:none;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); opacity:1; pointer-events:auto; }
.mobile-menu-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; }
.mobile-menu nav a {
  display:flex; align-items:center; gap:10px; padding: 14px 6px;
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px;
}
.mobile-menu .btn { width: 100%; margin-top: 12px; }

/* Bottom nav (mobile only) */
.bottom-nav {
  display:none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  background: var(--card); border:1px solid var(--line);
  border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg);
  justify-content: space-around;
}
.bottom-nav a {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding: 8px 6px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.bottom-nav a.active { color: var(--brand-700); background: var(--brand-50); }
@media (max-width: 700px){ .bottom-nav { display:flex; } body { padding-bottom: 80px; } }

/* ============ Hero ============ */
.hero {
  position: relative; overflow:hidden;
  padding: 80px 0 60px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(255,153,0,.18), transparent 60%),
    radial-gradient(900px 400px at 10% 10%, rgba(99,102,241,.14), transparent 60%);
}
.hero-inner { display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center; }
@media (max-width: 980px){ .hero-inner { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { margin: 14px 0 18px; }
.hero h1 span.kw { color: var(--brand-700); }
.hero .lead { font-size: 1.18rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 24px; }
.hero-trust { display:flex; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 13.5px; flex-wrap:wrap; }
.hero-trust span { display:inline-flex; align-items:center; gap:6px; }
.hero-trust svg { color: var(--green); }

/* Hero visual */
.hero-visual {
  position: relative; aspect-ratio: 1/0.9; max-width: 560px; justify-self:end;
}
.hero-card {
  background: var(--card); border:1px solid var(--line); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: 18px; position:absolute;
}
.hero-card.main { inset: 0; }
.hero-card.mini { width: 220px; bottom: -10px; right:-20px; padding: 14px; animation: floaty 6s var(--ease) infinite; }
.hero-card.mini2 { width: 200px; top: -10px; left: -16px; padding: 14px; animation: floaty 7s var(--ease) infinite reverse; }
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }

.dropzone-demo {
  height: 100%; border-radius: var(--r-xl); border: 2px dashed var(--brand);
  background: linear-gradient(180deg, var(--brand-50), transparent 70%);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 12px;
  padding: 20px; text-align:center;
}
.dz-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, #FFB547, #FF7A00); color:#fff;
  display:grid; place-items:center; box-shadow: 0 12px 24px -10px rgba(255,122,0,.5);
}
.preview-row { display:flex; gap:8px; align-items:center; }
.preview-thumb { width:42px; height:42px; border-radius:10px; background: var(--bg-soft); display:grid; place-items:center; color:var(--muted); }

/* ============ Sections ============ */
section { padding: 84px 0; }
@media (max-width: 700px){ section { padding: 64px 0; } }
.section-head { text-align:center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ============ Cards & Grids ============ */
.grid { display:grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px){ .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }

.tool-card {
  display:flex; flex-direction:column; gap: 10px; position:relative;
  background: var(--card); border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; transition: all .2s var(--ease);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.tool-card .ti {
  width: 42px; height: 42px; border-radius: 12px;
  display:grid; place-items:center; margin-bottom: 6px;
  background: var(--brand-50); color: var(--brand-700);
}
.tool-card[data-cat="ai"] .ti { background: var(--indigo-50); color: var(--indigo); }
.tool-card[data-cat="listing"] .ti { background: #ECFDF5; color: var(--green); }
.tool-card[data-cat="ppc"] .ti { background: #FEF3C7; color: #B45309; }
.tool-card[data-cat="utility"] .ti { background: #E0F2FE; color: var(--sky); }
.tool-card[data-cat="branding"] .ti { background: #FCE7F3; color: #BE185D; }
html[data-theme="dark"] .tool-card[data-cat="listing"] .ti { background:#052E16; }
html[data-theme="dark"] .tool-card[data-cat="ppc"] .ti { background:#3D2A04; color:#FCD34D; }
html[data-theme="dark"] .tool-card[data-cat="utility"] .ti { background:#0C2D43; }
html[data-theme="dark"] .tool-card[data-cat="branding"] .ti { background:#3F0A22; color:#FBCFE8; }

.tool-card h3 { font-size: 15.5px; font-weight: 700; }
.tool-card p { font-size: 13.5px; color: var(--muted); }
.tool-card .badge {
  position:absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; letter-spacing:.06em; text-transform:uppercase;
  background: linear-gradient(90deg, var(--brand), #FF6A00); color: #fff;
  padding: 3px 8px; border-radius: 999px;
}
.tool-card .badge.ai { background: linear-gradient(90deg, var(--indigo), #8B5CF6); }
.tool-card .badge.pro { background: linear-gradient(90deg, #0EA5E9, #6366F1); }

/* ============ Tool layout ============ */
.tool-hero {
  background: linear-gradient(180deg, var(--brand-50), transparent 80%);
  padding: 52px 0 28px;
  border-bottom: 1px solid var(--line);
}
.tool-hero .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tool-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.tool-hero p { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.tool-hero .badges { display:flex; gap:8px; margin-top: 14px; flex-wrap:wrap; }
.chip {
  display:inline-flex; align-items:center; gap:6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg); border:1px solid var(--line); color: var(--ink);
}
.chip.brand { background: var(--brand-50); color: var(--brand-700); border-color: transparent; }
.chip.success { background: #ECFDF5; color: #047857; border-color: transparent; }
.chip.indigo { background: var(--indigo-50); color: var(--indigo); border-color: transparent; }
html[data-theme="dark"] .chip.success { background: #052E16; color: #34D399; }

.tool-body { padding: 36px 0 60px; }
.tool-layout { display:grid; grid-template-columns: 1fr 320px; gap: 28px; }
@media (max-width: 980px){ .tool-layout { grid-template-columns: 1fr; } }

.tool-pane {
  background: var(--card); border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px;
}
.tool-side .side-card {
  background: var(--card); border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 14px;
}
.side-card h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing:.08em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-lg);
  padding: 38px 20px; text-align:center; transition: all .2s var(--ease);
  background: var(--bg-soft); cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand); background: var(--brand-50);
}
.dropzone .dz-icon { margin: 0 auto 14px; }
.dropzone h3 { font-size: 18px; margin-bottom: 6px; }
.dropzone p { color: var(--muted); font-size: 14px; }
.dropzone .btn { margin-top: 16px; }

/* Form controls */
.field { display:flex; flex-direction:column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { color: var(--muted); font-size: 12px; }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.textarea { min-height: 160px; resize: vertical; font-family: ui-monospace, Menlo, Monaco, Consolas, monospace; font-size: 14px; }
.select { appearance:none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

.row { display:flex; gap: 10px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 130px; margin-bottom: 0; }

.toggle { display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.toggle input { display:none; }
.toggle .track { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position:relative; transition: background .2s var(--ease); }
.toggle .track::after { content:''; position:absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background:#fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .track { background: var(--brand); }
.toggle input:checked + .track::after { transform: translateX(16px); }

/* Stats / result tiles */
.stat {
  display:flex; flex-direction:column; gap:4px; padding: 14px;
  background: var(--bg-soft); border-radius: var(--r); border: 1px solid var(--line);
}
.stat .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat .v { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing:-0.02em; }
.stat.brand .v { color: var(--brand-700); }
.stat.good .v { color: #047857; }
.stat.bad .v { color: var(--red); }

.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display:block; height:100%; background: linear-gradient(90deg, var(--brand), #FF6A00); border-radius:999px; transition: width .25s var(--ease); }

/* Preview frames */
.preview {
  border:1px solid var(--line); border-radius: var(--r-lg);
  background:
    linear-gradient(45deg, var(--bg-soft) 25%, transparent 25%, transparent 75%, var(--bg-soft) 75%),
    linear-gradient(45deg, var(--bg-soft) 25%, var(--bg) 25%, var(--bg) 75%, var(--bg-soft) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
  padding: 14px; display:grid; place-items:center; min-height: 200px;
}
.preview img { max-height: 360px; border-radius: 6px; box-shadow: var(--shadow); }

/* Alert */
.alert {
  padding: 12px 14px; border-radius: var(--r); display:flex; gap:10px; align-items:flex-start;
  font-size: 13.5px; border: 1px solid var(--line); background: var(--bg-soft);
}
.alert.warn { background: #FFFBEB; border-color: #FEF3C7; color: #92400E; }
.alert.error { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.alert.success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
html[data-theme="dark"] .alert.warn { background: #2A1A05; border-color:#3F2806; color:#FCD34D; }
html[data-theme="dark"] .alert.error { background: #2A0808; border-color:#5C1212; color:#FCA5A5; }
html[data-theme="dark"] .alert.success { background: #052E16; border-color:#064E3B; color:#6EE7B7; }

/* FAQ */
.faq { display:flex; flex-direction:column; gap: 10px; }
.faq details {
  background: var(--card); border:1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; transition: border-color .15s var(--ease);
}
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor:pointer; font-weight: 600; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; font-size: 18px; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* Pricing */
.pricing-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 900px){ .pricing-grid { grid-template-columns: 1fr; } }
.price-card { padding: 28px; background: var(--card); border:1px solid var(--line); border-radius: var(--r-xl); display:flex; flex-direction:column; }
.price-card.featured { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-50), var(--card) 50%); position:relative; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card .tier { font-size: 14px; font-weight: 700; color: var(--brand-700); letter-spacing:.06em; text-transform:uppercase; }
.price-card .price { font-size: 42px; font-weight: 800; margin: 10px 0 4px; letter-spacing:-0.03em; }
.price-card .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-card ul { display:flex; flex-direction:column; gap: 10px; margin: 20px 0 28px; }
.price-card li { display:flex; gap:10px; font-size: 14.5px; color: var(--ink-2); }
.price-card li svg { color: var(--green); flex-shrink:0; margin-top:2px; }

/* Testimonials */
.testi-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px){ .testi-grid { grid-template-columns: 1fr; } }
.testi { padding: 22px; background: var(--card); border:1px solid var(--line); border-radius: var(--r-lg); }
.testi .stars { color: var(--brand); margin-bottom: 10px; letter-spacing: 2px; }
.testi p { font-size: 14.5px; color: var(--ink-2); }
.testi .author { display:flex; gap:10px; margin-top: 16px; align-items:center; }
.testi .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #FFB547, #FF7A00); display:grid; place-items:center; color:#fff; font-weight:700; }
.testi .author small { display:block; color: var(--muted); }

/* Logos strip */
.logos {
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.logos-row { display:flex; gap: 36px; flex-wrap:wrap; justify-content:center; align-items:center; color: var(--muted); }
.logos-row span { font-weight: 700; letter-spacing:-0.02em; font-size: 16px; opacity:.7; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 60px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 980px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing:.08em; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { display:flex; flex-direction:column; gap:8px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; flex-wrap:wrap; gap: 10px; }

/* Auth */
.auth-wrap {
  min-height: calc(100vh - var(--header-h)); display:grid; place-items:center; padding: 60px 20px;
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(255,153,0,.12), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(99,102,241,.10), transparent 60%);
}
.auth-card { width: 100%; max-width: 440px; background: var(--card); border:1px solid var(--line); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card p.lead { font-size: 14px; margin-bottom: 22px; }
.divider { display:flex; align-items:center; gap:10px; color:var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content:''; flex:1; height:1px; background: var(--line); }

/* Dashboard */
.app-shell { display:grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 900px){ .app-shell { grid-template-columns: 1fr; } }
.app-sidebar {
  background: var(--bg-soft); border-right: 1px solid var(--line); padding: 22px 16px;
  position:sticky; top:0; height: 100vh; overflow-y:auto;
}
@media (max-width: 900px){ .app-sidebar { display:none; } }
.app-sidebar .side-section { margin-top: 22px; }
.app-sidebar .side-section h5 { font-size: 11px; text-transform: uppercase; letter-spacing:.08em; color: var(--muted); margin-bottom: 8px; padding: 0 10px; }
.app-sidebar a {
  display:flex; align-items:center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.app-sidebar a:hover, .app-sidebar a.active { background: var(--brand-50); color: var(--brand-700); }
.app-sidebar a.active { font-weight: 700; }
.app-main { padding: 28px; }
.app-main h1 { font-size: 1.6rem; margin-bottom: 6px; }

/* Misc utils */
.flex { display:flex; }
.between { justify-content: space-between; }
.center { align-items:center; }
.gap-8 { gap:8px; } .gap-12 { gap:12px; } .gap-16{gap:16px;}
.mt-8{margin-top:8px;} .mt-12{margin-top:12px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;}
.mb-8{margin-bottom:8px;} .mb-12{margin-bottom:12px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;}
.hidden { display:none !important; }
.text-center { text-align:center; }

/* Skeleton / spinner */
.spinner { width: 18px; height: 18px; border: 2px solid color-mix(in srgb, currentColor 20%, transparent); border-top-color: currentColor; border-radius:50%; animation: spin 0.8s linear infinite; display:inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--line) 0%, var(--bg-soft) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Category pills */
.cat-pills { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 20px; }
.cat-pill {
  padding: 8px 14px; border-radius: 999px; background: var(--card); border:1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor:pointer; transition: all .15s var(--ease);
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand-700); }
.cat-pill.active { background: var(--ink-2); color:#fff; border-color: var(--ink-2); }
html[data-theme="dark"] .cat-pill.active { background: var(--brand); border-color: var(--brand); color: #111; }

/* CTA */
.cta-band {
  background: linear-gradient(120deg, #0B1220 0%, #1F2937 50%, #312E81 100%);
  color: #fff; border-radius: var(--r-2xl);
  padding: 52px; text-align:center;
  position:relative; overflow:hidden;
}
.cta-band::before {
  content:''; position:absolute; inset:-50%;
  background: radial-gradient(400px 200px at 80% 30%, rgba(255,153,0,.3), transparent 70%);
}
.cta-band > * { position:relative; }
.cta-band h2 { color:#fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.7); max-width: 540px; margin: 14px auto 24px; }

/* ============ Tool AEO content block ============ */
.tool-intro { font-size: 1.05rem; max-width: 740px; color: var(--ink-2); line-height: 1.6; margin-top: 14px; }
.tool-aeo { padding: 60px 0 20px; }
.tool-aeo .aeo-grid { max-width: 880px; margin: 0 auto; }
.tool-aeo h2 { font-size: 1.55rem; letter-spacing: -0.02em; margin: 8px 0 14px; scroll-margin-top: calc(var(--header-h) + 14px); }
.tool-aeo h2:not(:first-child) { margin-top: 40px; }
.tool-aeo h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.tool-aeo p  { color: var(--ink-2); font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.aeo-steps {
  list-style: none; counter-reset: aeo-step;
  display: flex; flex-direction: column; gap: 14px;
  padding: 0; margin: 4px 0 0;
}
.aeo-steps li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px;
}
.aeo-step-n {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #FFB547, #FF7A00); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 6px -1px rgba(255,138,0,.45);
}
.aeo-step-t { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); padding-top: 5px; }

.aeo-two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
@media (max-width: 760px) { .aeo-two-up { grid-template-columns: 1fr; gap: 22px; } }
.aeo-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aeo-list li { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; display: flex; gap: 10px; align-items: flex-start; }
.aeo-check { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.aeo-arrow { color: var(--brand); font-weight: 800; flex-shrink: 0; }

/* Legal docs (Terms, Privacy) */
.legal-hero { padding: 64px 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--brand-50), transparent 80%); }
.legal-hero h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.legal-hero p.lead { margin-top: 10px; font-size: 1rem; }
.legal-body { padding: 48px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 980px){ .legal-layout { grid-template-columns: 1fr; gap: 24px; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px){ .legal-toc { position: static; } }
.legal-toc h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.legal-toc ol { counter-reset: toc; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--muted); border-left: 2px solid transparent;
  transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted-2); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; flex-shrink: 0; }
.legal-toc a:hover { color: var(--ink); background: var(--bg-soft); }
.legal-toc a.active { color: var(--brand-700); border-left-color: var(--brand); background: var(--brand-50); font-weight: 600; }

.legal-prose { max-width: 740px; color: var(--ink-2); line-height: 1.7; font-size: 15.5px; }
.legal-prose h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 { font-size: 16.5px; margin: 20px 0 8px; color: var(--ink); }
.legal-prose p { margin-bottom: 14px; }
.legal-prose ul, .legal-prose ol { margin: 0 0 16px 22px; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li { margin-bottom: 6px; }
.legal-prose a { color: var(--brand-700); font-weight: 600; }
.legal-prose a:hover { text-decoration: underline; }
.legal-prose strong { color: var(--ink); }
.legal-prose blockquote { border-left: 3px solid var(--brand); padding: 4px 16px; margin: 16px 0; color: var(--muted); background: var(--brand-50); border-radius: 0 8px 8px 0; }
.legal-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); background: var(--bg-soft); padding: 6px 12px; border-radius: 999px; margin-top: 14px; border: 1px solid var(--line); }
.legal-meta strong { color: var(--ink); }

/* Step list */
.steps { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px){ .steps { grid-template-columns: 1fr; } }
.step { padding: 22px; border:1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.step .n { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; display:grid; place-items:center; margin-bottom: 12px; }
