@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #15171c;
  --surface: #20242c;
  --surface-2: #262a31;
  --chrome: #0f1114;
  --border: #323844;
  --text: #e8eaed;
  --muted: #a0a6b1;
  --accent: #ff7a5c;
  --accent-text: #ff9277;
  --on-accent: #1a0e0a;
  --radius: 6px;
  --radius-lg: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 "Roboto",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

a {
  color: var(--accent-text);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

p {
  margin: 0;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

/* ─── Top bar ──────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--chrome);
  border-bottom: 1px solid #000;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 20px;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 56px;
  background: radial-gradient(ellipse at 80% 0%, rgb(255 122 92 / 12%), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

/* The phones are drawn in HTML, from the app's own screens. */
.phones {
  position: relative;
  height: 460px;
}

.phone {
  position: absolute;
  right: 0;
  top: 0;
  width: 260px;
  border: 8px solid #000;
  border-radius: 32px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgb(0 0 0 / 50%);
  overflow: hidden;
  font-size: 13px;
}

.phone-back {
  right: 200px;
  top: 60px;
  z-index: -1;
  opacity: 0.85;
}

.phone-bar {
  padding: 12px 14px;
  background: var(--chrome);
  color: var(--muted);
  font-size: 12px;
}

.screen {
  display: grid;
  gap: 10px;
  padding: 14px;
  min-height: 330px;
  align-content: start;
}

.screen.center {
  justify-items: center;
  align-content: center;
  text-align: center;
}

.score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.score b {
  display: block;
  font-size: 20px;
  color: #f5b83d;
}

.score span {
  color: var(--muted);
}

.ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(#f5b83d 0 86%, var(--surface-2) 86% 100%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
  mask: radial-gradient(circle, transparent 54%, #000 56%);
}

.label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.suggestion {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.line {
  color: var(--muted);
}

mark {
  background: none;
  color: var(--accent-text);
  font-weight: 500;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.mini {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 12px;
}

.mini.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-text);
  font-size: 12px;
}

.card-line {
  font-size: 17px;
  margin: 8px 0;
}

.card-answer {
  color: var(--muted);
  margin-bottom: 16px;
}

.grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}

.grades span {
  padding: 6px 0;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 11px;
}

.grades .good {
  background: var(--accent);
  color: var(--on-accent);
}

/* ─── Sections ─────────────────────────────────────────────────────────── */

.steps,
.features,
.install,
.faq {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

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

.step-list h3,
.grid h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.step-list p,
.grid p {
  color: var(--muted);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.grid svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install .lead {
  margin-bottom: 20px;
}

.code {
  position: relative;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--chrome);
}

.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}

.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq summary {
  font-size: 18px;
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--chrome);
}

.footer-inner {
  display: grid;
  gap: 8px;
}

/* ─── Phones and tablets ───────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .phones {
    height: 420px;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }

  .phone-back {
    display: none;
  }

  .phone {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .step-list,
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .topbar nav a:not(:last-child) {
    display: none;
  }
}
