/* ============================================================
   ConvertVFP.com — shared design system (terminal/legacy → modern)
   Used by service pages and the blog. The homepage keeps its own
   inline styles; keep these tokens in sync if the homepage rebrands.
   ============================================================ */

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

:root {
  --ink:        #16140F;   /* warm terminal black — the legacy world   */
  --ink-2:      #211D15;
  --ink-line:   #34301f;
  --canvas:     #F7F5EF;   /* engineered bone paper — the modern world */
  --canvas-2:   #FFFFFF;
  --amber:      #DD8E2E;   /* legacy / the thing you're leaving        */
  --amber-deep: #B96F18;
  --green:      #1B6B47;   /* modern destination                       */
  --green-brt:  #36B074;
  --brick:      #C0492F;
  --rule:       #E4DECF;
  --text:       #211D15;
  --muted:      #6E6757;
  --muted-ink:  #A59C84;
}

html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--canvas);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.01em; }
.mono { font-family: "IBM Plex Mono", monospace; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 6%; }
:focus-visible { outline: 2px solid var(--green-brt); outline-offset: 3px; border-radius: 2px; }

/* ─── eyebrow / section headings ─── */
.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: .74rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep); display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--amber); }
.on-ink .eyebrow { color: var(--green-brt); }
.on-ink .eyebrow::before { background: var(--green-brt); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 600; line-height: 1.12; color: var(--ink); }
.on-ink .section-title { color: var(--canvas); }
.section-sub { margin-top: 1rem; font-size: 1.06rem; color: var(--muted); max-width: 640px; }
.on-ink .section-sub { color: var(--muted-ink); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }
section { padding: clamp(3.25rem, 6vw, 5rem) 0; }
.section.alt { background: var(--canvas-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.ink { background: var(--ink); color: var(--canvas); }

/* ─── buttons ─── */
.btn-primary {
  background: var(--green); color: #fff; padding: .9rem 1.7rem; border-radius: 8px; font-weight: 600; font-size: .98rem;
  font-family: "IBM Plex Sans", sans-serif; border: none; cursor: pointer; transition: background .18s, transform .15s, box-shadow .18s;
  display: inline-block; box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn-primary:hover { background: #155538; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(27,107,71,.22); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: .9rem 1.6rem; border-radius: 8px;
  font-weight: 600; font-size: .98rem; transition: background .18s, color .18s; display: inline-block;
}
.btn-ghost:hover { background: var(--ink); color: var(--canvas); text-decoration: none; }
.on-ink .btn-ghost { color: var(--canvas); border-color: var(--muted-ink); }
.on-ink .btn-ghost:hover { background: var(--canvas); color: var(--ink); }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ─── NAV ─── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(247,245,239,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 6%; height: 66px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; white-space: nowrap; font-family: "IBM Plex Mono", monospace; font-size: 1.02rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; text-decoration: none !important; }
.nav-brand > span { white-space: nowrap; }
.nav-brand .logo { height: 46px; width: auto; display: block; flex-shrink: 0; }
.nav-brand .prompt { color: var(--green); }
.nav-brand .blink { color: var(--amber); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .18s; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta { background: var(--ink); color: var(--canvas) !important; padding: .55rem 1.15rem; border-radius: 7px; font-weight: 600 !important; font-size: .88rem; white-space: nowrap; transition: background .18s, transform .15s; }
.nav-cta:hover { background: var(--green); text-decoration: none !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 7px; padding: .5rem .7rem; cursor: pointer; font-family: "IBM Plex Mono", monospace; color: var(--ink); font-size: .9rem; }

/* ─── page hero (on ink, grid-fade) ─── */
.page-hero { background: var(--ink); color: var(--canvas); padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.75rem); position: relative; overflow: hidden; }
.page-hero.grid::before, .cta-band.grid::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 75% 12%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 80% 80% at 75% 12%, #000 10%, transparent 70%);
  opacity: .5; pointer-events: none;
}
.page-hero .wrap, .cta-band .wrap { position: relative; }
.page-hero h1 { font-size: clamp(1.95rem, 4.2vw, 3rem); font-weight: 600; line-height: 1.12; max-width: 20ch; color: var(--canvas); }
.page-hero h1 em { font-style: normal; color: var(--amber); }
.page-hero .hero-sub { margin-top: 1.25rem; font-size: 1.12rem; color: var(--muted-ink); max-width: 600px; line-height: 1.66; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero .hero-trust { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 1.4rem; font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--muted-ink); }
.page-hero .hero-trust span::before { content: "✓ "; color: var(--green-brt); }

/* ─── breadcrumb ─── */
.breadcrumb { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--muted-ink); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--green-brt); }
.breadcrumb a:hover { color: #fff; }

/* ─── prose (articles + rich service copy) ─── */
.prose > * { margin-bottom: 1.3rem; }
.prose p, .prose li { font-size: 1.06rem; color: var(--text); line-height: 1.78; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 600; color: var(--ink); line-height: 1.2; margin-top: 2.85rem; margin-bottom: 1rem; scroll-margin-top: 86px; display: flex; align-items: baseline; gap: .55rem; }
.prose h2.hash::before { content: "##"; font-family: "IBM Plex Mono", monospace; font-size: .8em; font-weight: 500; color: var(--amber); flex-shrink: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 2rem; margin-bottom: .6rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.5rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--amber-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prose .lead { font-size: 1.2rem; color: var(--muted); line-height: 1.7; }
.article-layout { max-width: 740px; margin: 0 auto; }

/* ─── callout ─── */
.callout { background: var(--canvas-2); border: 1px solid var(--rule); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout.amber { border-left-color: var(--amber); }
.callout p { font-size: 1rem; color: var(--text); margin: 0; }
.callout strong { color: var(--ink); }

/* ─── feature cards grid ─── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.card { background: var(--canvas-2); border: 1px solid var(--rule); border-radius: 11px; padding: 1.6rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: 0 14px 40px rgba(22,20,15,.07); transform: translateY(-2px); border-color: #d6cfb8; }
.card .tag { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); border: 1px solid var(--rule); background: var(--canvas); padding: .25rem .55rem; border-radius: 5px; margin-bottom: .9rem; }
.card h3 { font-size: 1.06rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.card p { font-size: .93rem; color: var(--muted); line-height: 1.66; }

/* ─── process steps ─── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem 2.4rem; margin-top: 2.75rem; counter-reset: step; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--ink); color: var(--canvas); font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.step p { font-size: .93rem; color: var(--muted); line-height: 1.65; }

/* ─── stat row ─── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.stat { background: var(--canvas-2); border: 1px solid var(--rule); border-radius: 11px; padding: 1.5rem; text-align: center; }
.on-ink .stat { background: var(--ink-2); border-color: var(--ink-line); }
.stat .num { font-family: "Space Grotesk", sans-serif; font-size: 2.1rem; font-weight: 600; color: var(--green); line-height: 1; }
.on-ink .stat .num { color: var(--green-brt); }
.stat .lbl { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.on-ink .stat .lbl { color: var(--muted-ink); }

/* ─── comparison table ─── */
.compare { width: 100%; border-collapse: collapse; margin: 1.85rem 0; font-size: .94rem; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.compare th, .compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--canvas); font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: .8rem; letter-spacing: .03em; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 27%; }
.compare tbody tr:nth-child(even) { background: #FBFAF5; }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: .7rem; text-align: left; }
details { background: var(--canvas); border: 1px solid var(--rule); border-radius: 9px; overflow: hidden; transition: border-color .18s; }
.section.alt details { background: var(--canvas); }
details[open] { border-color: #d6cfb8; }
summary { padding: 1.2rem 1.4rem; font-family: "Space Grotesk", sans-serif; font-size: 1.02rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); transition: color .15s; }
summary:hover { color: var(--green); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: "IBM Plex Mono", monospace; font-size: 1.25rem; color: var(--amber-deep); transition: transform .2s; flex-shrink: 0; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.4rem 1.2rem; font-size: .98rem; color: var(--muted); line-height: 1.72; max-width: 68ch; }
.faq-body a { color: var(--green); }

/* ─── related links ─── */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.related a { display: block; background: var(--canvas-2); border: 1px solid var(--rule); border-radius: 10px; padding: 1.1rem 1.25rem; transition: border-color .18s, transform .15s; }
.related a:hover { border-color: var(--green); transform: translateY(-2px); text-decoration: none; }
.related .r-k { font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); }
.related .r-t { display: block; margin-top: .35rem; font-weight: 600; color: var(--ink); }

/* ─── CTA band ─── */
.cta-band { background: var(--ink); color: var(--canvas); padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: .9rem; }
.cta-band p { color: var(--muted-ink); max-width: 560px; margin: 0 auto 2rem; font-size: 1.04rem; line-height: 1.7; }

/* ─── post cards (blog) ─── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--canvas-2); border: 1px solid var(--rule); border-radius: 11px; padding: 1.85rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.post-card:hover { box-shadow: 0 14px 40px rgba(22,20,15,.08); transform: translateY(-2px); border-color: #d6cfb8; }
.post-tag { display: inline-block; align-self: flex-start; font-family: "IBM Plex Mono", monospace; font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); border: 1px solid var(--rule); background: var(--canvas); padding: .3rem .65rem; border-radius: 5px; margin-bottom: 1.1rem; }
.post-card h2 { font-size: 1.28rem; font-weight: 600; color: var(--ink); line-height: 1.28; margin-bottom: .6rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--green); }
.post-card p { font-size: .96rem; color: var(--muted); line-height: 1.68; flex-grow: 1; }
.post-meta { display: flex; gap: 1.1rem; margin-top: 1.2rem; font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--muted); }
.post-readmore { margin-top: 1.1rem; font-size: .92rem; font-weight: 600; color: var(--green); }

/* article meta row */
.article-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--green-brt); display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; }
.article-eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--green-brt); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.75rem; font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--muted-ink); }

/* ─── FOOTER ─── */
footer { background: #0d0c08; color: var(--muted-ink); padding: 2.6rem 0; font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-brand { font-family: "IBM Plex Mono", monospace; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted-ink); }
.footer-links a:hover { color: #fff; }

/* ─── responsive ─── */
@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--canvas); border-bottom: 1px solid var(--rule); padding: .5rem 6% 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child { border-bottom: none; padding-top: .6rem; }
  .nav-links a { padding: .85rem 0; display: block; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}
