@font-face {
  font-family: "Geist";
  src: url("/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --card: #121214;
  --card-2: #16161a;
  --field: #0d0d0f;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);
  --accent: #f3c7b8;
  --accent-deep: #d9a08b;
  --accent-soft: rgba(243, 199, 184, 0.1);
  --accent-line: rgba(243, 199, 184, 0.32);
  --on-accent: #1a1311;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(11, 11, 12, 0.9);
  --r: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  color: var(--ink);
  font-family: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--ink); text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 11, 12, 0.92);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 14px; max-width: 1080px; margin: 0 auto; padding: 16px 20px; }
.brand { display: flex; }
.lockup { height: 19px; width: auto; display: block; }
.bar-sep { width: 1px; height: 18px; background: var(--line-2); }
.bar-title { font-size: 14px; color: var(--muted); }
.enc {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 11px 4px 9px;
}
.enc svg { width: 14px; height: 14px; }

main { padding-top: 36px; }

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.stack > * + * { margin-top: 12px; }
.rise { animation: rise 0.35s ease-out both; }

.intro { padding: 26px 28px 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 500; margin: 0 0 10px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; margin: 0 0 10px; }
.lede { color: var(--muted); margin: 0; max-width: 36em; }
.progress { margin-top: 22px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-row strong { color: var(--ink); font-weight: 600; }
.track { height: 6px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.45s ease; }

.note { display: flex; gap: 12px; padding: 16px 20px; align-items: flex-start; }
.avatar {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: 13px;
}
.note-by { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.note-text { white-space: pre-wrap; }

/* items */
.item { padding: 20px 22px 20px; transition: border-color 0.2s ease; }
.item.is-done { border-color: var(--accent-line); }
.item-head { display: flex; gap: 14px; align-items: flex-start; }
.tile {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.item-title { flex: 1; min-width: 0; }
.item-label { font-size: 16px; font-weight: 600; margin: 1px 0 2px; }
.item-help { color: var(--muted); font-size: 13.5px; margin: 0; }
.item-help a { color: var(--ink); white-space: nowrap; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  margin-top: 2px;
}
.chip svg { width: 13px; height: 13px; }
.chip.ok { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.fields { margin: 16px 0 0 52px; }
.row { display: flex; gap: 8px; align-items: stretch; }
.row + .row, .field + .field { margin-top: 10px; }
.field > span { display: block; font-size: 12px; color: var(--faint); margin-bottom: 5px; }

input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover { border-color: var(--line-3); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: #101012; }
input:disabled, textarea:disabled { opacity: 0.4; cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: var(--faint); }

button { font: inherit; cursor: pointer; border-radius: 10px; transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease; }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-ghost {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--line-2);
  padding: 0 13px;
  font-size: 13px;
}
.btn-ghost:hover { border-color: var(--line-3); background: #1b1b20; }
.btn-ghost svg { width: 15px; height: 15px; }
.btn-link {
  background: none; border: none; padding: 0;
  color: var(--muted); font-size: 13px;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.btn-link:hover { color: var(--ink); text-decoration-color: var(--accent); }
.under { margin: 10px 0 0 52px; }

.warn { display: flex; gap: 7px; align-items: center; margin: 9px 0 0 52px; font-size: 13px; color: var(--accent); }
.warn svg { width: 15px; height: 15px; }

.add {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line-3);
  padding: 15px;
  font-size: 14px;
  border-radius: var(--r);
}
.add:hover { color: var(--ink); border-color: var(--accent); background: rgba(243, 199, 184, 0.04); }

.extra .fields { margin-left: 52px; }

/* send bar */
.sendbar {
  position: sticky;
  bottom: 16px;
  z-index: 4;
  margin-top: 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px 14px 20px;
  background: rgba(22, 22, 26, 0.96);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 20px 40px -18px rgba(11, 11, 12, 0.95);
}
.sendbar-text { flex: 1; min-width: 200px; font-size: 13px; color: var(--muted); }
.sendbar-text strong { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 20px;
  font-weight: 600;
}
.btn-primary:hover { background: #f6d4c8; }
.btn-primary svg { width: 16px; height: 16px; }
.form-error { flex-basis: 100%; margin: 0; color: var(--accent); font-size: 13.5px; display: flex; gap: 7px; align-items: center; }
.form-error svg { width: 15px; height: 15px; }

/* success */
.done { padding: 24px 26px; display: flex; gap: 16px; align-items: flex-start; border-color: var(--accent-line); }
.done-badge { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.done-badge svg { width: 20px; height: 20px; stroke-width: 2.2; }
.done h2 { margin: 2px 0 4px; font-size: 18px; }
.done p { margin: 0; color: var(--muted); }
.done ul { margin: 10px 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.done li { font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
.done .close-hint { color: var(--ink); }

/* states */
.state { padding: 34px 30px; }
.state-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 18px; }
.state-icon svg { width: 22px; height: 22px; }
.state h1 { font-size: 23px; }
.state p { color: var(--muted); margin: 0; max-width: 34em; }

/* trust strip and footer */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.trust-item { display: flex; gap: 12px; padding: 22px 18px 0 0; }
.trust-item + .trust-item { padding-left: 18px; border-left: 1px solid var(--line); }
.trust-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-2); }
.trust-icon svg { width: 15px; height: 15px; }
.trust h2 { font-size: 13.5px; margin: 4px 0 4px; font-weight: 600; }
.trust p { font-size: 13px; color: var(--muted); margin: 0; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 34px; padding-bottom: 40px; font-size: 12.5px; color: var(--faint); }
.foot a { color: var(--muted); }
.fine { color: var(--faint); }

/* skeleton */
.skeleton > * + * { margin-top: 12px; }
.sk-card { padding: 24px 26px; }
.sk { background: var(--card-2); border-radius: 8px; animation: pulse 1.4s ease-in-out infinite; }
.sk + .sk { margin-top: 12px; }
.sk-eyebrow { width: 140px; height: 13px; }
.sk-title { width: 62%; height: 30px; }
.sk-line { width: 82%; height: 14px; }
.sk-bar { width: 100%; height: 8px; margin-top: 22px !important; }
.sk-row { width: 46%; height: 16px; }
.sk-field { width: 100%; height: 44px; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rise, .sk { animation: none; } .fill { transition: none; } }

@media (max-width: 720px) {
  .bar-in { padding: 13px 16px; gap: 10px; }
  .bar-sep, .bar-title { display: none; }
  .wrap { padding: 0 14px; }
  main { padding-top: 22px; }
  .intro { padding: 22px 20px; }
  h1 { font-size: 24px; }
  .item { padding: 18px 16px; }
  .fields, .under, .warn, .extra .fields { margin-left: 0; }
  .row { flex-wrap: wrap; }
  .row .btn-ghost { padding: 10px 13px; }
  .sendbar { bottom: 10px; padding: 12px; }
  .sendbar .btn-primary { width: 100%; justify-content: center; }
  .trust { grid-template-columns: 1fr; }
  .trust-item, .trust-item + .trust-item { padding: 18px 0 0; border-left: none; }
  .done { padding: 20px 18px; }
}
