/* =========================================================
   FUELSTATE — Subpage styles
   Editorial doc layout: sticky sidebar TOC, oversized section
   numbers, hairline rules, no card-everywhere energy.
   ========================================================= */

/* Alias the landing-page variables so subpage rules pick up the
   same matte base color without adding extra atmospheric layers. */
:root {
  --bg: var(--bg-0);
}

body.subpage {
  background: var(--bg-0);
  color: var(--ink-1);
}

body.subpage::before,
body.subpage::after {
  display: none;
}

/* =========================================================
   Hero / page header — full-width, container-aligned to match landing
   ========================================================= */

.subpage-hero {
  padding: 100px 0 20px;
  position: relative;
}

.subpage-hero::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--hairline);
  margin-top: 24px;
}

.doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 16px;
}

.doc-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-1);
}

.doc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink-0);
  margin: 0 0 18px;
  max-width: 14ch;
  text-wrap: balance;
}

.doc-meta-row {
  display: flex;
  align-items: baseline;
  gap: 48px;
  flex-wrap: wrap;
  font-family: 'Space Grotesk', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.doc-meta-row .meta-label {
  color: var(--ink-3);
  margin-right: 10px;
}
.doc-meta-row .meta-value {
  color: var(--ink-1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: 13.5px;
  text-transform: none;
}
.doc-meta-row a.meta-value {
  color: var(--gold-1);
  border-bottom: 1px solid rgba(245, 205, 106, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.doc-meta-row a.meta-value:hover {
  color: var(--gold-0);
  border-bottom-color: var(--gold-1);
}

@media (max-width: 720px) {
  .subpage-hero { padding: 88px 0 24px; }
  .subpage-hero::after { margin-top: 24px; }
  .doc-meta-row { gap: 24px; }
}

/* =========================================================
   Two-column body: sticky sidebar TOC + article
   ========================================================= */

.doc-shell {
  padding: 32px 0 80px;
}

.doc-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 920px) {
  .doc-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Sidebar TOC */
.doc-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  /* Hide scrollbar visually but keep it scrollable when overflowing */
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}
.doc-toc::-webkit-scrollbar { width: 6px; }
.doc-toc::-webkit-scrollbar-track { background: transparent; }
.doc-toc::-webkit-scrollbar-thumb {
  background: var(--hairline-strong);
  border-radius: 3px;
}

.doc-toc-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.doc-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.doc-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
  border-left: 1px solid transparent;
  padding-left: 14px;
  margin-left: -14px;
  transition: color 0.2s, border-color 0.2s;
}
.doc-toc-list a:hover {
  color: var(--ink-1);
  border-left-color: var(--gold-1);
}
.doc-toc-list a.is-active {
  color: var(--gold-1);
  border-left-color: var(--gold-1);
}

.doc-toc-list .toc-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .doc-toc {
    position: static;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
  }
  .doc-toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
  }
}

@media (max-width: 540px) {
  .doc-toc-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Article — editorial section blocks
   ========================================================= */

.article { max-width: 680px; }

.article > section {
  padding: 0 0 36px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
}

.article > section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--gold-1);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

.section-body { min-width: 0; }

@media (max-width: 540px) {
  .article > section { grid-template-columns: 1fr; gap: 12px; }
  .section-num {
    padding-top: 0;
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }
}

.article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ink-0);
  margin: 0 0 16px;
  text-wrap: balance;
}

.article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink-0);
  margin: 22px 0 10px;
}

.article p {
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.article p:last-child { margin-bottom: 0; }

.article strong {
  color: var(--ink-1);
  font-weight: 600;
}

.article a {
  color: var(--gold-1);
  border-bottom: 1px solid rgba(245, 205, 106, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
.article a:hover {
  color: var(--gold-0);
  border-bottom-color: var(--gold-1);
}

.article ul,
.article ol {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.article li {
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 6px;
  padding-left: 20px;
  position: relative;
}

.article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--gold-1);
}

.article code {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink-1);
}

/* Lede paragraph — first section, larger */
.article .lede {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-1);
  margin: 0 0 18px;
}

/* Pull-quote callout (used sparingly for principles) */
.principle {
  border-left: 1px solid var(--gold-1);
  padding: 4px 0 4px 20px;
  margin: 6px 0 18px;
}
.principle p {
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-1);
  margin: 0;
}

/* Definition list — clean key/value pairs */
.def-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px 32px;
  margin: 0 0 24px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.def-list dt {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.def-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.def-list dd strong {
  display: block;
  color: var(--ink-1);
  font-weight: 600;
  margin-bottom: 2px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
}
@media (max-width: 540px) {
  .def-list { grid-template-columns: 1fr; gap: 4px 0; padding: 20px 0; }
  .def-list dt { padding-top: 12px; }
  .def-list dt:first-of-type { padding-top: 0; }
}

/* =========================================================
   Support page
   ========================================================= */

.support-shell {
  padding: 0 0 64px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 56px;
}

@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
}

.support-card {
  display: block;
  background: var(--bg);
  padding: 40px 36px;
  text-decoration: none;
  position: relative;
  transition: background 0.3s var(--ease);
}
.support-card:hover { background: rgba(255, 255, 255, 0.015); }

.support-card .num {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 24px;
}

.support-card .title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--ink-0);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.support-card:hover .title { color: var(--gold-1); }

.support-card .title-arrow {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease), color 0.2s;
  display: inline-block;
}
.support-card:hover .title-arrow {
  transform: translateX(6px);
  color: var(--gold-1);
}

.support-card .desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
}

/* FAQ */
.faq-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
@media (max-width: 920px) {
  .faq-block { grid-template-columns: 1fr; gap: 32px; }
}

.faq-eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 12px;
}

.faq-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  margin: 0;
  text-wrap: balance;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }

.faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--ink-0);
  margin: 0 0 12px;
  text-wrap: balance;
}

.faq-a {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 60ch;
}
.faq-a a {
  color: var(--gold-1);
  border-bottom: 1px solid rgba(245, 205, 106, 0.3);
}

/* Contact band — centered, compact */
.contact-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
@media (max-width: 720px) {
  .contact-band { padding: 28px 0; gap: 14px; }
}

.contact-band-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin: 0 0 4px;
}
.contact-band-text p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-0);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.contact-btn:hover {
  background: var(--gold-1);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(229, 181, 71, 0.4);
}

/* =========================================================
   Delete page
   ========================================================= */

.delete-shell {
  padding: 32px 0 80px;
}

.delete-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 860px) {
  .delete-grid { grid-template-columns: 1fr; gap: 56px; }
}

.delete-info { max-width: 480px; }

.data-block { margin-bottom: 40px; }

.data-block-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.data-block.danger .data-block-label { color: #E05252; }

.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.data-list li {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.data-list li:last-child { border-bottom: none; }

.data-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E05252;
  display: inline-block;
  transform: translateY(2px);
}
.data-list.kept li::before {
  background: var(--ink-3);
  width: 6px;
  height: 1px;
  border-radius: 0;
  transform: translateY(7px);
}

/* Delete form — sits in right column */
.delete-form-block {
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  padding: 36px 36px 32px;
  background: rgba(255, 255, 255, 0.015);
}

.delete-form-block .form-eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 14px;
}

.delete-form-block h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin: 0 0 10px;
  text-wrap: balance;
}

.delete-form-block .form-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 28px;
}

.delete-form label {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}

.delete-form input[type="email"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  color: var(--ink-0);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.delete-form input[type="email"]::placeholder { color: var(--ink-3); }
.delete-form input[type="email"]:focus {
  border-color: rgba(245, 205, 106, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.delete-form button[type="submit"] {
  width: 100%;
  margin-top: 14px;
  background: #E05252;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.delete-form button[type="submit"]:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(224, 82, 82, 0.5);
}
.delete-form button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.delete-success {
  display: none;
  padding: 32px 0 8px;
  border-top: 1px solid rgba(245, 205, 106, 0.4);
  margin-top: 4px;
}
.delete-success.is-visible { display: block; }
.delete-success .success-eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin: 0 0 14px;
}
.delete-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin: 0 0 12px;
}
.delete-success p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

.delete-alt-band {
  margin-top: 24px;
  padding: 18px 24px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: left;
}
.delete-alt-band strong {
  color: var(--ink-0);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

/* =========================================================
   Page nav: subpages share the homepage's auto-hide behavior
   (handled in subpage.js). No override needed here — the .nav
   element starts hidden via styles.css and gets .visible toggled
   on by the script.
   ========================================================= */

.subpage .nav-pill {
  width: fit-content;
  max-width: min(100%, var(--max));
  margin: 0;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(6, 9, 14, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

/* Back-to-home link reads differently from peer links — softer,
   and the arrow sits tight to the label. */
.nav-pill .nav-back {
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-pill .nav-back:hover { color: var(--ink-0); }
.nav-pill .nav-back .arrow {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}
.nav-pill .nav-back:hover .arrow { transform: translateX(-3px); }

/* Subtle separator between the back link and the section group */
.nav-pill .nav-divider {
  width: 1px;
  height: 16px;
  background: var(--hairline-strong);
  margin: 0 4px;
  flex: 0 0 auto;
}

.subpage .nav-pill a.is-active {
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.06);
}

.subpage .nav-pill a.is-active::before {
  display: none;
}

.subpage .nav-pill a.is-active:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 540px) {
  .nav-pill .nav-divider { display: none; }
  .nav-pill .nav-back { padding: 9px 10px; }
}
