/* =========================================================
   Krevon — inner pages (loaded after styles.css)
   ========================================================= */

/* ---------- Page header ---------- */
.page-top {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(44px, 6vw, 72px);
}
.page-top::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: min(640px, 100%);
  background:
    radial-gradient(60% 90% at 50% -10%, rgba(146, 198, 242, .55), rgba(188, 220, 247, .22) 48%, transparent 74%);
  pointer-events: none;
}
.page-top--center { text-align: center; }
.page-top--center .page-lead, .page-top--center .page-actions { margin-inline: auto; justify-content: center; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.page-top--center .crumbs { justify-content: center; }
.crumbs a { color: var(--text); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { color: var(--faint); }

.page-title {
  font-size: clamp(40px, 6.2vw, 80px);
  font-weight: 500; line-height: 1; letter-spacing: -.048em;
  text-wrap: balance;
}
.page-title .muted { color: var(--muted); }
.page-lead {
  max-width: 660px; margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--text);
  text-wrap: pretty;
}
.page-meta { margin-top: 18px; font-size: 13px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- Small helpers ---------- */
.link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(24, 114, 204, .35); transition: text-decoration-color .2s var(--ease); }
.link:hover { text-decoration-color: var(--brand); }
.block-note { margin-top: 22px; font-size: 14px; line-height: 1.6; color: var(--text); }
.block-note--center { text-align: center; }
.grid-1 { display: grid; gap: 12px; }
.mini-title { margin-bottom: 4px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.aside-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--text); }
.feature h3 small { font-size: 12.5px; font-weight: 400; }
.feature--ink h3 small { color: rgba(255, 255, 255, .55); }
.split__aside .timeline { margin-top: 8px; }
.split__aside .needs { margin-top: 8px; }
.company { margin-top: 28px; }
.company small { display: block; font-size: 12.5px; color: var(--muted); }
.company p { margin-top: 4px; font-size: 15.5px; }
.officer__lines { display: grid; gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.officer__lines div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 14px; }
.officer__lines dt { color: var(--muted); }
.officer__lines dd { margin: 0; }
.officer__steps { margin-top: 28px; }

/* ---------- Generic blocks ---------- */
.block { padding-block: clamp(56px, 7vw, 104px); }
.block--flush { padding-top: 0; }
.block-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.block-head--center { margin-inline: auto; text-align: center; }
.block-head p:not(.eyebrow) { margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: var(--text); }

.panel {
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(10, 10, 12, .04);
}
.feature__ico {
  width: 44px; height: 44px; margin-bottom: 22px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--sky-50); color: var(--sky-700);
  font-size: 20px;
}
.feature h3 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.feature p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.feature--ink { background: var(--ink); color: #fff; }
.feature--ink p { color: rgba(255, 255, 255, .7); }
.feature--ink .feature__ico { background: rgba(255, 255, 255, .1); color: #fff; }
.feature--sky { background: linear-gradient(160deg, #e2effc, #b9d9f6); }
.feature--sky p { color: #24609c; }
.feature--sky h3 { color: var(--sky-800); }
.feature--sky .feature__ico { background: rgba(255, 255, 255, .7); }

/* Numbered timeline */
.timeline { counter-reset: t; }
.timeline > li {
  counter-increment: t;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.timeline > li::before {
  content: counter(t, decimal-leading-zero);
  padding-top: 3px;
  font-family: var(--mono); font-size: 13px; color: var(--eyebrow);
}
.timeline h3 { font-size: 17.5px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.timeline p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.panel .timeline > li:first-child { border-top: 0; padding-top: 0; }
.panel .timeline > li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Two-column section with a sticky intro */
.split {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.split__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.split__aside .h2 { font-size: clamp(28px, 3.2vw, 42px); }
.split__aside p:not(.eyebrow) { margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--text); max-width: 42ch; }
.split__aside .btn { margin-top: 26px; }

/* Stat / key facts row */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px rgba(10, 10, 12, .04); }
.fact b { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.fact span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--text); line-height: 1.5; }

/* Call-to-action strip */
.strip {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: linear-gradient(130deg, #2a8ce6 0%, #1872cc 60%, #135ea9 100%);
  color: #fff;
}
.strip::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
}
.strip h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.strip p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .8); max-width: 52ch; }
.strip__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* ---------- Legal / long-form documents ---------- */
.doc {
  display: grid; grid-template-columns: 230px minmax(0, 740px);
  gap: clamp(32px, 7vw, 112px);
}
.toc { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; font-size: 13.5px; }
.toc p { margin-bottom: 12px; font-size: 12px; font-weight: 500; color: var(--muted); }
.toc ol { border-left: 1px solid var(--line); }
.toc a {
  display: block; margin-left: -1px; padding: 6px 0 6px 16px;
  border-left: 1.5px solid transparent;
  color: var(--text); line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); }

.prose { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h2 {
  margin-top: 56px;
  font-size: 23px; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 17px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 5px; top: .7em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky-500);
}
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; position: relative; padding-left: 30px; }
.prose ol > li::before {
  content: counter(n); position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-50); color: var(--sky-700);
  font-family: var(--mono); font-size: 11px; line-height: 1;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(24, 114, 204, .35); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { font-weight: 500; color: var(--ink); }

.table-wrap {
  margin-block: 18px; overflow-x: auto;
  border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.table th { font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface-2); }
.table td:first-child { font-weight: 500; color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  margin-block: 20px; padding: 16px 18px;
  border-radius: 16px;
  background: var(--sky-50); color: var(--sky-800);
  font-size: 14.5px; line-height: 1.6;
}
.callout .icon { flex: none; margin-top: 3px; font-size: 18px; }

/* Values the owner still has to fill in before launch */
.tbd { color: var(--text); border-bottom: 1px dashed var(--faint); white-space: nowrap; }

.contact-card {
  display: grid; gap: 4px;
  padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: 0 0 0 1px rgba(10, 10, 12, .04);
}
.contact-card .icon { font-size: 20px; color: var(--sky-700); margin-bottom: 12px; }
.contact-card small { font-size: 12.5px; color: var(--muted); }
.contact-card b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.contact-card p { font-size: 14px; color: var(--text); line-height: 1.55; }
.contact-card a { color: var(--brand); }

/* ---------- Forms on pages ---------- */
.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(10, 10, 12, .04), 0 40px 80px -48px rgba(12, 40, 80, .4);
}
.form-card__head { margin-bottom: 26px; }
.form-card__head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.form-card__head p { margin-top: 8px; font-size: 14.5px; color: var(--text); line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .btn--block { margin-top: 6px; }


.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label {
  display: grid; gap: 2px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.radios label small { font-size: 12.5px; font-weight: 400; color: var(--text); }
.radios label:hover { border-color: var(--faint); }
.radios input:checked + label { border-color: var(--brand); background: var(--sky-50); box-shadow: 0 0 0 1px var(--brand); }
.radios input:focus-visible + label { outline: 2px solid var(--sky-500); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.55; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid #d64545; outline-offset: 2px; }
.check a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.form-done { padding: 12px 0; text-align: center; display: grid; justify-items: center; }
.form-done h2 { margin-top: 20px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -.03em; }
.form-done h2:focus { outline: none; }
.form-done p { margin-top: 10px; max-width: 42ch; font-size: 15px; color: var(--text); line-height: 1.6; }
.form-done .btn { margin-top: 26px; }

/* What-you-need checklist next to forms */
.needs { display: grid; gap: 10px; margin-top: 22px; }
.needs li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.needs .icon { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--sky-50); color: var(--sky-700); }

/* ---------- Help ---------- */
.help-search {
  position: relative; max-width: 580px; margin: 34px auto 0;
}
.help-search .icon {
  position: absolute; left: 22px; top: 50%; translate: 0 -50%;
  font-size: 19px; color: var(--muted); pointer-events: none;
}
.help-search input {
  width: 100%; height: 60px; padding: 0 120px 0 54px;
  border: 0; border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(12, 40, 80, .4);
  font-size: 16px; color: var(--ink);
  transition: box-shadow .25s var(--ease);
}
.help-search input::placeholder { color: var(--muted); }
.help-search input:focus { outline: none; box-shadow: 0 0 0 2px var(--brand), 0 24px 50px -30px rgba(12, 40, 80, .4); }
.help-search input::-webkit-search-cancel-button { display: none; }
.help-search [data-faq-count] {
  position: absolute; right: 22px; top: 50%; translate: 0 -50%;
  font-size: 13px; color: var(--muted);
}
.help-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

.faq-groups { max-width: 860px; margin-inline: auto; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
  font-size: 21px; font-weight: 500; letter-spacing: -.025em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.faq-group h2 .icon { font-size: 20px; color: var(--sky-700); }
.faq-empty { padding: 48px 0; text-align: center; color: var(--text); }
.faq-empty b { display: block; font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }

/* ---------- 404 ---------- */
.lost {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 80px;
  color: #fff; text-align: center;
}
.lost img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.lost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(28, 124, 220, .55) 40%, rgba(10, 40, 80, .45));
}
.lost__code { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; opacity: .85; }
.lost h1 { margin-top: 14px; font-size: clamp(40px, 7vw, 88px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.lost p { max-width: 46ch; margin: 18px auto 0; font-size: 16px; color: rgba(255, 255, 255, .88); }
.lost .page-actions { justify-content: center; }
.page--lost .footer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px rgba(10, 10, 12, .04); }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; gap: 0 16px; }
  .toc a { padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .grid-2, .grid-4, .facts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .radios { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .timeline > li { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .prose { font-size: 15px; }
  .prose h2 { margin-top: 44px; font-size: 21px; }
  .help-search input { height: 54px; padding-right: 96px; }
  .page-actions .btn { flex: 1 1 auto; }
  .tbd { white-space: normal; }
}
