/* Fix It Mobile — shared stylesheet for generated and offer pages.
   Design vocabulary lifted from the existing site: Syne display, DM Mono body,
   near-black ground, neon-mint accent. Fonts are self-hosted (CSP: font-src 'self'). */

:root {
  --black: #050508;
  --dark: #0d0d12;
  --card: #111118;
  --border: #1e1e2e;
  --neon: #00f5c4;
  --neon2: #7b5ea7;
  --text: #e8e8f0;
  /* Matches index.html. The old blog page used #6b6b80, which is 3.9:1 on the
     page ground and fails WCAG AA for body text; the homepage value is 6.5:1. */
  --muted: #9090a6;
  --warn: #ffb020;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 900;
  background: var(--neon); color: var(--black); padding: 12px 20px;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- nav ---------- */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 60px;
  background: rgba(5,5,8,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.02em; text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; display: block; }
.logo span { color: var(--neon); }
.logo .logo-text { color: var(--text); }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--neon); }
.nav-cta {
  background: var(--neon); color: var(--black); padding: 10px 24px;
  font-family: 'DM Mono', monospace; font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-decoration: none; text-transform: uppercase;
  transition: background .2s;
}
.nav-cta:hover { background: #fff; }
@media (max-width: 1040px) { .nav-links { display: none; } }
@media (max-width: 768px) { nav#nav { padding: 18px 24px; } }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--neon); outline-offset: 3px;
}

/* ---------- layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 120px 60px 80px; }
main.narrow { max-width: 860px; }
@media (max-width: 768px) { main { padding: 100px 24px 60px; } }

.page-header { margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--neon);
  border: 1px solid rgba(0,245,196,.3); padding: 5px 14px; margin-bottom: 20px;
}
.page-header h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance;
}
.page-header p {
  color: var(--muted); font-size: .88rem; line-height: 1.85;
  margin-top: 16px; max-width: 620px;
}

/* ---------- listing cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.post-card {
  background: var(--card); border: 1px solid var(--border); padding: 36px;
  transition: border-color .3s; text-decoration: none; color: var(--text);
  display: block; position: relative;
}
.post-card:hover { border-color: rgba(0,245,196,.4); }
.post-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  opacity: 0; transition: opacity .3s;
}
.post-card:hover::after { opacity: 1; }
.post-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.post-category {
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--neon); border: 1px solid rgba(0,245,196,.25); padding: 3px 10px;
}
.post-date { font-size: .65rem; color: var(--muted); }
.post-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.post-excerpt { font-size: .78rem; color: var(--muted); line-height: 1.8; }
.post-read-more { display: inline-block; margin-top: 20px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--neon); }

/* ---------- article ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; margin-bottom: 48px; transition: color .2s;
}
.back-link:hover { color: var(--neon); }
.back-link::before { content: '\2190'; }

article { max-width: 760px; }
.post-header { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.post-header h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 20px 0 16px;
  text-wrap: balance;
}
.post-author { font-size: .72rem; color: var(--muted); }

.post-body { font-size: .88rem; line-height: 1.95; color: var(--text); }
.post-body h2 {
  font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700;
  margin: 40px 0 16px; color: var(--text); letter-spacing: -.02em; text-wrap: balance;
}
.post-body h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin: 28px 0 12px; }
.post-body p { margin-bottom: 20px; color: var(--muted); }
.post-body ul, .post-body ol { margin: 0 0 20px 20px; }
.post-body li { color: var(--muted); margin-bottom: 8px; line-height: 1.85; }
.post-body a { color: var(--neon); text-decoration: none; border-bottom: 1px solid rgba(0,245,196,.3); }
.post-body a:hover { border-bottom-color: var(--neon); }
.post-body strong { color: var(--text); font-weight: 500; }

.post-cta-block {
  margin-top: 64px; padding: 44px; background: var(--card);
  border: 1px solid var(--border); position: relative;
}
.post-cta-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
}
.post-cta-block h2, .post-cta-block h3 {
  font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; margin: 0 0 12px;
}
.post-cta-block p { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }
.post-cta-block a.btn { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; background: var(--neon); color: var(--black);
  font-family: 'DM Mono', monospace; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; border: 1px solid var(--neon);
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn.ghost { background: transparent; color: var(--neon); }
.btn.ghost:hover { background: var(--neon); color: var(--black); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- case study metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 40px 0; }
.metric { background: var(--card); padding: 26px 22px; }
.metric-value { font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--neon); line-height: 1; letter-spacing: -.02em; }
.metric-label { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ---------- offer pages ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 8px 0 0; }
/* Three tiers inside the narrow reading column: force one row rather than
   letting auto-fit drop the third card onto a line of its own. */
.plan-grid.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-grid.trio .plan { padding: 30px 24px; }
/* 4-digit prices overflow the narrower trio card at the default 2.4rem. */
.plan-grid.trio .plan-price { font-size: 2rem; }
@media (max-width: 820px) { .plan-grid.trio { grid-template-columns: 1fr; } }
.plan {
  background: var(--card); border: 1px solid var(--border); padding: 38px 32px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
}
.plan.featured { border-color: rgba(0,245,196,.45); }
.plan.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
}
.plan-flag {
  position: absolute; top: -1px; right: 22px; transform: translateY(-50%);
  background: var(--neon); color: var(--black); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 12px; font-weight: 500;
}
.plan-name { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--neon); font-variant-numeric: tabular-nums; }
.plan-price .unit { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--muted); letter-spacing: .04em; font-weight: 400; display: block; margin-top: 10px; text-transform: none; }
.plan-note { font-size: .74rem; color: var(--muted); line-height: 1.75; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; }
.plan ul li { font-size: .78rem; color: var(--muted); line-height: 1.6; padding-left: 22px; position: relative; }
.plan ul li::before { content: '+'; position: absolute; left: 0; top: 0; color: var(--neon); }
.plan .btn { margin-top: auto; text-align: center; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); background: var(--card); margin: 8px 0 0; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .78rem; }
table.compare th, table.compare td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); }
table.compare thead th {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; white-space: nowrap;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td { color: var(--muted); }
table.compare td:first-child { color: var(--text); }
table.compare td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.compare tr.total td { color: var(--text); border-top: 1px solid var(--border); }
table.compare tr.total td.save { color: var(--neon); }

/* faq */
.faq { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.faq-item { background: var(--card); padding: 26px 28px; }
.faq-item h3 { font-family: 'Syne', sans-serif; font-size: .98rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.faq-item p { font-size: .78rem; color: var(--muted); line-height: 1.85; }
.faq-item p + p { margin-top: 12px; }

/* generic content block */
.block { margin-top: 72px; display: flex; flex-direction: column; gap: 22px; }
.block > h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance;
}
.block > p { font-size: .84rem; color: var(--muted); line-height: 1.9; max-width: 680px; }
.block > p strong { color: var(--text); font-weight: 500; }

.callout {
  background: var(--card); border: 1px solid var(--border); border-left: 2px solid var(--neon);
  padding: 26px 30px; font-size: .8rem; color: var(--muted); line-height: 1.85;
}
.callout strong { color: var(--text); font-weight: 500; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border); padding: 40px 60px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--muted); flex-wrap: wrap; gap: 16px;
}
footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--neon); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 600px) { footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* plain bullet list used on industry pages */
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plain-list li { font-size: .82rem; color: var(--muted); line-height: 1.8; padding-left: 22px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 8px; height: 1px; background: var(--neon); opacity: .55; }

/* inline code in article bodies */
.post-body code, .callout code {
  font-family: 'DM Mono', monospace; font-size: .92em;
  background: rgba(0,245,196,.07); border: 1px solid rgba(0,245,196,.18);
  padding: 1px 6px; color: #9ff0dd; word-break: break-word;
}
.post-body ol { counter-reset: step; list-style: none; margin-left: 0; }
.post-body ol li { counter-increment: step; padding-left: 30px; position: relative; }
.post-body ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  color: var(--neon); font-size: .8em;
}

/* Content links outside .post-body had no colour rule and fell back to the
   browser default (#0000EE) — unreadable on the dark card, ~2:1 contrast. */
.block a, .callout a, .faq-item a, .plan-note a, .page-header a, footer .footer-links a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,245,196,.3);
  transition: border-color .2s;
}
.block a:hover, .callout a:hover, .faq-item a:hover, .plan-note a:hover, .page-header a:hover {
  border-bottom-color: var(--neon);
}
/* buttons and cards inside those containers keep their own treatment */
.block a.btn, .block a.post-card, .page-header a.btn {
  border-bottom: none;
}
footer .footer-links a { color: var(--muted); border-bottom: none; }
footer .footer-links a:hover { color: var(--neon); }

.post-updated {
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--neon); border: 1px solid rgba(0,245,196,.25); padding: 3px 10px;
}
