/* Krin public landing — dark mobile-first */
:root {
  --bg: #0a0f0d;
  --bg-card: #121a16;
  --bg-elevated: #1a2420;
  --border: #243028;
  --text: #e8f0ec;
  --text-muted: #8a9a90;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-glow: rgba(34, 197, 94, 0.25);
  --danger: #ef4444;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(20px + var(--safe-top)) 18px calc(40px + var(--safe-bottom));
}

.hero {
  text-align: center;
  padding: 12px 0 28px;
}
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-dt {
  width: 44px;
  height: 44px;
  display: block;
}
.hero-logo {
  width: auto;
  height: 28px;
  display: block;
}
.hero h1 {
  font-size: clamp(1.75rem, 7vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 36ch;
  margin: 0 auto 20px;
}
.price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--green-dim);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.price-pill small {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--green); color: #04140a; }
.btn-primary:active { background: var(--green-dim); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border);
}
.btn-full { width: 100%; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.section {
  margin-top: 28px;
}
.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.section p.muted { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; }

/* Demo phone mock */
.demo-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px 14px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.demo-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.demo-job { font-weight: 650; }
.demo-times { font-size: 0.8rem; color: var(--text-muted); }
.demo-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-glow);
  padding: 4px 10px;
  border-radius: 999px;
}
.demo-ring-wrap {
  position: relative;
  width: min(220px, 70vw);
  aspect-ratio: 1;
  margin: 8px auto 12px;
}
.demo-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.demo-ring .bg { fill: none; stroke: var(--bg-elevated); stroke-width: 10; }
.demo-ring .arc {
  fill: none;
  stroke: var(--green);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px var(--green-glow));
}
.demo-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.demo-center .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.demo-center .amt {
  font-size: 1.65rem;
  font-weight: 750;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.demo-center .net {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.demo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.demo-stat {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 10px 12px;
}
.demo-stat span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.demo-stat strong {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.demo-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.features li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.95rem;
}
.features li strong { color: var(--green); font-weight: 650; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-msg {
  font-size: 0.88rem;
  margin-top: 10px;
  min-height: 1.2em;
}
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--danger); }
.hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.4;
}
#unlock-status {
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 10px;
}

.brand-watermark {
  position: fixed;
  right: calc(10px + env(safe-area-inset-right, 0px));
  bottom: calc(10px + var(--safe-bottom));
  width: 36px;
  height: 36px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 20;
}
.brand-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.brand-watermark .brand-logo-light { display: none; }
@media (prefers-color-scheme: light) {
  .brand-watermark .brand-logo-light { display: block; }
  .brand-watermark .brand-logo-dark { display: none; }
}

.footer {
  text-align: center;
  margin-top: 36px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer a, .muted a { color: var(--green); }


.personvern p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #c9c4bb;
}
.personvern p:last-child { margin-bottom: 0; }
.personvern a { color: #7dffa3; }

.howto li { margin-bottom: 0.35rem; }

/* Flit demo cards */
.flit-demo-objects {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.flit-demo-card {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.flit-demo-card .lbl { font-weight: 650; }
.flit-demo-card .meta { font-size: 0.78rem; color: var(--text-muted); }
.flit-demo-card .type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-glow);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.flit-demo-log {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
}
.flit-demo-log strong { color: var(--green); }
.flit-demo-log .when { color: var(--text-muted); font-size: 0.78rem; }
