/* ==========================================================================
   Scanifyqr.com — Estilos principais
   Mobile-first | CSS Variables | BEM-like naming
   ========================================================================== */

/* 1. VARIÁVEIS & RESET
   ========================================================================== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --primary-xlight: #EFF6FF;
  --secondary: #059669;
  --secondary-light: #D1FAE5;
  --accent: #7C3AED;
  --danger: #DC2626;
  --warning: #D97706;

  --dark: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --bg: #F8FAFC;
  --white: #FFFFFF;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 200ms ease;
  --header-h: 68px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .625rem .875rem;
  width: 100%;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }

/* 2. UTILITÁRIOS
   ========================================================================== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-xlight);
  padding: .3rem .75rem; border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-heading { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--dark); line-height: 1.25; }
.section-sub { color: var(--text-muted); margin-top: .6rem; font-size: 1.05rem; line-height: 1.7; }
.text-center { text-align: center; }

/* 3. BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .9375rem; font-weight: 600; line-height: 1;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  transition: all var(--transition); white-space: nowrap;
  cursor: pointer; border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(37,99,235,.4); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white); color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-xlight); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-xlight); }
.btn-success { background: var(--secondary); color: var(--white); }
.btn-success:hover { background: #047857; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.0625rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* 4. HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.25rem; font-weight: 800; color: var(--dark); flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .95rem; font-weight: 900;
  font-family: monospace; letter-spacing: -.05em;
}
.logo-dot { color: var(--primary); }
.main-nav { display: none; flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  padding: .45rem .75rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover { color: var(--primary); background: var(--primary-xlight); }
.header-cta { margin-left: auto; flex-shrink: 0; }
.mobile-menu-btn {
  display: flex; flex-direction: column; gap: 5px;
  padding: .5rem; margin-left: auto; border-radius: var(--radius-sm);
}
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); transition: all var(--transition); border-radius: 2px; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem; z-index: 99;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.mobile-nav a {
  display: block; padding: .65rem .875rem; font-weight: 500;
  color: var(--text); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--primary); background: var(--primary-xlight); }

/* 5. HERO
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 50%, #FEFCE8 100%);
  padding: clamp(3rem, 7vw, 6rem) 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid var(--border);
  padding: .35rem .875rem; border-radius: var(--radius-full);
  font-size: .8125rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--secondary); border-radius: 50%; flex-shrink: 0; }
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 900; line-height: 1.15; color: var(--dark);
  letter-spacing: -.02em;
}
.hero h1 mark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-style: normal;
}
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.125rem);
  color: var(--text-muted); line-height: 1.75; margin: 1.25rem 0 2rem;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--text-muted); }
.hero-trust i { color: var(--warning); }
.hero-visual { display: flex; justify-content: center; }
.qr-mockup {
  position: relative; width: 300px; height: 300px;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; overflow: hidden;
}
.qr-mockup::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.03) 0%, rgba(124,58,237,.03) 100%);
  pointer-events: none;
}
.qr-mockup-placeholder {
  width: 160px; height: 160px;
  background: var(--dark); border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
}
.qr-mockup-placeholder svg { width: 100%; height: 100%; }
.qr-mockup-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.qr-mockup-tag {
  position: absolute; top: .75rem; right: .75rem;
  background: var(--secondary-light); color: var(--secondary);
  font-size: .7rem; font-weight: 700; padding: .25rem .5rem;
  border-radius: var(--radius-full);
}
.qr-chip {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  padding: .3rem .65rem; border-radius: var(--radius-full);
}
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* 6. ADSENSE PLACEHOLDERS
   ========================================================================== */
.ad-zone {
  background: #FAFAFA;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .25rem;
  color: var(--text-muted); font-size: .8rem; font-weight: 500;
  text-align: center;
  position: relative; overflow: hidden;
}
.ad-zone::before {
  content: 'AD'; position: absolute; top: .35rem; right: .5rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  color: #94A3B8; background: #F1F5F9;
  padding: .1rem .35rem; border-radius: var(--radius-sm);
}
.ad-zone--banner { height: 90px; margin: 1.5rem 0; }
.ad-zone--square { min-height: 250px; }
.ad-zone--rectangle { min-height: 120px; }

/* 7. TOOL SECTION
   ========================================================================== */
.tool-section {
  padding: 4rem 0;
  background: var(--bg);
}
.tool-header { text-align: center; margin-bottom: 2.5rem; }
.tool-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Type selector */
.type-selector {
  padding: 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.type-selector-scroll {
  display: flex; gap: .5rem; overflow-x: auto;
  padding-bottom: 0; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.type-selector-scroll::-webkit-scrollbar { display: none; }
.type-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .65rem 1rem .875rem; border-radius: var(--radius) var(--radius) 0 0;
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0; border-bottom: 2.5px solid transparent;
  transition: all var(--transition);
}
.type-btn i { font-size: 1.1rem; }
.type-btn:hover { color: var(--primary); background: var(--primary-xlight); }
.type-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
  background: var(--primary-xlight);
}

/* Form area */
.tool-body { display: grid; gap: 0; }
.form-area { padding: 1.75rem; border-right: 0; }
.form-grid { display: grid; gap: 1rem; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-row { display: grid; gap: .375rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.form-actions { margin-top: 1.5rem; }
.input-group { position: relative; }
.input-prefix {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-weight: 500; font-size: .9rem;
  pointer-events: none;
}
.input-prefix + input { padding-left: 2.5rem; }

/* Result area */
.result-area {
  padding: 1.75rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: none;
}
.result-area.visible { display: block; }
.result-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.qr-output {
  background: var(--white); padding: 1.25rem;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.qr-output canvas { display: block; max-width: 100%; }
.result-actions { display: flex; flex-wrap: wrap; gap: .625rem; justify-content: center; width: 100%; }
.result-context {
  text-align: center; font-size: .875rem; color: var(--text-muted);
  padding: .75rem 1rem; background: var(--primary-xlight);
  border-radius: var(--radius); border-left: 3px solid var(--primary);
  max-width: 400px;
}

/* 8. READER SECTION
   ========================================================================== */
.reader-section {
  padding: 4rem 0;
  background: var(--white);
}
.reader-inner { display: grid; gap: 2.5rem; }
.reader-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow);
}
.reader-tabs {
  display: flex; border-bottom: 1px solid var(--border);
}
.reader-tab {
  flex: 1; padding: 1rem; font-size: .9rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  transition: all var(--transition); text-align: center;
}
.reader-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-xlight); }
.reader-content { padding: 1.75rem; }
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--bg);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary); background: var(--primary-xlight);
}
.upload-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: .875rem; }
.upload-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.upload-sub { font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }
.camera-area { text-align: center; padding: 1rem 0; }
#cameraStream {
  width: 100%; max-width: 360px; border-radius: var(--radius-lg);
  border: 2px solid var(--border); display: none;
}
.reader-result {
  margin-top: 1.5rem; padding: 1.25rem;
  background: var(--secondary-light); border-radius: var(--radius-lg);
  border: 1px solid #A7F3D0; display: none;
}
.reader-result.visible { display: block; }
.reader-result-type { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--secondary); margin-bottom: .5rem; }
.reader-result-content { font-size: .95rem; word-break: break-all; font-family: monospace; color: var(--text); }
.reader-result-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* 9. USE CASES
   ========================================================================== */
.use-cases {
  padding: 4.5rem 0;
  background: var(--bg);
}
.use-cases-header { text-align: center; margin-bottom: 3rem; }
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.use-case-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 1rem;
}
.use-case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); }
.use-case-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.use-case-title { font-size: 1.0625rem; font-weight: 700; color: var(--dark); }
.use-case-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.use-case-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.tag {
  font-size: .75rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: var(--radius-full); background: var(--bg);
  color: var(--text-muted); border: 1px solid var(--border);
}

/* 10. BENEFITS
    ========================================================================== */
.benefits {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  position: relative; overflow: hidden;
}
.benefits::before {
  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.04'%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");
}
.benefits-header { text-align: center; margin-bottom: 3rem; position: relative; }
.benefits-header .section-label { background: rgba(255,255,255,.15); color: var(--white); }
.benefits-header .section-heading { color: var(--white); }
.benefits-header .section-sub { color: rgba(255,255,255,.75); }
.benefits-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; position: relative;
}
.benefit-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px); transition: all var(--transition);
}
.benefit-item:hover { background: rgba(255,255,255,.15); }
.benefit-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(255,255,255,.2); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.benefit-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .25rem; }
.benefit-desc { font-size: .875rem; color: rgba(255,255,255,.75); line-height: 1.6; }

/* 11. BLOG
    ========================================================================== */
.blog-section { padding: 4.5rem 0; background: var(--white); }
.blog-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}
.blog-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.blog-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-category {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .5rem;
}
.blog-title { font-size: 1.0625rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: .625rem; }
.blog-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; padding-top: .875rem; border-top: 1px solid var(--border-light); }
.blog-meta { font-size: .8rem; color: var(--text-muted); }

/* 12. FAQ
    ========================================================================== */
.faq-section { padding: 4.5rem 0; background: var(--bg); }
.faq-header { text-align: center; margin-bottom: 3rem; }
.faq-list { display: flex; flex-direction: column; gap: .625rem; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 1.375rem; cursor: pointer; user-select: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--primary-xlight); }
.faq-question-text { font-size: .9375rem; font-weight: 600; color: var(--text); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--border-light); display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--text-muted); flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-icon { background: var(--primary-light); color: var(--primary); transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-answer-inner { padding: 0 1.375rem 1.25rem; font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

/* 13. FINAL CTA
    ========================================================================== */
.final-cta {
  padding: 4.5rem 0;
  background: var(--white);
  text-align: center;
}
.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center; margin-top: 2rem; }
.newsletter-form {
  display: flex; gap: .625rem; max-width: 440px; margin: 2rem auto 0;
  flex-direction: column;
}
.newsletter-form input { border-radius: var(--radius); }
.newsletter-note { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }

/* 14. FOOTER
    ========================================================================== */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-inner { display: grid; gap: 2rem; }
.footer-brand .logo { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 280px; }
.footer-nav h4 { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: .875rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: .45rem; }
.footer-nav a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .8125rem; color: rgba(255,255,255,.4);
}
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* 15. TOAST / LOADING
    ========================================================================== */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  background: var(--dark); color: var(--white);
  padding: .75rem 1.25rem; border-radius: var(--radius-lg);
  font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: center; gap: .625rem;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--secondary); }
.toast.error { background: var(--danger); }
.loading-overlay {
  display: none; position: absolute; inset: 0;
  background: rgba(255,255,255,.85); border-radius: inherit;
  align-items: center; justify-content: center; z-index: 10;
}
.loading-overlay.visible { display: flex; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 16. UTILS EXTRAS
    ========================================================================== */
.visually-hidden { display: none; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: var(--radius-full);
}

/* 17. RESPONSIVE — TABLET (≥640px)
    ========================================================================== */
@media (min-width: 640px) {
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input { flex: 1; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* 18. RESPONSIVE — DESKTOP (≥768px)
    ========================================================================== */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .tool-body { grid-template-columns: 1fr; }
  .reader-inner { grid-template-columns: 1.3fr 1fr; }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}

/* 19. RESPONSIVE — LARGE (≥1024px)
    ========================================================================== */
@media (min-width: 1024px) {
  .use-cases-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2.5fr 1fr 1fr 1fr; }
  .tool-body { grid-template-columns: 1fr 420px; }
  .form-area { border-right: 1px solid var(--border); }
  .result-area {
    border-top: none; border-left: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center;
    background: var(--bg);
  }
  .result-area.visible { display: flex; }
}
