/* Growth Rankers — site styles */
:root {
  --ink: #0f1713;
  --ink-2: #26302b;
  --paper: #f6f4ee;
  --card: #ffffff;
  --line: #e2ded3;
  --muted: #56615b;
  --green: #17784a;
  --green-deep: #0c3f27;
  --signal: #b9f25c;
  --radius: 14px;
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 700 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,238,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.01em; font-size: 1.12rem; }
.brand svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { margin: 0; position: relative; }
.nav-links a, .nav-links button.dd-toggle {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--ink);
  font: 600 .95rem var(--sans); background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.nav-links a:hover, .nav-links button.dd-toggle:hover { background: rgba(23,120,74,.08); color: var(--green-deep); }
.nav-links a[aria-current="page"] { color: var(--green); }
.dd-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-3px); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(15,23,19,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown li { margin: 0; }
.nav-cta { margin-left: 8px; }
.nav-cta a.btn { padding: 12px 20px; color: #fff; background: var(--green); }
.nav-cta a.btn:hover { background: var(--green-deep); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 24px;
    max-height: calc(100vh - 72px); overflow-y: auto; display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a, .nav-links button.dd-toggle { padding: 14px 4px; font-size: 1.05rem; width: 100%; text-align: left; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; background: transparent; }
  .has-dd.open .dropdown { display: block; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta a.btn { width: 100%; }
}

/* Sections */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-card { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-dark { background: var(--ink); color: #e9eee9; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .eyebrow { color: var(--signal); }
.bg-dark a:not(.btn) { color: var(--signal); }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* Hero */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-card {
  background: var(--ink); color: #e9eee9; border-radius: 22px; padding: 30px;
  box-shadow: 0 30px 60px rgba(15,23,19,.18);
}
.hero-card h2 { font-size: 1.25rem; color: #fff; margin-bottom: 16px; font-family: var(--sans); font-weight: 800; letter-spacing: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f1713' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-card .btn { width: 100%; }
.hero-card small { display: block; text-align: center; margin-top: 12px; color: #a9b5ad; }
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-bottom: 0; }

/* Answer box — written for featured snippets and AI extraction */
.answer {
  border-left: 4px solid var(--green); background: var(--card); padding: 22px 26px; border-radius: 0 12px 12px 0;
  margin: 32px 0 0; max-width: 820px; box-shadow: 0 1px 0 var(--line);
}
.answer strong:first-child { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.answer p { margin: 0; }

/* Proof strip */
.proof { padding: 36px 0; border-bottom: 1px solid var(--line); }
.proof p { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.proof ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.proof li { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink-2); margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink); padding: 30px 24px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--signal); line-height: 1; margin-bottom: 10px; }
.stat span { font-size: .95rem; color: #c3cdc6; }
.stat-note { font-size: .85rem; color: #93a199; margin-top: 16px; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green); transform: translateY(-2px); color: inherit; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(23,120,74,.1); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.bg-dark .card { background: #17211c; border-color: #2a3530; }
.bg-dark .card p { color: #b5c1b9; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: step; margin: 0; padding: 28px; border-top: 3px solid var(--green); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-size: 2rem; color: var(--green); display: block; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Two-column prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul li::marker { color: var(--green); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: .97rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--ink); color: #fff; font-weight: 700; }

/* FAQ */
.faq { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:first-child { padding-top: 4px; }
.faq-item h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.faq .a { color: var(--ink-2); }
.faq .a p:last-child { margin: 0; }

/* Author / about */
.author { display: flex; gap: 18px; align-items: center; margin-top: 28px; font-size: .95rem; color: var(--muted); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.author strong { color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 26px 24px; position: relative; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--green-deep); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe3d7; margin: 0; }
.cta-band .btn-row { margin: 0; justify-content: flex-end; }

/* Forms */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.form h2 { font-size: 1.6rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid #cfcabd; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(23,120,74,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -5000px; }
.form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* Breadcrumbs */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a8a295; }
.crumbs a { color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #b5c1b9; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #dfe7e1; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #2a3530; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

.updated { font-size: .88rem; color: var(--muted); margin-top: 14px; }

@media (max-width: 960px) {
  .hero-grid, .split, .cta-band { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .grid-3, .grid-2, .steps, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .form { padding: 24px 20px; }
  .hero-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Articles */
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 1.8em; }
.article-body ol li, .article-body ul li { margin-bottom: .6em; }
.key-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.key-facts h2 { font-size: 1.3rem; margin-top: 0 !important; }
.key-facts ul { margin: 0; }
.key-facts li::marker { color: var(--green); }
.callout { border-left: 4px solid var(--signal); background: var(--ink); color: #e9eee9; padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 28px 0; }
.callout strong { color: var(--signal); }
.sources { font-size: .9rem; color: var(--muted); }
.sources li { margin-bottom: .5em; word-break: break-word; }
.post-list { display: grid; gap: 18px; }
.post-list .card time { font-size: .85rem; color: var(--muted); }
code { background: rgba(23,120,74,.08); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
pre { background: var(--ink); color: #e9eee9; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: .9rem; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; }

/* Mid-article call to action */
.inline-cta { background: var(--green-deep); color: #e9f3ec; border-radius: var(--radius); padding: 22px 26px; margin: 32px 0; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.inline-cta p { margin: 0; flex: 1 1 320px; }
.inline-cta strong { color: #fff; }
.inline-cta .btn { background: var(--signal); color: var(--ink); white-space: nowrap; }
.inline-cta .btn:hover { background: #fff; color: var(--ink); }
