/* HyperScanner — Obsidian Lime, as the app: #B2FA4B on #090C08, dark only.
   Lime is kept for what the app keeps it for: the commit button, ticks,
   section titles and the line under the lockup. Everything else is ink,
   paper greys and white. */

:root {
  --canvas:  #090c08;
  --text:    #f2f4ef;
  --muted:   #a3a99f;
  --rule:    #20251e;
  --bar:     #242424;   /* the app's section bar, white at 14% */
  --well:    #12160f;
  --card:    #1a1d18;
  --lime:    #b2fa4b;
  --on-lime: #090c08;
  --measure: 38rem;
  color-scheme: dark;
}

* { 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(--canvas);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 22px; }

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--lime); color: var(--on-lime); font-weight: 600;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- header ---- */

header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 26px 0 0;
}
.home { display: block; }
.wordmark { display: block; height: 21px; width: auto; }
header.site nav { display: flex; gap: 6px; font-size: 15px; }
header.site nav a {
  color: var(--muted); text-decoration: none;
  padding: 10px 10px; border-radius: 999px;
}
header.site nav a:hover { color: var(--text); }

/* ---- type ---- */

h1 {
  text-wrap: balance;
  font-size: clamp(2.5rem, 7vw, 4.1rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 0 22px;
}
h2 {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0;
}
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 6px; }
p  { margin: 0 0 16px; max-width: var(--measure); }
.lede  { font-size: 1.2rem; color: var(--muted); max-width: 33rem; }
.small { font-size: 0.92rem; color: var(--muted); }

/* The app's own line under the lockup: lime, rounded, tracked wide. */
.tagline {
  font: 500 0.82rem/1.2 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.24em; color: var(--lime); margin: 0 0 18px;
}

/* A section heading drawn as the app draws them: a dark bar with the title
   in lime caps, running to the edges of the column. */
.bar {
  background: var(--bar); color: var(--lime);
  padding: 11px 22px; margin: 0 -22px 30px;
}

/* ---- layout ---- */

section { padding: 64px 0; border-top: 1px solid var(--rule); }
main > section:first-child { border-top: 0; }
.hero { padding: 56px 0 64px; }

.row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }

/* ---- phones ---- */

.phone {
  background: #1c201a;
  border-radius: 46px;
  padding: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.phone img {
  display: block; width: 100%; height: auto;
  border-radius: 37px;
}

.hero-shots {
  position: relative; display: grid; justify-items: center;
  min-height: 0;
}
/* Sized by the column, so the back phone's offset never runs past it. */
.hero-shots .phone { width: min(270px, 62%); }
.hero-shots .back {
  grid-area: 1 / 1; transform: translate(34%, 6%) scale(0.9);
  opacity: 0.9;
}
.hero-shots .front { grid-area: 1 / 1; transform: translateX(-16%); }

/* ---- controls ---- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.btn-primary {
  display: inline-block; background: var(--lime); color: var(--on-lime);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 32px; border-radius: 999px;
}
/* The App Store button is not a link until there is something to link to. */
.btn-primary.is-pending {
  background: transparent; color: var(--lime);
  box-shadow: inset 0 0 0 1.5px var(--lime); cursor: default;
}
.btn-quiet {
  display: inline-block; color: var(--muted); text-decoration: none;
  font-size: 0.97rem; padding: 14px 8px;
}
.btn-quiet:hover { color: var(--text); }

/* ---- how it works ---- */

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.steps li { counter-increment: step; }
.steps .phone { width: min(230px, 100%); margin: 0 auto 26px; }
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 8px;
  font: 700 0.74rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em; color: var(--lime);
}
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---- features ---- */

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.features li {
  background: var(--card); border-radius: 18px; padding: 22px 22px 20px;
}
.features h3 { display: flex; gap: 10px; align-items: baseline; }
/* The lime tick from the app's selection circles. */
.features h3::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--lime); transform: translateY(-1px);
}
.features p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- side panel ---- */

.panel {
  background: var(--card); border-radius: 18px; padding: 22px 24px;
  margin-top: 26px; max-width: var(--measure);
}
.panel h3 { margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }
.solo .phone { width: min(250px, 70vw); margin: 0 auto; }

/* ---- prose pages ---- */

.prose { padding: 48px 0 72px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: 8px; }
.prose h2 {
  font-size: 0.95rem; color: var(--lime); letter-spacing: 0.08em;
  margin: 42px 0 12px;
}
.prose h3 { margin-top: 28px; }
.prose ul { max-width: var(--measure); padding-left: 1.1rem; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--lime); }
.prose .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 34px; }
.prose a:not(.btn-primary) { color: var(--lime); }
.pad-top { margin-top: 24px; }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--rule); padding: 30px 0 46px;
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: var(--muted);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.site a { color: var(--muted); text-decoration: none; padding: 6px 0; }
footer.site a:hover { color: var(--text); }

/* ---- narrow ---- */

@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  /* The lockup gives way before the links do, down to a 320px screen. */
  .home { flex: 0 1 auto; min-width: 0; }
  .wordmark { height: auto; width: 100%; max-width: 181px; }
  header.site { gap: 8px; }
  header.site nav { gap: 0; font-size: 14px; }
  header.site nav a { padding: 10px 7px; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps .phone { width: min(250px, 72vw); }
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-shots .phone { width: min(230px, 56vw); }
}
