/* =========================================================================
   Gobazo site — document pages (home, privacy, deletion).
   Extends styles.css (shared tokens: --brand, --sp-*, --wrap-max, …).
   Self-contained: no external fonts, no CDNs. Light + dark. 360px up.
   ========================================================================= */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-m);
  max-width: 20ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-ink);
  margin: 0 0 var(--sp-xs);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 68ch;
  margin: 0 0 var(--sp-s);
}

.doc-section { padding: var(--section-pad) 0; }
.doc-section--alt { background: var(--bg-subtle); }

.doc-section h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-m);
}

.doc-section h3 {
  font-size: var(--fs-h3);
  margin: var(--sp-l) 0 var(--sp-xs);
}

.doc-section p,
.doc-section li {
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 72ch;
}

.doc-section p { margin: 0 0 var(--sp-s); }
.doc-section ul, .doc-section ol { margin: 0 0 var(--sp-s); padding-left: 1.25rem; }
.doc-section li { margin-bottom: var(--sp-2xs); }

.doc-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--brand-soft, rgba(15, 76, 129, 0.08));
  border-radius: var(--radius-s);
  padding: 0.1em 0.35em;
  word-break: break-word;
}

.note {
  border-left: 3px solid var(--brand);
  padding: var(--sp-xs) var(--sp-s);
  background: var(--surface);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.updated {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-l);
}

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-s);
}

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--sp-m);
}

.feature-card h3 { margin: 0 0 var(--sp-2xs); font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: var(--fs-sm); }

/* ---- Tables: never crush columns, scroll them ---- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--sp-m);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.doc-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--fs-sm);
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: var(--sp-xs) var(--sp-s);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}

.doc-table thead th {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.doc-table tbody tr:last-child td { border-bottom: 0; }

/* ---- Table of contents ---- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--sp-m);
  margin-bottom: var(--sp-l);
}

.toc h2 { font-size: 1rem; margin: 0 0 var(--sp-xs); }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: var(--sp-3xs); font-size: var(--fs-sm); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-l) 0;
  background: var(--bg-subtle);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  align-items: center;
  justify-content: space-between;
}

.site-footer p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  font-size: var(--fs-sm);
}

/* ---- Buttons sitting next to each other on a doc page ---- */
.doc-section .btn { margin-right: var(--sp-2xs); margin-bottom: var(--sp-2xs); }

/* ---- Steps ---- */
.steps { counter-reset: step; list-style: none; padding-left: 0; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: var(--sp-m);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- Auth affordances ---- */
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); margin: var(--sp-m) 0 0; }

.signed-in {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: 0 var(--sp-2xs);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The header wraps rather than crushing the buttons on a phone. */
.site-header__actions { flex-wrap: wrap; row-gap: var(--sp-3xs); }
