:root {
  --paper: #f3f5f8;
  --sheet: #ffffff;
  --ink: #101828;
  --slate: #5b6576;
  --cobalt: #2747f5;
  --cobalt-deep: #1a33c4;
  --open: #12925a;
  --rule: #d9dee6;
  --taken: #9aa3af;
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
code { font: 0.9em ui-monospace, Menlo, monospace; background: #e6e9ef; padding: 0.1em 0.35em; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.mark { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.15s;
}
.btn:hover { background: var(--cobalt-deep); }
.btn.small { font-size: 15px; padding: 9px 18px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0 72px;
}
h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.lede { font-size: 20px; color: var(--slate); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.quiet { font-weight: 600; }
.fine { font-size: 14px; color: var(--slate); margin: 20px 0 0; max-width: 32em; }

/* The name specimen: the one moving thing on the page */
.specimen {
  margin: 0;
  background: var(--sheet);
  border-radius: 28px;
  padding: 40px 40px 32px;
  box-shadow: 0 1px 0 rgb(16 24 40 / 0.04), 0 24px 48px -24px rgb(16 24 40 / 0.18);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.prompt { margin: 0 0 32px; font-size: 16px; color: var(--slate); min-height: 1.6em; }
.said { border-right: 2px solid transparent; }
.typing .said { border-right-color: var(--cobalt); }
.name {
  margin: 0;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.endings { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.endings li {
  font-weight: 650;
  font-size: 17px;
  color: var(--open);
  background: #e3f4ec;
  padding: 5px 12px;
  border-radius: 999px;
}
.endings li.taken { color: var(--taken); background: #eef0f3; text-decoration: line-through; }
.also { margin: 24px 0 0; color: var(--slate); font-size: 16px; }
.specimen figcaption { margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--taken); }

.reveal .name, .reveal .endings li, .reveal .also { animation: arrive 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.reveal .endings li:nth-child(2) { animation-delay: 0.12s; }
.reveal .endings li:nth-child(3) { animation-delay: 0.18s; }
.reveal .endings li:nth-child(4) { animation-delay: 0.24s; }
.reveal .endings li:nth-child(1) { animation-delay: 0.06s; }
.reveal .also { animation-delay: 0.32s; }
.hidden-out .name, .hidden-out .endings, .hidden-out .also { opacity: 0.08; transition: opacity 0.25s; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal .name, .reveal .endings li, .reveal .also { animation: none; }
}

/* Screenshot */
.shot img {
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08), 0 40px 80px -40px rgb(16 24 40 / 0.45);
}

/* Sections */
section h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 32px; }
.how, .local, .install, .faq { padding-top: 112px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.install .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-weight: 850; font-size: 15px; color: var(--cobalt); margin-bottom: 10px; }
.steps h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--slate); font-size: 17px; }

.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.cols > p { margin: 0; font-size: 22px; line-height: 1.5; letter-spacing: -0.01em; max-width: 30em; }
.facts { margin: 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 700; }
.facts dd { margin: 2px 0 0; color: var(--slate); }

.intro { margin: -12px 0 40px; color: var(--slate); max-width: 36em; }
.setup { margin: 56px 0 40px; }
.setup img { border-radius: 18px; max-width: 760px; width: 100%; box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08); }

.faq dl { margin: 0; max-width: 46em; }
.faq dt { font-weight: 700; margin-top: 24px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--slate); }

.foot { padding: 112px 0 48px; color: var(--slate); font-size: 15px; }

/* Narrow screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 24px; }
  .steps, .install .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { width: min(1120px, 100% - 32px); }
  .bar { padding: 16px 0; }
  .lede { font-size: 18px; }
  .specimen { padding: 28px 24px 24px; border-radius: 22px; min-height: 0; }
  .steps, .install .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how, .local, .install, .faq { padding-top: 80px; }
  .cols > p { font-size: 19px; }
  .shot img, .setup img { border-radius: 12px; }
}
