/* Kin — kinsteps.app
   Palette taken from the app's KinPalette.kt so the site and the product agree. */

:root {
  --bg: #050608;
  --surface: #0e1116;
  --surface-2: #151a20;
  --accent: #1dfff1;
  --accent-deep: #0fb5ab;
  --on-accent: #06100f;
  --text: #f4f7f8;
  --text-2: #9aa4ab;
  --text-3: #6b757c;
  --line: #1c2229;
  --radius: 14px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 24px;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.24em;
}

.brand svg { display: block; color: var(--accent); }

.masthead nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.masthead nav a {
  color: var(--text-2);
  text-decoration: none;
}

.masthead nav a:hover { color: var(--text); }

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

.hero { padding-block: 84px 72px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 6.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.hero p {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--text-2);
  max-width: 56ch;
}

/* ---------- feature grid ---------- */

.section { padding-block: 16px 72px; }

.section-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 24px;
  font-weight: 600;
}

/* Two by two, not auto-fit: four tiles in a three-column track leaves an orphan
   cell, and the 1px gap technique renders that gap as a visible empty panel. */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.tile {
  background: var(--bg);
  padding: 28px 26px;
}

.tile svg {
  display: block;
  color: var(--accent);
  margin-bottom: 16px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- statement block ---------- */

.statement {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
}

.statement h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3vw, 26px);
  letter-spacing: -0.02em;
  font-weight: 650;
}

.statement p {
  margin: 0 0 14px;
  color: var(--text-2);
  max-width: 62ch;
}

.statement p:last-child { margin-bottom: 0; }

/* ---------- pairing ---------- */

.pair-code {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 18px 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  word-break: break-all;
}

.steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 54ch;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  color: var(--text-2);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.steps strong { color: var(--text); font-weight: 600; }

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

.prose { max-width: var(--measure); padding-block: 8px 64px; }

.prose h1 {
  font-size: clamp(30px, 5vw, 42px);
  max-width: none;
  margin-bottom: 10px;
}

.prose h2 {
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 21px;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 650;
}

.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }

.meta {
  color: var(--text-3);
  font-size: 14px;
  margin: 0 0 28px;
}

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
}

.callout p { margin: 0; }

.scroller { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
  min-width: 420px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-2);
}

th {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--text-3);
}

footer nav { display: flex; gap: 24px; margin-left: auto; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .hero { padding-block: 56px 52px; }
  .statement { padding: 24px 20px; }
  footer nav { margin-left: 0; }
}
