/* Innotesce Context uses the site’s Geist and JetBrains Mono fonts. */

html[data-marketing] .context-page .context-hero { padding-bottom: 32px; }
html[data-marketing] .context-page .how-it-works { padding-block: 40px; }
html[data-marketing] .context-page .faq-section { padding-block: 56px; }
html[data-marketing] .context-page .ux-closing { margin-bottom: 64px; }

@media (min-width: 768px) {
  html[data-marketing] .context-page .how-it-works { padding-block: 56px; }
  html[data-marketing] .context-page .context-hero { padding-top: 48px; }
  html[data-marketing] .context-page .ux-closing { padding-block: 32px; }
}

/* Hero actions + abstract HTML-to-clean-text graphic */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--bg);
}
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus-visible { outline: 2px solid var(--lime); }

.context-hero { text-align: center; }
html[data-marketing] .context-hero .sub { margin-inline: auto; }
.context-page .context-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 24px;
}

.context-page .context-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 28px auto 0;
  max-width: 920px;
  text-align: left;
}

.context-visual .side {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 20px 20px 18px;
  min-height: 220px;
}
.context-visual .kicker {
  margin: 0 0 14px;
  font: 500 12px/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.context-visual .arrow {
  color: var(--lime);
  font: 500 22px/1 "JetBrains Mono", monospace;
}
.messy-lines, .clean-lines {
  display: grid;
  gap: 7px;
}
.messy-lines span, .clean-lines span {
  display: block;
  height: 8px;
  border-radius: 3px;
}
.messy-lines span {
  background: color-mix(in oklab, var(--ink) 22%, transparent);
  opacity: .85;
}
.messy-lines span:nth-child(odd) { width: 92%; }
.messy-lines span:nth-child(even) { width: 64%; }
.messy-lines span:nth-child(3n) { width: 78%; }
.messy-lines span.tag {
  width: 28%;
  height: 10px;
  background: color-mix(in oklab, var(--muted) 45%, transparent);
}
.messy-lines span.clutter {
  width: 100%;
  height: 22px;
  background: color-mix(in oklab, var(--muted) 18%, transparent);
  border: 1px dashed var(--line);
}
.clean-lines span {
  background: color-mix(in oklab, var(--lime) 55%, var(--ink));
  opacity: .9;
}
html[data-theme="light"] .clean-lines span {
  background: var(--lime);
  opacity: .7;
}
.clean-lines span:nth-child(1) { width: 46%; height: 10px; }
.clean-lines span:nth-child(2) { width: 88%; }
.clean-lines span:nth-child(3) { width: 80%; }
.clean-lines span:nth-child(4) { width: 24%; margin-top: 6px; height: 6px; opacity: .45; }
.clean-lines span:nth-child(5),
.clean-lines span:nth-child(6),
.clean-lines span:nth-child(7) { width: 70%; }
.clean-lines span:nth-child(6) { width: 62%; }
.clean-lines span:nth-child(7) { width: 54%; }

/* Add-on line under the 3 file cards */
.context-page .context-addon {
  margin: 12px 0 0;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.context-page .context-addon > p { margin: 0; }
.context-addon strong { font-weight: 600; }

/* Context cards size their tracks independently within each row. */
.context-page .how-it-works article.plan-card {
  display: grid;
  grid-row: auto;
  grid-template-rows: auto;
  align-content: start;
  gap: 0;
  padding: 20px;
}
.context-page .how-it-works article.plan-card > h3 { margin: 0 0 8px; }
.context-page .how-it-works article.plan-card > p { margin: 0; }
.context-page .how-it-works article.plan-card > p.plan-tag { margin-bottom: 12px; }

/* 4-step row; reuses .plan-card */
.context-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.context-page .context-steps .plan-card p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Proof stats */
.context-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}
.context-proof .context-stats .bento {
  min-height: 0;
  padding: 20px;
}
.context-stats .label {
  font: 500 12px/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.context-proof .context-stats .value {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.context-proof .lead { max-width: 720px; }

/* The FAQ fills the page container while answers keep a shorter line length. */
html[data-marketing] .context-page .faq-section .section-heading,
html[data-marketing] .context-page .faq-accordion { max-width: 1180px; }
html[data-marketing] .context-page .faq-section .section-heading { text-align: left; }
html[data-marketing] .context-page .faq-accordion summary {
  min-height: 48px;
  padding-block: 10px;
}
html[data-marketing] .context-page .faq-accordion p { max-width: 72ch; }

/* Early access form */
.context-page .ux-closing .section-heading,
.context-page .ux-closing .section-heading > p { margin-bottom: 0; }
.context-page .access-form {
  width: min(520px, 100%);
  margin: 20px auto 0;
  text-align: left;
}
.access-form h3 { margin: 0 0 16px; }
.access-form .field { margin: 0 0 16px; }
.access-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.access-form input {
  width: 100%;
  height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 Geist, Arial, sans-serif;
}
.access-form input:focus-visible,
.access-form .ux-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.access-form input[aria-invalid="true"] {
  border-color: #ffb4ab;
}
.access-form .field-error {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #ffb4ab;
}
html[data-theme="light"] .access-form .field-error,
html[data-theme="light"] .access-form input[aria-invalid="true"] {
  color: #8b1e18;
  border-color: #8b1e18;
}
html[data-theme="light"] .access-form .field-error { border-color: transparent; }
.access-form .ux-button { width: 100%; min-height: 48px; margin-top: 8px; }
.access-form .ux-button[disabled] { opacity: .7; cursor: not-allowed; }
.access-form .form-status {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.access-form.is-success .form-fields,
.access-form.is-success .ux-button { display: none; }
.access-form.is-success .form-status { color: var(--ink); }

/* Homepage entry band */
.context-entry {
  padding: 36px 40px;
  margin: 48px 0 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 32px;
  align-items: center;
}
.context-entry h2 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.context-entry p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 62ch; }
.context-entry .eyebrow { margin-bottom: 12px; }

@media (max-width: 1100px) {
  .context-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .context-page .context-visual,
  .context-steps,
  .context-stats,
  .context-entry { grid-template-columns: 1fr; }
  .context-visual .arrow { transform: rotate(90deg); justify-self: center; }
  .context-entry { padding: 24px 20px; }
  .context-entry .ux-button { justify-self: start; }
  .context-proof .context-stats .value { font-size: 24px; }
}

.site-menu-links a[aria-current="page"] {
  color: var(--ink);
}
