/* Phoenix Phase Converters — Knowledge Hub
   Static, SEO-optimized styles. No framework. Matches live brand. */

:root {
  --brand: #ff6b1a;
  --brand-dark: #e55b0f;
  --ink: #111418;
  --ink-2: #1a1f26;
  --paper: #f7f6f3;
  --paper-2: #ffffff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
  --maxw: 1160px;
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top contact bar */
.topbar {
  background: var(--ink);
  color: #d9dde3;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #ffffff; font-weight: 600; }

/* Header / nav */
.site-header {
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .02em; color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
}
.brand-name { font-size: 11px; line-height: 1.1; }
.brand-name strong { display: block; font-size: 15px; letter-spacing: .08em; }
.brand-name span { color: var(--brand-dark); font-weight: 600; letter-spacing: .12em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 15px;
}
.site-nav a:hover { background: var(--paper); text-decoration: none; }
.site-nav a.active { background: #ffe9dc; color: var(--brand-dark); }
.site-nav .cta {
  background: var(--brand); color: #fff !important; font-weight: 600;
  padding: 10px 18px;
}
.site-nav .cta:hover { background: var(--brand-dark); }

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

/* Hero */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 72px 0 96px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 48px);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,26,.15); color: var(--brand);
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05; margin: 0 0 20px;
  font-weight: 700; letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--brand); display: block; }
.hero .lede { font-size: 19px; max-width: 720px; color: #cbd2dc; margin: 0 0 34px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 24px; color: #cbd2dc; font-size: 14px; }
.hero .badges span::before { content: "✓ "; color: var(--brand); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; line-height: 1;
  background: var(--brand); color: #fff !important;
  border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn.ghost {
  background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35);
}
.btn.ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn.light {
  background: #fff; color: var(--ink) !important; border-color: #fff;
}
.btn.light:hover { background: #f1f1f1; }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--paper-2); }
section .block-head { margin-bottom: 36px; }
section h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 8px; letter-spacing: -0.015em;
}
section .subtitle { color: var(--muted); font-size: 17px; margin: 0; }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.card h3 { font-size: 20px; margin: 0 0 10px; line-height: 1.3; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.card .readmore { color: var(--brand-dark); font-weight: 600; }
.card .readmore::after { content: " →"; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  background: var(--paper-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-top: 14px; color: #3a4049; }

/* Table */
.cmp-table { width: 100%; border-collapse: collapse; background: var(--paper-2); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table thead th { background: var(--ink); color: #fff; font-weight: 600; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:nth-child(even) { background: #fafaf7; }
.cmp-table td:first-child { font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.stat {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px;
}
.stat .num { font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat .label { font-weight: 600; margin-bottom: 8px; }
.stat .src { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote {
  background: var(--paper-2); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
}
.quote p { font-size: 16px; margin: 0 0 18px; color: #2c323a; }
.quote .who strong { display: block; font-size: 15px; }
.quote .who span { display: block; color: var(--muted); font-size: 13px; }
.quote .tag { display: inline-block; margin-top: 10px; background: #fff3ea; color: var(--brand-dark); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* CTA strip */
.cta-strip { background: var(--ink); color: #fff; text-align: center; padding: 72px 20px; }
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: #cbd2dc; margin: 0 0 26px; }
.cta-strip .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Article / topic pages */
.article-hero { background: var(--ink); color: #fff; padding: 60px 0 72px; }
.article-hero .crumbs { color: #9aa3b2; font-size: 14px; margin-bottom: 18px; }
.article-hero .crumbs a { color: #cbd2dc; }
.article-hero h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.article-hero .lede { color: #cbd2dc; font-size: 18px; max-width: 780px; margin: 0; }
.article-body { max-width: 780px; margin: 0 auto; padding: 56px 20px 72px; }
.article-body h2 { font-size: 30px; margin: 40px 0 14px; letter-spacing: -0.015em; }
.article-body h3 { font-size: 22px; margin: 30px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--brand);
  background: #fff8f3; padding: 18px 22px; margin: 24px 0;
  border-radius: 0 8px 8px 0; color: #2c323a;
}
.article-body .callout {
  background: #fff8f3; border: 1px solid #ffd9bf;
  border-radius: 12px; padding: 20px 22px; margin: 24px 0;
}
.article-body .callout strong { color: var(--brand-dark); }

/* Footer */
.site-footer { background: var(--ink-2); color: #cbd2dc; padding: 56px 0 30px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cbd2dc; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer .meta { border-top: 1px solid #2a303a; padding-top: 22px; font-size: 13px; color: #8c96a3; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; gap: 10px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav a { padding: 8px 10px; font-size: 14px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 64px; }
}
