/* =========================================================
   Briefly — Clean Corporate / Cool SaaS Blue design system
   Style: Clean Corporate  ·  Palette: Cool SaaS Blue  ·  Font: Inter
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-darker: #1D4ED8;
  --cyan: #06B6D4;
  --accent: #8B5CF6;
  --gradient: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59,130,246,.10), rgba(6,182,212,.10));

  /* Neutrals (slate) */
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --bg: #F8FAFC;
  --white: #FFFFFF;

  /* Semantic */
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --danger: #EF4444;

  /* Category accents */
  --cat-business: #3B82F6;
  --cat-technology: #8B5CF6;
  --cat-finance: #10B981;
  --cat-marketing: #F59E0B;
  --cat-health: #F43F5E;
  --cat-science: #06B6D4;
  --cat-leadership: #6366F1;
  --cat-media: #EC4899;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --shadow-primary: 0 8px 24px rgba(59,130,246,.28);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1180px;
  --gutter: 24px;
  --nav-h: 68px;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid rgba(59,130,246,.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-900);
}
.section-sub {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-gradient { background: var(--gradient); color: #fff; box-shadow: var(--shadow-primary); }
.btn-gradient:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost { background: var(--white); color: var(--slate-700); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--slate-300); background: var(--slate-100); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--navy-900); }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: var(--shadow-primary);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--slate-600);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--slate-100); color: var(--navy-900); }
.nav-links a.active { color: var(--primary-dark); background: rgba(59,130,246,.10); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* subscriptions pill in nav */
.subs-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--slate-700);
  font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, background .15s ease;
}
.subs-btn:hover { border-color: var(--slate-300); background: var(--slate-100); }
.subs-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center;
}

/* mobile nav toggle */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-sm); align-items: center; justify-content: center; color: var(--navy-900); }
.nav-toggle:hover { background: var(--slate-100); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(6,182,212,.12), transparent 60%),
    radial-gradient(760px 420px at 5% 0%, rgba(59,130,246,.14), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy-900);
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin-top: 20px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--slate-600);
  max-width: 540px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: 13px; font-weight: 600; color: var(--slate-600);
  margin-bottom: 22px;
}
.hero-badge .tag {
  background: rgba(59,130,246,.12); color: var(--primary-dark);
  padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px;
}

/* hero email capture */
.capture { margin-top: 30px; max-width: 480px; }
.capture-row { display: flex; gap: 10px; }
.field { position: relative; flex: 1; }
.field label.visually { /* visible label per UX guideline */
  display: block; font-size: 13px; font-weight: 600; color: var(--slate-600); margin-bottom: 6px;
}
.input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--navy-900);
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--slate-400); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.input.is-error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.field-msg { font-size: 13px; margin-top: 7px; min-height: 18px; }
.field-msg.error { color: var(--danger); }
.field-msg.ok { color: var(--success); }
.capture-note { margin-top: 12px; font-size: 13px; color: var(--slate-500); display: flex; align-items: center; gap: 7px; }

/* hero preview card stack */
.hero-visual { position: relative; }
.preview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.preview-card .pc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--slate-100); }
.preview-card .pc-body { padding-top: 14px; display: grid; gap: 12px; }
.pc-line { height: 10px; border-radius: 6px; background: var(--slate-100); }
.pc-line.w-90 { width: 90%; } .pc-line.w-70 { width: 70%; } .pc-line.w-80 { width: 80%; } .pc-line.w-60 { width: 60%; }
.pc-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-dark); }
.preview-float {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--navy-900);
}
.preview-float.f1 { top: -18px; right: -10px; }
.preview-float.f2 { bottom: -20px; left: -16px; }
.preview-float .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; }

/* ---------- Logos / trust strip ---------- */
.trust { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trust p { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.logo-row span { font-weight: 800; font-size: 20px; color: var(--slate-300); letter-spacing: -.02em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.stat .num .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 11px;
  padding: 24px 22px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s ease, border-color .24s ease;
}
/* hairline accent at the top of each tile, in the category color */
.cat-tile::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c, var(--primary));
  opacity: 0; transition: opacity .24s ease;
}
.cat-tile:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 42%, var(--border));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--c) 22%, transparent);
}
.cat-tile:hover::after { opacity: 1; }
.cat-tile .icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 58%, #ffffff));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 34%, transparent);
  transition: transform .24s cubic-bezier(.2,.7,.2,1);
}
.cat-tile:hover .icon { transform: scale(1.08) rotate(-4deg); }
.cat-tile .icon svg { width: 25px; height: 25px; }
.cat-tile h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; }
.cat-tile p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.cat-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.cat-tile .count { font-size: 12.5px; font-weight: 600; color: var(--slate-500); }
.cat-go { color: var(--c, var(--primary)); font-weight: 800; font-size: 17px; line-height: 1;
  opacity: 0; transform: translateX(-6px); transition: opacity .22s ease, transform .22s ease; }
.cat-tile:hover .cat-go { opacity: 1; transform: translateX(0); }

/* ---------- Newsletter cards ---------- */
.nl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.nl-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.nl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--c) 22%, transparent);
  border-color: color-mix(in srgb, var(--c) 38%, var(--border));
}

/* Gradient "cover" visual at the top of each card, keyed to the category color */
.nl-cover {
  position: relative; height: 88px;
  padding: 12px 14px;
  display: flex; align-items: flex-start; justify-content: space-between;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #0F172A));
  overflow: hidden;
}
.nl-cover-ico {
  position: absolute; right: -10px; bottom: -22px;
  color: #fff; opacity: .15; pointer-events: none;
}
.nl-cover-ico svg { width: 104px; height: 104px; }
.nl-cover .chip-cat {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.22); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.nl-cadence {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(15,23,42,.22); border-radius: var(--radius-pill); padding: 4px 10px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.nl-cadence svg { width: 13px; height: 13px; }

.nl-card .body { padding: 0 22px 20px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 9px; }
.nl-badge {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #ffffff));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 32%, transparent), 0 0 0 4px var(--white);
  margin-top: -28px;        /* overlaps the cover, avatar-style */
  position: relative; z-index: 2;
}
.nl-card .body h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); line-height: 1.25; margin-top: 4px; letter-spacing: -.01em; }
.chip {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.chip-cat { color: #fff; }
.nl-desc { font-size: 14px; color: var(--slate-600); line-height: 1.55; }
.nl-foot { display: flex; align-items: center; padding-top: 8px; }
.nl-foot .sub-toggle { width: 100%; justify-content: center; }

/* subscribe toggle button */
.sub-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-xs);
  transition: background .18s ease, transform .12s ease, box-shadow .2s ease;
}
.sub-toggle:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.sub-toggle .ico-check { display: none; }
.sub-toggle.is-subscribed { background: #ECFDF5; color: #047857; box-shadow: none; border: 1px solid #A7F3D0; }
.sub-toggle.is-subscribed:hover { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.sub-toggle.is-subscribed .ico-plus { display: none; }
.sub-toggle.is-subscribed .ico-check { display: inline-flex; }
.sub-toggle.is-subscribed .txt-add { display: none; }
.sub-toggle .txt-done { display: none; }
.sub-toggle.is-subscribed .txt-done { display: inline; }
.sub-toggle.is-subscribed:hover .txt-done { display: none; }
.sub-toggle.is-subscribed:hover .txt-remove { display: inline; }
.sub-toggle .txt-remove { display: none; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-xs);
}
.step .step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--primary-dark);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .fi-ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(59,130,246,.10); color: var(--primary-dark);
  display: grid; place-items: center;
}
.feature-item .fi-ico svg { width: 20px; height: 20px; }
.feature-item h4 { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.feature-item p { font-size: 14.5px; color: var(--text-muted); }
.panel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.mini-issue { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
.mini-issue:last-child { border-bottom: none; }
.mini-issue .mi-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--primary); }
.mini-issue h5 { font-size: 15px; font-weight: 600; color: var(--navy-900); }
.mini-issue p { font-size: 13px; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 18px;
}
.quote .stars { color: #F59E0B; font-size: 15px; letter-spacing: 2px; }
.quote p { color: var(--slate-700); font-size: 15.5px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.quote .who strong { display: block; font-size: 14px; color: var(--navy-900); }
.quote .who span { font-size: 13px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-weight: 600; font-size: 16.5px; color: var(--navy-900);
}
.faq-q .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s ease; color: var(--primary); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-q .plus::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq-q .plus::after { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform .25s ease; }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--gradient);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 80% 0%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { position: relative; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.cta-band p { position: relative; margin: 14px auto 28px; max-width: 560px; font-size: 18px; opacity: .92; }
.cta-band .capture { position: relative; margin-left: auto; margin-right: auto; }
.cta-band .input { border-color: transparent; }
.cta-band .btn-ghost { background: var(--navy-900); color: #fff; border-color: transparent; }
.cta-band .btn-ghost:hover { background: #020617; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 64px 0 32px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: var(--slate-400); font-size: 14.5px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--slate-400); font-size: 14.5px; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--slate-400); font-size: 14px;
}
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); transition: background .15s ease; }
.social a:hover { background: rgba(255,255,255,.16); }
.social svg { width: 18px; height: 18px; }

/* =========================================================
   Browse page
   ========================================================= */
.browse-head { padding: 48px 0 8px; }
.browse-head h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.browse-head p { margin-top: 12px; color: var(--text-muted); font-size: 18px; max-width: 640px; }

.toolbar {
  position: sticky; top: var(--nav-h); z-index: 30;
  background: rgba(248,250,252,.9);
  backdrop-filter: blur(8px);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.toolbar-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 240px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate-400); }
.search-input {
  width: 100%; padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--slate-300); border-radius: var(--radius-pill);
  background: var(--white); font-size: 15px; color: var(--navy-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--slate-600);
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--slate-300); }
.filter-chip.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.results-meta { margin-bottom: 20px; color: var(--text-muted); font-size: 14px; }
.results-meta strong { color: var(--navy-900); }

.empty-state { text-align: center; padding: 72px 20px; color: var(--text-muted); }
.empty-state .es-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--slate-100); display: grid; place-items: center; margin: 0 auto 18px; color: var(--slate-400); }
.empty-state h3 { font-size: 20px; color: var(--navy-900); margin-bottom: 8px; }

/* ---------- Subscriptions drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15,23,42,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: min(420px, 92vw);
  background: var(--white);
  box-shadow: -16px 0 48px rgba(15,23,42,.20);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 19px; font-weight: 800; color: var(--navy-900); }
.drawer-close { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--slate-500); }
.drawer-close:hover { background: var(--slate-100); color: var(--navy-900); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { padding: 18px 24px; border-top: 1px solid var(--border); background: var(--slate-100); }
.drawer-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
.drawer-item:last-child { border-bottom: none; }
.drawer-item .di-badge { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.drawer-item .di-meta { flex: 1; }
.drawer-item .di-meta strong { display: block; font-size: 15px; color: var(--navy-900); }
.drawer-item .di-meta span { font-size: 13px; color: var(--text-muted); }
.drawer-item .di-remove { color: var(--slate-400); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.drawer-item .di-remove:hover { background: #FEF2F2; color: var(--danger); }
.drawer-empty { text-align: center; padding: 48px 16px; color: var(--text-muted); }
.drawer-empty .de-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--gradient-soft); display: grid; place-items: center; margin: 0 auto 16px; color: var(--primary); }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--navy-900); color: #fff;
  padding: 14px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px; font-weight: 500;
  transform: translateY(20px); opacity: 0;
  animation: toast-in .3s forwards;
  max-width: 90vw;
}
.toast.out { animation: toast-out .3s forwards; }
.toast .t-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast .t-ico.ok { background: var(--success); }
.toast .t-ico.info { background: var(--primary); }
.toast .t-ico.warn { background: #F59E0B; }
.toast .t-ico svg { width: 14px; height: 14px; }
.toast { pointer-events: auto; }
.toast .t-msg { flex: 1; }
.toast .t-action {
  flex: none; margin-left: 4px;
  background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px; padding: 7px 12px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.toast .t-action:hover { background: rgba(255,255,255,.28); }
@keyframes toast-in { to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }

/* Attention pulse for the "My list" button after adding a newsletter */
.subs-btn.pulse { animation: subs-pulse 1.1s ease-out 2; }
@keyframes subs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .nl-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-links, .nav .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 18px; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .nl-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .capture-row { flex-direction: column; }
  .capture-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .toolbar { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
