/* Kryo website — the app's palette, type and shapes (lib/theme.ts, global.css). */
@font-face {
  font-family: "Kryo";
  src: url("/assets/KryoFont.ttf") format("truetype");
  font-display: swap;
}

:root {
  --brand: #2563eb;
  --brand-soft: #eff6ff;
  --ink: #0a1628;
  --slate: #5b6b82;
  --faint: #9aa6b8;
  --mist: #f3f6fb;
  --line: #e3e8f0;
  --surface: #ffffff;
  --navy: #0a1628;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3b82f6;
    --brand-soft: #0f1b33;
    --ink: #f5f5f5;
    --slate: #a8a8a8;
    --faint: #737373;
    --mist: #121212;
    --line: #262626;
    --surface: #000000;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: "Kryo", "Plus Jakarta Sans", sans-serif; font-size: 22px; letter-spacing: 0.5px; }
nav.links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
nav.links a { color: var(--slate); }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 56px; text-align: center; }
.hero img.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25); }
.hero h1 {
  font-family: "Kryo", "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 9vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 28px 0 14px;
}
.hero p.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--slate); max-width: 620px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  background: var(--brand); color: #fff;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: var(--mist); color: var(--ink); }
.note { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* Features */
.section { padding-top: 48px; padding-bottom: 48px; }
.section h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.4px; margin: 0 0 8px; font-weight: 800; }
.section p.sub { color: var(--slate); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--mist); border-radius: var(--radius); padding: 24px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--brand); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; color: var(--slate); font-size: 15px; }

.band { background: var(--navy); color: #fff; border-radius: 28px; padding: 40px 28px; text-align: center; margin: 24px 0 64px; }
.band h2 { color: #fff; }
.band p { color: #c7d2e2; max-width: 560px; margin: 0 auto; }

/* Documents */
.doc { padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.6px; margin: 0 0 6px; font-weight: 800; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; font-weight: 800; letter-spacing: -0.2px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; font-weight: 700; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .muted { color: var(--slate); }
.callout { background: var(--brand-soft); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.callout p { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--slate); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
.table-scroll { overflow-x: auto; }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 8px 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--slate); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--slate); }

/* Phones ------------------------------------------------------------------ */
html { scroll-padding-top: 72px; }
body { overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.wrap {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
footer.site { padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 24px)); }

@media (max-width: 640px) {
  body { font-size: 16px; }

  header.site .wrap { height: 56px; }
  .brand img { width: 28px; height: 28px; border-radius: 7px; }
  .brand span { font-size: 20px; }
  nav.links { gap: 4px; }
  nav.links a { padding: 10px 8px; font-size: 14px; }
  nav.links .hide-sm { display: none; }

  .hero { padding-top: 44px; padding-bottom: 32px; }
  .hero img.app-icon { width: 76px; height: 76px; border-radius: 18px; }
  .hero h1 { font-size: 42px; margin: 22px 0 12px; }
  .hero p.lede { font-size: 17px; }
  .cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
  .btn { justify-content: center; height: 54px; }

  .section { padding-top: 32px; padding-bottom: 32px; }
  .section h2 { font-size: 24px; }
  .section p.sub { margin-bottom: 20px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px; border-radius: 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .card .icon { margin: 0; grid-row: span 2; }
  .card h3 { font-size: 17px; margin: 0 0 4px; }
  .card p { font-size: 15px; }

  .band { border-radius: 22px; padding: 32px 20px; margin: 8px 0 40px; }
  .band h2 { font-size: 24px; }

  .doc { padding-top: 32px; padding-bottom: 48px; }
  .doc h1 { font-size: 32px; }
  .doc .updated { margin-bottom: 24px; }
  .doc h2 { font-size: 20px; margin-top: 32px; }
  .doc ul, .doc ol.steps { padding-left: 20px; }
  .callout { padding: 16px; border-radius: 14px; }

  /* The providers table becomes stacked rows. */
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
  .table-scroll thead { display: none; }
  .table-scroll tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table-scroll td { padding: 0; border: 0; }
  .table-scroll td:first-child { font-weight: 700; margin-bottom: 2px; }
  .table-scroll td:last-child { color: var(--slate); }

  footer.site { padding-top: 24px; }
  footer.site .wrap { flex-direction: column-reverse; gap: 18px; }
  footer.site nav { flex-direction: column; gap: 0; }
  footer.site nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}
