/* ═══════════════════════════════════════════════════════
   justdf.com — Premium Light SaaS Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:          #F8FAFC;
  --surface:     #FFFFFF;
  --surface-alt: #F1F5F9;
  --border:      #E2E8F0;
  --blue:        #1A73E8;
  --blue-dark:   #1558B0;
  --blue-light:  #EBF3FD;
  --text:        #1E293B;
  --text-muted:  #64748B;
  --text-light:  #94A3B8;
  --success:     #0D9488;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* ── LAYOUT ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}

.brand-logo {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue), #4285F4);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: -.5px; box-shadow: 0 2px 8px rgba(26,115,232,.35);
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -.4px; }
.brand-tag  { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.lang-dropdown-wrap { position: relative; }

.lang-dropdown {
  appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 32px 7px 12px;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  color: var(--text); cursor: pointer;
  transition: border-color .15s;
}
.lang-dropdown:hover, .lang-dropdown:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}

/* ── MAIN ── */
.page-main { flex: 1; padding: 48px 0 80px; }

/* ── STATE PANELS ── */
.state-panel { animation: fadeIn .25s ease; }

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

/* ── SKELETON ── */
.skeleton-h1, .skeleton-line, .skeleton-block {
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--border) 50%, var(--surface-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-h1 { height: 40px; width: 60%; margin-bottom: 16px; }
.skeleton-line { height: 16px; width: 100%; margin-bottom: 10px; }
.skeleton-line.short { width: 70%; }
.skeleton-block { height: 240px; margin-top: 24px; }

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── ERROR ── */
.error-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.error-card h1 { font-size: 24px; margin-bottom: 12px; }
.error-card a { color: var(--blue); text-decoration: none; font-weight: 500; }

/* ── HERO ── */
.hero { text-align: center; padding: 64px 0 48px; }

.hero-badge {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px; letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -1.5px; color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 36px;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-top: 16px;
}

.tool-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.tool-icon { font-size: 28px; margin-bottom: 4px; }
.tool-card strong { font-size: 15px; font-weight: 600; }
.tool-card span { font-size: 13px; color: var(--text-muted); }

/* ── TOOL PAGE ── */
.tool-page { max-width: 800px; margin: 0 auto; }

.tool-header { margin-bottom: 32px; }
.tool-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -1px; margin-bottom: 10px; }
.tool-sub { font-size: 17px; color: var(--text-muted); }

/* ── ZONE 1 — PROSE ── */
.zone-teaser {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); margin-bottom: 32px;
}

.prose h2 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.prose p  { margin-bottom: 14px; color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; }

/* ── ZONE 2 — LOCKER ── */
.zone-2-wrap { position: relative; margin-bottom: 48px; border-radius: var(--radius); overflow: hidden; }

.zone-2-preview {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px; min-height: 220px;
}

.blur-content { display: flex; flex-direction: column; gap: 14px; }
.blur-line { height: 14px; background: var(--border); border-radius: 4px; }
.blur-line.short { width: 55%; }
.fake-upload {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px; display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-alt);
}

.locker-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 36px 28px;
}

/* Glass morphism */
.glass-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}

.lock-icon { font-size: 40px; margin-bottom: 12px; }
.locker-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.locker-sub { font-size: 15px; color: var(--text-muted); max-width: 380px; margin-bottom: 24px; }
.locker-note { font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px;
  border-radius: var(--radius-sm); font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .12s;
}

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 8px rgba(26,115,232,.30);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(26,115,232,.40);
  transform: translateY(-1px);
}

.btn-large { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-unlock { min-width: 260px; font-size: 16px; letter-spacing: .2px; }

/* ── AEO/GEO DIRECT ANSWER ── */
.direct-answer-section {
  background: linear-gradient(135deg, #EBF3FD, #FFFFFF);
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}

.direct-answer-label {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#direct-answer-content {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

/* ── ZONE 3 AFFILIATE BANNER ── */
.affiliate-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 40px;
  box-shadow: var(--shadow-sm);
}

.affiliate-eyebrow {
  display: block;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}

.affiliate-banner strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.affiliate-banner p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ── FAQ ── */
.faq-section { margin-top: 16px; }
.faq-heading { font-size: 22px; font-weight: 700; margin-bottom: 20px; }

.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}

.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text);
}

.faq-question:hover { background: var(--surface-alt); }

.faq-chevron {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--text-muted); transition: transform .25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none; padding: 0 20px 18px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── RELATED INTERNAL LINKS ── */
.related-section {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.related-header { margin-bottom: 18px; }

.related-eyebrow {
  display: inline-block;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.related-heading {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.4px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  text-decoration: none;
  color: var(--text);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.related-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card-kicker {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .35px;
}

.related-card strong {
  font-size: 15px;
  line-height: 1.35;
}

.related-card span:last-child {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-brand { font-size: 13px; color: var(--text-muted); }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  transition: color .15s;
}
.footer-nav a:hover { color: var(--blue); }

/* ── COMPLIANCE STATIC PAGES ── */
.compliance-page { max-width: 720px; margin: 0 auto; }

.compliance-page h1 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  letter-spacing: -.8px; margin-bottom: 6px;
}

.compliance-date {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 36px;
}

.compliance-page h2 {
  font-size: 18px; font-weight: 600;
  margin: 32px 0 10px; color: var(--text);
}

.compliance-page p {
  font-size: 15px; line-height: 1.75;
  color: var(--text-muted); margin-bottom: 14px;
}

.compliance-page a {
  color: var(--blue); text-decoration: none;
}
.compliance-page a:hover { text-decoration: underline; }

.lead {
  font-size: 17px !important; color: var(--text) !important;
  font-weight: 400;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .hero-title { font-size: 28px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .locker-card { padding: 24px 16px; }
  .btn-unlock { min-width: 0; width: 100%; }
  .affiliate-banner { flex-direction: column; align-items: stretch; }
}
