/* Docshar — static content pages (legal pages, about, contact, guides). Built by scripts/build-pages.js. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #18181b;
  --text: #3f3f46;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef2ff;
  --navy: #0b1437;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.site-header .bar { max-width: 1040px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 32px; height: 32px; display: block; }
.wordmark { font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.wordmark .doc { color: var(--navy); }
.wordmark .shar { background: linear-gradient(90deg, #1f6bff, #5b1cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.site-nav a:hover { background: #f1f5f9; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Layout */
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; color: #cbd5e1; }
.page-head { margin-bottom: 24px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin: 0 0 12px; font-weight: 800; }
.lead { font-size: 18px; color: #52525b; margin: 0; }
.meta { font-size: 14px; color: var(--muted); margin-top: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card + .card { margin-top: 20px; }
.prose h2, .prose h3 { scroll-margin-top: 76px; }
.prose h2 { font-size: 22px; line-height: 1.3; color: var(--ink); margin: 36px 0 10px; letter-spacing: -.01em; font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 24px 0 6px; font-weight: 650; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: #94a3b8; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose code { font-size: .9em; background: #f1f5f9; padding: 1px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: #f8fafc; color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 2px 46px; margin: 0 0 16px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
ol.steps > li strong:first-child { display: block; color: var(--ink); }

/* Callouts */
.note { background: var(--accent-soft); border: 1px solid #c7d2fe; border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; font-size: 15px; color: #312e81; }
.note.warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.note p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 0 0 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 16px 14px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 4px 14px rgba(79, 70, 229, .25); }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: #f8fafc; }
.cta { margin-top: 28px; padding: 24px; border-radius: 18px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); border: 1px solid #c7d2fe; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 4px !important; font-size: 19px !important; }
.cta p { margin: 0 !important; color: #4338ca; font-size: 15px; }

/* Guide list + contact cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 8px; }
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: #a5b4fc; box-shadow: 0 6px 20px rgba(79, 70, 229, .08); color: var(--text); }
.tile h2, .tile h3 { font-size: 16.5px !important; margin: 0 0 6px !important; color: var(--ink); line-height: 1.35; }
.tile p { margin: 0 !important; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.tile .go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.contact-list { list-style: none; padding: 0 !important; margin: 0 0 18px !important; display: grid; gap: 12px; }
.contact-list li { margin: 0 !important; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.contact-list .k { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contact-list .v { font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-list a.v { color: var(--accent); text-decoration: none; }
.contact-list a.v:hover { text-decoration: underline; }
.toc { background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 24px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { margin: 0 !important; padding-left: 20px !important; columns: 2; column-gap: 28px; }
.toc li { margin: 0 !important; padding: 2px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Guides: categories on /guides, language switch, related links and sources on guide pages */
.guide-cat { margin: 0 0 30px; }
.guide-cat > h2 { font-size: 21px; margin: 0 0 12px; color: var(--ink); }
.tile .tile-date { margin-top: 8px !important; font-size: 13px; }
.cat-tools { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tool-list a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 14.5px; }
.lang-switch { margin: 0 0 14px !important; font-size: 14.5px; }
.lang-switch a { font-weight: 600; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin-top: 8px; }
.related h2 { font-size: 18px !important; }
.sources { font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  main { padding: 22px 16px 44px; }
  h1 { font-size: 27px; }
  .lead { font-size: 16.5px; }
  .card { padding: 20px 18px; border-radius: 16px; }
  .prose h2 { font-size: 20px; margin-top: 30px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .toc ol { columns: 1; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .site-nav a { padding: 8px 10px; }
  .cta { padding: 18px; }
  .cta .btn { width: 100%; }
  th, td { padding: 9px 10px; }
  table.wide { min-width: 560px; }
}
@media (max-width: 360px) {
  .wordmark { display: none; }
}
/* Pricing page (/pricing) */
main.wide { max-width: 1120px; }
main.wide > .page-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
main.wide > .card { margin-top: 20px; }
main.wide > .pricing-prose { max-width: 860px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 22px; line-height: 1.3; color: var(--ink); margin: 0 0 14px; font-weight: 700; scroll-margin-top: 76px; }
.muted-small { font-size: 13.5px; color: var(--muted); margin: 0; }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; scroll-margin-top: 76px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; min-width: 0; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(79, 70, 229, .12); }
.plan .badge { position: absolute; top: -12px; left: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.plan h2 { font-size: 17px; margin: 0 0 6px; color: var(--ink); font-weight: 700; line-height: 1.3; }
.plan .price { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.plan .billing { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }
.plan .value { font-size: 13px; color: #047857; background: #ecfdf5; border-radius: 10px; padding: 6px 8px; margin: 10px 0 0; line-height: 1.45; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 16px; font-size: 14px; line-height: 1.5; flex: 1; }
.plan li { padding: 5px 0 5px 22px; position: relative; border-top: 1px solid #f1f5f9; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan li strong { color: var(--ink); font-weight: 650; }
.plan .actions { display: grid; gap: 8px; }
.plan .btn { width: 100%; min-height: 44px; padding: 0 12px; font-size: 14.5px; text-align: center; }
.plans-note { font-size: 14.5px; }
.compare { width: 100%; font-size: 14px; }
.compare th[scope="row"] { background: #fff; white-space: nowrap; }
.compare td small, .compare th small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .compare-wrap { border: 0; overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare tr { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; overflow: hidden; background: #fff; }
  .compare th[scope="row"] { background: var(--accent-soft); color: var(--ink); font-size: 15.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: normal; }
  .compare td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; text-align: right; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-weight: 500; text-align: left; flex: 0 0 auto; max-width: 55%; }
  .compare tr:last-child td { border-bottom: 1px solid var(--line); }
  .compare td:last-child { border-bottom: 0 !important; }
}

/* Google AdSense Responsive Ad Units */
.df-ad-container {
  display: block;
  margin: 28px auto;
  text-align: center;
  position: relative;
  max-width: 100%;
  clear: both;
}
.df-ad-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
  user-select: none;
}
.df-ad-container.df-ad-disabled,
.df-ad-container[data-ad-status="disabled"],
.df-ad-container[data-ad-status="unconfigured"] {
  display: none !important;
}

/* Contact Form */
.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.form-field .req {
  color: #e11d48;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
.form-field [aria-invalid="true"] {
  border-color: #e11d48;
  background-color: #fff1f2;
}
.field-error {
  font-size: 13px;
  color: #e11d48;
  font-weight: 500;
  margin-top: 2px;
}
.form-status {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.5;
}
.form-status.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.form-status.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media print {
  .site-header, .df-footer, .cta, .skip, .df-ad-container { display: none; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; padding: 0; }
}
