/* Kryphos marketing site */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F1F3F7;
  --surface: #FFFFFF;
  --ink: #0B1B3A;
  --ink-2: #4A5468;
  --ink-3: #5F687A;
  --line: #E3E6EC;
  --line-strong: #CDD2DC;
  --accent: #1E3A8A;
  --accent-ink: #1E3A8A;           /* navy blue on off-white: 10:1 */
  --accent-tint: rgba(30, 58, 138, 0.1);
  --lift: 0 1px 0 rgba(11, 27, 58, 0.04), 0 18px 40px -24px rgba(11, 27, 58, 0.22);

  --font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(80px, 11vw, 136px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: rgba(30, 58, 138, 0.2); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.marker {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 18px;
}
/* Placeholder tokens: the only monospace on the page */
.tok {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 500;
  color: #C9D6F5;
  background: var(--ink);
  padding: 0.12em 0.42em;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: #172E6E; }
.btn-small { font-size: 14px; padding: 10px 14px; }

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 70px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.m-house { fill: none; stroke: var(--ink); stroke-width: 3.5; }
.m-line { fill: #9AA6BD; }
.m-bar {
  fill: var(--ink);
  transform-box: fill-box;
  transform-origin: left center;
}
.wordmark-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 116px); padding-bottom: var(--section); }

.hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  margin-bottom: clamp(32px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero h1 span { display: block; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 40px 64px;
  align-items: start;
}
.lede {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 33em;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  margin-top: 36px;
}

.hero-facts {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.hero-facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.hero-facts dt { font-size: 13px; color: var(--ink-3); }
.hero-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; line-height: 1.45; }

/* ---------- Demo (static) ---------- */
.demo {
  margin: clamp(64px, 8vw, 96px) 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--lift);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}
.demo-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.demo-note { font-size: 13px; color: var(--ink-3); }

.demo-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 28px 22px;
  min-width: 0;
}
.panel + .panel { border-left: 1px solid var(--line); }
.panel-out { background: var(--ink); color: #E8ECF3; border-left-color: var(--ink) !important; }
.panel-out + .panel { border-left-color: var(--ink); }
.panel-out .panel-label { color: #B8C2D6; }
.panel-out .panel-num { border-color: rgba(255, 255, 255, 0.28); color: #FFFFFF; }
.panel-out .panel-foot { border-top-color: rgba(255, 255, 255, 0.2); color: #A9B6CC; }
.panel-out .tok { background: #1E3263; color: #C9D6F5; }

/* Arrow badges between the panels */
.hop {
  position: absolute; z-index: 2;
  left: -15px; top: 50%;
  width: 30px; height: 30px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%230B1B3A' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--line-strong);
}

.zone {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.zone::before {
  content: "";
  width: 7px; height: 7px;
  border: 1.5px solid currentColor;
}
.zone-out { color: #A9B6CC; border-bottom-color: rgba(255, 255, 255, 0.14); }
.zone-out::before { background: #8FA6DC; border-color: #8FA6DC; }

.panel-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.panel-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px; letter-spacing: 0;
  color: var(--ink);
}
.panel-body { flex: 1; }
.chat { font-size: 16px; line-height: 1.75; }
.chat-sent { line-height: 1.95; }
.panel-foot {
  margin-top: 22px; padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px; color: var(--ink-3);
}

.composer {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 27, 58, 0.05);
}
.send {
  align-self: flex-end;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ink); color: #FFFFFF;
}
.send svg { width: 14px; height: 14px; }

.pii {
  color: inherit;
  background: var(--accent-tint);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding: 0.05em 0;
  border-radius: 1px;
}
.restored {
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 500;
}

.demo-status {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #FBFBF8;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 4.4vw, 54px); max-width: 21ch; letter-spacing: -0.035em; }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }

/* Problem */
.problem-list {
  list-style: none; margin: 0; padding: 0;
  border-bottom: 1px solid var(--line-strong);
}
.problem-list li {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 12px 64px;
  align-items: baseline;
  padding: 38px 0;
  border-top: 1px solid var(--line-strong);
}
.problem-list li:first-child { border-top-color: var(--ink); }
.problem-list h3 {
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.problem-list p { color: var(--ink-2); font-size: 16px; }

.deadline {
  margin-top: clamp(40px, 5vw, 56px);
  margin-left: 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
  font-size: 18px;
  max-width: 46em;
}
.deadline strong { font-weight: 600; }

/* How it works */
.how { background: var(--bg-alt); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.steps li {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 28px 8px 0;
}
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 40px;
}
.steps h3 { font-size: 28px; margin-bottom: 12px; }
.steps p { font-size: 16px; color: var(--ink-2); }
.steps .trace {
  margin-top: auto;
  padding-top: 28px;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--ink);
}
.trace-label {
  font-size: 12px; color: var(--ink-3);
  min-width: 52px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 80px;
}
.sticky-head { position: sticky; top: 110px; align-self: start; }
.features h2 { font-size: clamp(30px, 3.6vw, 46px); }
.feature-list p {
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.feature-list p:first-child { border-top-color: var(--ink); }
.feature-list strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

/* Teams */
.teams { background: var(--bg-alt); }
.teams-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px 80px;
  align-items: start;
}
.teams-copy h2 { margin-bottom: 24px; }
.teams-copy > p { color: var(--ink-2); max-width: 32em; }
.teams-points { margin: 36px 0 0; }
.teams-points div { padding: 16px 0; border-top: 1px solid var(--line-strong); }
.teams-points dt { font-weight: 600; }
.teams-points dd { margin: 2px 0 0; color: var(--ink-2); font-size: 16px; }

.dash {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: var(--lift);
  font-size: 14px;
  overflow: hidden;
}
.dash-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dash-org { font-weight: 600; }
.dash-tag {
  font-size: 12px; color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  padding: 3px 8px; border-radius: 3px;
}
.dash-tabs {
  display: flex; gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}
.dash-tabs span { padding: 11px 0; }
.dash-tabs .is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); font-weight: 500; }
.dash-scroll { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td {
  text-align: left;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.dash-table th { font-size: 12px; font-weight: 500; color: var(--ink-3); background: #FAFAF8; }
.dash-table .num { text-align: right; }
.dash-table td:last-child { color: var(--ink-2); }
.bar-col { width: 30%; padding-left: 0 !important; }
.bar {
  display: block;
  height: 6px; width: var(--w); min-width: 3px;
  border-radius: 1px;
  background: var(--accent);
}
.blocked { color: var(--ink); font-weight: 600; }
.dash-foot { padding: 12px 18px; font-size: 13px; color: var(--ink-3); }

/* Team */
.founders {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.founders li {
  display: flex; align-items: center; gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.initials {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  letter-spacing: 0.02em;
}
.f-name { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; }
.f-org { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* Contact */
.contact { background: var(--ink); color: var(--bg); border-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px 80px;
  align-items: end;
}
.contact h2 { max-width: 20ch; }
.contact-side p { color: #C5CBD8; margin-bottom: 28px; }
.contact .btn:focus-visible { outline-color: var(--bg); }
.contact .btn-primary { background: #FFFFFF; color: var(--ink); }
.contact .btn-primary:hover { background: #E3E8F3; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center;
  padding-block: 28px;
  font-size: 14px; color: var(--ink-2);
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.mark-sm { width: 18px; height: 18px; }
.footer-note { margin-right: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.footer-links a:hover { color: var(--ink); }

/* Logo: the teal bar slides across the K once on load */
@keyframes bar-in { from { transform: scaleX(0); } }
.wordmark .m-bar { animation: bar-in .7s .3s cubic-bezier(.2, .7, .2, 1) backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .demo-panels { grid-template-columns: minmax(0, 1fr); }
  .panel + .panel { border-left: 0 !important; border-top: 1px solid var(--line); }
  .panel-out, .panel-out + .panel { border-top-color: var(--ink) !important; }
  .hop { left: 50%; top: -15px; transform: translateX(-50%) rotate(90deg); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line-strong); margin-top: 16px; }
  .features-grid, .teams-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-head { position: static; }
  .problem-list li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0; }
  .deadline { margin-left: 0; }
  .founders { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .founders li { padding-block: 20px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { height: 62px; gap: 12px; }
  .mark { width: 26px; height: 26px; }
  .mark-sm { width: 18px; height: 18px; }
  .wordmark-text { font-size: 21px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 20px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line-strong); margin-top: 8px; }
  .step-num { margin-bottom: 16px; }
  .steps .trace { padding-top: 16px; }
  .panel { padding: 22px 18px 20px; }
  .demo-bar, .demo-status { padding-inline: 18px; }
  .dash-table th, .dash-table td { padding: 10px 12px; }
  .dash-table th { white-space: normal; }
  .bar-col { width: 22%; }
  .dash-top, .dash-tabs, .dash-foot { padding-inline: 12px; }
  .footer-note { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
