/* keepy.fyi, built on Keepy's own design system: ink for the call, paper
   for the record, and one green dot that means "on this computer". */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-400-900.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #131a22;
  --ink-2: #1b242e;
  --ink-3: #283340;
  --fog: #9aa6b2;
  --snow: #eef2f5;
  --paper: #f5f6f4;
  --sheet: #ffffff;
  --rule: #dde1e4;
  --slate: #59636d;
  --text: #141a20;
  --here: #2ccf7f;
  --here-ink: #0a7a46;
  --focus: #2563eb;
  --p1: #86c5ff;
  --p2: #f4a7c6;
  --p3: #f1c66f;
  --p5: #c9b2ff;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* A perfect fourth from 18px. */
  --t-body: 1.125rem;
  --t-lead: 1.375rem;
  --t-h3: 1.333rem;
  --t-h2: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  --t-h1: clamp(2.5rem, 1.5rem + 3.2vw, 4.1rem);
  --t-statement: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem);

  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--snow); z-index: 10; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.top ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.top nav a { text-decoration: none; color: var(--slate); font-size: 1rem; font-weight: 500; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 84px) clamp(64px, 9vw, 128px);
}
.hero h1 {
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
.lead { font-size: var(--t-lead); line-height: 1.45; color: #2c353e; margin: 26px 0 0; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--snow);
  font-weight: 700;
  text-decoration: none;
}
.button.is-soon { cursor: default; }
.quiet-link { color: var(--slate); font-weight: 500; }
.here-line { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 0.98rem; color: var(--slate); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--here); box-shadow: 0 0 0 4px rgba(44, 207, 127, 0.18); flex: none; }

/* The demo: Meet on the left, Keepy's panel beside it. */
.demo { margin: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0; align-items: stretch; }
.call {
  background: #202124;
  border-radius: 20px 0 0 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}
.call-grid { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.call-tile { background: #3c4043; border-radius: 10px; display: grid; place-items: center; position: relative; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color 0.25s ease; }
.call-tile.is-speaking { outline-color: #8ab4f8; }
.call-tile b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 500; font-size: 0.95rem; font-family: system-ui, sans-serif; }
.call-tile i { position: absolute; left: 10px; bottom: 7px; font-style: normal; font-size: 0.75rem; color: #e8eaed; font-family: system-ui, sans-serif; }
.call-cc { margin: 12px 4px 10px; color: #fff; font-family: system-ui, sans-serif; font-size: 0.98rem; line-height: 1.35; min-height: 3.1em; }
.call-cc small { display: block; font-size: 0.75rem; color: #bdc1c6; }
.call-bar { display: flex; justify-content: center; gap: 8px; }
.call-bar span { width: 32px; height: 32px; border-radius: 50%; background: #3c4043; }
.call-bar span.end { width: 44px; border-radius: 16px; background: #ea4335; }

.k-panel {
  background: var(--ink);
  color: var(--snow);
  border-radius: 0 20px 20px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 34px 70px -30px rgba(10, 16, 22, 0.55);
  min-width: 0;
}
.k-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 8px 16px; }
.k-head img { border-radius: 6px; }
.k-title { flex: 1; min-width: 0; font-weight: 650; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--fog); background: transparent; border: 0; cursor: pointer; }
.k-icon:hover { background: var(--ink-2); color: var(--snow); }
.k-icon svg { width: 16px; height: 16px; }
.k-state { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 12px; padding: 0 16px 12px; font-size: 0.8rem; color: var(--fog); font-variant-numeric: tabular-nums; }
.k-here { display: inline-flex; align-items: center; gap: 7px; color: var(--snow); font-weight: 600; }
.k-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--here); box-shadow: 0 0 0 4px rgba(44, 207, 127, 0.16); }
.demo.is-live .k-dot { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(44, 207, 127, 0.06); } }
.k-body { border-top: 1px solid var(--ink-3); padding: 14px 16px 4px; flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.k-turn { margin: 0 0 13px; }
.k-who { display: flex; align-items: baseline; gap: 8px; font-size: 0.78rem; font-weight: 650; color: var(--c, var(--snow)); margin-bottom: 2px; }
.k-who time { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; color: var(--fog); }
.k-said { margin: 0; font-size: 0.9rem; line-height: 1.48; color: #dce3e9; }
.k-said .settling { color: var(--fog); }
.k-turn.is-new { animation: arrive 0.45s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
.k-foot { padding: 10px 16px 14px; border-top: 1px solid var(--ink-3); }
.k-path { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s ease; }
.demo.is-saved .k-path { color: var(--here); }
.replay {
  position: absolute;
  right: 0;
  bottom: -52px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
}
.replay:hover { border-color: var(--slate); }

/* Privacy: the case for companies, on ink. */
.private { background: var(--ink); color: var(--snow); padding-block: clamp(64px, 9vw, 128px); }
.statement {
  margin: 0 0 clamp(36px, 5vw, 64px);
  font-size: var(--t-statement);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 18ch;
  text-wrap: balance;
}
.private-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.private-copy > p { margin: 0 0 28px; font-size: var(--t-lead); line-height: 1.5; color: #cfd8df; max-width: 46ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.facts li { padding-left: 26px; position: relative; color: #cfd8df; max-width: 52ch; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--here); }
.facts b { color: var(--snow); }
.it-card { background: var(--ink-2); border-radius: 20px; padding: 28px; box-shadow: inset 0 0 0 1px var(--ink-3); }
.it-card h3 { margin: 0 0 18px; font-size: var(--t-h3); }
.it-card dl { margin: 0 0 22px; display: grid; gap: 16px; }
.it-card dt { font-weight: 650; font-size: 0.95rem; }
.it-card dd { margin: 3px 0 0; color: var(--fog); font-size: 0.98rem; }
.it-card a { color: var(--snow); font-weight: 600; }

/* Sections on paper */
.block { padding-block: clamp(64px, 9vw, 120px); }
.block + .block { border-top: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 800; }
.section-head p { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--slate); }
.block h3 { font-size: var(--t-h3); line-height: 1.25; margin: 0 0 8px; font-weight: 700; }

/* The file, and what to do with it */
.file-and-use { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.file { background: var(--sheet); border-radius: 18px; box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -40px rgba(20, 26, 32, 0.35); overflow: hidden; }
.file-top { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); font-size: 0.85rem; }
.file-name { font-weight: 650; overflow-wrap: anywhere; }
.file-where { color: var(--slate); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.file-where::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--here); }
.file pre { margin: 0; padding: 18px 20px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.84rem; line-height: 1.4; }
.file-cols { max-height: 32rem; overflow: auto; }
.file code { font-family: var(--mono); font-size: 0.84rem; line-height: 1.4; color: var(--text); }
.file .fm { color: #3f5568; }
.file .tm { color: var(--slate); }
.file b { font-weight: 600; }
.uses { display: grid; gap: 34px; }
.use p { margin: 0; color: var(--slate); }
.term {
  margin: 14px 0 10px;
  background: var(--ink);
  color: var(--snow);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.term .prompt { color: var(--here); margin-right: 6px; }
.small { font-size: 0.95rem; }
.aside { margin: 40px 0 0; color: var(--slate); font-size: 0.98rem; max-width: 72ch; }

/* How */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 1rem; color: var(--slate); margin-bottom: 10px; }
.steps p { margin: 0; color: var(--slate); }

/* Questions */
.faq { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 650; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--slate); max-width: 64ch; }

.get { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--rule); }
.get h2 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.035em; margin: 0; font-weight: 800; }
.get p { margin: 22px 0 28px; font-size: var(--t-lead); color: var(--slate); }

.foot { padding-block: 32px 48px; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--slate); }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0 0 14px; padding: 0; }
.marks { margin: 0; max-width: 80ch; font-size: 0.84rem; }

/* Privacy policy page */
.policy-head { padding-block: clamp(32px, 6vw, 72px) 16px; }
.policy-head h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.035em; margin: 0; font-weight: 800; }
.policy-head p { color: var(--slate); margin: 18px 0 0; }
.policy { padding-bottom: 80px; }
.policy > * { max-width: 68ch; }
.policy h2 { font-size: 1.5rem; margin: 42px 0 10px; letter-spacing: -0.015em; }
.policy .policy-lead { font-size: 1.3rem; line-height: 1.5; }
.policy ul { padding-left: 1.1em; }
.policy li { margin-bottom: 8px; }

@media (min-width: 1000px) {
  .file-and-use { display: block; }
  .file-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); max-height: none; overflow: visible; }
  .file-cols .file-fm { border-right: 1px solid var(--rule); }
  .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 36px; align-items: start; }
  .use { min-width: 0; }
}
@media (max-width: 999px) {
  .file-and-use { grid-template-columns: 1fr; }
  .uses { margin-top: 34px; }
}
@media (max-width: 980px) {
  .hero, .private-grid, .file-and-use { grid-template-columns: 1fr; }
  .lead { max-width: 40ch; }
}
@media (max-width: 720px) {
  .top nav { display: none; }
  .demo { grid-template-columns: 1fr; }
  .call { border-radius: 20px 20px 0 0; min-height: 0; }
  .call-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 92px; }
  .k-panel { border-radius: 0 0 20px 20px; min-height: 360px; }
  .steps { grid-template-columns: 1fr; }
  .replay { position: static; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
