/*
 * The Try namamp page (public/namamp/index.html), served by nginx at /namamp
 * and /namamp/. A plain static page, not the SPA: it must read without
 * JavaScript. The site's CSP allows no inline style, so the look lives in this
 * file: the privacy policy's sheet (public/privacy/privacy.css), with the
 * explorer's dark surface, inks, green accent and self-hosted fonts
 * (src/styles/tokens.css), plus the three steps and their buttons.
 * It is read on a phone first: 360 px wide with 16 px gutters, every tap
 * target at least 44 px.
 */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0c0f;
  --panel: #0f1216;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #e8eaed;
  --text-hi: #f2f4f6;
  --muted: #8b9199;
  --green: #3ddc84;
  --green-ink: #06231a;
  --dim: #7b828a;
  --border-hover: rgba(255, 255, 255, 0.18);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.try {
  max-width: 36rem;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.try__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.try__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-hi);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.try__brand img {
  display: block;
  width: 22px;
  height: 22px;
}

.try__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

h1,
h2 {
  font-family: var(--font-head);
  color: var(--text-hi);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0 0 10px;
}

h2 {
  font-size: 1.125rem;
  margin: 0 0 6px;
}

p {
  margin: 0 0 12px;
}

.try__tag {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.try__intro {
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 20px;
}

.try__computer {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

/* The three steps: a numbered list the eye follows down, one big button each. */
.steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
}

.step__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
}

.step__body {
  min-width: 0;
}

.step__body p:last-child {
  margin-bottom: 0;
}

.step__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* The buttons: the explorer's secondary .btn (base.css), 44 px, full width on a phone. Nothing glows: the green
   numbered discs carry the sequence (design review P1-2). */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text-hi);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: border-color 120ms ease, background-color 120ms ease;
}

@media (hover: hover) {
  .button:hover {
    border-color: var(--border-hover);
    background: #14181d;
  }
}

.try__box {
  padding: 16px 18px 6px;
  margin-bottom: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.try__box p {
  margin-bottom: 10px;
}

a {
  color: var(--green);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Links in running text get a 44 px tap target without breaking the line's rhythm (the line is 26 px; the foot's 22). */
.try__box a {
  display: inline-block;
  padding: 9px 0;
  margin: -9px 0;
}

.try__foot a {
  display: inline-block;
  padding: 11px 0;
  margin: -11px 0;
}

.try__foot {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.try__foot p {
  margin: 0;
}

/* The narrowest phones: the cards give the button more of the 328 px. */
@media (max-width: 380px) {
  .step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px 16px 12px;
  }

  .step__n {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

@media (min-width: 600px) {
  .try {
    padding-top: 40px;
  }

  .button {
    width: auto;
    display: inline-flex;
    min-width: 280px;
  }
}

/* The app's icon beside the title, and two screenshots of the app (2026-10-22, Andre). */
.try__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
}
.try__title h1 {
  margin: 0;
}
.try__icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 320px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}
.shots figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
@media (min-width: 640px) {
  .shots {
    max-width: 440px;
  }
}
