﻿/* ============================================================
   Trusul - Design System v2
   Fonts: Inter (body) + Plus Jakarta Sans (headings)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* -- CSS Variables ------------------------------------------- */
:root {
  /* Brand */
  --brand-900: #050816;
  --brand-800: #0b1220;
  --brand-700: #102a56;
  --brand-600: #1557c0;
  --brand-500: #2563eb;
  --brand-400: #38bdf8;
  --brand-300: #93c5fd;
  --brand-100: #dbeafe;
  --brand-50:  #eff6ff;

  /* Semantic */
  --green:     #10b981;
  --green-bg:  #d1fae5;
  --green-text:#065f46;
  --amber:     #f59e0b;
  --amber-bg:  #fef3c7;
  --amber-text:#92400e;
  --red:       #ef4444;
  --red-bg:    #fee2e2;
  --red-text:  #991b1b;
  --info-bg:   #eff6ff;
  --info-text: #1e40af;

  /* Surface */
  --bg:         #f4f7fb;
  --bg-2:       #eaf1fb;
  --surface:    #ffffff;
  --surface-2:  #f8faff;
  --border:     #e2e8f0;
  --border-2:   #cbd5e1;

  /* Text */
  --text-1: #0f172a;
  --text-2: #334155;
  --text-3: #475569;
  --text-4: #64748b;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 8px 24px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.12), 0 4px 10px rgba(15,23,42,.07);
  --shadow-brand: 0 4px 20px rgba(37,99,235,.30);

  /* Typography */
  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --font-h:   'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Layout */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --navbar-h:  64px;

  /* Tells the browser to render native control internals (caret, scrollbars,
     autofill chrome, spin buttons) in light mode; the dark block flips this. */
  color-scheme: light;
}

/* -- Dark Mode ----------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0b1120;
  --bg-2:      #0f1629;
  --surface:   #161f35;
  --surface-2: #1c2640;
  --border:    #2a3555;
  --border-2:  #364270;
  --text-1:    #f1f5f9;
  --text-2:    #cbd5e1;
  --text-3:    #b6c2d9;
  --text-4:    #94a3b8;
  --shadow:    0 4px 12px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
  --brand-50:  #1a2345;
  --brand-100: #1e2b5a;
  --green-bg:  #064e3b;
  --green-text:#6ee7b7;
  --amber-bg:  #451a03;
  --amber-text:#fde68a;
  --red-bg:    #450a0a;
  --red-text:  #fca5a5;
  --info-bg:   #1e3a5f;
  --info-text: #93c5fd;
}

/* -- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* -- Accessibility - Skip link ------------------------------- */
.skip-link {
  position: absolute; top: -999px; left: 8px;
  background: var(--brand-500); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-xs);
  font-weight: 600; z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* -- Navbar settings trigger ----------------------------------------------- */
.nav-settings-btn {
  min-height: 34px;
  padding: 0 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: 8px;
  border: 1px solid rgba(147, 197, 253, .24);
  border-radius: 8px;
  background: rgba(37, 99, 235, .1);
  color: rgba(239, 246, 255, .92);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.nav-settings-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-settings-btn:hover { background: #2563eb; border-color: #60a5fa; color: #fff; transform: translateY(-1px); }
.nav-settings-btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }

/* -- Public-page theme toggle (logged-in pages use Settings instead) ------ */
.nav-icon-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  margin-left: 6px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.nav-icon-btn svg { width: 17px; height: 17px; }
.nav-icon-btn:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; transform: translateY(-1px); }
.nav-icon-btn:focus-visible { outline: 3px solid #06B6D4; outline-offset: 2px; }

/* -- Navbar --------------------------------------------------- */
.navbar {
  height: var(--navbar-h);
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%);
  padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}
.navbar::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.navbar-brand {
  font-family: var(--font-h);
  font-size: 19px; font-weight: 800;
  color: #fff; letter-spacing: 0;
  display: flex; align-items: center; gap: 9px;
  position: relative;
}
.navbar-brand:hover { text-decoration: none; color: var(--brand-300); }
.brand-logo {
  display: block;
  flex-shrink: 0;
}
.brand-logo-full {
  width: 186px;
  height: 42px;
  object-fit: contain;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-plate {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
}
.brand-logo-plate img {
  width: 31px;
  height: 27px;
  object-fit: contain;
}
.brand-wordmark-dark {
  width: 130px;
  height: 30px;
  display: block;
  object-fit: contain;
}
.brand-logo-mark {
  display: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.navbar-brand .brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 2px 8px rgba(59,91,219,.4);
}
.tl-inline-icon,
.tl-card-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
}
.tl-card-icon {
  width: 24px;
  height: 24px;
}
.card-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: var(--radius-xs);
  background: var(--brand-50);
  color: #28799a;
  vertical-align: middle;
}
.icon-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-links a {
  color: rgba(255,255,255,.75); padding: 7px 13px;
  border-radius: var(--radius-xs); font-size: 13.5px; font-weight: 500;
  transition: background .2s, color .2s; position: relative;
}
.nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-links a.active {
  background: rgba(255,255,255,.14); color: #fff; font-weight: 600;
}
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--brand-300); border-radius: 2px;
}
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), #06B6D4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13.5px;
  margin-left: 8px; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 2px 8px rgba(0,0,0,.22);
}
.btn-nav-logout {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.82); padding: 7px 14px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 600; cursor: pointer;
  margin-left: 4px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-nav-logout svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-nav-logout:hover { background: rgba(239,68,68,.18); color: #fca5a5; border-color: rgba(239,68,68,.35); }
.btn-nav-logout:focus-visible { outline: 3px solid #06B6D4; outline-offset: 2px; }

/* -- Layout --------------------------------------------------- */
.page { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.page-wide { max-width: 1080px; margin: 0 auto; padding: 48px 24px 80px; }
.page-header { margin-bottom: 36px; }
.page-title {
  font-family: var(--font-h); font-size: 28px; font-weight: 800;
  color: var(--text-1); letter-spacing: 0; margin-bottom: 6px;
}
.page-subtitle { font-size: 15px; color: var(--text-3); }

/* -- Cards ---------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 20px;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-sm { padding: 18px 22px; }
.card-flat { box-shadow: none; }
.card-accent { border-left: 4px solid var(--brand-500); }
.card-green  { border-left: 4px solid var(--green); }
.card-amber  { border-left: 4px solid var(--amber); }
.card-red    { border-left: 4px solid var(--red); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* -- Stat Cards ----------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 8px; color: #28799a;
}
.stat-card .stat-val {
  font-family: var(--font-h); font-size: 32px; font-weight: 800;
  color: var(--text-1); line-height: 1;
}
.stat-card .stat-label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.stat-card-highlight {
  background: linear-gradient(160deg, var(--brand-50) 0%, var(--surface) 65%);
  border-left: 4px solid #28799a;
}
.stat-card-highlight .stat-val { font-size: 36px; }

/* -- Admin section navigation -------------------------------- */
.admin-quicknav { position: sticky; top: 8px; z-index: 5; }
.admin-section { scroll-margin-top: 84px; }

/* -- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; text-decoration: none;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; }
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff; box-shadow: 0 2px 12px rgba(59,91,219,.3);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); box-shadow: var(--shadow-brand); transform: translateY(-1px); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-2); }
.btn-secondary:hover { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-300); text-decoration: none; }
.auth-google-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.google-mark { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-3); padding: 8px 12px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-1); text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: var(--radius-xs); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* -- Forms ---------------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--surface); color: var(--text-1);
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59,91,219,.15);
}
.form-control::placeholder { color: var(--text-4); }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }
.char-count { font-size: 12px; color: var(--text-4); text-align: right; margin-top: 4px; }
.char-count.warn { color: var(--amber); }

/* -- Input Tabs ----------------------------------------------- */
.input-tabs { display: flex; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 20px; gap: 4px; }
.input-tab {
  flex: 1; padding: 9px 12px; border: none; border-radius: var(--radius-xs);
  background: transparent; color: var(--text-3);
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.input-tab.active { background: var(--surface); color: var(--brand-500); box-shadow: var(--shadow-xs); }
.input-tab:focus-visible { outline: 3px solid var(--brand-400); }

/* -- Alerts --------------------------------------------------- */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px;
  display: none; margin-bottom: 16px; font-weight: 500;
}
.alert.show { display: flex; align-items: flex-start; gap: 10px; }
.alert-danger  { background: var(--red-bg);   color: var(--red-text);   border: 1px solid rgba(239,68,68,.2); }
.alert-success { background: var(--green-bg); color: var(--green-text); border: 1px solid rgba(16,185,129,.2); }
.alert-info    { background: var(--info-bg);  color: var(--info-text);  border: 1px solid rgba(59,91,219,.2); }
.alert-amber   { background: var(--amber-bg); color: var(--amber-text); border: 1px solid rgba(245,158,11,.2); }

/* -- Badges / Verdict ----------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 30px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
}
.badge-low    { background: var(--green-bg); color: var(--green-text); }
.badge-medium { background: var(--amber-bg); color: var(--amber-text); }
.badge-high   { background: var(--red-bg);   color: var(--red-text); }
.badge-verify { background: var(--brand-50); color: var(--brand-600); }
.badge-url    { background: var(--brand-50); color: var(--brand-600); }
.badge-text   { background: var(--surface-2); color: var(--text-3); }

/* -- Score Ring (SVG / CSS conic-gradient) -------------------- */
.score-ring-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 0;
}
.score-ring {
  position: relative; width: 180px; height: 180px;
}
.score-ring canvas { position: absolute; inset: 0; }
.score-ring-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.score-num {
  font-family: var(--font-h); font-size: 52px; font-weight: 800;
  line-height: 1; letter-spacing: 0;
}
.score-num.low    { color: var(--green); }
.score-num.medium { color: var(--amber); }
.score-num.high   { color: var(--red); }
.score-caption { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* -- Breakdown bars ------------------------------------------- */
.breakdown-row { margin-bottom: 18px; }
.breakdown-row .br-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.breakdown-row .br-label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.breakdown-row .br-score { font-size: 13px; color: var(--text-3); font-weight: 500; }
.progress-track { height: 8px; background: var(--bg-2); border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; transition: width .9s cubic-bezier(0.34,1.56,0.64,1); }
.pf-low    { background: linear-gradient(90deg, #10b981, #34d399); }
.pf-medium { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pf-high   { background: linear-gradient(90deg, #ef4444, #f97316); }
.pf-blue   { background: linear-gradient(90deg, var(--brand-500), var(--brand-400)); }

/* -- Breakdown info pills (topic sensitivity / confidence) ---- */
.breakdown-info-pill {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; min-width: 160px;
}

/* -- Evidence cards ------------------------------------------- */
.evidence-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  margin-bottom: 10px; transition: border-color .2s;
}
.evidence-item:hover { border-color: var(--brand-300); }
.evidence-item .ev-claim { font-weight: 600; color: var(--text-1); font-size: 14px; margin-bottom: 6px; }
.evidence-item .ev-meta { font-size: 13px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* -- Tags / Chips --------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 600; margin: 2px;
  background: var(--brand-50); color: var(--brand-600);
}
.chip-red    { background: var(--red-bg);   color: var(--red-text); }
.chip-amber  { background: var(--amber-bg); color: var(--amber-text); }
.chip-green  { background: var(--green-bg); color: var(--green-text); }

/* -- Table ---------------------------------------------------- */
.data-table-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.data-table thead tr { background: linear-gradient(135deg, var(--brand-900), var(--brand-800)); }
.data-table th { padding: 13px 16px; text-align: left; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; }
.data-table td { padding: 13px 16px; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .15s; cursor: pointer; }
.data-table tbody tr:hover td { background: var(--brand-50); }
.td-preview { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -- Report Cards (Saved Reports / History) ------------------ */
.report-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.report-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.report-card:hover, .report-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300);
}
.report-card:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.report-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.report-topic {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
}
.report-date { font-size: 12px; color: var(--text-4); white-space: nowrap; }
.report-preview {
  font-size: 14px; color: var(--text-1); line-height: 1.55; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44px;
}
.report-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.report-score { font-family: var(--font-h); font-weight: 800; font-size: 22px; line-height: 1; }
.report-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}

/* -- Filter bar ----------------------------------------------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn {
  padding: 6px 16px; border-radius: 30px; border: 1.5px solid var(--border-2);
  background: var(--surface); color: var(--text-3); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.filter-btn.active-low    { background: var(--green); border-color: var(--green); color: #fff; }
.filter-btn.active-medium { background: var(--amber); border-color: var(--amber); color: #fff; }
.filter-btn.active-high   { background: var(--red);   border-color: var(--red);   color: #fff; }

/* -- Toast notifications -------------------------------------- */
#toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  min-width: 280px; max-width: 360px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  pointer-events: all; animation: toastIn .3s ease forwards;
  color: var(--text-1);
}
.toast.removing { animation: toastOut .3s ease forwards; }
.toast-icon {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.toast-icon svg { width: 15px; height: 15px; }
.toast-success .toast-icon { background: var(--green-bg); color: var(--green-text); }
.toast-error   .toast-icon { background: var(--red-bg);   color: var(--red-text); }
.toast-info    .toast-icon { background: var(--info-bg);  color: var(--info-text); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* -- Loading states ------------------------------------------- */
.loading-card { display: none; }
.loading-card.show { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 220px; text-align: center; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--border); border-top-color: var(--brand-500); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-steps { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.progress-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-4); padding: 4px 0; }
.progress-step.active { color: var(--brand-500); font-weight: 600; }
.progress-step.done   { color: var(--green); }
.step-icon { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; background: var(--surface-2); border: 1.5px solid var(--border); }
.progress-step.active .step-icon { background: var(--brand-100); border-color: var(--brand-400); animation: pulse 1s infinite; }
.progress-step.done   .step-icon { background: var(--green-bg); border-color: var(--green); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(59,91,219,.4); } 50% { box-shadow: 0 0 0 6px rgba(59,91,219,0); } }

/* -- Skeleton loader ------------------------------------------ */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg-2) 50%, var(--surface-2) 75%); background-size: 400% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-xs); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* -- Hero (Landing) ------------------------------------------- */
.hero {
  background: linear-gradient(145deg, var(--brand-900) 0%, var(--brand-800) 50%, var(--brand-700) 100%);
  padding: 90px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,91,219,.4), transparent);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85); padding: 6px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero h1 {
  font-family: var(--font-h); font-size: 52px; font-weight: 800;
  color: #fff; letter-spacing: 0; line-height: 1.1; margin-bottom: 18px;
}
.hero h1 span { background: linear-gradient(135deg, var(--brand-300), #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 36px; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
  color: #fff; padding: 14px 32px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; box-shadow: 0 4px 24px rgba(59,91,219,.45);
  border: none; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,91,219,.55); color: #fff; text-decoration: none; }
.btn-hero-secondary {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.2);
  padding: 14px 32px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  backdrop-filter: blur(8px); transition: all .2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.hero-stats {
  display: flex; gap: 32px; justify-content: center; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .hs-num { font-family: var(--font-h); font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat .hs-label { font-size: 12px; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* -- Feature grid --------------------------------------------- */
.feature-section { max-width: 1040px; margin: 0 auto; padding: 70px 24px; }
.feature-section-title { font-family: var(--font-h); font-size: 32px; font-weight: 800; color: var(--text-1); text-align: center; margin-bottom: 8px; letter-spacing: 0; }
.feature-section-sub { font-size: 16px; color: var(--text-3); text-align: center; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
  color: #28799a;
}
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { font-family: var(--font-h); font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.feature-card p  { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }

.section { max-width: 1080px; margin: 0 auto; padding: 70px 24px; }
.section-head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.section-kicker {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-600);
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-h); font-size: 32px; font-weight: 800;
  color: var(--text-1); margin-bottom: 8px;
}
.section-head p { color: var(--text-3); line-height: 1.7; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.pricing-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-plan.featured-plan {
  border: 2px solid #28799a;
  box-shadow: 0 20px 44px rgba(15,23,42,.14);
  padding-top: 34px;
}
.pricing-plan.featured-plan:hover { transform: translateY(-5px); }
.plan-ribbon {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #28799a, #3aa7b8);
  color: #fff; font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(40,121,154,.4);
  white-space: nowrap;
}
.business-plan .plan-icon { background: var(--brand-900); color: #93c5fd; }
.plan-header { margin-bottom: 18px; }
.plan-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: #28799a;
  margin-bottom: 14px;
}
.featured-plan .plan-icon { background: #e0f2fe; color: #075985; }
.plan-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-600);
  font-size: 12px; font-weight: 800; margin-bottom: 14px;
}
.coming-soon-pill { background: var(--amber-bg); color: var(--amber-text); }
.plan-header h3 {
  font-family: var(--font-h); font-size: 20px; font-weight: 800;
  color: var(--text-1); margin-bottom: 8px;
}
.plan-price {
  font-family: var(--font-h); font-size: 30px; font-weight: 800;
  color: var(--text-1); margin-bottom: 8px;
}
.plan-price span { font-family: var(--font); font-size: 13px; color: var(--text-4); font-weight: 600; }
.plan-header p { color: var(--text-3); font-size: 13.5px; line-height: 1.65; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 24px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.plan-features li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28799a;
  flex: 0 0 auto;
  margin-top: 7px;
}
.plan-cta-soon {
  background: var(--surface);
  border: 1.5px solid #28799a;
  color: #28799a;
}
.plan-cta-soon:hover {
  background: #28799a;
  color: #fff;
}
[data-theme="dark"] .plan-cta-soon { color: #7fcfd6; border-color: #7fcfd6; }
[data-theme="dark"] .plan-cta-soon:hover { background: #7fcfd6; color: #0d1b4b; }
.pricing-note { max-width: 860px; margin: 24px auto 0; }
.pricing-note p { color: var(--text-3); font-size: 13.5px; line-height: 1.7; margin-top: 6px; }

.product-foundation-row {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.usage-limit-card,
.upgrade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.usage-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.usage-card-head > div:last-child { flex: 1; }
.usage-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: #28799a;
  flex: 0 0 auto;
}
.usage-limit-card strong,
.upgrade-card strong {
  display: block;
  font-family: var(--font-h);
  font-size: 17px;
  color: var(--text-1);
  margin: 4px 0 8px;
}
.usage-limit-card p,
.upgrade-card p {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}
.usage-label {
  display: inline-flex;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.usage-meter {
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.usage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28799a, #3aa7b8);
}
.upgrade-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-left: 4px solid #28799a;
  background: linear-gradient(160deg, var(--brand-50) 0%, var(--surface) 60%);
  position: relative;
  overflow: hidden;
}
.upgrade-card::after {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(58,167,184,.16), transparent 70%);
  pointer-events: none;
}
.upgrade-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.upgrade-card-head .usage-icon { margin: 0; }
.upgrade-cta {
  margin-top: 16px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 4px 16px rgba(40,121,154,.28);
}
.upgrade-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(40,121,154,.36); }

/* -- How it works --------------------------------------------- */
.how-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 70px 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 0; max-width: 800px; margin: 40px auto 0; }
.step-item { text-align: center; padding: 16px; position: relative; }
.step-item:not(:last-child)::after {
  content: '->'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); font-size: 20px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: #fff; font-family: var(--font-h); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: var(--shadow-brand);
}
.step-item strong { display: block; font-size: 14px; color: var(--text-1); font-weight: 700; margin-bottom: 6px; }
.step-item span { font-size: 13px; color: var(--text-3); }

/* -- Auth pages ----------------------------------------------- */
.auth-page { min-height: calc(100vh - var(--navbar-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 44px 40px; animation: fadeUp .4s ease both;
}
.auth-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.auth-logo-icon { width: 54px; height: 54px; display: block; filter: drop-shadow(0 8px 18px rgba(15,23,42,.16)); margin-bottom: 12px; }
.auth-logo h2 { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: var(--text-1); }
.auth-logo p  { font-size: 14px; color: var(--text-3); margin-top: 4px; }
.auth-alternative-action { display: inline-flex; align-items: center; justify-content: center; }
.auth-flow-note { margin: 10px 4px 0; color: var(--text-4); font-size: 12px; line-height: 1.5; text-align: center; }
.auth-code-form { margin-top: 18px; }
.auth-otp-input { letter-spacing: .3em; font-family: var(--font-h); font-weight: 700; text-align: center; }
.auth-code-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.auth-code-actions .btn { min-height: 34px; font-size: 13px; }

/* -- Dashboard ------------------------------------------------ */
.greeting { font-family: var(--font-h); font-size: 26px; font-weight: 800; color: var(--text-1); margin-bottom: 4px; overflow-wrap: anywhere; }
.greeting span { color: var(--brand-500); }

/* -- Divider -------------------------------------------------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.divider-text { text-align: center; position: relative; margin: 22px 0; }
.divider-text::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider-text span { position: relative; background: var(--surface); padding: 0 12px; font-size: 13px; color: var(--text-4); }

/* -- Utility classes ------------------------------------------ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-3); font-size: 13px; }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.fw-700       { font-weight: 700; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-2        { gap: 10px; }
.gap-3        { gap: 16px; }
.flex-1       { flex: 1; }
.flex-wrap    { flex-wrap: wrap; }
.mt-1  { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 30px; }
.mb-1  { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.hidden { display: none !important; }

.sample-example-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.sample-example-panel strong {
  display: block;
  color: var(--text-1);
  font-size: 14px;
}
.sample-example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.next-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.next-check-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.next-check-item strong {
  display: block;
  color: var(--text-1);
  font-size: 13px;
  margin-bottom: 4px;
}
.next-check-item span {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.55;
}
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topic-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.topic-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}
.topic-row-head strong {
  color: var(--text-1);
}
.topic-track {
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.topic-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  border-radius: inherit;
}
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(4px);
}
.app-modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.app-modal-card h2 {
  font-family: var(--font-h);
  font-size: 20px;
  color: var(--text-1);
}
.settings-note {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 13px;
  line-height: 1.65;
}

/* -- Settings modal sections ----------------------------------- */
.settings-section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; padding-bottom: 4px; }
.settings-section-title {
  font-family: var(--font-h); font-size: 13px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 14px;
}
.settings-choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.settings-choice-btn {
  flex: 1; min-width: 90px; padding: 9px 14px;
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-2);
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.settings-choice-btn:hover { border-color: var(--brand-300); color: var(--text-1); }
.settings-choice-btn.active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.settings-choice-btn:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; }

.settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0;
}
.settings-toggle-row strong { display: block; font-size: 14px; color: var(--text-1); }
.settings-toggle-row p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.settings-switch {
  width: 42px; height: 24px; border-radius: 999px; flex-shrink: 0;
  background: var(--border-2); border: none; cursor: pointer;
  position: relative; transition: background .2s;
}
.settings-switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .2s;
}
.settings-switch[aria-checked="true"] { background: var(--brand-500); }
.settings-switch[aria-checked="true"] .settings-switch-thumb { transform: translateX(18px); }
.settings-switch:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; }

.settings-account-row { display: flex; align-items: center; gap: 14px; }
.settings-account-row .nav-avatar { width: 44px; height: 44px; font-size: 16px; margin-left: 0; }
.settings-account-row strong { display: block; font-size: 15px; color: var(--text-1); }
.settings-placeholder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.settings-placeholder-actions .btn:disabled { opacity: .55; cursor: not-allowed; }
.trust-code-input { flex: 1 1 180px; max-width: 250px; text-transform: uppercase; letter-spacing: .04em; }
.trust-code-status { margin: 10px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.55; }
.trust-code-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trust-code-form-grid .form-group { margin-bottom: 0; }
.trust-code-form-grid .trust-code-wide { grid-column: span 2; }
.trust-code-checkbox { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.trust-code-checkbox input { width: 16px; height: 16px; accent-color: var(--brand-500); }
@media (max-width: 760px) { .trust-code-form-grid { grid-template-columns: 1fr; } .trust-code-form-grid .trust-code-wide { grid-column: auto; } .trust-code-input { max-width: none; } }
.settings-version {
  color: var(--text-3); font-size: 12px; font-weight: 600;
  padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--radius-xs);
}
.pricing-display-note { margin: 10px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.55; }
.access-verification-card {
  display: flex; align-items: flex-start; gap: 18px;
  border: 1px solid rgba(245, 158, 11, .38);
  background: linear-gradient(135deg, rgba(255, 251, 235, .92), var(--surface));
}
[data-theme="dark"] .access-verification-card { background: linear-gradient(135deg, rgba(120, 53, 15, .24), var(--surface)); }
.access-verification-icon {
  width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center;
  border-radius: 10px; background: var(--amber-bg); color: var(--amber);
}
.access-verification-icon svg { width: 24px; height: 24px; }
.access-verification-card h2 { margin: 10px 0 8px; font-family: var(--font-h); font-size: 20px; color: var(--text-1); }
.access-verification-card p { margin: 0; color: var(--text-2); line-height: 1.65; }
.access-verification-card .text-muted { margin-top: 6px; }
.access-verification-steps { margin: 14px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
@media (max-width: 600px) { .access-verification-card { flex-direction: column; } }

.footer-disclaimer {
  display: block;
  max-width: 820px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.why-score-list {
  padding-left: 20px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}
.trusted-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.trusted-checklist div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
}

/* -- Animations ----------------------------------------------- */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

.animate-up { animation: fadeUp .5s ease both; }
.animate-in { animation: fadeIn .4s ease both; }
[data-delay="1"] { animation-delay: .08s; }
[data-delay="2"] { animation-delay: .16s; }
[data-delay="3"] { animation-delay: .24s; }
[data-delay="4"] { animation-delay: .32s; }
[data-delay="5"] { animation-delay: .40s; }
[data-delay="6"] { animation-delay: .48s; }

/* -- Accessibility: reduced motion / comfortable text (Settings) --------- */
body.reduce-motion,
body.reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
body.comfortable-text { font-size: 17px; line-height: 1.75; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* -- Footer --------------------------------------------------- */
footer {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800));
  padding: 40px 24px 30px;
  font-size: 13px; margin-top: 60px;
}
.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 800;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.footer-links a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 13.5px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy {
  width: 100%;
  max-width: 460px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  font-size: 12.5px;
  line-height: 1.6;
}
.footer-brand img {
  width: 28px;
  height: 28px;
}
.empty-state-mark {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 24px rgba(15,23,42,.12));
}

/* -- Responsive ----------------------------------------------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .hero p  { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .navbar {
    height: auto; min-height: 68px;
    padding: 10px 16px;
    flex-wrap: wrap; row-gap: 8px;
  }
  .nav-links { flex-wrap: wrap; row-gap: 6px; }
  .brand-logo-full { display: none; }
  .brand-logo-mark { display: block; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
  .page, .page-wide { padding: 28px 16px 60px; }
  .auth-card { padding: 30px 24px; }
  .step-item:not(:last-child)::after { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-example-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .sample-example-actions {
    justify-content: flex-start;
  }
  .next-check-grid {
    grid-template-columns: 1fr;
  }
  .trusted-checklist {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* -- Professional refresh ------------------------------------- */
:root {
  --brand-900: #050816;
  --brand-800: #0b1220;
  --brand-700: #102a56;
  --brand-600: #1557c0;
  --brand-500: #2563eb;
  --brand-400: #38bdf8;
  --brand-300: #93c5fd;
  --brand-100: #dbeafe;
  --brand-50:  #eff6ff;
  --bg:         #f5f7f8;
  --bg-2:       #e9eef1;
  --surface-2:  #f8fafb;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

*, *::before, *::after { letter-spacing: 0 !important; }

body {
  background:
    linear-gradient(180deg, var(--bg), var(--bg-2)),
    radial-gradient(circle at 80% 0%, rgba(37,99,235,.08), transparent 32%);
}

/* The light-mode "Professional refresh" :root block above re-declares --bg,
   --bg-2 and --surface-2 without theme scoping, which otherwise wins over the
   earlier [data-theme="dark"] block by source order and leaves dark mode
   showing light-colored section backgrounds under light-colored dark-mode text. */
[data-theme="dark"] {
  --bg:        #0b1120;
  --bg-2:      #0f1629;
  --surface-2: #1c2640;
}

.navbar {
  background: rgba(5,8,22,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar::before { display: none; }

.card,
.stat-card,
.feature-card,
.auth-card {
  box-shadow: var(--shadow-sm);
}

.card:hover,
.stat-card:hover,
.feature-card:hover {
  box-shadow: var(--shadow);
}

.hero {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  text-align: left;
  padding: 72px 24px 96px;
  background:
    linear-gradient(90deg, rgba(11,18,32,.93) 0%, rgba(11,18,32,.78) 42%, rgba(11,18,32,.32) 76%, rgba(11,18,32,.18) 100%),
    url("../assets/hero-news-analysis.png") center right / cover no-repeat;
}

.hero::before,
.hero::after { display: none; }

.hero-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-badge {
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,.09);
}

.hero h1 {
  max-width: 620px;
  font-size: 54px;
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero h1 span {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-tagline {
  max-width: 620px;
  margin: -6px 0 18px;
  color: rgba(255,255,255,.9);
  font-size: 17px;
  font-weight: 700;
}

.hero p {
  margin: 0 0 32px;
  max-width: 560px;
  color: rgba(255,255,255,.85);
}

.hero-cta {
  justify-content: flex-start;
}

.hero-stats {
  justify-content: flex-start;
  gap: 18px;
  margin-top: 44px;
}

.hero-stat {
  min-width: 116px;
  padding: 12px 14px;
  text-align: left;
  border-left: 1px solid rgba(255,255,255,.18);
}

.btn-hero-primary,
.btn-hero-secondary,
.btn,
.filter-btn,
.input-tab,
.result-tab {
  border-radius: var(--radius-xs);
}

.btn-primary,
.btn-hero-primary {
  background: #28799a;
  box-shadow: none;
}

.btn-primary:hover,
.btn-hero-primary:hover {
  background: #1f6683;
  box-shadow: var(--shadow);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-control,
.auth-card .form-control,
input.form-control,
textarea.form-control,
select.form-control,
.col-label-input,
.tts-select {
  background: var(--surface);
  color: var(--text-1);
  caret-color: var(--text-1);
  -webkit-text-fill-color: var(--text-1);
}

.form-control:focus,
.auth-card .form-control:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus,
.col-label-input:focus,
.tts-select:focus {
  background: var(--surface);
  color: var(--text-1);
  caret-color: var(--text-1);
  -webkit-text-fill-color: var(--text-1);
}

.form-control::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder,
.col-label-input::placeholder {
  color: var(--text-4);
  opacity: 1;
  -webkit-text-fill-color: var(--text-4);
}

select.form-control option,
.tts-select option {
  background: var(--surface);
  color: var(--text-1);
}

input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover,
input.form-control:-webkit-autofill:focus,
textarea.form-control:-webkit-autofill,
textarea.form-control:-webkit-autofill:hover,
textarea.form-control:-webkit-autofill:focus,
select.form-control:-webkit-autofill,
select.form-control:-webkit-autofill:hover,
select.form-control:-webkit-autofill:focus,
.col-label-input:-webkit-autofill,
.col-label-input:-webkit-autofill:hover,
.col-label-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-1);
  caret-color: var(--text-1);
  box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 9999s ease-out;
}

.data-table thead tr {
  background: #172033;
}

.page-hero {
  background: linear-gradient(145deg, var(--brand-900) 0%, var(--brand-800) 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Compact variant so the plans/content below is visible without scrolling
   on typical laptop viewport heights. */
.page-hero-compact { padding: 34px 24px; }
.page-hero-compact .page-hero-inner p { margin-top: 4px; }
#plans { scroll-margin-top: 90px; }

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(58,167,184,.28), transparent);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-h);
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin: 16px 0 14px;
}

.page-hero p {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  line-height: 1.7;
}

.workflow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.workflow-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: #28799a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 64px 20px 72px;
    background:
      linear-gradient(90deg, rgba(11,18,32,.94), rgba(11,18,32,.82)),
      url("../assets/hero-news-analysis.png") center / cover no-repeat;
  }

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

  .pricing-grid,
  .product-foundation-row {
    grid-template-columns: 1fr;
  }

  .upgrade-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    min-height: var(--navbar-h);
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 52px 20px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .pricing-plan,
  .usage-limit-card,
  .upgrade-card {
    padding: 22px;
  }
}

/* -- Result Tabs ---------------------------------------------- */
.result-tabs {
  display: flex; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px; gap: 4px; flex-wrap: wrap;
  margin-bottom: 0;
}
.result-tab {
  flex: 1; min-width: 90px; padding: 9px 12px; border: none;
  border-radius: var(--radius-xs); background: transparent; color: var(--text-3);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.result-tab.active {
  background: var(--surface); color: var(--brand-500);
  box-shadow: var(--shadow-xs);
}
.result-tab:hover:not(.active) { color: var(--text-1); background: rgba(59,91,219,.06); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* -- Text Highlighting ---------------------------------------- */
.highlighted-text {
  font-size: 14.5px; line-height: 1.9; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; position: relative;
}
mark.hl-sensational {
  background: rgba(239,68,68,.18); color: var(--red-text);
  border-bottom: 2px solid var(--red); border-radius: 3px;
  padding: 1px 2px; cursor: pointer; position: relative;
}
mark.hl-emotional {
  background: rgba(245,158,11,.18); color: var(--amber-text);
  border-bottom: 2px solid var(--amber); border-radius: 3px;
  padding: 1px 2px; cursor: pointer; position: relative;
}
mark.hl-clickbait {
  background: rgba(59,91,219,.15); color: var(--info-text);
  border-bottom: 2px dashed var(--brand-400); border-radius: 3px;
  padding: 1px 2px; cursor: pointer; position: relative;
}
mark.hl-sensational:hover::after,
mark.hl-emotional:hover::after,
mark.hl-clickbait:hover::after {
  content: attr(data-type);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text-1); color: var(--surface);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  padding: 3px 8px; border-radius: 4px; pointer-events: none; z-index: 10;
}
.hl-legend {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-size: 12.5px;
}
.hl-legend-item {
  display: flex; align-items: center; gap: 5px; font-weight: 500; color: var(--text-3);
}
.hl-legend-dot {
  width: 12px; height: 12px; border-radius: 3px;
}

/* -- TTS Speaker Button --------------------------------------- */
.tts-toolbar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.tts-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  transition: all .2s;
}
.tts-btn-play  { background: var(--brand-500); color: #fff; }
.tts-btn-play:hover  { background: var(--brand-600); transform: translateY(-1px); }
.tts-btn-stop  { background: var(--red); color: #fff; }
.tts-btn-stop:hover  { background: #dc2626; }
.tts-btn-pause { background: var(--amber); color: #fff; }
.tts-btn-pause:hover { background: #d97706; }
.tts-select {
  padding: 6px 10px; border-radius: var(--radius-xs);
  border: 1.5px solid var(--border-2); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
}
.tts-speaking .highlighted-text { border-color: var(--brand-400); box-shadow: 0 0 0 2px rgba(59,91,219,.15); }

/* -- AI Narrative Card ---------------------------------------- */
.ai-narrative {
  font-size: 15px; line-height: 1.85; color: var(--text-2);
  border-left: 3px solid var(--brand-400); padding-left: 18px;
  margin-bottom: 20px;
}
.ai-claim-list { list-style: none; padding: 0; margin: 0; }
.ai-claim-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.ai-claim-list li:last-child { border-bottom: none; }
.ai-claim-text { font-size: 14px; color: var(--text-1); font-style: italic; }
.ai-claim-assess { font-size: 13px; color: var(--text-3); }
.ai-tip {
  background: var(--info-bg); border: 1px solid rgba(59,91,219,.2);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 14px; color: var(--info-text); margin-top: 16px;
}
.ai-tip strong { display: block; margin-bottom: 4px; }
.bias-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; gap: 14px; color: var(--text-3); font-size: 14px;
}
.ai-loading .spinner { width: 36px; height: 36px; }

/* -- Sentiment Timeline --------------------------------------- */
.sentiment-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.sentiment-row:last-child { border-bottom: none; }
.sent-label {
  width: 72px; flex-shrink: 0; font-weight: 600; font-size: 12px;
  padding: 3px 8px; border-radius: 20px; text-align: center;
}
.sent-pos { background: var(--green-bg); color: var(--green-text); }
.sent-neg { background: var(--red-bg); color: var(--red-text); }
.sent-neu { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.sent-bar-wrap { flex: 1; height: 6px; background: var(--bg-2); border-radius: 10px; overflow: hidden; }
.sent-bar { height: 100%; border-radius: 10px; transition: width .6s ease; }
.sent-pos-bar { background: var(--green); }
.sent-neg-bar { background: var(--red); }
.sent-preview { flex: 3; color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -- Share Score Card / PDF Export --------------------------- */
.share-card {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  border-radius: var(--radius); padding: 28px; color: #fff; text-align: center;
  margin-bottom: 20px;
}
.share-card .sc-score {
  font-family: var(--font-h); font-size: 64px; font-weight: 800;
  line-height: 1; margin-bottom: 8px;
}
.share-card .sc-verdict { font-size: 18px; opacity: .85; margin-bottom: 16px; }
.share-card .sc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sc-btn {
  padding: 8px 18px; border-radius: var(--radius-xs); font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12); color: #fff;
  transition: background .2s;
}
.sc-btn:hover { background: rgba(255,255,255,.22); }

/* -- Topic / Reading Level Badges ----------------------------- */
.meta-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.meta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.meta-badge .mb-icon { font-size: 15px; }

/* -- Trusul brand cleanup ------------------------------------- */
:root {
  --brand-900: #050816;
  --brand-800: #0b1220;
  --brand-700: #17376f;
  --brand-600: #1d4ed8;
  --brand-500: #2563eb;
  --brand-400: #3b82f6;
  --brand-300: #93c5fd;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;
  --shadow-brand: 0 16px 34px rgba(37, 99, 235, .28);
}

.navbar {
  min-height: 68px;
  padding: 0 30px;
  background: rgba(5, 8, 22, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.navbar-brand {
  min-width: 150px;
  align-items: center;
}

.brand-logo-full {
  width: 188px;
  height: 44px;
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 9px;
  background: #fff;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  border-radius: 8px;
  color: rgba(248, 250, 252, .76);
  font-weight: 650;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(37, 99, 235, .16);
}

.hero {
  min-height: calc(100vh - 68px);
  padding: 76px 24px 94px;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, .96) 0%, rgba(11, 18, 32, .88) 43%, rgba(11, 18, 32, .48) 76%, rgba(11, 18, 32, .32) 100%),
    url("../assets/hero-news-analysis.png") center right / cover no-repeat;
}

.hero-content {
  max-width: 1140px;
}

.hero-badge {
  padding: 7px 13px;
  border: 1px solid rgba(147, 197, 253, .24);
  background: rgba(15, 23, 42, .54);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em !important;
}

.hero-badge span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #06b6d4;
  box-shadow: 0 0 0 5px rgba(6, 182, 212, .12);
}

.hero h1 {
  max-width: 610px;
  margin-bottom: 12px;
  font-family: var(--font);
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 800;
  line-height: .94;
  color: #fff;
}

.hero-tagline {
  margin: 0 0 18px;
  color: #bfdbfe;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 760;
}

.hero p {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(241, 245, 249, .9);
  font-size: 17px;
  line-height: 1.72;
}

.hero-cta {
  gap: 12px;
}

.btn-hero-primary,
.btn-hero-secondary {
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 760;
}

.btn-hero-primary {
  background: #2563eb;
  box-shadow: 0 18px 32px rgba(37, 99, 235, .32);
}

.btn-hero-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 22px 40px rgba(37, 99, 235, .38);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .92);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(147, 197, 253, .48);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(124px, 1fr));
  max-width: 690px;
  gap: 12px;
}

.hero-stat {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(147, 197, 253, .18);
  border-radius: 12px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(12px);
}

.hero-stat .hs-num {
  font-size: 25px;
}

.hero-stat .hs-label {
  color: rgba(219, 234, 254, .82);
  font-size: 11px;
  letter-spacing: .08em !important;
}

.feature-section-title {
  font-family: var(--font);
  letter-spacing: 0 !important;
}

.feature-card {
  border-radius: 12px;
  border-color: rgba(148, 163, 184, .24);
}

.feature-icon,
.card-title-icon,
.stat-card .stat-icon {
  color: #2563eb;
}

.footer-brand img {
  border-radius: 8px;
  padding: 2px;
  background: #fff;
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 68px;
  }

  .navbar-brand {
    min-width: auto;
  }

  .nav-settings-btn {
    width: 34px;
    padding: 0;
    margin-left: 5px;
  }

  .nav-settings-btn span {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 54px 18px 68px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* -- Trusul landing polish ----------------------------------- */
.landing-page {
  --font-h: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
}

.landing-page .navbar {
  height: 70px;
  padding: 0 34px;
  background: rgba(5, 8, 22, .98);
  border-bottom-color: rgba(147, 197, 253, .14);
  box-shadow: 0 8px 24px rgba(2, 6, 23, .2);
}

.landing-page .navbar-brand {
  min-width: 188px;
  gap: 0;
}

.landing-page .brand-logo-full {
  width: 188px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.landing-page .brand-logo-mark {
  width: 38px;
  height: 38px;
}

.landing-page .nav-links {
  gap: 4px;
}

.landing-page .nav-links a {
  padding: 8px 11px;
  color: rgba(241, 245, 249, .78);
  font-size: 13.5px;
  font-weight: 600;
}

.landing-page .nav-links a.active,
.landing-page .nav-links a:hover {
  background: rgba(59, 130, 246, .13);
  color: #fff;
  text-decoration: none;
}

.landing-page .nav-links .btn-primary {
  margin-left: 8px !important;
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.landing-page .hero {
  min-height: min(700px, calc(100svh - 106px));
  padding: 68px 34px 76px;
  background:
    linear-gradient(90deg, #050816 0%, rgba(5, 8, 22, .96) 34%, rgba(8, 17, 31, .82) 61%, rgba(8, 17, 31, .42) 100%),
    url("../assets/hero-news-analysis.png") center right / cover no-repeat;
}

.landing-page .hero-content {
  max-width: 1120px;
}

.landing-page .hero-badge {
  margin-bottom: 22px;
  padding: 7px 12px;
  border-radius: 999px;
  border-color: rgba(147, 197, 253, .28);
  background: rgba(15, 23, 42, .72);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 700;
}

.landing-page .hero h1 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.landing-page .hero-tagline {
  margin: 0 0 18px;
  color: #bfdbfe;
  font-size: 20px;
  font-weight: 600;
}

.landing-page .hero p {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(241, 245, 249, .86);
  font-size: 16px;
  line-height: 1.72;
}

.landing-page .hero-cta {
  gap: 10px;
}

.landing-page .btn-hero-primary,
.landing-page .btn-hero-secondary {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.landing-page .btn-hero-primary {
  background: #2563eb;
  border: 1px solid #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .3);
}

.landing-page .btn-hero-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 16px 32px rgba(37, 99, 235, .36);
}

.landing-page .btn-hero-secondary {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.landing-page .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(147, 197, 253, .58);
}

.hero-cta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.landing-page .hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 720px;
  gap: 10px;
  margin-top: 38px;
}

.landing-page .hero-stat {
  min-height: 76px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid rgba(147, 197, 253, .18);
  border-radius: 8px;
  background: rgba(8, 17, 31, .66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
}

.landing-page .hero-stat > span:last-child {
  min-width: 0;
}

.landing-page .hero-stat-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(37, 99, 235, .16);
  color: #93c5fd;
}

.landing-page .hero-stat-icon svg {
  width: 18px;
  height: 18px;
}

.landing-page .hero-stat .hs-num,
.landing-page .hero-stat .hs-label {
  display: block;
}

.landing-page .hero-stat .hs-num {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.landing-page .hero-stat .hs-label {
  margin-top: 5px;
  color: rgba(219, 234, 254, .72);
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
}

.landing-page .feature-section {
  padding-top: 62px;
}

.landing-page .feature-section-title {
  font-size: 30px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .landing-page .hero {
    min-height: auto;
    padding: 62px 24px 70px;
    background:
      linear-gradient(90deg, rgba(5, 8, 22, .97), rgba(8, 17, 31, .88)),
      url("../assets/hero-news-analysis.png") center / cover no-repeat;
  }

  .landing-page .hero h1 {
    font-size: 52px;
  }

  .landing-page .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .landing-page .navbar {
    height: auto;
    min-height: 70px;
    padding: 11px 16px;
  }

  .landing-page .hero h1 {
    font-size: 44px;
  }

  .landing-page .hero-tagline {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .landing-page .navbar {
    min-height: 92px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .landing-page .navbar-brand {
    align-self: center;
  }

  .landing-page .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .landing-page .nav-links a {
    min-width: 0;
    padding: 6px 4px;
    font-size: 11.5px;
    text-align: center;
    white-space: nowrap;
  }

  .landing-page .nav-links .btn-primary {
    margin-left: 0 !important;
  }

  .landing-page .hero {
    padding: 42px 18px 58px;
  }

  .landing-page .hero h1 {
    font-size: 40px;
  }

  .landing-page .hero p {
    font-size: 15px;
  }

  .landing-page .hero-cta {
    align-items: stretch;
  }

  .landing-page .btn-hero-primary,
  .landing-page .btn-hero-secondary {
    justify-content: center;
    width: 100%;
  }

  .landing-page .hero-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
  }
}
