body.public-website-doc {
  --doc-accent: var(--accent);
  --doc-progress-transition: .1s linear;
}

body.public-website-doc .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

body.public-website-doc .phero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 5rem;
  overflow: hidden;
}

body.public-website-doc .phero-grid {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 80px 80px;
  pointer-events: none;
}

[data-theme="light"] body.public-website-doc .phero-grid {
  background-image: none;
}

body.public-website-doc .phero-wm {
  position: absolute;
  bottom: -5vh;
  font-family: var(--Fd);
  font-weight: 300;
  white-space: nowrap;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: -.04em;
  pointer-events: none;
}

body.public-website-doc .phero-inner {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3.5rem;
}

body.public-website-doc .phero-eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--doc-accent);
  margin-bottom: 1.6rem;
  opacity: 0;
}

body.public-website-doc .phero-h1 {
  font-family: var(--Fd);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.025em;
}

body.public-website-doc .phero-h1 .word {
  display: inline-block;
  overflow: hidden;
  margin-right: .14em;
}

body.public-website-doc .phero-h1 .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

body.public-website-doc .phero-h1 .ita {
  font-style: italic;
  color: var(--muted);
}

body.public-website-doc .phero-meta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(14px);
}

body.public-website-doc .phero-meta-item {
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

body.public-website-doc .phero-meta-item::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--border);
}

body.public-website-doc .phero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

body.public-website-doc .progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--doc-accent);
  z-index: 2000;
  width: 0%;
  transition: width var(--doc-progress-transition);
  opacity: .7;
}

body.public-website-doc .doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3.5rem;
  align-items: start;
}

body.public-website-doc .doc-sidebar {
  position: sticky;
  top: 100px;
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid var(--border);
}

body.public-website-doc .toc-title {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--doc-accent);
  margin-bottom: 1.5rem;
}

body.public-website-doc .toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.public-website-doc .toc-item {
  border-left: 1px solid var(--border);
  padding-left: 1.2rem;
  transition: border-color .25s;
}

body.public-website-doc .toc-item.active {
  border-left-color: var(--doc-accent);
}

body.public-website-doc .toc-link {
  display: block;
  padding: .45rem 0;
  font-size: .74rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  line-height: 1.4;
  cursor: none;
}

body.public-website-doc .toc-link:hover,
body.public-website-doc .toc-item.active .toc-link {
  color: var(--text);
}

body.public-website-doc .toc-back,
body.public-website-doc .toc-sibling {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  cursor: none;
}

body.public-website-doc .toc-back {
  margin-top: 2.5rem;
}

body.public-website-doc .toc-sibling {
  margin-top: .8rem;
}

body.public-website-doc .toc-back:hover,
body.public-website-doc .toc-sibling:hover {
  color: var(--doc-accent);
}

body.public-website-doc .toc-back svg,
body.public-website-doc .toc-sibling svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.public-website-doc .doc-content {
  padding: 4rem 0 8rem 4rem;
}

body.public-website-doc .doc-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}

body.public-website-doc .doc-section:first-child {
  padding-top: 0;
}

body.public-website-doc .doc-section:last-child {
  border-bottom: none;
}

body.public-website-doc .sec-num {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--doc-accent);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

body.public-website-doc .sec-num::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--doc-accent);
}

body.public-website-doc .sec-title {
  font-family: var(--Fd);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: 1.8rem;
}

body.public-website-doc .sec-title em {
  font-style: italic;
  color: var(--muted);
}

body.public-website-doc .prose {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
}

body.public-website-doc .prose+.prose {
  margin-top: 1.2rem;
}

body.public-website-doc .prose strong {
  color: var(--text);
  font-weight: 400;
}

body.public-website-doc .prose a,
body.public-website-doc .cb-val a {
  color: var(--accent);
  text-decoration: none;
}

body.public-website-doc .prose a:hover,
body.public-website-doc .cb-val a:hover {
  text-decoration: underline;
}

body.public-website-doc .doc-prose-mt-sm {
  margin-top: 1.2rem;
}

body.public-website-doc .doc-prose-mt-md {
  margin-top: 1.4rem;
}

body.public-website-doc .doc-prose-mt-lg {
  margin-top: 1.8rem;
}

body.public-website-doc .doc-prose-mt-xl {
  margin-top: 2rem;
}

body.public-website-doc .def-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

body.public-website-doc .def-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  font-size: .88rem;
}

body.public-website-doc .def-item:last-child {
  border-bottom: 1px solid var(--border);
}

body.public-website-doc .def-term {
  color: var(--text);
  font-weight: 400;
  padding-top: .05rem;
}

body.public-website-doc .def-desc {
  color: var(--muted);
  line-height: 1.7;
}

body.public-website-doc .doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.2rem;
}

body.public-website-doc .doc-list li {
  font-size: .88rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  line-height: 1.6;
}

body.public-website-doc .doc-list li::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--doc-accent);
  flex-shrink: 0;
  margin-top: .75rem;
}

body.public-website-doc .doc-list li strong {
  color: var(--text);
  font-weight: 400;
}

body.public-website-doc .doc-list.sub {
  margin-top: .6rem;
  padding-left: 1.5rem;
}

body.public-website-doc .doc-list.sub li::before {
  background: var(--dim);
  width: 10px;
}

body.public-website-doc .highlight-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-left: 2px solid var(--doc-accent);
  border-radius: 2px;
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
}

[data-theme="light"] body.public-website-doc .highlight-box,
[data-theme="light"] body.public-website-doc .contact-box {
  background: var(--s1);
}

body.public-website-doc .highlight-box p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75;
}

body.public-website-doc .highlight-box p strong {
  color: var(--text);
  font-weight: 400;
}

body.public-website-doc .highlight-box.accent {
  border-left-color: var(--accent);
}

body.public-website-doc .highlight-box.danger {
  border-left-color: #e04040;
  background: rgba(224, 64, 64, .04);
}

body.public-website-doc .rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 1.8rem;
}

body.public-website-doc .right-card {
  background: var(--bg);
  padding: 1.6rem;
  transition: background .25s;
}

body.public-website-doc .right-card:hover {
  background: var(--s1);
}

body.public-website-doc .right-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

body.public-website-doc .right-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--doc-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.public-website-doc .right-title {
  font-family: var(--Fd);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: .4rem;
}

body.public-website-doc .right-desc {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.65;
}

body.public-website-doc .update-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warm);
  border: 1px solid rgba(196, 163, 90, .25);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

body.public-website-doc .update-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm);
}

body.public-website-doc .contact-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

body.public-website-doc .cb-label {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

body.public-website-doc .cb-val {
  font-family: var(--Fd);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

body.public-website-doc .cb-val-detail {
  font-size: .9rem;
  font-family: var(--Fb);
  line-height: 1.5;
}

body.public-website-doc .plan-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: .82rem;
}

body.public-website-doc .plan-compare th {
  padding: .9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

body.public-website-doc .plan-compare th.hl {
  color: var(--warm);
}

body.public-website-doc .plan-compare td {
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

body.public-website-doc .plan-compare td:first-child {
  color: var(--text);
}

body.public-website-doc .plan-compare td.hl {
  background: rgba(196, 163, 90, .03);
}

body.public-website-doc .plan-compare tr:last-child td {
  border-bottom: none;
}

body.public-website-doc[data-page="privacy"] {
  --doc-accent: var(--accent);
}

body.public-website-doc[data-page="privacy"] .porb1 {
  width: 45vw;
  height: 45vw;
  top: -10vh;
  right: -5vw;
  background: radial-gradient(circle, rgba(232, 83, 10, .05) 0%, transparent 70%);
}

body.public-website-doc[data-page="privacy"] .phero-grid {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 20% 60%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 20% 60%, black 10%, transparent 75%);
}

body.public-website-doc[data-page="privacy"] .phero-wm {
  right: -2vw;
  font-size: 18vw;
  color: rgba(232, 83, 10, .016);
}

body.public-website-doc[data-page="privacy"] .doc-list li::before,
body.public-website-doc[data-page="privacy"] .right-icon svg,
body.public-website-doc[data-page="privacy"] .cb-val a {
  color: var(--accent);
}

[data-theme="light"] body.public-website-doc[data-page="privacy"] .right-card {
  background: var(--bg);
}

body.public-website-doc[data-page="terms"] {
  --doc-accent: var(--warm);
  --doc-progress-transition: .08s linear;
}

body.public-website-doc[data-page="terms"] .porb1 {
  width: 45vw;
  height: 45vw;
  top: -10vh;
  left: -5vw;
  background: radial-gradient(circle, rgba(196, 163, 90, .05) 0%, transparent 70%);
}

body.public-website-doc[data-page="terms"] .porb2 {
  width: 35vw;
  height: 35vw;
  bottom: -5vh;
  right: -4vw;
  background: radial-gradient(circle, rgba(232, 83, 10, .04) 0%, transparent 70%);
}

body.public-website-doc[data-page="terms"] .phero-grid {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 55%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 55%, black 10%, transparent 75%);
}

body.public-website-doc[data-page="terms"] .phero-wm {
  left: -2vw;
  font-size: 16vw;
  color: rgba(196, 163, 90, .018);
}

body.public-website-doc[data-page="terms"] .toc-link {
  padding: .42rem 0;
  font-size: .73rem;
}

body.public-website-doc[data-page="terms"] .toc-sibling:hover {
  color: var(--accent);
}

body.public-website-doc[data-page="terms"] .def-item {
  grid-template-columns: 200px 1fr;
}

body.public-website-doc[data-page="terms"] .def-term {
  font-family: var(--Fd);
  font-size: 1rem;
}

@media(max-width:1000px) {
  body.public-website-doc .doc-layout {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  body.public-website-doc .doc-sidebar {
    display: none;
  }

  body.public-website-doc .doc-content {
    padding: 3rem 0 6rem;
  }

  body.public-website-doc .rights-grid,
  body.public-website-doc .contact-box,
  body.public-website-doc .def-item,
  body.public-website-doc[data-page="terms"] .def-item {
    grid-template-columns: 1fr;
  }

  body.public-website-doc .def-item {
    gap: .4rem;
  }
}

@media(max-width:900px) {
  body.public-website-doc nav {
    padding: 1.4rem 1.5rem;
  }

  body.public-website-doc .nlinks {
    display: none;
  }
}
