/* site.css — the styles for loca.ie (index, privacy, thanks, 404).
 *
 * The brand, as in the app (src/theme.js and claude/ui-principles.md):
 *   Boyne green #064E3B (deepened for the page), gold #FBBF24 for the one
 *   main action and big numbers, Drogheda red #DC2626 used sparingly,
 *   Paper #F7F5EF. Flat colours, no gradients.
 *   Bricolage Grotesque 800 for titles, big numbers and the wordmark;
 *   Inter for everything you read.
 */
:root {
  --ground: #053b2d;      /* the app's green, deepened */
  --band: #064e3b;        /* raised band: Boyne green */
  --ink: #f3f7f4;
  --muted: #a9c4b8;
  --gold: #fbbf24;
  --red: #dc2626;
  --mint: #a7f3d0;
  --paper: #f7f5ef;
  --line: rgba(255,255,255,0.12);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 620px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.2; }
p { margin: 0; max-width: 60ch; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.small { font-size: 0.9375rem; }
.tiny { font-size: 0.8125rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Header */
header.top { padding-block: 18px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.625rem/1 var(--display); letter-spacing: -0.03em; }
.brand b { color: var(--gold); font-weight: 800; }
.navlink { font-weight: 700; font-size: 0.9375rem; text-decoration: none; color: var(--gold); }
.navlink:hover { text-decoration: underline; }

/* Buttons: one gold action per band */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0; font: 800 1rem/1 var(--body); text-decoration: none; cursor: pointer; }
.btn.gold { background: var(--gold); color: #052e22; }
.btn.gold:hover { filter: brightness(1.05); }
.btn.quiet { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn.quiet:hover { background: rgba(255,255,255,0.06); }

/* Hero */
.hero { padding-block: 32px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.1875rem; margin-top: 20px; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { margin-top: 14px; font-size: 0.875rem; }
.mark { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; }

.phone { width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 40px; background: #0b1f19; padding: 12px; box-shadow: 0 30px 70px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #ecebe6; }
.screen svg { display: block; width: 100%; height: 100%; }
.chip { position: absolute; left: 12px; top: 14px; background: rgba(6,78,59,0.94); color: #fff; font: 700 0.75rem/1 var(--body); padding: 7px 11px; border-radius: 999px; }
.add { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; background: var(--gold); color: #052e22; font: 800 0.9375rem/1 var(--body); text-align: center; padding: 15px 26px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); white-space: nowrap; }
.cap { text-align: center; font-size: 0.75rem; margin-top: 10px; }

/* Bands */
section.band { padding-block: 72px; border-top: 1px solid var(--line); }
.kicker { font: 700 0.8125rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--band); border-radius: 20px; padding: 22px; min-width: 0; }
.steps li::before { content: counter(s); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(251,191,36,0.16); color: var(--gold); font: 800 0.9375rem/1 var(--display); margin-bottom: 14px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.fig { min-width: 0; }
.fig .n { font: 800 clamp(2rem, 5vw, 2.75rem)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fig .l { font-weight: 600; margin-top: 8px; }
.fig .s { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
.source { font-size: 0.8125rem; color: var(--muted); margin-top: 24px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--band); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card ul li + li { margin-top: 4px; }

/* Early access form */
.join { background: var(--band); }
.join p.muted { margin-top: 10px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; font-weight: 600; font-size: 0.9375rem; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field input[type=email], .field input[type=url] { height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: var(--ink); font: 400 1rem var(--body); width: 100%; }
.field input::placeholder { color: rgba(255,255,255,0.45); }
fieldset.field { display: block; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; cursor: pointer; }
.pill:has(input:checked) { background: rgba(251,191,36,0.16); border-color: var(--gold); }
.pill input { accent-color: var(--gold); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Plain pages (privacy, thanks, 404) */
.page { padding-block: 24px 72px; }
.page h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
.page h2 { font-size: 1.375rem; margin: 32px 0 8px; }
.page p + p { margin-top: 12px; }
.page ul { color: var(--muted); max-width: 60ch; }

/* Footer: the three Boyne lines as a small mark */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 0.875rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer .credits { max-width: 46ch; }
footer .boyne { display: flex; gap: 6px; margin-bottom: 12px; }
footer .boyne i { display: block; height: 4px; width: 28px; border-radius: 2px; background: var(--mint); }
footer .boyne i:nth-child(2) { background: var(--gold); }
footer .boyne i:nth-child(3) { background: var(--red); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps, .two { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section.band { padding-block: 56px; }
  .phone { max-width: 260px; }
  .form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pop 0.5s ease-out both; transform-box: fill-box; transform-origin: center; }
  .dot:nth-of-type(2) { animation-delay: .15s } .dot:nth-of-type(3) { animation-delay: .3s } .dot:nth-of-type(4) { animation-delay: .45s }
  .dot:nth-of-type(5) { animation-delay: .6s } .dot:nth-of-type(6) { animation-delay: .75s } .dot:nth-of-type(7) { animation-delay: .9s }
  @keyframes pop { from { transform: scale(0.2); opacity: .2 } to { transform: none; opacity: 1 } }
}
