/* High-Impact, Fluid Responsive Stylesheet for noquickquestions.com */

:root,
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-subtle-hover: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --border: #cbd5e1;
  --border-subtle: #e2e8f0;
  --border-strong: #94a3b8;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-border: #7dd3fc;
  
  --bad-main: #dc2626;
  --bad-light: #fef2f2;
  --bad-border: #fca5a5;
  --bad-text: #991b1b;
  
  --good-main: #059669;
  --good-light: #ecfdf5;
  --good-border: #a7f3d0;
  --good-text: #065f46;

  --warn-main: #d97706;
  --warn-light: #fffbeb;
  --warn-border: #fcd34d;
  --warn-text: #92400e;

  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px -3px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.1), 0 6px 16px -3px rgba(15, 23, 42, 0.06);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #131b2c;
  --bg-subtle: #1a253c;
  --bg-subtle-hover: #22304d;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #818cf8;
  --border: #263552;
  --border-subtle: #1e2b44;
  --border-strong: #3b5078;

  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-light: rgba(56, 189, 248, 0.15);
  --primary-border: rgba(56, 189, 248, 0.35);

  --bad-main: #f87171;
  --bad-light: rgba(239, 68, 68, 0.14);
  --bad-border: rgba(239, 68, 68, 0.35);
  --bad-text: #fca5a5;

  --good-main: #34d399;
  --good-light: rgba(52, 211, 153, 0.14);
  --good-border: rgba(52, 211, 153, 0.35);
  --good-text: #86efac;

  --warn-main: #fbbf24;
  --warn-light: rgba(251, 191, 36, 0.14);
  --warn-border: rgba(251, 191, 36, 0.35);
  --warn-text: #fde68a;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px -5px rgba(0, 0, 0, 0.65);
}

/* Base Reset & Fluid Responsive Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Perfect Horizontal Alignment: Shared Container Metrics */
.nav-container,
.wrapper {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* Top Navigation Bar */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-body);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand-icon {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand strong {
  color: var(--primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.nav-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-github:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Page Wrapper */
.wrapper {
  padding-top: 1rem;
  padding-bottom: 6rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-block;
  font-size: clamp(0.75rem, 1.8vw, 0.92rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero h1 span {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: clamp(3px, 0.6vw, 5px);
  text-underline-offset: clamp(4px, 0.8vw, 8px);
}

.tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--text-muted);
  max-width: 960px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.tagline em {
  color: var(--text-main);
  font-style: normal;
  font-weight: 800;
}

.tagline-quote {
  display: inline-block;
  color: var(--text-main);
  font-weight: 800;
  font-style: italic;
  margin: 0.3rem 0;
  white-space: nowrap;
}

.tagline-sub {
  display: block;
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  text-decoration: none;
  max-width: 100%;
}

.btn-lg {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  padding: clamp(0.9rem, 2vw, 1.15rem) clamp(1.4rem, 3.5vw, 2.2rem);
}

.btn-sm {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.32);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.45);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Section Common Styling */
.section {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.section-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.section-intro {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.55;
}

/* 1. Side-by-Side Comparison Grid */
.chat-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.chat-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-card:hover {
  box-shadow: var(--shadow-lg);
}

.chat-card.bad {
  border-top: 6px solid var(--bad-main);
}

.chat-card.good {
  border-top: 6px solid var(--good-main);
}

.chat-card-header {
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.85rem);
  background: var(--bg-subtle);
  border-bottom: 1.5px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.status-pill {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
}

.status-bad {
  background: var(--bad-light);
  color: var(--bad-text);
  border: 1.5px solid var(--bad-border);
}

.status-good {
  background: var(--good-light);
  color: var(--good-text);
  border: 1.5px solid var(--good-border);
}

.chat-meta {
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  font-weight: 600;
  color: var(--text-dim);
}

.chat-body {
  padding: clamp(1.25rem, 2.8vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  flex: 1;
}

.message-group {
  display: flex;
  gap: clamp(0.75rem, 1.8vw, 1.15rem);
  align-items: flex-start;
}

.avatar {
  width: clamp(38px, 4.5vw, 48px);
  height: clamp(38px, 4.5vw, 48px);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  flex-shrink: 0;
}

.avatar-alice {
  background: #6366f1;
}

.avatar-you {
  background: var(--primary);
}

.message-content {
  flex: 1;
  min-width: 0;
}

.sender-name {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.time {
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 0.5rem;
  font-size: 0.82rem;
}

.bubble {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: clamp(0.85rem, 1.8vw, 1.15rem) clamp(1rem, 2vw, 1.45rem);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-main);
  display: inline-block;
  max-width: 100%;
}

.bubble code {
  background: var(--bg-subtle-hover);
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--primary);
  word-break: break-all;
}

.bubble.thought {
  font-style: italic;
  color: var(--text-muted);
  border-style: dashed;
  border-color: var(--border);
  background: transparent;
}

.chat-narrative {
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.9rem, 2vw, 1.35rem);
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  border-left: 4px solid var(--primary);
  line-height: 1.55;
}

.chat-narrative.success-note {
  border-left-color: var(--good-main);
  background: var(--good-light);
  color: var(--good-text);
  font-weight: 700;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  flex-wrap: wrap;
}

.typing-indicator .dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}

.typing-indicator span:not(.typing-label) {
  width: 8px;
  height: 8px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

.typing-label {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-dim);
  font-style: italic;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* 2. Scale of Duration Grid */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.scale-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: clamp(12px, 1.8vw, 18px);
  padding: clamp(1.1rem, 1.6vw, 1.5rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.scale-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.scale-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.4rem;
  min-height: 32px;
}

.scale-duration {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 900;
  color: var(--text-main);
  white-space: nowrap;
}

.badge-verdict {
  font-size: clamp(0.7rem, 0.85vw, 0.78rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.verdict-ok {
  background: var(--good-light);
  color: var(--good-text);
  border: 1px solid var(--good-border);
}

.verdict-warn {
  background: var(--warn-light);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}

.verdict-bad {
  background: var(--bad-light);
  color: var(--bad-text);
  border: 1px solid var(--bad-border);
}

.verdict-jail {
  background: #450a0a;
  color: #fecaca;
  border: 1px solid #dc2626;
}

[data-theme="light"] .verdict-jail {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.scale-quote {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.scale-desc {
  font-size: clamp(0.9rem, 1.5vw, 0.98rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* 3. Dictionary Table - Responsive Card Format on Mobile */
.table-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: clamp(14px, 2vw, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dictionary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dictionary-table th,
.dictionary-table td {
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.2rem, 2.5vw, 2.25rem);
  border-bottom: 1.5px solid var(--border-subtle);
}

.dictionary-table th {
  background: var(--bg-subtle);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.dictionary-table tbody tr:last-child td {
  border-bottom: none;
}

.dictionary-table tbody tr:hover {
  background: var(--bg-subtle);
}

.dictionary-table .phrase {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--primary);
  white-space: nowrap;
}

.dictionary-table td:last-child {
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  color: var(--text-main);
  line-height: 1.6;
}

/* 4. The 3 Unspoken Laws Grid */
.laws-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.law-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(1.6rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.law-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.law-icon {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.law-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.law-card p {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.law-card code {
  background: var(--bg-subtle);
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  word-break: break-all;
}

/* 5. Checklist Grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.checklist-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: clamp(12px, 1.8vw, 18px);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.checklist-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Golden Rule Banner */
.golden-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 2.5px solid var(--primary);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.25rem, 3.5vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.golden-badge {
  display: inline-block;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.golden-quote {
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  max-width: 1050px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Live View Counter */
.view-counter-container {
  margin-bottom: 2.25rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.view-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: clamp(0.75rem, 2vw, 0.85rem) clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  max-width: 100%;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.view-counter:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.view-counter strong {
  color: var(--text-main);
  font-weight: 900;
  font-family: var(--font-mono);
  font-size: 1.15em;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good-main);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--good-main);
  opacity: 0.6;
  animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Footer */
.footer {
  border-top: 1.5px solid var(--border-subtle);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .subtle {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer .ai-credit {
  margin-top: 1.4rem;
  font-size: clamp(0.85rem, 1.6vw, 0.98rem);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  transition: all 0.2s ease;
}

.footer .ai-credit:hover {
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--good-main);
  color: #ffffff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 999;
  max-width: calc(100vw - 4rem);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Comprehensive Responsive Breakpoints */

/* Laptops & Tablets (< 1240px) */
@media (max-width: 1240px) {
  .laws-grid {
    grid-template-columns: 1fr;
  }
  .scale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets & Mobile Landscape (< 920px) */
@media (max-width: 920px) {
  .chat-comparison-grid {
    grid-template-columns: 1fr;
  }
  .checklist-grid {
    grid-template-columns: 1fr;
  }
  .hero-br {
    display: none;
  }
}

/* Mobile Devices (< 720px): Transform Table to Definition Cards */
@media (max-width: 720px) {
  .dictionary-table,
  .dictionary-table tbody,
  .dictionary-table tr,
  .dictionary-table td {
    display: block;
    width: 100%;
  }

  .dictionary-table thead {
    display: none;
  }

  .dictionary-table tr {
    padding: 1.25rem 1.25rem;
    border-bottom: 1.5px solid var(--border-subtle);
  }

  .dictionary-table tr:last-child {
    border-bottom: none;
  }

  .dictionary-table td {
    padding: 0;
    border: none;
  }

  .dictionary-table .phrase {
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
    white-space: normal;
  }

  .dictionary-table td:last-child {
    font-size: 1.05rem;
    color: var(--text-muted);
  }
}

/* Small Screens & Smart Phones (< 640px) */
@media (max-width: 640px) {
  .scale-grid {
    grid-template-columns: 1fr;
  }

  .tagline-quote {
    white-space: normal;
    display: inline;
  }

  .desktop-only {
    display: none;
  }

  .view-counter {
    border-radius: 18px;
    padding: 0.85rem 1.15rem;
    flex-wrap: wrap;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    max-width: calc(100vw - 2rem);
    justify-content: center;
    text-align: center;
  }
}

/* Narrowest Phones (< 480px) */
@media (max-width: 480px) {
  .nav-btn-text {
    display: none;
  }

  #navCopyBtn {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .btn-icon,
  .nav-github {
    width: 40px;
    height: 40px;
  }

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

  .checklist-card {
    flex-direction: column;
    gap: 0.75rem;
  }
}
