/* KYM registry: landing page.
   The palette is the wordmark's own: cream paper, blue ink, a green accent. The supplied
   artwork sat on an opaque cream plate, so assets/kym-logo.png is a colour-to-alpha knockout
   of it. The cast shadow survives, and there is no plate edge to line up against the page. */

:root {
  --paper: #FBF9E9;
  --paper-deep: #F3F0DC;
  --card: #FFFFFF;
  --ink: #12242E;
  --muted: #5B6E79;
  --line: #DCD8C2;
  --blue: #0245A7;
  --blue-bright: #1160C9;
  --green: #2E934C;
  --amber: #B4770F;
  --red: #B3261E;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 36, 46, .06), 0 8px 24px rgba(18, 36, 46, .05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; line-height: 1.1; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 800; letter-spacing: -.022em; }
h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.005em; }

a { color: var(--blue-bright); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue); }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue); font-weight: 600;
}
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .88em;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px;
}

/* ---------- header ---------- */

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 233, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { display: block; height: 34px; width: auto; }
.brand .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }

/* Hackathon placing. Sits at the head's right edge, next to the call to action, and drops to a
   short form before it can push the CTA off a narrow screen. */
.award {
  display: inline-flex; align-items: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: rgba(2, 69, 167, .07);
  border: 1px solid rgba(2, 69, 167, .22); border-radius: 999px;
  padding: 5px 12px; white-space: nowrap;
}
.award-short { display: none; }
@media (max-width: 1340px) {
  .award-full { display: none; }
  .award-short { display: inline; }
}
@media (max-width: 430px) { .award { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(2, 69, 167, .3); }
.btn-primary:hover { background: #013a8d; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-bright); outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero { padding: 76px 0 64px; }
.hero .logo-lockup { max-width: 430px; width: 72%; height: auto; display: block; margin: 0 0 30px -12px; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; margin-top: 22px; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero .cta-note { font-size: 14px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--green); background: rgba(46, 147, 76, .09);
  border: 1px solid rgba(46, 147, 76, .28); border-radius: 999px; padding: 5px 13px;
  margin-bottom: 26px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- sections ---------- */

section { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
section > .wrap > .eyebrow { margin-bottom: 12px; }
section h2 + p.sub { color: var(--muted); font-size: 18px; max-width: 62ch; margin-top: 14px; }

.prose p + p { margin-top: 18px; }
.prose p { max-width: 68ch; }

.footnote {
  margin-top: 30px; padding-left: 16px; border-left: 2px solid var(--line);
  color: var(--muted); font-size: 15.5px; max-width: 66ch;
}

/* ---------- cards ---------- */

.grid { display: grid; gap: 18px; margin-top: 38px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card .num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600;
  color: var(--blue); letter-spacing: .1em; display: block; margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.card p strong { color: var(--ink); font-weight: 600; }

/* the three outcomes */
.outcome { border-left: 3px solid var(--line); }
.outcome .tag {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; display: inline-block; margin-bottom: 8px;
}
.outcome.ok { border-left-color: var(--green); }
.outcome.ok .tag { color: var(--green); }
.outcome.hold { border-left-color: var(--amber); }
.outcome.hold .tag { color: var(--amber); }
.outcome.no { border-left-color: var(--red); }
.outcome.no .tag { color: var(--red); }

/* the one rule */
.rule {
  background: var(--ink); color: #EDF3F6; border-radius: var(--radius);
  padding: 34px 32px; margin-top: 38px;
}
.rule .eyebrow { color: #7FB4F3; }
.rule p.big {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: clamp(21px, 3vw, 29px); font-weight: 700; line-height: 1.28;
  margin-top: 12px; letter-spacing: -.01em;
}
.rule p.small { color: #A8BCC6; font-size: 15.5px; margin-top: 16px; max-width: 62ch; }
.rule em { color: #fff; font-style: normal; border-bottom: 2px solid var(--green); }

/* pricing asymmetry */
.split { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 38px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.price .who { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price .amount { font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.price .amount span {
  display: block; margin-top: 4px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  color: var(--muted); letter-spacing: 0; line-height: 1.4;
}
.price ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.price li { font-size: 15px; color: var(--muted); padding-left: 24px; position: relative; }
.price li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.price.free { border-color: rgba(46, 147, 76, .45); }

/* ---------- demo video ---------- */

/* Click-to-play facade. The poster is served from our own origin, so the page contacts Google
   only once a visitor actually presses play. */
.video {
  position: relative; margin-top: 34px; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #0B1620; box-shadow: var(--shadow);
}
.video iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { display: block; padding: 0; margin: 0; background: none; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 22, 32, .30); transition: background .15s ease;
}
.video-play:hover::after { background: rgba(11, 22, 32, .14); }
.video-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 74px; height: 74px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(2, 69, 167, .42);
  transition: transform .12s ease, background .15s ease;
}
.video-play:hover .video-btn { transform: translate(-50%, -50%) scale(1.06); background: #013a8d; }
.video-cap { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.video-cap .title { color: var(--ink); font-weight: 600; }

/* ---------- form ---------- */

#signup { background: var(--paper-deep); }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); margin-top: 34px;
}
.field { display: grid; gap: 7px; margin-bottom: 18px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-bright); background: #fff; }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 22px; }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.consent label { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Bots fill everything they can see; humans never see this. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 15px; margin-top: 16px; display: none; }
.form-status.show { display: block; }
.form-status.err { color: var(--red); }
.form-status.ok { color: var(--green); }

.form-done { display: none; text-align: center; padding: 22px 0; }
.form-done.show { display: block; }
.form-done .tick {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(46, 147, 76, .12);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.form-done h3 { font-size: 22px; }
.form-done p { color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */

footer { background: var(--ink); color: #A8BCC6; padding: 52px 0 44px; font-size: 14.5px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
footer .wordmark { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
footer .wordmark .chk { color: var(--green); }
footer p { max-width: 42ch; margin-top: 10px; }
footer .accolade {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #7FB4F3; margin-top: 14px;
}
footer a { color: #C9DAE3; }
footer a:hover { color: #fff; }
footer .legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #7E939E; }
footer nav { display: grid; gap: 9px; }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
