/* TDF Developments base styles */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-alt: #f3f1eb;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e5e7eb;
  --primary: #1e3a5f;
  --primary-strong: #14283f;
  --accent: #d97706;
  --accent-strong: #b45309;
  --success: #047857;
  --danger: #b91c1c;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --container: 1120px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--primary-strong); }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
.muted { color: var(--text-muted); }

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-name { font-size: 1.02rem; }
.brand-name span { color: var(--text-muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav a:hover { background: var(--surface-alt); }
.nav a.is-active { color: var(--primary); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-alt); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

/* Sections */
section { padding: 72px 0; }
section.tight { padding: 56px 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(30, 58, 95, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 1.05rem; color: var(--text-muted); margin: 0; }

/* Hero */
.hero {
  padding: 96px 0 64px;
}
.hero h1 { margin-bottom: 20px; }
.hero-lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Cards / grids */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  color: inherit;
}
.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 58, 95, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card-tag.is-soon { color: var(--text-muted); background: var(--surface-alt); }

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  padding: 8px 0;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; color: var(--text-muted); }

/* Feature lists */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.feature-list.is-pro li::before {
  background: var(--accent);
}

/* Plans / two-column */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan.is-pro {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #fffaf2 100%);
  position: relative;
}
.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.plan.is-pro .plan-name { color: var(--accent-strong); }
.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-tagline {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.plan ul { flex: 1; }
.plan .btn { margin-top: 24px; align-self: stretch; }

/* FAQ */
.faq {
  display: grid;
  gap: 4px;
  max-width: 820px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq details + details { margin-top: 12px; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p,
.faq details > div {
  padding: 0 0 18px;
  color: var(--text-muted);
}
.faq details > div > p:last-child { margin-bottom: 0; }

/* CTA banner */
.cta-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; max-width: 540px; }
.cta-banner .btn-primary { background: #fff; color: var(--primary); }
.cta-banner .btn-primary:hover { background: #f1f5f9; color: var(--primary-strong); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 48px 0 32px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

/* Plugin hero (specific) */
.plugin-hero {
  padding: 64px 0 48px;
}
.plugin-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .plugin-hero-inner { grid-template-columns: 1fr; }
}
.plugin-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.badge strong { color: var(--text); font-weight: 600; }

/* Mock screenshot panel */
.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mock-bar {
  height: 30px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #d4d4d4;
}
.mock-bar span:nth-child(1) { background: #ef4444; }
.mock-bar span:nth-child(2) { background: #f59e0b; }
.mock-bar span:nth-child(3) { background: #10b981; }
.mock-body { padding: 20px; }
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mock-header h4 { margin: 0; }
.mock-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.mock-score-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: -0.02em;
}
.mock-score-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.mock-stat {
  padding: 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  text-align: center;
}
.mock-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.mock-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mock-stat.bad .mock-stat-value { color: var(--danger); }
.mock-stat.warn .mock-stat-value { color: var(--accent); }
.mock-stat.ok .mock-stat-value { color: var(--success); }

.mock-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}
.mock-row:first-of-type { border-top: 0; }
.mock-thumb {
  width: 44px; height: 32px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  border-radius: 4px;
}
.mock-thumb.alt-2 { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.mock-thumb.alt-3 { background: linear-gradient(135deg, #86efac, #10b981); }
.mock-thumb.alt-4 { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.mock-path { color: var(--text-muted); font-size: 0.78rem; }
.mock-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-status.missing { background: #fee2e2; color: var(--danger); }
.mock-status.filename { background: #fef3c7; color: #92400e; }
.mock-status.valid { background: #d1fae5; color: #065f46; }

/* Quote / pull */
.callout {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Two-column features (free + pro) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
}
.col h3 { margin-top: 0; }
.col .col-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.col .col-tag.free { background: rgba(30, 58, 95, 0.1); color: var(--primary); }
.col .col-tag.pro { background: rgba(217, 119, 6, 0.12); color: var(--accent-strong); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 6px; }

/* Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
