/* LocalToolsmith — High-Contrast Local-First Design System */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #f0f3f8;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #dce1ea;
  --accent: #0f4c81;
  --accent-hover: #0a3861;
  --accent-soft: #e8f1fa;
  --success: #0f766e;
  --success-soft: #e6f6f4;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --code-bg: #111827;
  --code-fg: #f3f4f6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

/* Top Announcement Bar */
.promo-bar {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.875rem;
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid #1e293b;
}

.promo-bar strong {
  color: #93c5fd;
}

.promo-code {
  display: inline-block;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fde68a;
  padding: 1px 8px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.93rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

/* Hero Sections */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.pill-accent {
  background: var(--accent-soft);
  border-color: #bfd7ee;
  color: var(--accent);
}

.pill-success {
  background: var(--success-soft);
  border-color: #a7dfd8;
  color: var(--success);
}

.pill-warn {
  background: var(--warn-soft);
  border-color: #fcd34d;
  color: var(--warn);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 0 24px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.product-hero-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.product-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.product-icon-sm {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
}

/* CTA Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-alt);
}

.btn-muted {
  background: var(--surface-alt);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: default;
}

.trust-micro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Main Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  max-width: 720px;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.price-tag {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.price-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 4px;
}

/* Discount / Trust Callout Box */
.callout-banner {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}

.callout-banner h2,
.callout-banner h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.callout-banner p {
  margin: 0;
  color: #cbd5e1;
}

.trust-badges-grid {
  display: grid;
  gap: 10px;
}

.trust-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* Privacy Block */
.privacy-box {
  background: var(--success-soft);
  border: 1px solid #99d5ce;
  border-radius: var(--radius);
  padding: 24px 28px;
}

.privacy-box h2 {
  margin: 0 0 10px;
  color: #0b534d;
  font-size: 1.35rem;
}

.clean-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.clean-list li {
  margin-bottom: 8px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
}

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

tr.highlight-row {
  background: var(--accent-soft);
  font-weight: 600;
}

/* Screenshots & Demo Media */
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.media-caption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-placeholder {
  border: 1px dashed #94a3b8;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-muted);
}

/* Article Layout */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  margin: 28px 0 10px;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}

.article-body h2:first-of-type {
  margin-top: 8px;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 16px 0;
}

.article-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
}

.conversion-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.conversion-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.conversion-card .btn {
  width: 100%;
  margin-top: 10px;
}

/* Guides Filter Pills */
.guide-group {
  margin-bottom: 36px;
}

.guide-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

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

.site-footer h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer a {
  color: #93c5fd;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #1e293b;
  font-size: 0.84rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 920px) {
  .grid-3,
  .grid-2,
  .callout-banner,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-body {
    padding: 22px;
  }
}
