@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --night: #0b1018;
  --panel: #111823;
  --panel-raised: #172030;
  --line: #222d3d;
  --text: #e8edf5;
  --muted: #95a1b3;
  --amber: #ffb23f;
  --amber-ink: #1a1203;
  --ok: #55d69e;
  --warn: #ff8a7a;
  --code-string: #b9c8ff;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-s: 6px;
  --radius-m: 12px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}

p code,
li code,
dt code {
  color: var(--text);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--amber);
  color: var(--amber-ink);
  border-radius: var(--radius-s);
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-tld {
  color: var(--muted);
  font-weight: 500;
}

.nav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-s);
}

.nav-list a:hover {
  color: var(--text);
  background: var(--panel);
}

@media (max-width: 720px) {
  .nav-list li:not(:last-child) {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 650;
  font-size: 0.9375rem;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
}

.button-primary {
  background: var(--amber);
  color: var(--amber-ink);
}

.button-primary:hover {
  background: #ffc266;
}

.button-quiet {
  min-height: 32px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.8125rem;
}

.button-quiet:hover {
  color: var(--text);
  border-color: var(--muted);
}

.button[data-copied] {
  background: var(--ok);
  color: #04130c;
}

.button-quiet[data-copied] {
  background: transparent;
  color: var(--ok);
  border-color: var(--ok);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 104px);
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 34em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  text-wrap: pretty;
}

.prompt {
  margin-top: 32px;
}

.prompt-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.prompt-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.prompt-box code {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .prompt-box {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(20px, 5vw, 40px);
  margin: 36px 0 0;
}

.facts div {
  display: flex;
  flex-direction: column-reverse;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.facts dt code {
  font-size: 0.95em;
  padding: 0 0.25em;
}

.facts dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Panels */

.panel {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.panel-bar-inner {
  border-top: 1px solid var(--line);
}

.code-panel pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.code-panel pre code {
  font-size: inherit;
}

.call {
  color: var(--text);
  font-weight: 600;
}

.ret {
  color: var(--amber);
}

.str {
  color: var(--code-string);
}

.num {
  color: var(--amber);
}

.warn {
  color: var(--warn);
}

.stripped {
  color: var(--warn);
  text-decoration-color: color-mix(in srgb, var(--warn) 70%, transparent);
  opacity: 0.75;
}

/* Hero inbox demo */

.inbox-demo .panel-bar {
  color: var(--text);
}

.inbox-demo .panel-bar .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.timer svg {
  width: 26px;
  height: 26px;
  transform: rotate(-90deg);
}

.timer circle {
  fill: none;
  stroke-width: 4;
}

.timer-track {
  stroke: var(--line);
}

.timer-fill {
  stroke: var(--amber);
  stroke-dasharray: 300;
  stroke-dashoffset: 13;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  min-width: 3.2em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.inbox-body {
  min-height: 236px;
  padding: 16px;
}

.inbox-foot {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.inbox-empty,
.inbox-gone {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.mail {
  padding: 16px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.mail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

.mail-from {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-subject {
  margin: 4px 0 14px;
  font-weight: 650;
}

.mail-fields {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 0.75rem;
}

.mail-fields div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 12px;
}

.mail-fields dt {
  color: var(--muted);
}

.mail-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.otp {
  padding: 1px 6px;
  background: var(--amber);
  color: var(--amber-ink);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ok {
  color: var(--ok);
  white-space: nowrap;
}

.mail[data-arrived] {
  animation: arrive 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mail[data-arrived] .otp {
  animation: pulse 900ms 380ms ease-out both;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 60%, transparent);
  }
  to {
    box-shadow: 0 0 0 10px transparent;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Feature sections */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}

.feature-flip .feature-copy {
  order: 2;
}

.feature-copy p,
.feature-copy li {
  color: var(--muted);
  text-wrap: pretty;
}

.feature-copy p {
  max-width: 32em;
  margin: 18px 0 0;
}

.steps,
.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.steps {
  counter-reset: step;
}

.steps li,
.checks li {
  position: relative;
  padding-left: 36px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-flip .feature-copy {
    order: 0;
  }
}

/* Timeline */

.timeline {
  margin: 0;
  padding: 20px 20px 24px;
  list-style: none;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0 0 22px 22px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.5em + 12px);
  bottom: 2px;
  width: 1px;
  background: var(--line);
}

.timeline .t {
  min-width: 3em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline .timeline-end {
  padding-bottom: 0;
}

.timeline .timeline-end::before {
  background: var(--amber);
}

.timeline .timeline-end .t {
  color: var(--amber);
}

/* Pricing */

.pricing,
.connect {
  padding-block: clamp(48px, 7vw, 88px);
}

.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.price {
  margin: 0;
}

.price-amount {
  display: block;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.price-unit {
  color: var(--muted);
}

.price-main p:not(.price) {
  max-width: 30em;
  margin: 16px 0 24px;
  color: var(--muted);
}

.price-main p.price-note {
  margin-top: 0;
  font-size: 0.875rem;
}

.limits {
  display: grid;
  align-content: start;
  margin: 0;
}

.limits div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.limits div:first-child {
  padding-top: 0;
}

.limits dt {
  color: var(--muted);
}

.limits dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

@media (max-width: 760px) {
  .price-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Connect */

.connect-intro {
  margin: 14px 0 0;
  color: var(--muted);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.connect-grid {
  align-items: start;
}

@media (max-width: 860px) {
  .connect-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.site-footer {
  margin-top: clamp(32px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px 40px;
}

.footer-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  margin: 0;
  padding: 10px 16px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast[data-visible] {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 404 */

.notfound {
  padding-block: 96px;
}

.notfound h1 {
  margin-top: 48px;
}

/* Text pages: terms, privacy, activated */

.doc {
  max-width: 46rem;
  padding-block: clamp(40px, 7vw, 80px) 24px;
}

.doc h1 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
}

.doc .updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin-top: 48px;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.doc p,
.doc li {
  color: var(--muted);
  text-wrap: pretty;
}

.doc p {
  margin: 14px 0 0;
}

.doc ul {
  margin: 14px 0 0;
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--text);
  font-weight: 650;
}

.doc a {
  color: var(--text);
}

.doc table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc th,
.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  color: var(--text);
  font-weight: 650;
}

.doc td {
  color: var(--muted);
}

.doc .table-scroll {
  overflow-x: auto;
}

.next-steps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.next-steps li {
  position: relative;
  padding: 16px 16px 16px 56px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.next-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
