/* Shared crisp stylesheet for interior pages on toro4n.com:
   /about/, /pricing/, /docs/<topic>/, /security/, and /404.html.
   Loaded after /about/about.css and scoped to body.page. */

body.page {
  --bg: #fafbfd;
  --surface: #ffffff;
  --surface-subtle: #f3f5fa;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #526074;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #4f5bd5;
  --accent-hover: #3f4bc4;
  --accent-ink: #3f4bc4;
  --accent-soft: rgba(79, 91, 213, 0.1);
  --code-bg: rgba(15, 23, 42, 0.055);
  --bar-bg: rgba(250, 251, 253, 0.88);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.07);
  --container: 1000px;

  margin: 0;
  padding: 0;
  max-width: none;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body.page {
    --bg: #0b0d13;
    --surface: #131722;
    --surface-subtle: #181d2b;
    --ink: #f1f5f9;
    --ink-secondary: #cbd5e1;
    --muted: #94a3b8;
    --line: rgba(241, 245, 249, 0.1);
    --line-strong: rgba(241, 245, 249, 0.18);
    --accent: #6875f5;
    --accent-hover: #7c87f7;
    --accent-ink: #9ca5ff;
    --accent-soft: rgba(104, 117, 245, 0.16);
    --code-bg: rgba(241, 245, 249, 0.09);
    --bar-bg: rgba(11, 13, 19, 0.88);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

/* Skip link */
body.page a.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: #4f5bd5;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 560;
  text-decoration: none;
}

body.page a.skip:focus {
  top: 12px;
}

/* Header */
body.page header.site-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: none;
  margin: 0;
  padding: 13px max(24px, calc((100% - var(--container)) / 2 + 24px));
  background: var(--bar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body.page header.site-bar .brand {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

body.page header.site-bar .brand svg {
  display: block;
}

body.page header.site-bar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

body.page header.site-bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px;
  border-radius: 7px;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.14s ease, background 0.14s ease;
}

body.page header.site-bar nav a:hover {
  color: var(--ink);
  background: var(--line);
}

body.page header.site-bar nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

body.page header.site-bar a.open {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  margin: 0;
  border-radius: 8px;
  background: #4f5bd5;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.14s ease;
}

body.page header.site-bar a.open:hover {
  background: #3f4bc4;
}

/* Main container */
body.page main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* Shared typography inside main */
body.page main h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

body.page main h2 {
  margin: 44px 0 14px;
  font-size: 1.25rem;
  font-weight: 670;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.page main h3 {
  margin: 26px 0 8px;
  font-size: 1.025rem;
  font-weight: 640;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

body.page main p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
  max-width: 68ch;
  font-size: 0.96875rem;
  line-height: 1.66;
}

body.page main p.lead {
  margin: 0 0 24px;
  font-size: 1.075rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}

body.page main p strong,
body.page main li strong {
  color: var(--ink);
  font-weight: 600;
}

body.page main a {
  color: var(--accent-ink);
  text-decoration: none;
}

body.page main a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page main ul,
body.page main ol {
  margin: 0 0 18px;
  padding-left: 22px;
  max-width: 68ch;
  color: var(--ink-secondary);
  font-size: 0.96875rem;
  line-height: 1.65;
}

body.page main li {
  margin: 0 0 9px;
}

body.page main li::marker {
  color: var(--muted);
}

body.page main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 5px;
}

body.page main pre {
  margin: 14px 0 22px;
  padding: 14px 18px;
  max-width: 72ch;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.55;
}

body.page main pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
  color: var(--ink);
}

/* Buttons & action rows */
body.page .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 36px;
}

body.page main a.open,
body.page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  margin: 0;
  border-radius: 9px;
  background: #4f5bd5;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 580;
  text-decoration: none;
  transition: background 0.14s ease;
}

body.page main a.open:hover,
body.page .btn-primary:hover {
  background: #3f4bc4;
  text-decoration: none;
}

body.page .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 540;
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

body.page .btn-secondary:hover {
  border-color: var(--accent);
  background: var(--surface-subtle);
  text-decoration: none;
}

/* Breadcrumb (used on guide topic pages) */
body.page .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 520;
  color: var(--muted);
}

body.page .crumb a {
  color: var(--accent-ink);
  font-weight: 560;
}

body.page .crumb span[aria-hidden="true"] {
  opacity: 0.5;
}

/* Section eyebrow */
body.page .section-eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 640;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================
   About page
   =========================== */
body.page-about .about-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

body.page-about .about-header .actions {
  margin-bottom: 0;
}

body.page-about .story-section {
  margin-bottom: 40px;
}

body.page-about .story-section h2 {
  margin-top: 0;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

body.page-about .story-section p {
  font-size: 1.0125rem;
  line-height: 1.7;
  max-width: 66ch;
}

body.page-about .about-figure {
  margin: 28px 0 48px;
}

body.page-about .about-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.page-about .about-figure figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

body.page-about .pillars {
  margin-bottom: 48px;
}

body.page-about .pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.page-about .pillar-card {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
}

body.page-about .pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 660;
}

body.page-about .pillar-card p {
  margin: 0;
  font-size: 0.9125rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

body.page-about .callout-card {
  margin: 0 0 48px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

body.page-about .callout-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

body.page-about .callout-card pre {
  margin: 12px 0 14px;
  background: var(--surface-subtle);
}

body.page-about .callout-card p:last-child {
  margin-bottom: 0;
}

body.page-about .company-section {
  padding-top: 36px;
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}

body.page-about .company-section h2 {
  margin-top: 0;
}

/* Shared FAQ grid (About & Pricing) */
body.page .faq-section {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

body.page .faq-section h2 {
  margin: 0 0 22px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

body.page .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}

body.page .faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 640;
  line-height: 1.35;
  color: var(--ink);
}

body.page .faq-item p {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: none;
}

/* ===========================
   Pricing page
   =========================== */
body.page-pricing .pricing-header {
  margin-bottom: 36px;
}

body.page-pricing .pricing-header .actions {
  margin-bottom: 0;
}

body.page-pricing .plans-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

body.page-pricing .plans-bar h2 {
  margin: 0;
  font-size: 1.25rem;
}

body.page-pricing p.currencies {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

body.page-pricing p.currencies .currencies-label {
  margin-right: 6px;
}

body.page-pricing p.currencies a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 2px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-secondary);
  font-weight: 560;
  text-decoration: none;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

body.page-pricing p.currencies a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  text-decoration: none;
}

body.page-pricing p.currencies a[aria-current="true"] {
  background: #4f5bd5;
  border-color: #4f5bd5;
  color: #ffffff;
}

body.page-pricing .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

body.page-pricing table[data-plans] {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

body.page-pricing table[data-plans] thead th {
  padding: 16px 18px;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 680;
  color: var(--ink);
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line-strong);
}

body.page-pricing table[data-plans] thead th:first-child {
  width: 34%;
}

body.page-pricing table[data-plans] tbody th,
body.page-pricing table[data-plans] tbody td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

body.page-pricing table[data-plans] tbody tr:last-child th,
body.page-pricing table[data-plans] tbody tr:last-child td {
  border-bottom: none;
}

body.page-pricing table[data-plans] tbody th {
  font-weight: 580;
  color: var(--ink);
}

body.page-pricing table[data-plans] tbody td {
  color: var(--ink-secondary);
}

body.page-pricing table[data-plans] tbody tr:nth-child(1) td,
body.page-pricing table[data-plans] tbody tr:nth-child(2) td {
  font-weight: 640;
  color: var(--ink);
}

body.page-pricing .saving {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 620;
  vertical-align: middle;
  white-space: nowrap;
}

body.page-pricing .footnotes {
  margin: 0 0 44px;
}

body.page-pricing .footnotes p {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}

/* ===========================
   Guide topic pages & Security
   =========================== */
body.page-doc main h2,
body.page-security main h2 {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

body.page-doc main h1 + p.lead + h2,
body.page-security main h1 + p + p + h2 {
  margin-top: 32px;
}

body.page-doc main h2:last-of-type {
  margin-top: 44px;
}

body.page-doc .related-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.page-doc .related-links li {
  margin: 0;
}

body.page-doc .related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

body.page-doc .related-links a:hover {
  border-color: var(--accent);
  background: var(--surface-subtle);
  text-decoration: none;
}

body.page-security main p {
  max-width: 72ch;
}

body.page-security main pre {
  max-width: 76ch;
}

/* ===========================
   404 page
   =========================== */
body.page-404 main {
  padding-top: 72px;
  padding-bottom: 96px;
}

body.page-404 .actions {
  margin-top: 24px;
}

/* Footer */
body.page footer.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

body.page footer.site-footer p {
  margin: 0 0 8px;
  max-width: none;
}

body.page footer.site-footer p:last-child {
  margin-bottom: 0;
}

body.page footer.site-footer .site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
}

body.page footer.site-footer a {
  display: inline-block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
}

body.page footer.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 820px) {
  body.page-about .pillar-grid {
    grid-template-columns: 1fr;
  }

  body.page .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  body.page header.site-bar {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 12px;
    padding: 12px 16px;
  }

  body.page header.site-bar .brand {
    margin-right: auto;
  }

  body.page header.site-bar nav {
    order: 3;
    width: 100%;
    margin-right: 0;
    gap: 2px;
    flex-wrap: wrap;
  }

  body.page header.site-bar nav a {
    padding: 4px 9px;
    font-size: 0.875rem;
  }

  body.page main {
    padding: 32px 18px 56px;
  }

  body.page-about .callout-card {
    padding: 18px;
  }

  body.page footer.site-footer {
    padding: 24px 18px 40px;
  }
}
