/* ============================================================
   JistWeb — Global Design System (Light Mode)
   Clean, modern, Designmodo-inspired aesthetic.
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand */
  --color-primary: #38b746;
  --color-primary-hover: #2fa33d;
  --color-primary-light: rgba(56, 183, 70, 0.08);
  --color-primary-border: rgba(56, 183, 70, 0.25);

  /* Text */
  --color-heading: #1a1a2e;
  --color-body: #555770;
  --color-light: #8b8da3;
  --color-white: #ffffff;

  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #f7f8fa;
  --color-surface-hover: #eef0f4;
  --color-border: #e5e7eb;

  /* Danger */
  --color-danger: #e74c3c;
  --color-danger-light: rgba(231, 76, 60, 0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Spacing */
  --container: 1100px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s var(--ease) forwards;
  opacity: 0;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

textarea,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--color-heading);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 1.75rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-heading);
  transition: opacity 0.2s var(--ease);
}

.logo:hover { opacity: 0.7; }

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* Navigation */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-body);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-heading);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #FFDD00 0%, #FBB034 100%);
  color: #111 !important;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 10px rgba(251, 176, 52, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine-cta 3s infinite;
}

@keyframes shine-cta {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(251, 176, 52, 0.4);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  padding: 8px;
  color: var(--color-body);
}

.nav-toggle svg {
  display: block;
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(circle at 15% 0%, var(--color-primary-light) 0%, transparent 50%), 
              radial-gradient(circle at 85% 100%, rgba(56, 183, 70, 0.04) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, white, transparent);
  -webkit-mask-image: linear-gradient(to bottom, white, transparent);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: 3rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-heading) 0%, #4a4a5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
}

.hero p {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1.125rem;
  color: var(--color-body);
  line-height: 1.8;
}

.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(56, 183, 70, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.hero .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(56, 183, 70, 0.4);
  transition: box-shadow 0.3s var(--ease);
}

.hero .btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(56, 183, 70, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.hero .btn-primary:hover::after {
  box-shadow: 0 0 0 6px rgba(56, 183, 70, 0);
}

/* ---------- Section ---------- */
.section {
  padding: 60px 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.section-title svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Tool Card Grid ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
}

@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  position: relative;
}

.tool-card:hover {
  border-color: var(--color-primary-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), 0 0 0 4px var(--color-primary-light);
  transform: translateY(-4px);
  background: var(--color-bg);
}

.tool-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border);
  transition: all 0.3s var(--ease);
}

.tool-card:hover .tool-card-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
}

.tool-card-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.tool-card-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--color-light);
  line-height: 1.5;
}

/* ---------- Page Header (tool pages) ---------- */
.page-header {
  padding: 80px 24px 60px;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(circle at 15% 0%, var(--color-primary-light) 0%, transparent 50%), 
              radial-gradient(circle at 85% 100%, rgba(56, 183, 70, 0.04) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, white, transparent);
  -webkit-mask-image: linear-gradient(to bottom, white, transparent);
  z-index: 0;
  pointer-events: none;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 12px;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-heading) 0%, #4a4a5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 2.75rem; }
}

.page-header p {
  color: var(--color-body);
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Tool Workspace ---------- */
.tool-workspace {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
}

/* Toolbar */
.tool-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.tool-toolbar .spacer { flex: 1; }

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-body);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.toolbar-btn:hover {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-heading);
}

.toolbar-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.toolbar-btn--danger {
  color: var(--color-danger);
}

.toolbar-btn--danger:hover {
  background: var(--color-danger-light);
  border-color: rgba(231, 76, 60, 0.2);
  color: var(--color-danger);
}

/* Action bar (conversion buttons) */
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.action-btn {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}

.action-btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.action-btn--primary:hover {
  background: var(--color-primary-hover);
}

.action-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary-border);
}

.action-btn--outline:hover {
  background: var(--color-primary-light);
}

/* Editor area */
.tool-editor {
  width: 100%;
  min-height: 300px;
  border: none;
  padding: 24px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-heading);
  background: var(--color-bg);
  resize: vertical;
  outline: none;
}

.tool-editor::placeholder {
  color: #c0c2cc;
}

.tool-editor--mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Error bar */
.error-bar {
  display: none;
  padding: 12px 24px;
  background: var(--color-danger-light);
  border-bottom: 1px solid rgba(231, 76, 60, 0.15);
  color: var(--color-danger);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.error-bar.visible {
  display: block;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s var(--ease);
}

.stat-cell:hover {
  background: var(--color-surface);
}

.stat-cell:nth-child(2n) { border-right: none; }
@media (min-width: 640px) {
  .stat-cell:nth-child(2n) { border-right: 1px solid var(--color-border); }
  .stat-cell:nth-child(4n) { border-right: none; }
}

.stat-icon {
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- UUID / Password big output ---------- */
.big-output {
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 48px 24px;
  outline: none;
  word-break: break-all;
}

@media (min-width: 768px) {
  .big-output { font-size: 2.5rem; padding: 64px 32px; }
}

/* ---------- Password settings panel ---------- */
.settings-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .settings-panel { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.settings-panel label {
  font-weight: 500;
  color: var(--color-heading);
}

.range-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.range-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-light);
  font-family: var(--font-mono);
  margin-top: 8px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--color-body);
  font-weight: 400;
  transition: color 0.2s var(--ease);
}

.checkbox-label:hover {
  color: var(--color-heading);
}

input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ---------- Config bar (Lorem Ipsum) ---------- */
.config-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  align-items: flex-end;
}

.config-field {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
}

.config-field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.config-field input,
.config-field select {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-heading);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.config-field input:focus,
.config-field select:focus {
  border-color: var(--color-primary);
}

/* ---------- Split-Pane Workspace (Converters) ---------- */
.split-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 960px) {
  .split-workspace {
    flex-direction: row;
  }
}

.split-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.split-pane .tool-toolbar {
  border-bottom: 1px solid var(--color-border);
}

.split-pane .tool-editor {
  min-height: 250px;
  border: none;
}

.split-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}

@media (min-width: 960px) {
  .split-actions {
    flex-direction: column;
    padding: 0;
  }
}

/* ---------- IDE Workspace (Formatters) ---------- */
.ide-workspace {
  background: #1e1e24;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
}

.ide-workspace .tool-toolbar {
  background: #2b2b36;
  border-bottom: 1px solid #111116;
}

.ide-workspace .toolbar-btn {
  color: #a9a9bc;
}
.ide-workspace .toolbar-btn:hover {
  background: #393946;
  color: #fff;
  border-color: transparent;
}

.ide-workspace .tool-editor {
  background: transparent;
  color: #e0e0e0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ide-workspace .error-bar {
  background: rgba(231, 76, 60, 0.15);
  border-bottom: 1px solid rgba(231, 76, 60, 0.3);
  color: #ff6b6b;
}

/* ---------- Dashboard Workspace (Analyzers) ---------- */
.dashboard-workspace {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
}

.dashboard-workspace .stats-grid {
  border-top: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.dashboard-workspace .tool-editor {
  min-height: 400px;
  font-size: 1.125rem;
}

/* ---------- Technical Details section ---------- */
.tech-details {
  max-width: 720px;
}

.tech-details h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-list li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-body);
}

.tech-list strong {
  color: var(--color-heading);
  font-weight: 600;
}

/* ---------- SEO Sections & Content ---------- */
.seo-section {
  max-width: 960px;
  margin: 0 auto 64px auto;
  padding: 0 16px;
}

.seo-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 32px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px auto;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.6;
}

.seo-prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 16px;
}
.seo-prose a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.seo-prose a:hover {
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 24px;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none; /* Hide default arrow */
  position: relative;
  transition: background 0.2s var(--ease);
}

.faq-item summary:hover {
  background: var(--color-bg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-light);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-content {
  padding: 0 24px 24px 24px;
  color: var(--color-body);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: auto;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.footer-nav-title {
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-light);
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--color-heading);
}

.footer-copy {
  margin-top: 40px;
  font-size: 0.8125rem;
  color: var(--color-light);
}

/* ---------- Utilities ---------- */
.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;
}

/* ---------- Support Banner ---------- */
.support-banner {
  background: linear-gradient(135deg, var(--color-surface), var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  max-width: 600px;
  margin: 48px auto;
  box-shadow: var(--shadow-sm);
}

.support-banner h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.support-banner p {
  color: var(--color-body);
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.support-banner .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #FFDD00 0%, #FBB034 100%);
  color: #111 !important;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(251, 176, 52, 0.3);
  transition: all 0.2s var(--ease);
}

.support-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(251, 176, 52, 0.4);
}
