/* Shared styles for the per-service landing pages (built by
   scripts/build-service-pages.mjs). Colours and type match index.html. */
:root {
  --ink: #1a2332;
  --muted: #5a6170;
  --soft: #faf9f7;
  --line: rgba(0, 0, 0, 0.08);
  --gold: #b7791f;
  --gold-light: #e3b04b;
  --green: #27ae60;
  --wa: #25d366;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Buttons (the top nav itself is styled by site-nav.css) */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; padding: 12px 22px; transition: background 0.2s, border-color 0.2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c3e50; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.btn-ghost { border: 1.5px solid rgba(26,35,50,0.2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 28px 0 52px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
h1 { font-family: var(--serif); font-size: 46px; line-height: 1.12; font-weight: 700; letter-spacing: -0.6px; margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.7; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section.block { padding: 52px 0; }
section.alt { background: var(--soft); }
h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 28px; max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #444; }
.check i { color: var(--green); font-size: 12px; margin-top: 6px; }
.prose { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.prose h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; }
.prose p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 13px; color: #555; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 6px; }

/* Pricing */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); background: var(--soft); }
.price-table td.amt { font-family: var(--serif); font-weight: 700; font-size: 18px; white-space: nowrap; }
.price-table .note { display: block; font-size: 13px; color: var(--muted); }
.price-foot { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; }
.trust i { color: var(--gold); font-size: 18px; margin-top: 3px; width: 20px; text-align: center; }
.trust strong { display: block; font-size: 15px; }
.trust span { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.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: '+'; font-size: 22px; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Related */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color 0.2s, transform 0.2s; }
.related a:hover { border-color: var(--ink); transform: translateY(-2px); }
.related strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.related span { font-size: 14px; color: var(--muted); }

/* CTA band */
.band { background: var(--ink); color: #fff; padding: 48px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; color: rgba(255,255,255,0.7); }

/* Footer */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.brand em { font-style: italic; font-weight: 600; font-size: 1.06em; color: var(--gold); display: inline-block; transform: rotate(-5deg) translateY(-1px); margin-right: 3px; }
footer { background: #111820; color: rgba(255,255,255,0.62); padding: 56px 0 28px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer h3 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 16px; }
footer a { color: rgba(255,255,255,0.62); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,0.9); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer .brand span { color: #fff; font-size: 18px; }
footer .brand em { color: var(--gold-light); }
footer .legal { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 22px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.3); }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap, .prose, .steps, .trust, .related { grid-template-columns: 1fr; }
  .hero .wrap { gap: 32px; }
  .hero-img { order: -1; aspect-ratio: 16 / 9; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .lead { font-size: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  section.block { padding: 40px 0; }
  .price-table th, .price-table td { padding: 12px 14px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* Free tool pages (/ai-detector, /citation-generator) */
.hero.hero-solo { padding-bottom: 28px; }
.hero.hero-solo .wrap { grid-template-columns: 1fr; }
.hero.hero-solo .lead { max-width: 760px; margin-bottom: 0; }
.tool-section { padding: 0 0 52px; }
.tool-card { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 900px; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; font-size: 15px; }
.tool-head strong { display: block; }
.tool-meta { display: block; font-size: 13px; color: var(--muted); }
.tool-btn { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fff; border: none; padding: 11px 22px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.tool-btn:disabled { opacity: 0.7; cursor: progress; }
.tool-btn-red { background: #c0392b; }
.tool-btn-red:hover { background: #a93226; }
.tool-btn-blue { background: #2c5282; }
.tool-btn-blue:hover { background: #2a4a73; }
.tool-result { margin-bottom: 16px; }
.scan-box { position: relative; }
.scan-input { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; height: 420px; overflow-y: auto; font-size: 15px; color: #333; line-height: 1.8; outline: none; word-break: break-word; }
.scan-input:focus { border-color: rgba(26,35,50,0.35); }
.scan-lock { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 190px; border-radius: 0 0 10px 10px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.98) 100%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 24px; pointer-events: none; }
.scan-lock span { font-size: 12px; color: var(--muted); font-weight: 500; }
.scan-lock a { pointer-events: auto; font-size: 13px; font-weight: 600; color: #fff; background: var(--ink); padding: 11px 22px; border-radius: 9px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.high { background: #c0392b; }
.dot.med { background: #b7791f; }
.dot.clean { background: #27ae60; }
.counts-row { display: flex; gap: 10px; }
.counts-item { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; }
.counts-item span { font-size: 12px; font-weight: 500; }
.counts-item.high { background: #fef2f2; }
.counts-item.high span { color: #c0392b; }
.counts-item.med { background: #fef9ee; }
.counts-item.med span { color: #b7791f; }
.counts-item.clean { background: #f0faf4; }
.counts-item.clean span { color: #27ae60; }
.counts-dot { width: 8px; height: 8px; border-radius: 50%; }
.counts-item.high .counts-dot { background: #c0392b; }
.counts-item.med .counts-dot { background: #b7791f; }
.counts-item.clean .counts-dot { background: #27ae60; }
.cite-row { display: flex; gap: 8px; margin-bottom: 20px; }
.cite-row input { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-family: var(--sans); font-size: 15px; color: #333; outline: none; }
.cite-row input:focus { border-color: rgba(26,35,50,0.35); }
.cite-results { display: flex; flex-direction: column; gap: 10px; }
.cite-card { border-radius: 8px; padding: 14px; border-left: 3px solid; font-size: 14px; color: #333; line-height: 1.6; }
.cite-card b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
@media (max-width: 600px) {
  .tool-card { padding: 18px; }
  .scan-input { height: 340px; }
  .counts-row { flex-direction: column; gap: 8px; }
  .tool-head { align-items: flex-start; }
}

/* /services hub */
.svc-hub { padding: 8px 0 56px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26,35,50,0.1); border-color: rgba(26,35,50,0.25); }
.svc-img { aspect-ratio: 16 / 9; background: var(--soft); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body h2 { font-size: 21px; margin: 0; display: flex; align-items: center; gap: 10px; }
.svc-body h2 i { color: var(--gold); font-size: 16px; }
.svc-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.svc-body ul { margin: 0; padding-left: 18px; font-size: 14px; color: #444; line-height: 1.7; flex: 1; }
.svc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-family: var(--serif); font-weight: 700; font-size: 17px; }
.svc-foot small { display: block; font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--muted); }
.svc-more { font-family: var(--sans); font-size: 13px; font-weight: 600; color: #2c5282; white-space: nowrap; }

/* /how-it-works */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step a { color: #2c5282; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow i { margin-right: 6px; }
.feature-list { display: grid; gap: 18px; }
.feature-list div { display: flex; gap: 14px; align-items: flex-start; }
.feature-list i { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.feature-list p { margin: 0; }
.feature-list strong { display: block; font-size: 15px; }
.feature-list span { font-size: 14px; color: var(--muted); }
.status-panel { background: var(--ink); border-radius: 16px; padding: 26px; display: grid; gap: 12px; }
.status-panel div { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px 16px; }
.status-panel span { color: rgba(255,255,255,0.85); font-size: 14px; }
.status-panel span i { color: var(--gold-light); width: 18px; margin-right: 8px; }
.status-panel b { color: #6fdc9b; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.pay-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.pay-main { background: linear-gradient(160deg, #1a2332, #283548); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pay-main > p { margin: 0; color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.7; }
.pay-main .chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.pay-tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: #6fdc9b; background: rgba(39,174,96,0.15); padding: 5px 12px; border-radius: 100px; }
.pay-tag i { margin-right: 5px; }
.pay-coin { display: flex; align-items: center; gap: 14px; }
.pay-coin > span { width: 52px; height: 52px; border-radius: 50%; background: #26a17b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.pay-coin p { margin: 0; }
.pay-coin strong { display: block; font-family: var(--serif); font-size: 22px; }
.pay-coin small { color: rgba(255,255,255,0.6); font-size: 13px; }
.pay-list { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.pay-list h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 0 0 4px; }
.pay-list div { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.pay-list div > i, .pay-letter { width: 36px; height: 36px; border-radius: 8px; background: #eef2f7; color: #2c5282; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.pay-list p { margin: 0; }
.pay-list strong { display: block; font-size: 15px; }
.pay-list small { color: var(--muted); font-size: 13px; }
/* Hub-page breakpoints: kept after the rules above so they win the cascade. */
@media (max-width: 860px) {
  .split, .pay-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-grid, .steps-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .svc-grid, .steps-4 { grid-template-columns: 1fr; }
}
