/* Kipra — kipra.dev
   Daylight theme: paper ground, ink bands, cobalt actions, amber only in the logo's eye. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --mist: #E9ECF2;
  --line: #D3D9E3;
  --slate: #4A5568;
  --body: #2D3748;
  --ink: #0F1B2D;
  --ink-2: #1A2940;
  --ink-line: #2C3B55;
  --ink-muted: #9AA7BC;
  --ink-body: #B8C3D4;
  --cobalt: #1F4BFF;
  --cobalt-hover: #1A3FE0;
  --cobalt-on-ink: #8FA8FF;
  --amber: #F0A53A;
  --crit: #C2412D;
  --high: #B4570A;
  --med: #8A6A12;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-hover); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--cobalt-on-ink); }
code, pre { font-family: var(--mono); font-weight: 500; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 104px); }

/* Ink bands */
.band { background: var(--ink); color: var(--paper); }
.band .lede, .band p { color: var(--ink-body); }
.band a:not(.btn) { color: var(--cobalt-on-ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.4vw, 104px); line-height: 0.94; letter-spacing: -0.045em; }
h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--body); max-width: 38ch; }
.sub { color: var(--body); max-width: 58ch; margin: 18px 0 0; }
.note { font-size: 14px; color: var(--slate); }
.band .note { color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #B8C1CF; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.band .btn-ghost { color: var(--paper); border-color: var(--ink-line); }
.band .btn-ghost:hover { border-color: var(--ink-muted); color: var(--paper); }
.band .btn-light { background: var(--paper); color: var(--ink); }
.band .btn-light:hover { background: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.pill {
  display: inline-block; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 7px 12px; border-radius: 999px; border: 1px solid #B8C1CF; color: var(--slate);
}
.pill-live { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.band .pill { border-color: var(--ink-line); color: var(--ink-muted); }
.band .pill-live { background: var(--paper); border-color: var(--paper); color: var(--cobalt); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.045em; line-height: 1; }
.site-header .btn { min-height: 42px; padding: 10px 16px; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(64px, 9vw, 104px); }
.hero h1 { margin-bottom: 26px; }
.hero figure { margin: 0; }
.hero svg { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero figure { max-width: 560px; } }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }


/* Asset index */
.index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 32px; margin-top: 52px; border-top: 1px solid var(--line); }
.index > div { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.index p { margin: 8px 0 14px; color: var(--slate); }
.index code { color: var(--cobalt); font-size: 14px; }

/* Tools */
.feature { background: var(--ink-2); border-radius: 22px; padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; margin-top: 52px; }
.feature h3, .tool h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.035em; line-height: 1; margin: 16px 0 12px; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } }
.tool { min-width: 0; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 24px; }
.tool { border: 1px solid var(--ink-line); border-radius: 22px; padding: 30px; }
.tool h3 { font-size: 30px; }
.tool p { margin: 0 0 20px; }
pre.snippet { margin: 0; font-size: 13px; line-height: 1.6; background: var(--paper); color: var(--ink); padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; max-width: 100%; }
@media (max-width: 480px) { pre.snippet { font-size: 11.5px; padding: 14px; } }

/* Forms */
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field { margin-bottom: 18px; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid #B8C1CF; border-radius: var(--radius); padding: 13px 15px;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8A94A6; }
.band input[type="text"], .band input[type="email"] { background: var(--ink); color: var(--paper); border-color: var(--ink-line); }
.band input::placeholder { color: #6B7A93; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 200px; min-width: 0; }
.mono-input { font-family: var(--mono) !important; font-size: 15px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--cobalt); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: 14px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 20px; }
.form-status { margin-top: 14px; font-weight: 500; }

/* Services */
.services { border-top: 1px solid var(--line); }
.services > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.services p { margin: 0; color: var(--slate); }
@media (max-width: 700px) { .services > div { grid-template-columns: 1fr; } }

/* Story */

/* CTA card */
.cta-card { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; }
@media (max-width: 900px) { .cta-card { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { color: var(--slate); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-top: 26px; padding-bottom: 26px; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer .wordmark { font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 1 1 auto; }
.site-footer nav a { color: var(--body); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { white-space: nowrap; }

/* Long-form pages */
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(64px, 9vw, 104px); }
.page h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.page h2 { font-size: 28px; letter-spacing: -0.025em; margin: 44px 0 12px; }
.page p, .page li { color: var(--body); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page .meta { color: var(--slate); font-size: 15px; margin: 0 0 32px; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { font-weight: 600; }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--cobalt); border-radius: 8px; padding: 16px 18px; margin: 24px 0; }
.tool-art { display: block; width: 100%; height: auto; }
.feature .tool-art { max-width: 520px; margin-inline: auto; }

/* Scout download page */
.scout-list { margin: 26px 0 22px; padding-left: 22px; color: var(--body); }
.scout-list li { margin-bottom: 6px; }
.scout-card { display: block; padding: clamp(26px, 4vw, 40px); align-self: center; }
.card-title { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.05; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--crit); }
.steps { padding-left: 22px; margin: 12px 0 18px; color: var(--body); }
.steps li { margin-bottom: 8px; }
.steps code { font-size: 14px; background: var(--paper); padding: 2px 6px; border-radius: 4px; }
#install:focus { outline: none; }
.demo { margin: 0 auto; width: 100%; max-width: 560px; }
.demo video { display: block; width: 100%; height: auto; background: var(--white); border-radius: 16px; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 28px; margin-top: 44px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--ink-line); }
.shots figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-body); }
.shots figcaption b { color: var(--paper); }
.services code { font-size: 14px; }
.finds-art { margin: 40px 0 0; max-width: 520px; }
.finds-art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Header buttons */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-scout { gap: 8px; background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-scout svg { width: 20px; height: 20px; color: var(--white); --mark-bg: var(--ink); }
.btn-scout .tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--amber); color: var(--ink); padding: 3px 7px; border-radius: 999px; }
.btn-scout:hover { background: var(--ink-2); color: var(--white); box-shadow: 0 6px 18px -6px rgba(240, 165, 58, .7); }
@media (max-width: 520px) {
  .site-header .header-actions .btn { padding: 9px 12px; font-size: 14px; }
  .btn-scout .tag { display: none; }
}
@media (max-width: 380px) {
  .header-actions { margin-left: 0; width: 100%; }
  .header-actions .btn { flex: 1; }
}

/* Footprint scan (homepage) */
.footprint-art { margin: 56px 0 0; }
.footprint-art svg { display: block; width: 100%; height: auto; }
.fp-card { fill: var(--white); stroke: var(--line); stroke-width: 1.5; animation: fp-ping 6s linear infinite; animation-delay: var(--d); }
.fp-title { font: 700 17px var(--display); letter-spacing: -.01em; fill: var(--ink); }
.fp-code { font: 500 13px var(--mono); fill: var(--cobalt); }
.fp-hit { fill: var(--crit); opacity: 0; animation: fp-hit 6s linear infinite; animation-delay: var(--d); }
@keyframes fp-ping { 0%, 20% { stroke: var(--cobalt); stroke-width: 2.5; } 32%, 100% { stroke: var(--line); stroke-width: 1.5; } }
@keyframes fp-hit { 0%, 26% { opacity: 1; } 36%, 100% { opacity: 0; } }
.footprint-list { display: none; }
@media (max-width: 760px) { .footprint-art { display: none; } .footprint-list { display: grid; } }
@media (prefers-reduced-motion: reduce) { .fp-card, .fp-hit { animation: none; } .fp-probes, .fp-rings { display: none; } }
@media (prefers-reduced-motion: reduce) { .nf-pulse { display: none; } }
