/* ============================================================
   Voxel — inner page styles (about, legal, contact, status, …)
   Builds on the tokens in styles.css.
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero {
  padding: 150px 0 56px;
  position: relative;
  text-align: center;
}
.page-hero .container { max-width: 820px; }
.crumbs {
  display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-dim); margin-bottom: 22px;
}
.page-hero.left .crumbs { justify-content: flex-start; }
.crumbs a { color: var(--text-soft); transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--brand); }
.crumbs span.sep { opacity: .5; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  letter-spacing: -.03em;
  margin-top: 16px;
}
.page-hero h1 .accent { color: var(--brand); font-style: italic; }
.page-lead {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  margin: 18px auto 0;
  max-width: 600px;
  line-height: 1.7;
}
.page-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--text-dim);
}
.page-hero.left { text-align: left; }
.page-hero.left .container { max-width: var(--maxw); }
.page-hero.left .page-lead { margin-inline: 0; }
.page-hero.left .crumbs { margin-bottom: 22px; }

/* ---------- Callout / disclaimer ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--brand-soft);
  background: var(--brand-tint);
  margin-bottom: 36px;
}
.callout__icon { flex: none; color: var(--brand); margin-top: 1px; }
.callout__icon svg { width: 22px; height: 22px; }
.callout h3 { font-size: 1rem; margin-bottom: 5px; font-family: var(--font-sans); font-weight: 600; }
.callout p { color: var(--text-soft); font-size: .92rem; line-height: 1.65; margin: 0; }
.callout a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal layout (TOC + prose) ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.toc {
  position: sticky; top: 110px;
  display: grid; gap: 2px;
}
.toc__title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dim); font-weight: 600; margin-bottom: 10px;
}
.toc a {
  display: block; padding: 7px 12px; border-radius: 9px;
  font-size: .86rem; color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.toc a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-tint); }

/* ---------- Prose ---------- */
.prose { max-width: 740px; }
.prose h2 {
  font-size: 1.4rem; letter-spacing: -.02em; margin: 40px 0 14px;
  scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 10px; font-family: var(--font-sans); font-weight: 600; }
.prose p { color: var(--text-soft); margin-bottom: 16px; line-height: 1.78; }
.prose ul { margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul li {
  position: relative; padding-left: 24px; color: var(--text-soft); line-height: 1.7;
}
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .8;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.prose .small { font-size: .86rem; color: var(--text-dim); }

/* credit / SLA table */
.table-wrap { overflow-x: auto; margin: 8px 0 22px; }
.ltable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ltable th, .ltable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ltable th { color: var(--text); font-weight: 600; font-size: .82rem; }
.ltable td { color: var(--text-soft); }
.ltable tr:last-child td { border-bottom: none; }

/* ---------- Generic content grid (about values, kb categories) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile-grid.two { grid-template-columns: repeat(2, 1fr); }

/* About story */
.story { max-width: 760px; margin-inline: auto; }
.story p { color: var(--text-soft); font-size: 1.05rem; line-height: 1.8; margin-bottom: 18px; }
.story p:first-of-type::first-letter {
  font-family: var(--font-head); font-size: 3.1rem; font-weight: 700;
  float: left; line-height: .82; margin: 6px 12px 0 0; color: var(--brand);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.form-card, .contact-aside {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-lg); padding: 30px;
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: .94rem; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-soft); background: var(--surface-2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-method { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-method:last-child { border-bottom: none; }
.contact-method__ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
  color: var(--brand); display: grid; place-items: center;
}
.contact-method__ico svg { width: 19px; height: 19px; }
.contact-method h4 { font-size: .96rem; font-family: var(--font-sans); font-weight: 600; }
.contact-method p { color: var(--text-soft); font-size: .88rem; }
.contact-method a { color: var(--brand); }

/* ---------- Status page ---------- */
.status-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 26px; border-radius: var(--radius-lg);
  border: 1px solid rgba(123, 227, 160, .25);
  background: linear-gradient(180deg, rgba(123,227,160,.08), var(--surface));
  margin-bottom: 26px;
}
.status-banner .pulse {
  flex: none; width: 14px; height: 14px; border-radius: 50%; background: #7be3a0;
  box-shadow: 0 0 0 0 rgba(123,227,160,.5); animation: pulse 2.4s infinite;
}
.status-banner h2 { font-size: 1.25rem; margin-bottom: 2px; }
.status-banner p { color: var(--text-soft); font-size: .9rem; }
.status-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.status-row { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: none; }
.status-row .name { font-weight: 500; }
.status-row .uptime { margin-left: auto; font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim); }
.status-row .pill-ok {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: #7be3a0; font-weight: 600;
}
.status-row .pill-ok i { width: 7px; height: 7px; border-radius: 50%; background: #7be3a0; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.post-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.post-card__thumb { height: 150px; position: relative; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__tag { font-size: .72rem; color: var(--brand); font-weight: 600; }
.post-card h3 { font-size: 1.08rem; line-height: 1.3; }
.post-card p { color: var(--text-soft); font-size: .9rem; line-height: 1.6; }
.post-card__meta { margin-top: auto; padding-top: 12px; font-size: .8rem; color: var(--text-dim); }

/* ---------- Careers ---------- */
.role-list { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.role {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-lg);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.role:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.role__info h3 { font-size: 1.08rem; }
.role__info p { color: var(--text-dim); font-size: .86rem; margin-top: 3px; }
.role__tags { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tagchip {
  font-size: .76rem; color: var(--text-soft); padding: 6px 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--bg-soft);
}

/* ---------- Knowledge base ---------- */
.kb-search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto 8px;
  padding: 14px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
}
.kb-search svg { width: 19px; height: 19px; color: var(--text-dim); flex: none; }
.kb-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: .96rem; }
.kb-search input::placeholder { color: var(--text-dim); }
.kb-cat { padding: 28px; }
.kb-cat .feature__icon { margin-bottom: 16px; }
.kb-cat h3 { font-size: 1.1rem; margin-bottom: 8px; }
.kb-cat p { color: var(--text-soft); font-size: .92rem; margin-bottom: 14px; }
.kb-cat .links { display: grid; gap: 8px; }
.kb-cat .links a { font-size: .88rem; color: var(--text-soft); transition: color .3s var(--ease), transform .3s var(--ease); }
.kb-cat .links a:hover { color: var(--brand); transform: translateX(3px); }

/* ---------- Auth (login / signup) ---------- */
.auth-wrap {
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 140px 0 80px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 38px 34px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.auth-card .brand { justify-content: center; display: flex; padding-left: 0; margin-bottom: 22px; }
.auth-card h1 { font-size: 1.55rem; text-align: center; letter-spacing: -.02em; }
.auth-card .auth-sub { color: var(--text-soft); font-size: .94rem; text-align: center; margin: 8px 0 26px; line-height: 1.6; }
.auth-alt {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-dim); font-size: .78rem; margin: 20px 0;
}
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; color: var(--text-dim); font-size: .88rem; margin-top: 22px; }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-note { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--text-dim); }
.auth-note.ok { color: var(--brand); }
.field .hint-row { display: flex; justify-content: space-between; align-items: center; }
.field .hint-row a { font-size: .8rem; color: var(--text-dim); font-weight: 500; }
.field .hint-row a:hover { color: var(--brand); }

/* ---------- 404 ---------- */
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 150px 0 80px; }
.notfound .big {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(160deg, var(--text), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: 1.6rem; margin: 10px 0 12px; }
.notfound p { color: var(--text-soft); max-width: 420px; margin: 0 auto 28px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .toc__title { width: 100%; }
  .toc a { border-left: none; }
  .toc a.active { border-left: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid, .tile-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .post-grid, .tile-grid, .tile-grid.two { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .role { flex-direction: column; align-items: flex-start; }
  .role__tags { margin-left: 0; }
}
