@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/integrations/webflow/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/integrations/webflow/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("/integrations/webflow/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/integrations/webflow/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f5f0e6;
  --raised: #fffaf0;
  --ink: #141612;
  --ink-2: #474a38;
  --ink-3: #666553;
  --rule: #cac2ae;
  --rule-firm: #9d967d;
  --cobalt: #2558a8;
  --cobalt-deep: #1e477f;
  --face: #f8a741;
  --face-ink: #141612;
  --edge: #2558a8;
  --token: #f1ebdf;
  --focus: rgb(37 88 168 / 22%);
  --danger: #ac4e35;
  --danger-bg: rgb(172 78 53 / 9%);
  --shadow: 0 1px 0 rgb(36 39 34 / 4%), 0 12px 32px -18px rgb(36 39 34 / 28%);
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #121821;
  --raised: #1a2230;
  --ink: hsl(0deg 0% 92%);
  --ink-2: hsl(0deg 0% 79%);
  --ink-3: hsl(0deg 0% 66%);
  --rule: #2b3545;
  --rule-firm: #3c485b;
  --cobalt: #80acf0;
  --cobalt-deep: #a6c4f5;
  --face: #edc447;
  --face-ink: #141612;
  --edge: #8e6a12;
  --token: #222c3b;
  --focus: rgb(237 196 71 / 25%);
  --danger: #f0a58f;
  --danger-bg: rgb(240 165 143 / 10%);
  --shadow: 0 1px 0 rgb(0 0 0 / 30%), 0 16px 40px -20px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--rule);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.mark { width: 30px; height: 22px; color: var(--ink); }
.word { font-weight: 650; letter-spacing: -0.01em; font-size: 16px; }
.for { color: var(--ink-3); font-size: 14px; }

.who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }

.chip {
  display: inline-block;
  padding: 4px 10px;
  line-height: 1.35;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--raised);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip .dot { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; vertical-align: middle; border-radius: 50%; background: #3f8f4f; }

.shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shell.narrow { max-width: 520px; padding-top: 12vh; }

.sheet {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#app { display: flex; flex-direction: column; gap: 16px; }

.display {
  font-family: var(--display);
  font-weight: 480;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.message h1 { font-family: var(--display); font-weight: 480; font-size: 28px; margin: 0; }
.message p { margin: 0; color: var(--ink-2); }

.eyebrow {
  margin: 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.lede { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 12px/1 var(--mono);
  color: var(--ink);
  border: 1px solid var(--rule-firm);
  flex: none;
}

.num.ok { background: var(--cobalt); border-color: var(--cobalt); color: var(--raised); }
.num.live { border-color: var(--cobalt); position: relative; }
.num.live::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.8); } }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stack { display: flex; flex-direction: column; gap: 12px; }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.end { align-items: flex-end; }
.row .button.primary:last-child { margin-left: auto; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.compact { width: 150px; }

.label { font-size: 13px; font-weight: 550; color: var(--ink-2); }

input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-firm);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

input:focus, select:focus, textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--focus); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font: 600 14.5px/1 var(--sans);
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--rule-firm);
  border-radius: 8px;
  box-shadow: 0 2px 0 var(--rule-firm);
  cursor: pointer;
  text-decoration: none;
  transform: translateY(-1px);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
  white-space: nowrap;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--rule-firm); }
.button:active { transform: translateY(1px); box-shadow: 0 0 0 var(--rule-firm); }

.button.primary {
  background: var(--face);
  color: var(--face-ink);
  border-color: var(--edge);
  box-shadow: 0 2px 0 var(--edge);
}

.button.primary:hover { box-shadow: 0 3px 0 var(--edge); }
.button.primary:active { box-shadow: 0 0 0 var(--edge); }
.button.danger { color: var(--danger); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.button:focus-visible, .quiet:focus-visible, .link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.quiet {
  background: none;
  border: 0;
  padding: 4px 2px;
  font: 500 13px/1 var(--sans);
  color: var(--ink-3);
  cursor: pointer;
}

.quiet:hover { color: var(--ink); }

.link { color: var(--cobalt); font-weight: 550; font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; }

.hint { margin: 0; font-size: 13px; color: var(--ink-3); }

.note {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--token);
  border-radius: 8px;
  padding: 10px 12px;
}

.error {
  margin: 0;
  font-size: 13.5px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 8px;
  padding: 10px 12px;
}

.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.reading {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--cobalt);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}

.tokens { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.tokens + .tokens { margin-top: 8px; }
.tokens-title { font: 500 11.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.tokens-list { display: flex; flex-wrap: wrap; gap: 6px; }
.token { font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--token); border: 1px solid var(--rule); color: var(--ink); }

.price-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--rule-firm);
  border-radius: 10px;
  background: var(--paper);
}

.price-card > div { display: flex; flex-direction: column; gap: 4px; }
.price-card .hint { max-width: 300px; text-align: right; }

.figure {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

.count { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.meter { height: 6px; border-radius: 3px; background: var(--token); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--cobalt); transition: width 0.5s ease; }
.meter.waiting span { width: 28%; animation: meter-read 1.6s ease-in-out infinite; }
@keyframes meter-read { from { transform: translateX(-100%); } to { transform: translateX(360%); } }

.fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fields li { font-size: 13px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper); }
.fields li.new { border-color: var(--cobalt); }
.fields li small { color: var(--ink-3); margin-left: 4px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--cobalt); }

.past summary { cursor: pointer; color: var(--cobalt); font-weight: 550; font-size: 14px; list-style: none; }
.past summary::-webkit-details-marker { display: none; }
.past summary::before { content: "+ "; }
.past[open] summary::before { content: "\2212  "; }
.past-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.past-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}
.past-item:hover { border-color: var(--cobalt); }
.past-item span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.spinner {
  width: 22px;
  height: 22px;
  margin: 24px auto;
  border-radius: 50%;
  border: 2px solid var(--rule);
  border-top-color: var(--cobalt);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 0; font-size: 13px; color: var(--ink-3); }

.legal { display: flex; justify-content: center; gap: 20px; padding: 24px 20px 32px; font-size: 13px; }
.legal a { color: var(--ink-3); text-decoration: none; }
.legal a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .top { padding: 14px 16px; }
  .shell { padding: 20px 16px; }
  .sheet { padding: 18px; }
  .grid { grid-template-columns: 1fr; }
  .display { font-size: 28px; }
  .price-card { flex-direction: column; align-items: flex-start; }
  .price-card .hint { text-align: left; }
  .for, #who-webflow { display: none; }
  .quiet { white-space: nowrap; flex: none; }
  .who { flex-wrap: nowrap; }
  .who .chip { max-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .meter.waiting span { width: 100%; opacity: 0.35; }
}
