/* ============================================================
   Inner pages — shared building blocks
   Only tokens from site.css are used; no new colours.
   ============================================================ */

/* ---------- page hero ---------- */

.page-hero {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(720px 320px at 88% 0%, #eef8ff 0%, rgba(238, 248, 255, 0) 72%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 62%, var(--canvas) 100%);
  border-bottom: 1px solid #f0f2f5;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid #e6f2fb;
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .crumb { margin-bottom: 26px; }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #98a2b3;
}
.crumb a { color: #6b7280; }
.crumb a:hover { color: var(--blue); }
.crumb span { color: #c3cbd6; }

.page-hero h1 {
  font-size: 40px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.01em;
  max-width: 22em;
}
.page-hero h1 b { color: var(--blue); }

.page-lead {
  margin-top: 16px;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.page-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero .stat-row { margin-top: 40px; }

/* ---------- stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line-cool);
  border-left: 2px solid var(--cyan);
}
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
}
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- prose (docs / articles) ---------- */

.prose { max-width: 860px; }
.prose > * + * { margin-top: 18px; }

.prose h2 {
  margin-top: 44px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.005em;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 { margin-top: 28px; font-size: 18px; font-weight: 700; }

.prose p { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.prose strong { color: var(--ink); }

.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.prose li::marker { color: var(--cyan); }

.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: #f7fafd; font-weight: 700; color: var(--ink); }

.toc {
  padding: 22px 24px;
  background: #f8fbfe;
  border: 1px solid var(--line-cool);
  border-left: 2px solid var(--blue);
}
.toc p { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.toc ol { margin-top: 10px; padding-left: 20px; }
.toc li { margin-top: 6px; font-size: 14px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--blue); }

.notice {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
  background: #f4fbff;
  border: 1px solid #d8ecfa;
  border-left: 3px solid var(--cyan);
}

/* key/value grid for company facts */
.kv-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 56px;
}
.kv-grid > div { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.kv-grid dt { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.kv-grid dd { margin-top: 7px; font-size: 15px; line-height: 1.75; color: var(--ink); }

/* ---------- doc cards (help hub) ---------- */

.doc-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.doc-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: #fff;
}

.doc-card .icon-tile { margin-bottom: 6px; }
.doc-card h3 { font-size: 18px; font-weight: 700; }
.doc-card p { font-size: 14px; line-height: 1.85; color: var(--muted); flex: 1; }
.doc-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.doc-card .more::after { content: "›"; color: var(--cyan); font-size: 16px; line-height: 1; }

/* ---------- faq ---------- */

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 24px; max-width: 70em; }
.faq .answer p { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.faq .answer p + p { margin-top: 12px; }

/* ---------- steps ---------- */

.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 26px 24px; background: #fff; }
.step em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.step h3 { margin-top: 14px; font-size: 16px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ---------- timeline ---------- */

.timeline { margin-top: 44px; position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line-cool);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
}
.timeline-item time { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.timeline-item h3 { margin-top: 6px; font-size: 17px; font-weight: 700; }
.timeline-item p { margin-top: 6px; font-size: 14px; line-height: 1.9; color: var(--muted); }

/* ---------- generic data table (outside prose) ---------- */

.spec-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.spec-table th, .spec-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th {
  font-weight: 700;
  color: #0f172a;
  background: #eaf4fb;
  border-bottom: 1px solid #cfe4f4;
  letter-spacing: .01em;
}
.spec-table td { color: var(--ink-2); }
.spec-table tbody tr:hover td { background: #fbfdff; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table .num { font-variant-numeric: tabular-nums; }

/* ---------- cta band ---------- */

.cta-band {
  margin-top: 72px;
  padding: 46px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(520px 240px at 88% 12%, rgba(0, 168, 232, .22), rgba(0, 168, 232, 0) 70%),
    linear-gradient(100deg, #0d1b2a 0%, #102b46 58%, #0b3d5c 100%);
  color: #fff;
  border: 1px solid rgba(0, 168, 232, .28);
}
.cta-band h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.cta-band p { margin-top: 10px; font-size: 14px; color: #b6c7d6; }
.cta-band .page-actions { margin-top: 0; }

/* the floating dock lives at the right edge; keep the CTA clear of it */
@media (min-width: 1281px) {
  .cta-band { padding-right: 150px; }
}

/* ---------- price / plan cards ---------- */

.plan-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { padding: 30px 28px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.plan h3 { font-size: 18px; font-weight: 700; }
.plan .price { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.plan .price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan ul { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  transform: rotate(45deg);
}
.plan.is-featured { border-color: rgba(0, 72, 224, .35); box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }
.plan .badge-featured {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--blue);
  background: #e8f1ff;
  padding: 3px 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
  .doc-grid, .doc-grid.cols-4, .plan-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero h1 { font-size: 38px; }
}

@media (max-width: 760px) {
  .page-hero { padding: 44px 0 52px; }
  .page-hero h1 { font-size: 30px; }
  .page-lead { font-size: 15px; }
  .doc-grid, .doc-grid.cols-4, .plan-grid, .steps, .stat-row { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 22px; }
  .prose table { display: block; overflow-x: auto; }
}
