/**
 * DealDigger — Centralized CSS Design System
 * Premium, dimensional 3D SaaS visual language.
 * Mobile-first responsive repair. Performance-optimized.
 */

:root {
  /* Brand Palette - Deep Charcoal & DealDigger Emerald */
  --ink: #0d1611;
  --ink-2: #192720;
  --ink-3: #2d3e33;
  --muted: #5e7266;
  --muted-2: #87998e;
  --muted-3: #b4c2b9;

  --bg: #f7faf8;
  --bg-subtle: #f0f5f2;
  --surface: #ffffff;
  --surface-2: #edf4ef;
  --surface-3: #e2ece5;
  --line: #e2ebe4;
  --line-light: #edf2ee;
  --line-strong: #c8d8cd;

  /* Emerald Spectrum */
  --green: #10b981;
  --green-bright: #34d399;
  --green-light: #6ee7b7;
  --green-dark: #059669;
  --green-deep: #047857;
  --green-soft: #e8f7ee;
  --green-soft-ink: #065f46;
  --green-glow: rgba(16, 185, 129, 0.25);

  /* Dark Theme Surfaces */
  --night: #0a0f0d;
  --night-2: #0f1713;
  --night-3: #14201a;
  --night-card: #121c16;
  --night-line: rgba(255, 255, 255, 0.09);
  --night-line-highlight: rgba(255, 255, 255, 0.16);

  /* Status Colors */
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --danger-text: #991b1b;

  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-line: #fde68a;
  --warning-text: #92400e;

  --info: #0284c7;
  --info-bg: #f0f9ff;
  --info-line: #bae6fd;
  --info-text: #0369a1;

  /* 3D Depth Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 20, 15, 0.04);
  --shadow-sm: 0 2px 5px rgba(10, 20, 15, 0.05), 0 1px 2px rgba(10, 20, 15, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(10, 20, 15, 0.07), 0 2px 6px -1px rgba(10, 20, 15, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(10, 20, 15, 0.09), 0 4px 10px -2px rgba(10, 20, 15, 0.04);
  --shadow-xl: 0 24px 50px -8px rgba(10, 20, 15, 0.14), 0 8px 18px -4px rgba(10, 20, 15, 0.06);

  /* Realistic Multi-Layer 3D Depth */
  --shadow-3d-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(10, 20, 15, 0.04),
    0 14px 34px -6px rgba(10, 20, 15, 0.08);

  --shadow-3d-card-hover:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 8px 20px -2px rgba(16, 185, 129, 0.14),
    0 22px 48px -8px rgba(10, 20, 15, 0.13);

  --shadow-3d-dark:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px -6px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.25);

  --shadow-btn-primary:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px -3px rgba(5, 150, 105, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 9999px;

  /* Layout */
  --shell: 1220px;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

.shell {
  width: min(var(--shell), calc(100% - 44px));
  margin-inline: auto;
}

/* Eyebrows & Kickers */
.hero-kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.hero-kicker {
  color: #7eed9b;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.32);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--night-line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 16px rgba(16, 185, 129, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 6px 20px rgba(16, 185, 129, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
  color: #c4d4ca;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 650;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-link.is-active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-weight: 750;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons System */
.btn {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  position: relative;
  min-height: 44px;
}

.btn:active {
  transform: translateY(1px) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-btn-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -2px rgba(5, 150, 105, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-dark {
  background: linear-gradient(135deg, #14201a 0%, #0a0f0d 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #1b2d24 0%, #0f1713 100%);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #d2ded6;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.btn-light {
  background: #ffffff;
  color: var(--green-deep);
  border: 1px solid #dce8df;
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: #f8faf8;
  border-color: var(--green-bright);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--green);
  color: var(--green-deep);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.88rem;
  min-height: 40px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

/* Mobile Nav Toggle & Menu */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 9px;
  cursor: pointer;
  transition: background var(--transition);
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 18, 15, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--night-line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 16px 0 24px;
}

.mobile-menu.is-open {
  display: block;
  animation: slideDown 220ms ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-inner {
  display: grid;
  gap: 6px;
}

.mobile-menu a {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: #d1dfd6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-menu .mobile-primary {
  color: #7eed9b;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

/* ==========================================================================
   HOMEPAGE HERO & 3D ELEMENTS
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 50% at 85% 15%, rgba(16, 185, 129, 0.24), transparent 70%),
    radial-gradient(circle at 10% 80%, rgba(5, 150, 105, 0.15), transparent 45%),
    linear-gradient(145deg, #090e0b 0%, #101914 52%, #080d0a 100%);
  color: #ffffff;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--night-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-section h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 850;
  margin: 22px 0 20px;
  max-width: 740px;
}

.hero-section h1 span {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .lead {
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.6;
  color: #b9ccc0;
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
  color: #a4b6ab;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
}

.hero-proof span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #52e391;
  margin-right: 8px;
  font-weight: 900;
  font-size: 0.75rem;
}

/* 3D Dimensional Hero Mockup */
.hero-visual {
  position: relative;
  min-height: 420px;
  perspective: 1200px;
}

.visual-card {
  position: absolute;
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms ease;
}

.visual-main {
  inset: 16px 0 24px 32px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 24px 60px -10px rgba(0, 0, 0, 0.45),
    0 10px 24px -4px rgba(0, 0, 0, 0.25);
  transform: rotateY(-6deg) rotateX(4deg);
}

.hero-visual:hover .visual-main {
  transform: rotateY(-2deg) rotateX(1deg);
}

.visual-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.visual-top strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-2);
}

.visual-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.visual-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.visual-product {
  height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #f6faf7, #eaf2ed);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.visual-product .mock-box {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #d8ebd9 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-size: 2.4rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 32px rgba(4, 120, 87, 0.18),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

.visual-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 18px 0 14px;
  color: var(--ink);
}

.visual-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f1f7f3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.visual-link span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-3);
  font-weight: 600;
}

.visual-link strong {
  color: var(--green-deep);
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  font-size: 0.74rem;
  box-shadow: var(--shadow-xs);
}

.visual-floating {
  right: -14px;
  bottom: 6px;
  padding: 14px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 20px 40px rgba(0, 0, 0, 0.28);
  transform: translateZ(30px);
}

.visual-floating i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
  font-style: normal;
  font-weight: 900;
  font-size: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.visual-floating strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

.visual-floating span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 1px;
}

/* ==========================================================================
   TRUST STRIP & SECTIONS
   ========================================================================== */
.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.trust-grid {
  min-height: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.trust-item {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.trust-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-white {
  background: #ffffff;
}

.section-dark {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(16, 185, 129, 0.16), transparent 70%),
    linear-gradient(180deg, #0b110e 0%, #0e1612 100%);
  color: #ffffff;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head h2, .content-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 850;
  margin: 8px 0 0;
  color: var(--ink);
}

.section-dark .section-head h2 {
  color: #ffffff;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.section-dark .section-head p {
  color: #a7b8ad;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-3d-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3d-card-hover);
  border-color: rgba(16, 185, 129, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  color: var(--green-deep);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Steps Section */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-3d-dark);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-3px);
}

.step::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: inline-block;
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.step p {
  color: #a8b8ae;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

/* Call to Action Banner */
.cta-panel {
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(52, 211, 153, 0.3), transparent 70%),
    linear-gradient(135deg, #065f46 0%, #044332 60%, #022c22 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 28px 64px -8px rgba(4, 67, 50, 0.45);
}

.cta-panel h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #ffffff;
}

.cta-panel p {
  margin: 0;
  color: #d1fae5;
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 600px;
}

/* ==========================================================================
   PRODUCT CATALOG & CARDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Product card: image area fully isolated from content, never overlap */
.product-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3d-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3d-card-hover);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Image bounds: strictly object-fit contain, zero stretching/overflow */
.product-card-image {
  height: 272px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 28px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
  transition: transform 300ms ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.image-placeholder {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--green-deep);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.product-card-body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,1));
  pointer-events: none;
}

.product-card-body .eyebrow {
  margin-bottom: 8px;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.42;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.85em;
  color: var(--ink);
}

.product-card h3 a {
  display: block;
}

.product-card h3 a:hover {
  color: var(--green-deep);
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.product-card-bottom strong {
  color: var(--green-deep);
  font-size: 1.15rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.text-link {
  font-weight: 750;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link span {
  display: inline-block;
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Catalog Toolbar & Search */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.catalog-toolbar form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.search-input {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font: inherit;
  font-size: 16px;
  outline: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}

.search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  min-height: 44px;
}

.pagination a:hover {
  border-color: var(--green);
  color: var(--green-deep);
  transform: translateY(-1px);
}

.pagination .current {
  background: var(--green-deep);
  color: #ffffff;
  border-color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}

.empty-state {
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 64px 24px;
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}

.empty-state strong {
  display: block;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ==========================================================================
   CUSTOMER-FACING PRODUCT SHARE PAGE
   ========================================================================== */
.product-post {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 10%, rgba(16, 185, 129, 0.08), transparent 70%),
    linear-gradient(180deg, #f8faf8 0%, #edf3ef 100%);
}

.share-card {
  text-align: center;
  width: min(620px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 24px 64px -8px rgba(10, 25, 18, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Product image: contain, bounded, never overlaps title */
.share-image {
  height: 340px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.share-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
}

.share-image .image-placeholder {
  width: 110px;
  height: 110px;
  font-size: 2rem;
}

/* Exact label: SHARED WITH YOU */
.share-label {
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  color: var(--green-deep);
  text-transform: uppercase;
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* Product title: wraps naturally, proper vertical spacing */
.share-card h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 auto 12px;
  max-width: 560px;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* Price followed by "on Amazon" */
.share-price {
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--ink-2);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* Price disclaimer text */
.share-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 26px;
  line-height: 1.5;
}

/* Prominent CTA: View on Amazon */
.share-btn {
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 15px 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -2px rgba(5, 150, 105, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 52px;
}

.share-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 30px -2px rgba(5, 150, 105, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Affiliate Disclosure */
.affiliate-note {
  font-size: 0.85rem;
  color: var(--muted-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
  border-top: 1px solid var(--line-light);
  padding-top: 18px;
}

/* Amazon Content Disclaimer on share page */
.amazon-content-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 16px;
  line-height: 1.5;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Price Timestamp */
.price-timestamp {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 20px;
  text-align: center;
  font-style: italic;
}

.price-timestamp--stale {
  color: var(--warning-text);
  font-weight: 600;
  font-style: normal;
}

/* ==========================================================================
   FOOTER DISCLOSURES
   ========================================================================== */
.footer-disclosure {
  display: block;
  font-size: 0.82rem;
  color: #92a89a;
  margin-top: 6px;
}

.footer-disclosure--amazon {
  color: #72877a;
  font-size: 0.75rem;
  margin-top: 4px;
  max-width: 700px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-disclosure--amazon {
    max-width: 100%;
  }
}

/* ==========================================================================
   LINK GENERATOR WORKFLOW
   ========================================================================== */
.generator-shell {
  padding: 64px 0 90px;
}

.generator-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.generator-side {
  background:
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.22), transparent 45%),
    linear-gradient(145deg, #0f1a14 0%, #080d0a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1px solid var(--night-line);
  box-shadow: var(--shadow-3d-dark);
  position: sticky;
  top: 100px;
}

.generator-side h1 {
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  font-weight: 850;
  margin: 14px 0 12px;
  color: #ffffff;
}

.generator-side p {
  color: #b3c5ba;
  font-size: 0.96rem;
  line-height: 1.6;
}

.generator-side .mini-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.mini-list div {
  display: flex;
  gap: 12px;
  font-size: 0.91rem;
  color: #dbe6de;
  line-height: 1.5;
}

.mini-list i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #4ade80;
  font-weight: 900;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

.generator-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-3d-card);
}

.generator-card h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.generator-card > .sub {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 0.94rem;
}

/* Forms System */
.form-grid {
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  outline: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tag-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  min-height: 48px;
}

.tag-status span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-status strong {
  color: var(--green-deep);
  font-weight: 800;
}

/* Loading indicator */
.loading-bar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--line-light);
  overflow: hidden;
  display: none;
  margin-top: 20px;
}

.loading-bar.is-loading {
  display: block;
}

.loading-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  animation: loadingAnim 1.2s infinite ease-in-out;
}

@keyframes loadingAnim {
  from { transform: translateX(-100%); }
  to { transform: translateX(350%); }
}

/* Generator Result Preview */
.generator-result {
  display: none;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  animation: fadeIn 250ms ease-out;
}

.generator-result.is-visible {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(145deg, #ffffff 0%, #f6faf7 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.result-preview-image {
  height: 110px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.result-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.result-preview h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 6px 0 8px;
  line-height: 1.4;
  color: var(--ink);
}

.result-preview strong {
  color: var(--green-deep);
  font-size: 1.1rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.share-box {
  margin-top: 22px;
}

.share-box label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.copy-row {
  display: flex;
  gap: 10px;
}

.copy-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   AUTHENTICATION PAGES
   ========================================================================== */
.auth-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-art {
  background:
    radial-gradient(circle at 25% 20%, rgba(16, 185, 129, 0.25), transparent 45%),
    linear-gradient(145deg, #0c1410 0%, #15241b 60%, #0a0f0d 100%);
  color: #ffffff;
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--night-line);
}

.auth-art h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
  font-weight: 850;
  margin: 18px 0 16px;
  color: #ffffff;
}

.auth-art p {
  color: #b2c4b8;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 520px;
}

.auth-benefits {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

.auth-benefits span {
  display: flex;
  align-items: center;
  color: #dbe7df;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-benefits span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #4ade80;
  margin-right: 12px;
  font-weight: 900;
  font-size: 0.8rem;
}

.auth-panel {
  background: #ffffff;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(440px, 100%);
}

.auth-card h2 {
  font-size: 2.1rem;
  letter-spacing: -0.035em;
  font-weight: 850;
  margin: 0 0 8px;
  color: var(--ink);
}

.auth-card .sub {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
}

.form-meta a, .auth-switch a {
  color: var(--green-deep);
  font-weight: 750;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Notice Alerts */
.notice {
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.notice-info {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.notice-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger-text);
}

.notice-warn {
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  color: var(--warning-text);
}

/* ==========================================================================
   CONTENT, GUIDES, ABOUT & LEGAL
   ========================================================================== */
.page-hero {
  padding: 72px 0 54px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f5 100%);
  border-bottom: 1px solid var(--line);
}

.content-head {
  max-width: 800px;
}

.content-head p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
  margin-top: 12px;
  line-height: 1.6;
}

.content-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.prose-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-3d-card);
}

.prose-card h2 {
  margin: 36px 0 12px;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p, .prose-card li {
  color: var(--text-body, var(--muted));
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose-card a {
  color: var(--green-deep);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-card ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}

.contact-card, .contact-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-3d-card);
}

.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 850;
  margin: 8px 0 10px;
  color: var(--ink);
}

.contact-method {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-method:first-of-type {
  border-top: 0;
}

.contact-method span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-method a, .contact-method strong {
  font-weight: 800;
  color: var(--green-deep);
  font-size: 1.05rem;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.site-footer {
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(16, 185, 129, 0.12), transparent 60%),
    linear-gradient(180deg, #0c1410 0%, #080d0a 100%);
  color: #c4d4ca;
  padding: 68px 0 28px;
  border-top: 1px solid var(--night-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 48px;
}

.brand-footer {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 420px;
  color: #8fa597;
  font-size: 0.94rem;
  line-height: 1.6;
}

.status-dot {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9cb1a4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
  display: inline-block;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.site-footer a {
  display: block;
  text-decoration: none;
  color: #92a89a;
  margin: 11px 0;
  font-size: 0.91rem;
  font-weight: 600;
  transition: color var(--transition), transform var(--transition);
}

.site-footer a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: #72877a;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS — Mobile First
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .desktop-only {
    display: none;
  }
  .header-actions > .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-grid, .generator-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    min-height: 340px;
    max-width: 520px;
    margin: 0 auto;
  }
  .generator-side {
    position: relative;
    top: auto;
  }
  .feature-grid, .product-grid, .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 2 / 4;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 320px;
    padding: 48px 32px;
  }
  .auth-panel {
    padding: 48px 32px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-item:last-child {
    border-bottom: 0;
  }
}

/* Mobile phones and narrow tablets */
@media (max-width: 768px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  .brand {
    gap: 10px;
    min-width: 0;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.1rem;
  }
  .hero-section {
    padding: 52px 0 44px;
  }
  .hero-section h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 16px;
    perspective: none;
  }
  .visual-card {
    position: relative;
    width: 100%;
  }
  .visual-main {
    inset: auto;
    padding: 20px;
    transform: none !important;
  }
  .visual-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .visual-product {
    height: 160px;
  }
  .visual-title {
    font-size: 1rem;
    line-height: 1.4;
  }
  .visual-link {
    flex-direction: column;
    align-items: flex-start;
  }
  .visual-link span {
    white-space: normal;
    word-break: break-word;
  }
  .visual-floating {
    right: auto;
    bottom: auto;
    padding: 14px 18px;
    transform: none;
  }
  .section {
    padding: 44px 0;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 10px;
  }
  .product-card-image {
    height: 220px;
  }
  .product-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cta-panel {
    padding: 32px 24px;
    display: block;
  }
  .cta-panel .btn {
    margin-top: 24px;
  }
  .prose-card {
    padding: 24px 18px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .generator-shell {
    padding: 32px 0 48px;
  }
  .generator-card, .generator-side {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  .result-preview {
    grid-template-columns: 90px 1fr;
  }
  .result-preview-image {
    height: 86px;
  }
  .copy-row {
    flex-direction: column;
  }
  .copy-row .btn {
    width: 100%;
  }
  .share-card {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }
  .share-image {
    height: 220px;
    padding: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* Compact mobile — everything single column */
@media (max-width: 640px) {
  .feature-grid, .product-grid, .steps {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 44px 0 36px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-proof {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .hero-visual {
    gap: 14px;
  }
  .visual-main {
    padding: 18px;
  }
  .visual-product {
    height: 140px;
  }
  .product-card-image {
    height: 200px;
    padding: 16px;
  }
  .product-card-body {
    padding: 18px;
  }
  .share-image {
    height: 200px;
  }
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-toolbar form {
    flex-direction: column;
  }
  .search-input {
    max-width: 100%;
  }
  /* Admin mobile adjustments */
  .admin-main, .page {
    padding: 16px 12px 60px;
  }
  .card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }
  .analytics-grid, .metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .metric-card, .metric {
    padding: 18px 16px;
  }
  .metric-value, .metric .v {
    font-size: 1.6rem;
  }
  .card-header {
    gap: 10px;
    margin-bottom: 16px;
  }
  .card-header h2, h1, h2 {
    font-size: 1.25rem;
  }
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .action-row .button, .action-row .btn {
    justify-content: center;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .table-wrap, .tw {
    margin: 12px -6px;
    border-radius: var(--radius-sm);
  }
  .modal-card {
    padding: 24px 18px;
    max-height: 95vh;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* BestShop Deals Pro shared pages — a more editorial finish for accounts and Link Studio. */
.brand-mark{background:linear-gradient(145deg,#ffb75a,#e95d42)!important}.brand em{color:#ed6440;font-style:normal}.generator-shell{background:linear-gradient(135deg,#f4f7ff,#fff7f0);padding:76px 0 98px}.generator-side{background:radial-gradient(circle at 15% 15%,rgba(255,185,93,.22),transparent 43%),linear-gradient(145deg,#111b37,#202f58);border-color:rgba(255,255,255,.13);box-shadow:0 26px 50px rgba(17,27,55,.22)}.generator-side h1{font-family:Georgia,serif;font-size:2.5rem}.generator-side h1 em{color:#ffc16b;font-style:normal}.generator-card{border-color:#e0e5f0;border-radius:28px;box-shadow:0 20px 50px rgba(32,47,88,.1)}.generator-card h2{font-family:Georgia,serif;color:#16203b}.generator-card .eyebrow,.generator-side .hero-kicker{color:#d95739}.btn-primary{background:linear-gradient(135deg,#ef6843,#f39c51)!important}.tag-status strong,.result-preview strong{color:#d95739!important}.field input:focus,.field select:focus,.field textarea:focus{border-color:#ed6642!important;box-shadow:0 0 0 4px rgba(237,102,66,.13)!important}
