/* ProTaskir — Shared site stylesheet
 * Used by all static HTML pages (legal, blog, marketing) to keep visual parity
 * with the React landing page. Source of truth for tokens lives in src/index.css —
 * the values here are duplicated literals so static pages don't need a build step.
 */

:root {
  /* Surface */
  --bg: oklch(0.995 0.003 80);
  --bg-alt: oklch(0.975 0.005 80);
  --bg-card: oklch(1 0 0);

  /* Text */
  --ink: oklch(0.18 0.015 240);
  --ink-2: oklch(0.38 0.012 240);
  --ink-3: oklch(0.56 0.010 240);
  --ink-faint: oklch(0.68 0.008 240);

  /* Rules */
  --rule: oklch(0.90 0.008 240);
  --rule-2: oklch(0.94 0.006 240);

  /* Brand accent (replaces old gold #D4A843) */
  --accent: oklch(0.52 0.16 250);
  --accent-ink: oklch(0.32 0.12 250);
  --accent-wash: oklch(0.97 0.02 250);
  --accent-dim: oklch(0.52 0.16 250 / 0.10);
  --accent-border: oklch(0.52 0.16 250 / 0.25);

  /* Semantic */
  --ok: oklch(0.62 0.14 155);
  --danger: oklch(0.58 0.18 28);

  /* Typography */
  --font-sans: "Heebo", "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 700; }

/* ─── Navbar ────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: oklch(0.995 0.003 80 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  height: 64px; display: flex; align-items: center;
}
.navbar-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.navbar-cta {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 8px 20px; border-radius: 8px; text-decoration: none;
  transition: background 0.15s;
}
.navbar-cta:hover { background: var(--accent-ink); text-decoration: none; }

/* ─── Article container ─────────────────────────────── */
.article { max-width: 780px; margin: 0 auto; padding: 100px 24px 60px; }
.container { max-width: 800px; margin: 0 auto; padding: 100px 24px 80px; }

.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* Article meta + tags */
.article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; font-size: 0.85rem; color: var(--ink-faint); flex-wrap: wrap; }
.article-tag { background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent-ink); font-size: 0.8rem; font-weight: 500; padding: 4px 12px; border-radius: 20px; }

/* Author byline */
.author-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 16px; background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 10px; }
.author-byline .author-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.author-byline .author-cred { font-size: 0.82rem; color: var(--ink-2); line-height: 1.5; }
.author-byline .author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-dim); border: 2px solid var(--accent-border); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 1rem; flex-shrink: 0; }

/* ─── Headings ──────────────────────────────────────── */
h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.25; margin-bottom: 20px; color: var(--ink); letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--rule); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--accent-ink); margin: 32px 0 12px; }
h4 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }

.article-subtitle { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 40px; line-height: 1.75; }
.date { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 32px; }

/* ─── Body text ─────────────────────────────────────── */
p { margin-bottom: 18px; font-size: 1.05rem; color: var(--ink-2); }
ul, ol { margin: 12px 24px 24px 0; padding-right: 20px; }
li { margin-bottom: 10px; font-size: 1.05rem; color: var(--ink-2); }

/* ─── Components ────────────────────────────────────── */
.highlight-box { background: var(--bg-alt); border: 1px solid var(--rule); border-right: 4px solid var(--accent); border-radius: 12px; padding: 24px; margin: 28px 0; }
.highlight-box h4 { color: var(--accent-ink); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }

.checklist { list-style: none; padding: 0; margin: 16px 0 24px; }
.checklist li { padding: 8px 0; padding-right: 28px; position: relative; }
.checklist li::before { content: '\2713'; position: absolute; right: 0; color: var(--ok); font-weight: 700; }

.cta-box {
  background: linear-gradient(135deg, var(--accent-dim) 0%, oklch(0.52 0.16 250 / 0.04) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 16px; padding: 36px; text-align: center; margin: 48px 0;
}
.cta-box h3 { color: var(--ink); font-size: 1.4rem; margin: 0 0 12px; }
.cta-box p { color: var(--ink-2); margin-bottom: 20px; }
.cta-button {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1.1rem; padding: 14px 36px; border-radius: 10px;
  text-decoration: none; transition: background 0.15s;
}
.cta-button:hover { background: var(--accent-ink); text-decoration: none; }

/* ─── Comparison table ──────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--bg-card); }
.comparison-table th { background: var(--bg-alt); color: var(--accent-ink); font-weight: 700; padding: 12px 16px; text-align: right; border: 1px solid var(--rule); }
.comparison-table td { padding: 12px 16px; border: 1px solid var(--rule); color: var(--ink-2); }
.comparison-table tr:nth-child(even) td { background: var(--bg-alt); }

/* ─── FAQ ───────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq-q { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 8px; }
.faq-a { color: var(--ink-2); }

/* ─── Steps (numbered) ──────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0 24px; }
.steps li {
  counter-increment: step;
  padding: 16px 20px 16px 0; padding-right: 56px;
  position: relative; border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step); position: absolute; right: 0; top: 16px;
  width: 36px; height: 36px;
  background: var(--accent-dim); border: 2px solid var(--accent-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 1rem;
}

/* ─── Article footer ────────────────────────────────── */
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--ink-faint); text-align: center; }
.article-footer a { color: var(--accent); text-decoration: none; }

/* ─── Buttons (article hero CTAs) ───────────────────── */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1rem; padding: 12px 28px; border-radius: 10px;
  text-decoration: none; transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-ink); text-decoration: none; }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--accent);
  border: 1px solid var(--accent-border); font-weight: 700; font-size: 1rem;
  padding: 12px 28px; border-radius: 10px; text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--accent-dim); text-decoration: none; }

/* ─── Subtitle (used by some article pages) ─────────── */
.subtitle { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 28px; line-height: 1.8; }

/* ─── Screenshot figure ─────────────────────────────── */
.screenshot-figure { margin: 28px auto; text-align: center; }
.screenshot-figure img {
  max-width: 280px; width: 100%; height: auto; border-radius: 16px;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 32px oklch(0.18 0.015 240 / 0.10);
}
.screenshot-figure figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--ink-faint); font-style: italic; }

.external-link { color: var(--accent); text-decoration: underline; }

/* ─── Back link (legal pages) ───────────────────────── */
.back { display: inline-block; margin-bottom: 24px; color: var(--ink-faint); font-size: 0.9rem; text-decoration: none; }
.back:hover { color: var(--accent); }

/* ─── Blog index / listing page ────────────────────── */
.page {
  max-width: 900px; margin: 0 auto; padding: 100px 24px 60px;
  text-align: right;
}
.page h1 { text-align: right; }
.page-subtitle {
  font-size: 1.1rem; color: var(--ink-2); line-height: 1.8;
  margin-bottom: 40px; text-align: right;
}
.section-title {
  font-size: 1.4rem; font-weight: 700; color: var(--ink);
  margin: 40px 0 20px; padding-bottom: 8px;
  border-bottom: 2px solid var(--rule); text-align: right;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-bottom: 40px;
}
.article-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--rule);
  border-radius: 12px; padding: 24px; text-decoration: none;
  text-align: right;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 4px 20px oklch(0.52 0.16 250 / 0.10);
  text-decoration: none;
}
.article-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  margin: 10px 0 8px; line-height: 1.45; border: none; padding: 0;
}
.article-card p {
  font-size: 0.9rem; color: var(--ink-2); margin: 0;
  line-height: 1.65; flex: 1;
}
.article-card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  color: var(--accent-ink); padding: 3px 10px; border-radius: 20px;
  align-self: flex-start;
}

.page-footer {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--ink-faint); text-align: center;
}
.page-footer a { color: var(--accent); text-decoration: none; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .article { padding: 80px 16px 40px; }
  .container { padding: 80px 16px 40px; }
  .page { padding: 80px 16px 40px; }
  .articles-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.9rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}
