/* info.css — shared styles for info pages (about, how-to, faq, privacy-policy, terms)
 * Extracted from the duplicated inline <style> blocks across 5 info pages.
 * Standardizes breakpoints to 960px / 640px (matches style.css + tools.css).
 */

.page-hero {
  padding: 56px 0 28px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--txt), var(--acc-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--txt);
  line-height: 1.18;
  margin-bottom: 10px;
}
.page-hero p {
  color: var(--mut);
  font-size: clamp(15px, 1.7vw, 17px);
  max-width: 720px;
  margin: 0 auto;
}

.doc {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 32px;
  max-width: 860px;
  margin: 24px auto 60px;
}
.doc-sec { margin-bottom: 28px; }
.doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--txt);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.doc h2 .n {
  font-size: 13px;
  font-weight: 600;
  color: var(--acc-2);
  font-variant-numeric: tabular-nums;
}
.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--txt);
}
.doc p {
  color: var(--mut);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.doc ul, .doc ol {
  color: var(--mut);
  font-size: 15.5px;
  line-height: 1.75;
  padding-left: 22px;
  margin-bottom: 14px;
}
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--acc-2); }
.doc b, .doc strong { color: var(--txt); font-weight: 700; }
.doc a { color: var(--acc-2); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.doc a:hover { border-bottom-color: var(--acc-2); }
.doc kbd {
  display: inline-block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 7px;
  font: 600 12px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--txt);
  vertical-align: 1px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}
.doc table th,
.doc table td {
  border: 1px solid var(--line-soft);
  padding: 8px 12px;
  text-align: left;
}
.doc table th {
  background: var(--bg-2);
  color: var(--txt);
  font-weight: 600;
}
.doc table caption {
  caption-side: top;
  text-align: left;
  color: var(--mut);
  font-size: 13px;
  margin-bottom: 6px;
}
.doc .updated {
  color: var(--mut-2);
  font-size: 13px;
  text-align: center;
  margin: -8px 0 22px;
}

/* Table of contents (used on how-to, faq, privacy-policy, terms) */
.toc {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 20px;
  max-width: 860px;
  margin: 0 auto 24px;
  font-size: 14.5px;
}
.toc h3 { font-size: 13px; color: var(--mut-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; }
.toc li { margin: 4px 0; }
.toc a { color: var(--mut); text-decoration: none; }
.toc a:hover { color: var(--acc-2); }

/* how-to.html: tool-guides grid */
.tool-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 12px;
}
.tool-guide {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px;
  transition: border-color .15s, transform .15s;
}
.tool-guide:hover { border-color: var(--acc-2); transform: translateY(-2px); }
.tg-head { display: flex; align-items: center; gap: 12px; }
.tool-guide .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.3); color: var(--acc-2);
}
.tool-guide .ic svg { width: 21px; height: 21px; }
.tool-guide h3 { font-size: 16px; margin-bottom: 4px; }
.tool-guide h3 a { color: var(--txt); text-decoration: none; }
.tool-guide h3 a:hover { color: var(--acc-2); }
.tool-guide p { font-size: 13.5px; color: var(--mut); margin: 6px 0 12px; line-height: 1.55; }
.mini-steps { list-style: none; counter-reset: step; padding: 0; }
.mini-steps li {
  counter-increment: step;
  padding-left: 26px;
  position: relative;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--mut);
  line-height: 1.55;
}
.mini-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--acc-2);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* about.html: contact grid + mail card */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.contact-tile {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 22px;
}
.contact-tile h3 { font-size: 16px; margin-bottom: 6px; }
.contact-tile p { font-size: 14px; color: var(--mut); margin: 4px 0; }
.mail-card {
  background: linear-gradient(135deg, var(--card), var(--card-2));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin: 32px auto;
  max-width: 540px;
}

/* Responsive — standardized to 960 / 640 breakpoints */
@media (max-width: 960px) {
  .tool-guides { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .doc { padding: 22px 18px; }
  .tool-guides { grid-template-columns: 1fr; }
}

/* Print styles — apply on info pages */
@media print {
  :root { color-scheme: light; }
  body { background: #fff !important; color: #000 !important; }
  body::before, .nav, .tools-chips-bar, .mobile-menu,
  footer.site, .cta-band, .toasts { display: none !important; }
  .doc, .doc-sec, .contact-tile, .mail-card, .tool-guide {
    background: #fff !important; color: #000 !important;
    border: 1px solid #ccc !important; box-shadow: none !important;
  }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; color: #444; }
  .reveal { opacity: 1 !important; transform: none !important; }
  h1, h2, h3 { page-break-after: avoid; color: #000 !important; }
  .doc-sec, .contact-tile, .tool-guide { page-break-inside: avoid; }
}
