/* kleto-next inner pages: about, contact, legal and 404.
   Loaded after site.css and built only from its tokens and parts. The page
   head reuses .hero (rise in, aura) without the scene. */

.page-head { padding-bottom: 72px; }
.page-head h1 { max-width: 11em; font-size: clamp(44px, 8vw, 88px); line-height: .98; letter-spacing: -.045em; }
.page-head .hero-sub { max-width: 34em; }
.page-head h1 + .hero-sub { margin-top: 24px; }
.page-head .ctas { margin-top: 36px; }
@media (min-width: 900px) { .page-head { padding: 96px 0 120px; } }
.page-head + .section { padding-top: 64px; }
.nav-links a[aria-current="page"] { color: var(--white); }

/* A panel is the plan card surface for anything that is not a plan. */
.panel {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background-color: var(--surface);
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(177,140,255,.09), rgba(124,247,255,.03) 40%, transparent 65%);
}
@media (min-width: 700px) { .panel { padding: 40px; } }
.panel-glow { box-shadow: -26px 20px 80px -54px rgba(124,247,255,.32), 26px 30px 90px -54px rgba(177,140,255,.5), 0 0 60px -30px rgba(177,140,255,.22); }

/* About: two people on the pillar columns. */
@media (min-width: 900px) { .pillars--two { grid-template-columns: repeat(2, 1fr); } }
.pillar .where { margin: 0 0 24px; font: 400 11px/1.4 'Space Mono', ui-monospace, monospace; letter-spacing: .03em; color: var(--dim); }
.pillar .bio { color: var(--ink); max-width: 30em; }
.pillar .bio + .bio { margin-top: 12px; }
.statement { display: grid; gap: 24px; max-width: 46em; font-size: clamp(22px, 3vw, 32px); line-height: 1.25; letter-spacing: -.02em; }
.statement p:not(:first-child) { color: var(--muted); }
.cta-band .ctas { justify-content: center; margin-top: 0; }

/* Contact: form beside the fastest routes. */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; } }
.form { display: grid; gap: 24px; }
.form-row { display: grid; gap: 24px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 10px; }
.field > label, .field > legend, .field-label { font: 400 11px/1 'Space Mono', ui-monospace, monospace; letter-spacing: .03em; color: var(--muted); }
.field .opt { color: var(--dim); }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { border-color: #444; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 1px var(--white), 0 0 28px -8px rgba(177,140,255,.6); }
fieldset.field { border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices .tag { cursor: pointer; }
.choices .tag input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choices .tag:has(> input:focus-visible) { outline: 2px solid var(--white); outline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-foot { grid-template-columns: auto 1fr; align-items: center; gap: 24px; } }
.form-foot .plan-note { margin: 0; text-align: left; }
.form-status { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: rgba(124,247,255,.4); box-shadow: 0 0 30px -12px rgba(124,247,255,.5); }
.form-status a { border-bottom: 1px solid var(--line-2); }
.form-status a:hover { border-color: var(--white); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.routes { display: grid; gap: 16px; }
.routes h2 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 10px; }
.routes .panel > p { color: var(--muted); }
.routes .panel .btn { margin-top: 24px; }
.facts { display: grid; }
.facts div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font: 400 11px/1 'Space Mono', ui-monospace, monospace; letter-spacing: .03em; color: var(--dim); }
.facts dd { font-size: 15px; }
.facts a { border-bottom: 1px solid var(--line-2); }
.facts a:hover { border-color: var(--white); }

/* Legal and articles: one reading column with a quiet side rail. */
.doc-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .doc-grid { grid-template-columns: 220px minmax(0, 720px); gap: 80px; } }
.doc-rail { display: grid; gap: 20px; align-content: start; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .doc-rail { position: sticky; top: 96px; } }
.doc-rail nav { display: grid; gap: 10px; }
.doc-rail nav a { color: var(--dim); transition: color .2s; }
.doc-rail nav a:hover, .doc-rail nav a[aria-current="page"] { color: var(--white); }
.prose { font-size: 17px; line-height: 1.7; color: #cfcfcf; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; color: var(--white); }
.prose h3 { margin-top: 36px; font-size: 18px; font-weight: 500; color: var(--white); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose strong { color: var(--white); font-weight: 500; }
.prose a { color: var(--white); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--white); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose blockquote { padding-left: 20px; border-left: 1px solid; border-image: var(--iri) 1; color: var(--ink); }
.prose code { font: 400 .88em 'Space Mono', ui-monospace, monospace; padding: 2px 6px; border-radius: 6px; background: var(--raise); }
.prose pre { overflow-x: auto; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.prose pre code { padding: 0; background: none; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }

/* 404: one centred statement. */
.lost { min-height: calc(100vh - 64px - 160px); display: grid; align-content: center; justify-items: center; text-align: center; padding: 72px 0; }
.lost h1 { margin: 0 auto; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -.045em; }
.lost .hero-sub { margin: 20px auto 0; }
.lost .ctas { justify-content: center; }
.lost .code { font-size: clamp(96px, 22vw, 220px); font-weight: 500; letter-spacing: -.07em; line-height: .9; margin-bottom: 8px; }
