/* BRCKS scan subdomain — shared stylesheet for scan root, 404, and
   the pad-landing pages (proxied via Vercel rewrite from Supabase).
   One source of truth so the three pages stay visually aligned. */

:root {
  color-scheme: light;
  --brcks-orange: #F8480A;
  --brcks-dark: #141C1C;
  --brcks-cream: #F0F2ED;
  --brcks-lime: #DEF069;
  --brcks-body: #3C4746;
  --brcks-muted: #8787A0;
}

* { box-sizing: border-box; }

html, body { background: var(--brcks-cream); }

body {
  margin: 0;
  padding: 32px 24px;
  font-family: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--brcks-dark);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Logo — the orange five-tile "brick" wordmark. Sits at the top of
   every page centred horizontally. */
.logo {
  width: 160px;
  max-width: 60vw;
  height: auto;
  margin: 0 auto 28px;
  image-rendering: -webkit-optimize-contrast;
}

/* Main content column is capped narrow so long paragraphs stay
   readable at site-phone widths. */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  width: 100%;
}

/* Pad code chip — small dark pill showing the BRCKS-xxxx code above
   the heading, so the scanner can visually confirm the pad before
   reading the status line. */
.chip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--brcks-dark);
  color: var(--brcks-cream);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  margin: 2px 0 14px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Numbered step list inside a callout — used on the pad-landing
   pages so the scanner sees plain "1. do this" instructions rather
   than a paragraph. Each step sits on its own row, number in the
   accent colour, text in dark. Sized for readability on a phone in
   sunlight. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--brcks-dark);
}
.steps li::before {
  content: counter(step);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--brcks-orange);
  text-align: right;
  padding-right: 2px;
}

/* 404 big orange number */
.big404 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 4px;
  color: var(--brcks-orange);
  line-height: 1;
}

p {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--brcks-body);
  max-width: 440px;
}

/* White card with orange left rule. Used for "To start using it"
   instructions on the pad pages. */
.callout {
  background: #fff;
  border-left: 4px solid var(--brcks-orange);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 24px 0 12px;
  text-align: left;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(20, 28, 28, 0.05);
}

.callout strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brcks-orange);
  margin-bottom: 8px;
}

.callout p {
  margin: 0;
  color: var(--brcks-dark);
  font-size: 15px;
}

/* Accent: dark-rule callout (used on pad-not-recognised / void
   pages instead of orange — calmer for error states). */
.callout.dark {
  border-left-color: var(--brcks-dark);
}
.callout.dark strong {
  color: var(--brcks-dark);
}

a {
  color: var(--brcks-orange);
  text-decoration: none;
  font-weight: 700;
}
a:hover {
  text-decoration: underline;
}

code {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(20, 28, 28, 0.08);
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brcks-dark);
}

footer {
  margin-top: 40px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brcks-muted);
}

.footer-bottom {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brcks-muted);
}
