@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/FamiljenGrotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --mint: #5eead4;
  --teal: #0e9f8a;
  --ink: #03211d;
  --paper: #e9fbf7;
  --on-ink-soft: #a9d9d0;
  --sans: "Familjen Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.5 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
code { font: 500 .9em var(--mono); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; max-width: 13em; text-wrap: balance; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }

.band { padding: clamp(64px, 10vw, 136px) var(--gutter); }
.wrap { max-width: 1320px; margin-inline: auto; }

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px var(--gutter);
  font-weight: 600;
}
.top .wrap { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* Hero: the whole first screen is mint, with a key fingerprint drawing itself */
.hero-screen { background: var(--mint); min-height: 100svh; display: flex; flex-direction: column; }
.hero {
  flex: 1;
  width: 100%;
  max-width: calc(1320px + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(3.5rem, 9.6vw, 9rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.hero-lead { margin-top: clamp(24px, 3vw, 40px); max-width: 30em; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.3; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-weight: 600; }
.pill { background: var(--ink); color: var(--mint); padding: 12px 20px; border-radius: 999px; }

.art { margin: 0; }
.art pre {
  margin: 0;
  font: 700 clamp(1.3rem, min(7.6vw, 3.25vw), 3.1rem)/1.04 var(--mono);
  white-space: pre;
  font-variant-ligatures: none;
}
.art .head { background: var(--ink); color: var(--mint); }
.art figcaption { margin-top: 16px; font-size: 1rem; line-height: 1.35; max-width: 27em; }
.art button {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 700 1rem var(--sans);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 2px;
  cursor: pointer;
}
.art button:hover { text-decoration-thickness: 4px; }

/* Screenshot sections */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.feature.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.feature.flip .phone { order: -1; }
.phone {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  border-radius: 13.5% / 6.2%;
  overflow: hidden;
  box-shadow: 0 0 0 8px var(--ink);
  background: var(--ink);
}
.points { margin: clamp(32px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px 48px; }
.points dt { font-size: 1.375rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.points dd { margin: 8px 0 0; max-width: 34em; }

.keys { background: var(--teal); }
.term { background: var(--ink); color: #fff; }
.term .phone { box-shadow: 0 0 0 8px var(--teal); }
.term dd { color: var(--on-ink-soft); }
.term code { color: var(--mint); }

.limit { margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 3px solid var(--ink); max-width: 44em; }
.limit strong { display: block; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 8px; }

/* Plain tables: pricing and network destinations */
table { width: 100%; border-collapse: collapse; margin-top: clamp(32px, 5vw, 56px); }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); vertical-align: top; }
thead th { border-bottom: 3px solid var(--ink); vertical-align: bottom; font-weight: 700; }
tbody th { font-weight: 500; }
.plan { display: block; font-size: 1.5rem; letter-spacing: -.01em; }
.price { display: block; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; margin-top: 4px; }
.price-note { display: block; font-size: 1rem; font-weight: 500; margin-top: 4px; }
.fineprint { margin-top: 20px; font-size: 1rem; max-width: 44em; }
.col-plan { width: 28%; }

.pricing { background: var(--paper); }
.network { background: var(--mint); }
.network .lead, .pricing .lead { margin-top: 20px; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; max-width: 32em; }

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 40px var(--gutter); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Legal and support pages */
.doc-head { background: var(--mint); }
.doc { max-width: 42em; margin-inline: auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 112px); }
.doc h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.035em; }
.doc .date { margin-top: 12px; }
.doc h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.015em; margin-top: 40px; }
.doc p, .doc ul { margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }

@media (max-width: 860px) {
  .hero, .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .hero { align-items: start; }
  .feature.flip .phone { order: 0; }
  .art pre { font-size: min(7.6vw, 3rem); }
  .phone { max-width: 300px; margin-top: 8px; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .top nav .optional { display: none; }
  th, td { padding-right: 10px; }
  .col-plan { width: 27%; }
  .price { font-size: 1.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
