/* NZZL x VoveID POC. Tokens follow the NZZL v2 web (nzzl-frontend develop, src/styles/tailwind.css). */
@font-face {
  font-family: 'Overused Grotesk';
  src: url('/assets/fonts/OverusedGrotesk-VF.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --cyan: #49e4f5;
  --cyan-hover: #9cebf6;
  --cyan-soft: #e5f8fa;
  --cyan-wash: #f6fdfe;
  --cyan-line: #9cebf6;
  --cyan-ink: #0e7f8c;
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #d4d4d4;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --green-bg: #e7f6ec;
  --green-ink: #1d7a3d;
  --amber-bg: #fff3d6;
  --amber-ink: #a85a00;
  --red-bg: #fdecea;
  --red-ink: #b42318;
  --violet-bg: #f1ecfe;
  --violet-ink: #5b3cc4;
  --r-card: 24px;
  --r-ctl: 16px;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Overused Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Header with the cyan wash of the v2 designs */
.topbar {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 140% at 50% -40%, rgb(73 228 245 / 0.22), transparent 70%),
    var(--surface);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand-section { padding-left: 20px; border-left: 1px solid var(--line-strong); color: var(--ink-2); font-weight: 500; }
.topbar-center { flex: 1; text-align: center; font-size: 14px; color: var(--muted); }
.topbar-center strong { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px; font-weight: 500;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.avatar.cyan { background: var(--cyan); color: var(--ink); }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  background: var(--green-bg); color: var(--green-ink);
  font-size: 12.5px; font-weight: 600;
  animation: rise 0.5s var(--ease) both;
}
.verified-badge svg { width: 14px; height: 14px; }

/* Banners */
.banner {
  font-size: 14px;
  padding: 10px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.banner button { margin-left: 8px; }
.banner.sim { background: #fff8e6; color: #6b4600; }
.banner.act { background: var(--cyan-soft); color: #0b5560; }

/* Layout */
.page { max-width: 768px; margin: 0 auto; padding: 48px 24px 140px; }
.page.wide { max-width: 1200px; }
.eyebrow { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; margin: 40px 0 14px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 600px; margin: 0; }
.lead strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }

/* Hero: status card floating on a wash, like "Verification in progress" in the v2 host flow */
.hero {
  margin-top: 32px;
  border-radius: 28px;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--cyan-soft), var(--cyan-wash));
  border: 1px solid #d3f2f6;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgb(14 127 140 / 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.hero-card {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border-radius: 22px;
  padding: 16px 18px 16px 16px;
  box-shadow: var(--shadow);
  min-width: min(420px, 100%);
  animation: rise 0.6s var(--ease) both;
}
.hero-card .tile { width: 48px; height: 48px; }
.hero-card .label { font-size: 13px; color: var(--muted); }
.hero-card .value { font-weight: 600; }
.hero-card .pill { margin-left: auto; }

@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Step cards ("Where you are") */
.steps { display: grid; gap: 12px; }
.step {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.step.active { border-color: var(--cyan-line); background: var(--cyan-wash); }
.step .body { flex: 1; min-width: 0; }
.step .title { font-weight: 600; }
.step .desc { font-size: 14px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.tile {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
}
.tile svg { width: 22px; height: 22px; }
.tile.green { background: var(--green-bg); color: var(--green-ink); }
.tile.cyan { background: var(--cyan-soft); color: var(--cyan-ink); }
.tile.amber { background: var(--amber-bg); color: var(--amber-ink); }
.tile.red { background: var(--red-bg); color: var(--red-ink); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  font-size: 13px; font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
}
.pill.green { background: var(--green-bg); color: var(--green-ink); }
.pill.amber { background: var(--amber-bg); color: var(--amber-ink); }
.pill.red { background: var(--red-bg); color: var(--red-ink); }
.pill.cyan { background: var(--cyan-soft); color: var(--cyan-ink); }
.pill.violet { background: var(--violet-bg); color: var(--violet-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font-weight: 600; font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: var(--cyan-hover); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-link { background: none; border: 0; padding: 0; height: auto; color: inherit; text-decoration: underline; font-weight: 600; cursor: pointer; }
.btn .spin { width: 16px; height: 16px; }
.btn-block { width: 100%; }

/* Bottom action bar of the v2 flows */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 5;
}
.actionbar-progress { height: 4px; background: var(--line); }
.actionbar-progress span { display: block; height: 100%; background: var(--cyan); transition: width 0.6s var(--ease); }
.actionbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
}

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input { height: 50px; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgb(73 228 245 / 0.25); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--cyan-ink); }
.error { color: var(--red-ink); font-size: 14px; margin: 8px 0 0; min-height: 1em; }

/* Info note */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  font-size: 14px; color: var(--ink-2);
}
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* Rating */
.rating { display: flex; gap: 8px; margin: 4px 0 16px; }
.rating button {
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 600; cursor: pointer;
}
.rating button[aria-pressed='true'] { background: var(--cyan); border-color: var(--cyan); }
.rating-scale { display: flex; justify-content: space-between; max-width: 272px; font-size: 12px; color: var(--muted); }

/* Card */
.card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; background: var(--surface); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* Spinner */
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.auth {
  min-height: calc(100vh - 81px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-form form { width: 100%; max-width: 400px; }
.auth-art {
  margin: 16px 16px 16px 0;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--cyan-soft), var(--cyan-wash));
  border: 1px solid #d3f2f6;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 40px;
  color: var(--ink);
}
.auth-art::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(14 127 140 / 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
}
.auth-demo { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -60%); display: grid; gap: 12px; width: min(400px, 80%); }
.auth-demo .hero-card { min-width: 0; }
.auth-demo .hero-card:nth-child(2) { margin-left: 32px; animation-delay: 0.15s; }
.auth-art blockquote { position: relative; z-index: 1; margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; max-width: 440px; }
.auth-art cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; color: var(--ink-2); }

/* Admin */
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.kpi .n { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.kpi .l { font-size: 13px; color: var(--muted); }
.table-wrap { border: 1px solid var(--line); border-radius: 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfbfb; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; }
.check .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--line-strong); }
.check .dot.ok { background: #2fb45a; }
.check .dot.ko { background: #e5484d; }
.check .dot.warn { background: #f5a524; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--line-strong); overflow-wrap: anywhere; word-break: break-all; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
pre { white-space: pre-wrap; word-break: break-all; margin: 6px 0 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { margin-bottom: 14px; }

/* Simulator */
.sim-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #0b1416; }
.sim { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; padding: 28px; }
.sim h1 { font-size: 24px; }
.sim .choices { display: grid; gap: 10px; margin-top: 20px; }
.sim .choices .btn { justify-content: flex-start; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 640px) {
  .topbar-inner { height: 64px; padding: 0 16px; }
  .brand-section, .topbar-center, .user-chip .name { display: none; }
  .page { padding: 32px 16px 140px; }
  .options { grid-template-columns: 1fr; }
  .step { padding: 16px; align-items: flex-start; }
  .step .pill { margin-top: 2px; }
  .actionbar-inner { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .actionbar-inner .btn { flex: 1; padding: 0 12px; }
  .hero { min-height: 180px; padding: 28px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
