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

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-500.83c497a1c0.woff2") format("woff2");
}

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

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.14425ba9c6.woff2") format("woff2");
}

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

:root {
  --bg: #0f141b;
  --bone: #ece7db;
  --amber: #d08a2e;
  --amber-hover: #db973c;
  --sub: #b9bfc8;
  --slate: #8a93a0;
  --line: #27303b;
  --card: #141b24;
  --input: #161d26;
  --ink: #0f141b;
  --error: #f3d5c8;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--bone);
  font-family: "Schibsted Grotesk", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrap {
  width: min(1296px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 84px;
  border-bottom: 1px solid var(--line);
}

.bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: block;
  flex: none;
  line-height: 0;
}

.logo img {
  width: 167px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--sub);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--bone);
}

.hero {
  padding: 104px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: slashed-zero;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: none;
}

h1 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(2.65rem, 5.4vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.lede {
  margin: 22px 0 0;
  max-width: 32rem;
  color: var(--sub);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
}

.signup {
  margin-top: 32px;
  max-width: 36rem;
}

.form-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.email {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #2c3642;
  background: var(--input);
  color: var(--bone);
  padding: 0 16px;
  font-size: 16px;
  font-weight: 400;
}

.email::placeholder {
  color: var(--slate);
  opacity: 1;
}

.email:focus-visible {
  outline-color: var(--amber);
  border-color: var(--amber);
}

.submit {
  flex: none;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.submit:hover {
  background: var(--amber-hover);
}

.submit:focus-visible {
  outline-color: var(--bone);
}

.submit[aria-busy="true"] {
  cursor: progress;
}

.status {
  margin: 14px 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.status:empty {
  margin: 0;
}

.status[data-state="joined"] {
  color: var(--bone);
}

.status[data-state="error"] {
  color: var(--error);
}

.price {
  margin: 16px 0 0;
  color: var(--sub);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: slashed-zero;
}

.fine,
.tax,
.privacy {
  margin: 8px 0 0;
  max-width: 36rem;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.45;
}

.tax {
  margin-top: 4px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-title {
  margin: 0;
  color: var(--bone);
  font-size: 15px;
  font-weight: 500;
}

.pill {
  flex: none;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #3a4553;
  border-radius: 999px;
  color: var(--slate);
  background: transparent;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
}

.ledger th {
  padding: 10px 8px 8px 0;
  color: var(--slate);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.ledger td {
  padding: 11px 8px 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: middle;
}

.ledger th:last-child,
.ledger td:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

.account {
  color: var(--bone);
  font-weight: 500;
}

.loss {
  color: var(--bone);
  font-weight: 600;
}

.when,
.quiet {
  color: var(--slate);
}

.flag {
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--bone);
  transform: translateY(-1px);
}

.flag-window {
  color: var(--amber);
}

.flag-window .dot {
  background: var(--amber);
}

.flag-clear {
  color: var(--bone);
}

.col-narrow {
  display: none;
}

.safe {
  padding-top: 12px;
}

.safe-kicker {
  margin: 0;
  color: var(--slate);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safe-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.safe-date {
  margin: 0;
  color: var(--bone);
  font-size: 2.35rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.safe-left {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.days {
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.85rem;
  font-weight: 500;
  font-variant-numeric: slashed-zero;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.ruler {
  margin-top: 16px;
}

.today-row {
  position: relative;
  height: 16px;
  margin-bottom: 6px;
}

.today-label {
  position: absolute;
  left: calc(100% * 8 / 31);
  margin: 0;
  color: var(--sub);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: slashed-zero;
}

.ticks {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 28px;
}

.tick {
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: #3c4654;
}

.tick.elapsed {
  height: 16px;
  background: var(--amber);
}

.tick.today {
  height: 26px;
  background: var(--bone);
}

.tick.end {
  height: 18px;
  background: var(--bone);
}

.ruler-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--slate);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-variant-numeric: slashed-zero;
}

.features {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}

.features ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features h3 {
  margin: 0;
  color: var(--bone);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.num {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.features li p {
  margin: 8px 0 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.45;
}

.band {
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

.band h2 {
  margin: 0 0 14px;
  color: var(--bone);
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.band p,
.faq dd {
  margin: 0;
  max-width: 40rem;
  color: var(--sub);
  font-size: 1.02rem;
  line-height: 1.55;
}

.band p + p {
  margin-top: 12px;
}

.faq dt {
  margin: 22px 0 6px;
  color: var(--bone);
  font-weight: 600;
}

.faq dl {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.site-footer p {
  margin: 0;
  color: var(--slate);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.home-link {
  color: var(--amber);
  font-weight: 600;
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 470px;
    column-gap: 72px;
  }
}

@media (min-width: 1280px) {
  .wrap {
    width: min(1296px, calc(100% - 144px));
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 64px;
  }

  .nav a:not(.nav-faq) {
    display: none;
  }

  .nav a.nav-faq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
  }

  .hero {
    padding: 28px 0 16px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .lede {
    font-size: 1.05rem;
  }

  .form-row {
    flex-direction: column;
  }

  .submit {
    width: 100%;
  }

  .features ol {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .safe-date {
    font-size: 2.15rem;
  }

  .days {
    font-size: 2.7rem;
  }

  .col-wide {
    display: none;
  }

  .col-narrow {
    display: inline;
  }
}

@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
