/* Nordic minimal — white, generous whitespace, quiet typography */
:root {
  --ink:    #0f0f10;
  --ink-2:  #3a3a3d;
  --muted:  #8a8a8d;
  --hair:   #ececec;
  --paper:  #ffffff;
  --paper-2:#fafafa;
  --accent: #0f0f10;

  --serif:  "Fraunces", "Source Serif 4", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono { font-family: var(--mono); }

/* ── Shell ─────────────────────────────────────── */
.shell { max-width: 1080px; margin: 0 auto; padding: 0 48px; }

/* ── Topbar ────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.brand .mark {
  width: 22px; height: 22px; background: var(--ink); border-radius: 4px;
  display: grid; place-items: center; color: var(--paper);
}
.brand .name { font-weight: 600; letter-spacing: -0.01em; }
.topbar .github {
  font-size: 13px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.topbar .github:hover { color: var(--ink); }

/* ── Hero ──────────────────────────────────────── */
.hero {
  padding: 56px 0 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 300; }
.hero p.sub {
  margin: 22px auto 0;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero .cta {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: transform .14s ease, background .14s;
}
.hero .cta:hover { transform: translateY(-1px); }
.hero .cta .arr { font-family: var(--mono); }
.hero .caption {
  margin-top: 14px; font-size: 12px; color: var(--muted);
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* ── Hero image ───────────────────────────────── */
.hero-image-wrap {
  margin: 64px auto 0;
  padding: 0 24px;
  max-width: 1200px;
}
.hero-image {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 24px 48px -12px rgba(0,0,0,.08);
  position: relative;
}
.hero-image .inner {
  position: relative; width: 100%;
  /* holds the live report scaled to fit */
}
.hero-image .chrome {
  height: 36px; background: #fafafa;
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; padding: 0 14px; gap: 8px;
}
.hero-image .chrome .dot {
  width: 10px; height: 10px; border-radius: 999px; background: #e4e4e4;
}
.hero-image .chrome .url {
  flex: 1; margin: 0 12px;
  height: 22px; background: #fff; border: 1px solid var(--hair);
  border-radius: 999px; display: flex; align-items: center;
  padding: 0 12px; font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────── */
.foot {
  padding: 64px 0 40px;
  text-align: center;
  font-size: 12px; color: var(--muted); font-family: var(--mono);
}

/* ── Interactive playground ─────────────────── */
.pg-wrap {
  margin: 56px auto 0;
  padding: 0 24px;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pg-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Left: step + title + notes */
.pg-aside {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}
.pg-step {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pg-title {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 14px;
}
.pg-lede {
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.pg-bullets {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.pg-bullets li {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  padding-left: 16px; position: relative;
}
.pg-bullets li::before {
  content: ""; position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 1px; background: var(--ink);
}
.pg-reset--inline {
  align-self: flex-start;
  font-size: 12px; color: var(--muted);
  padding: 6px 0;
}
.pg-reset--inline:hover { color: var(--ink); }

/* Live dot */
.pg-tab-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--muted);
}
.pg-tab-dot[data-live="true"] {
  background: #e64a3b;
  box-shadow: 0 0 0 0 rgba(230, 74, 59, 0.6);
  animation: pgPulse 1.6s ease-out infinite;
}
@keyframes pgPulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 74, 59, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(230, 74, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 74, 59, 0); }
}

/* Right: shared frame — identical geometry across both cards */
.pg-frame {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Recording phone — centered inside the frame */
.pg-phone {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 20px 40px -16px rgba(0,0,0,.1);
}

/* Report stage — fills the frame, scales to fit */
.pg-report-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}

@media (max-width: 860px) {
  .pg-card { grid-template-columns: 1fr; gap: 18px; }
  .pg-frame { height: 600px; }
}
