/* Kite Data — v1. All colour values are tokens from DESIGN.md:
   Paper, Ink, Ink-2, Hairline, Signal, Code Ground, Signal on Code Ground.
   No other hex values. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #F8FAFB;
  color: #14232B;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1 {
  font-size: 52px;
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: 30px;
  font-weight: 590;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  text-wrap: balance;
}

h3 {
  font-size: 19px;
  font-weight: 590;
  line-height: 1.4;
}

.h2-small {
  font-size: 24px;
  line-height: 1.3;
}

a {
  color: #0C6B8A;
}

:focus-visible {
  outline: 2px solid #0C6B8A;
  outline-offset: 2px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid #DCE4E8;
}

.header-inner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #14232B;
  font-size: 19px;
  font-weight: 590;
  line-height: 1.4;
  text-decoration: none;
  margin-right: auto;
}

.wordmark-mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-nav a {
  color: #14232B;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.site-nav a:hover {
  color: #0C6B8A;
}

.header-cta {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}

.header-cta:hover {
  text-decoration: underline;
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: start;
}

.hero-sub {
  color: #475862;
  margin-top: 24px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 36px;
}

.btn-primary {
  display: inline-block;
  background: #0C6B8A;
  color: #F8FAFB;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
}

.btn-primary:hover {
  text-decoration: underline;
}

.text-link {
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-visual {
  min-width: 0;
}

/* change-record panel (Code Ground) */

.change-panel {
  background: #0E1B22;
  color: #F8FAFB;
  border-radius: 8px;
  padding: 28px 32px;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.55;
  min-width: 0;
}

.change-panel-head {
  color: #DCE4E8;
  font-size: 13px;
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px solid #475862;
}

.change-row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid #475862;
}

.change-nct {
  color: #F8FAFB;
  font-weight: 500;
}

.change-path {
  color: #DCE4E8;
  /* Soft break opportunities come only from <wbr> placed after each "."
     in the markup, so field paths never split mid-word. */
  overflow-wrap: normal;
  word-break: normal;
}

.change-values {
  color: #DCE4E8;
}

.change-arrow {
  color: #F8FAFB;
  font-weight: 500;
}

.change-old {
  color: #DCE4E8;
  text-decoration: line-through;
}

.change-new {
  color: #6FAEC2;
  font-weight: 500;
}

.change-values .change-new {
  border-bottom: 2px solid #6FAEC2;
}

.change-caption {
  color: #475862;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}

/* ---------- key figure (one big number, asymmetric side facts) ---------- */

.numbers {
  border-top: 1px solid #DCE4E8;
  border-bottom: 1px solid #DCE4E8;
  padding: 48px 0 40px;
}

.numbers-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px 56px;
  align-items: start;
}

.numbers-big {
  display: block;
  font-size: 52px;
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.numbers-label {
  display: block;
  color: #475862;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}

.numbers-side {
  list-style: none;
}

.numbers-side li {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 0;
  border-top: 1px solid #DCE4E8;
}

.numbers-side li:first-child {
  padding-top: 2px;
  border-top: none;
}

.source-line {
  color: #475862;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 32px;
}

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
}

.section-tight {
  padding-top: 0;
}

.prose {
  max-width: 680px;
}

.prose p + p {
  margin-top: 16px;
}

.prose-line {
  max-width: 680px;
  margin-bottom: 32px;
}

.specs-wrap {
  margin-top: 56px;
}

.specs-wrap h3 {
  margin-bottom: 16px;
}

.specs {
  border-top: 1px solid #DCE4E8;
}

.specs-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 32px;
  padding: 16px 0;
  border-bottom: 1px solid #DCE4E8;
  font-size: 14px;
  line-height: 1.55;
}

.specs-row dt {
  color: #475862;
  font-weight: 500;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.6;
}

/* hairline rows (how it works / who uses it / pricing steps) */

.rows {
  border-top: 1px solid #DCE4E8;
}

.row {
  display: grid;
  gap: 8px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid #DCE4E8;
}

.row p {
  color: #475862;
}

.row-text {
  grid-template-columns: 304px 1fr;
}

.row-text p {
  grid-column: 2;
}

.row-text h3 {
  grid-column: 1;
}

/* feed 2 (second product, left-aligned, one step smaller than feed 1) */

.feed2-body h2 {
  margin-bottom: 24px;
}

.feed2-body p {
  color: #475862;
  max-width: 680px;
  margin-bottom: 16px;
}

.feed2-body .status-line {
  color: #14232B;
  font-weight: 590;
  border-top: 1px solid #DCE4E8;
  padding-top: 16px;
}

.feed2-body .status-line::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #0C6B8A;
  margin-right: 10px;
}

/* FAQ */

.faq-list {
  border-top: 1px solid #DCE4E8;
}

.faq-item {
  border-bottom: 1px solid #DCE4E8;
  padding: 20px 0;
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 19px;
  font-weight: 590;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: #0C6B8A;
  font-weight: 400;
}

.faq-item[open ] summary::after {
  content: "−";
}

.faq-item p {
  color: #475862;
  max-width: 680px;
  margin-top: 12px;
}

/* contact (closing section, full Code Ground) */

.contact {
  background: #0E1B22;
  color: #F8FAFB;
}

.contact h2,
.contact .prose-line {
  color: #F8FAFB;
}

.contact-email {
  font-size: 30px;
  font-weight: 590;
  line-height: 1.25;
}

.contact-email a {
  color: #6FAEC2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* footer */

.site-footer {
  border-top: 1px solid #DCE4E8;
  padding: 32px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: #475862;
  font-size: 14px;
  line-height: 1.6;
}

.footer-brand {
  color: #14232B;
  font-weight: 590;
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  h1 {
    font-size: 34px;
  }

  .hero {
    padding: 56px 0;
  }

  .section {
    padding: 56px 0;
  }

  .section-tight {
    padding-top: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* header fixed as: row 1 = wordmark + sample link, row 2 = nav */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 20px;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .change-panel {
    padding: 24px 20px;
    font-size: 12px;
  }

  .numbers-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .numbers-big {
    font-size: 34px;
  }

  .specs-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .row-text {
    grid-template-columns: 1fr;
  }

  .row-text h3,
  .row-text p {
    grid-column: 1;
  }

  .contact-email {
    font-size: 19px;
  }
}
