/* =========================================================
   Kainovis — inner page hero + industry solution library
   ========================================================= */

/* ---------- shared page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 68px;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 100% at 28% 0%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 28% 0%, #000 5%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -100px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 194, 0.12), transparent 64%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #65788b;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  color: #394b5b;
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero h1 .grad {
  background: linear-gradient(92deg, #eafffa 4%, #5ce1c2 58%, #8db4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero-lead {
  max-width: 660px;
  margin-top: 22px;
  color: #9dabba;
  font-size: 16px;
  line-height: 1.85;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #91a3b5;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.page-hero-meta .icon {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.page-hero--split .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
}

.page-hero-aside {
  padding-bottom: 6px;
}

.page-hero-aside p {
  padding-left: 20px;
  border-left: 1px solid rgba(92, 225, 194, 0.35);
  color: #889bac;
  font-size: 13px;
  line-height: 1.85;
}

.page-hero-aside b {
  display: block;
  margin-bottom: 5px;
  color: #c8d6e3;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

/* ---------- industry solution library ---------- */

.industry-page {
  background: var(--paper);
  color: var(--ink);
  padding: 76px 0 104px;
}

.industry-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.industry-tabs {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.industry-tabs-label {
  padding: 0 14px 12px;
  color: #969f99;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.industry-tab {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #5f6b66;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.industry-tab:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.industry-tab[aria-selected="true"] {
  border-color: #d7d4c8;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(27, 48, 44, 0.055);
}

.industry-tab-index {
  color: #a9b0aa;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.industry-tab[aria-selected="true"] .industry-tab-index {
  color: #0f766e;
}

.industry-tab-name {
  font-size: 13px;
  font-weight: 600;
}

.industry-tab .icon {
  width: 14px;
  height: 14px;
  color: #a5aea8;
}

.industry-tab[aria-selected="true"] .icon {
  color: #0f766e;
}

.industry-panels {
  min-width: 0;
}

.industry-panel[hidden] {
  display: none;
}

.industry-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #d2d9d4;
  border-radius: 13px;
  background: #f7f8f3;
  color: #0f766e;
  flex: none;
}

.panel-icon .icon {
  width: 25px;
  height: 25px;
}

.industry-panel-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.industry-panel-head p {
  max-width: 620px;
  margin-top: 7px;
  color: #6f7a75;
  font-size: 14px;
}

.pain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 30px 70px;
}

.pain-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #e0ddd2;
  border-radius: 999px;
  color: #818c86;
  font-size: 10.5px;
}

.pain-chips span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d19a54;
}

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

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #dedbd0;
  border-radius: 14px;
  background: #fbfaf6;
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #c3d8d2;
  box-shadow: 0 16px 34px rgba(27, 48, 44, 0.07);
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.project-num {
  color: #b0b6ae;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.project-cycle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #eef4f1;
  color: #4c7a71;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.project-cycle .icon {
  width: 10px;
  height: 10px;
}

.project-card h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.project-card > p {
  flex: 1;
  color: #6a7671;
  font-size: 12.5px;
  line-height: 1.8;
}

.project-meta {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8e5da;
}

.project-meta div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  font-size: 10.5px;
  line-height: 1.6;
}

.project-meta span {
  color: #a0a8a2;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.project-meta b {
  color: #4c5954;
  font-weight: 500;
}

.project-outcome {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  background: rgba(15, 118, 110, 0.055);
  color: #4c6f68;
  font-size: 10.5px;
  line-height: 1.6;
}

.project-outcome .icon {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  color: #0f766e;
}

.starter-box {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 14px;
  padding: 26px 28px;
  border-radius: 14px;
  background: linear-gradient(120deg, #10211f, #0b1718);
  color: #e4f3ef;
}

.starter-box .starter-label {
  flex: none;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.starter-box .starter-label small {
  display: block;
  color: #7fa99f;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.starter-box .starter-label b {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.starter-box p {
  flex: 1;
  color: #a5bfb8;
  font-size: 12.5px;
  line-height: 1.75;
}

.starter-box .btn {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  font-size: 12.5px;
}

.industry-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #dedbd0;
  color: #8b948e;
  font-size: 10.5px;
  line-height: 1.7;
}

.industry-disclaimer .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: #a8b0aa;
}

/* ---------- cross-industry strip ---------- */

.cross-strip {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: #080e13;
}

.cross-strip-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cross-strip-copy {
  flex: none;
  max-width: 300px;
}

.cross-strip-copy h3 {
  font-size: 17px;
  font-weight: 600;
}

.cross-strip-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.cross-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cross-chips span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #93a5b7;
  font-family: var(--font-mono);
  font-size: 9px;
}

@media (max-width: 1024px) {
  .page-hero--split .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-hero-aside {
    display: none;
  }

  .industry-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .industry-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .industry-tabs-label {
    display: none;
  }

  .industry-tab {
    grid-template-columns: auto auto;
    width: auto;
    flex: none;
    padding: 9px 12px;
    border-color: #dedbd0;
    background: rgba(255, 255, 255, 0.5);
  }

  .industry-tab-index {
    display: none;
  }

  .industry-tab .icon {
    display: none;
  }

  .pain-chips {
    margin-left: 0;
  }

  .starter-box {
    flex-wrap: wrap;
  }

  .starter-box .starter-label {
    border-right: 0;
    padding-right: 0;
  }

  .starter-box p {
    flex-basis: 100%;
    order: 3;
  }

  .cross-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .industry-page {
    padding: 40px 0 74px;
  }

  .industry-panel-head {
    gap: 13px;
  }

  .panel-icon {
    width: 44px;
    height: 44px;
  }

  .panel-icon .icon {
    width: 21px;
    height: 21px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 21px;
  }

  .starter-box {
    padding: 22px;
  }

  .starter-box .btn {
    width: 100%;
  }

  .page-hero {
    padding: calc(var(--header-h) + 42px) 0 46px;
  }

  .page-hero-lead {
    font-size: 14.5px;
  }
}

/* ---------- legal / prose ---------- */

.legal-page {
  padding: 70px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: grid;
  gap: 7px;
  padding: 4px 0;
}

.legal-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
}

.legal-nav a:hover {
  background: rgba(12, 20, 19, 0.06);
  color: var(--ink);
}

.legal-body {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.95;
}

.legal-body h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 19px;
}

.legal-body li {
  margin-bottom: 7px;
}

.legal-body a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dedbd0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.legal-note {
  margin: 0 0 30px;
  padding: 15px 17px;
  border: 1px solid #d8d4c6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.8;
}

.legal-body table {
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border: 1px solid #dedbd0;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: rgba(12, 20, 19, 0.04);
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 10px;
  }

  .legal-nav a {
    background: rgba(12, 20, 19, 0.04);
  }
}

/* ---------- 404 ---------- */

.error-page {
  padding: 30px 0 90px;
}

.error-code {
  margin-bottom: 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
