/* ASAR public website. Tokens match the member app (web/src/style.css) and the ASAR design
   system: ink / sage / paper, orange as a signal only, Michroma headlines, Barlow text. */
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Michroma; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/michroma-latin-400-normal.woff2') format('woff2'); }

:root {
  --font-sans: Barlow, 'DIN Alternate', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: Michroma, Eurostile, 'Arial Black', sans-serif;
  --ink: #0b0f0e;
  --ink-2: #141a19;
  --ink-3: #1e2624;
  --line-dark: #2a3331;
  --paper: #f4f5f3;
  --white: #ffffff;
  --line-light: #d5dad4;
  --sage: #8fa391;
  --sage-deep: #5d6f5f;
  --sage-text: #4a5a4c;
  --text-on-dark: #f4f5f3;
  --muted-on-dark: #a8b4c0;
  --text-on-light: #0b0f0e;
  --muted-on-light: #55606b;
  --signal: #ff6a00;
  --signal-text: #ff8a3d;
  --signal-on-light: #b84800;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font: 400 17px/1.55 var(--font-sans);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal-text); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.18; }
h1 { font-size: clamp(30px, 5.2vw, 54px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo: the same mask technique as the member app, so the mark is sage and the word follows the text colour. */
.asar-logo { display: inline-flex; align-items: flex-end; gap: 1px; height: 26px; font-size: 0; }
.asar-logo-mark, .asar-logo-word { display: inline-block; height: 100%; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.asar-logo-mark { --mask: url('/assets/img/asar-mark.png'); aspect-ratio: 237 / 195; background: var(--sage); }
.asar-logo-word { --mask: url('/assets/img/asar-wordmark.png'); aspect-ratio: 468 / 195; background: currentColor; }
.tagline { display: inline-flex; align-items: center; gap: 0.75em; font: 600 12px/16px var(--font-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }
.tagline i { font-style: normal; color: var(--signal); letter-spacing: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 14, 0.86); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.site-header.scrolled { border-bottom-color: var(--line-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; text-decoration: none; color: var(--text-on-dark); padding: 6px 0; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 10px 12px; text-decoration: none; color: var(--muted-on-dark); font-weight: 600; font-size: 15px; border-radius: var(--radius-sm); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current='page'] { color: var(--text-on-dark); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text-on-dark); padding: 10px; margin-right: -10px; cursor: pointer; border-radius: var(--radius-sm); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav-links .btn { margin-top: 16px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--radius-md); font: 600 16px/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-primary { background: var(--sage); color: var(--ink); }
.btn-primary:hover { background: #a9baab; }
.btn-ghost { border-color: var(--line-dark); color: var(--text-on-dark); }
.btn-ghost:hover { border-color: var(--sage); }
.light .btn-ghost { border-color: var(--line-light); color: var(--text-on-light); }
.light .btn-ghost:hover { border-color: var(--sage-deep); }
.light .btn-primary { background: var(--sage-deep); color: var(--white); }
.light .btn-primary:hover { background: var(--sage-text); }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badges a { display: inline-flex; border-radius: 8px; }
.store-badges img { height: 48px; width: auto; }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.light { background: var(--paper); color: var(--text-on-light); color-scheme: light; }
.light.white { background: var(--white); }
.panel { background: var(--ink-2); }
.eyebrow { font: 600 13px/1.2 var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin: 0 0 16px; }
.eyebrow::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--signal); vertical-align: middle; margin: -3px 10px 0 0; }
.light .eyebrow { color: var(--sage-text); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted-on-dark); max-width: 62ch; }
.light .lead { color: var(--muted-on-light); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }

/* Corner brackets: the field-ready frame from the brand board, drawn round key panels. */
.frame { position: relative; }
.frame::before, .frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--signal); pointer-events: none; }
.frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, rgba(143, 163, 145, 0.16), transparent 70%), linear-gradient(rgba(42, 51, 49, 0.35) 1px, transparent 1px) 0 0 / 100% 48px, linear-gradient(90deg, rgba(42, 51, 49, 0.35) 1px, transparent 1px) 0 0 / 48px 100%; mask-image: linear-gradient(#000, transparent 92%); -webkit-mask-image: linear-gradient(#000, transparent 92%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 span { display: block; color: var(--sage); }
.hero .lead { margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero-web { margin: 18px 0 0; font-size: 15px; color: var(--muted-on-dark); }
.hero-web a { color: var(--text-on-dark); font-weight: 600; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 660 / 540; background: var(--ink-3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag { position: absolute; left: 18px; bottom: 18px; display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: rgba(11, 15, 14, 0.82); border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
.hero-tag b { font: 400 13px/1.2 var(--font-display); letter-spacing: 0.06em; }
.hero-tag span { font-size: 14px; color: var(--muted-on-dark); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; } }

/* Problem */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q { background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 28px; }
.q h3 { font: 400 18px/1.3 var(--font-display); margin-bottom: 12px; }
.q p { margin: 0; color: var(--muted-on-dark); }
.q.accent { border-color: var(--sage-deep); }
.q.accent h3 { color: var(--signal-text); }
@media (max-width: 820px) { .questions { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.feature { background: var(--white); padding: 30px 28px; }
.feature svg { width: 30px; height: 30px; color: var(--sage-deep); margin-bottom: 18px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted-on-light); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ID pass */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--sage); }
.light .ticks svg { color: var(--sage-deep); }
.ticks b { display: block; }
.ticks span { color: var(--muted-on-dark); }
.light .ticks span { color: var(--muted-on-light); }

.pass { max-width: 380px; margin: 0 auto; background: linear-gradient(160deg, #1f2b22, var(--ink-2) 60%); border: 1px solid var(--line-dark); border-radius: 22px; padding: 26px; }
.pass-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.pass-live { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.pass-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #7cc79a; box-shadow: 0 0 0 4px rgba(124, 199, 154, 0.18); }
.pass-qr { display: grid; place-items: center; background: var(--paper); border-radius: var(--radius-md); padding: 18px; }
.pass-qr svg { width: 100%; max-width: 210px; color: var(--ink); }
.pass-code { margin-top: 22px; text-align: center; }
.pass-code small { display: block; font-size: 13px; color: var(--muted-on-dark); margin-bottom: 6px; }
.pass-code b { font: 400 28px/1 var(--font-display); letter-spacing: 0.22em; }
.pass-note { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted-on-dark); }

/* Skills chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line-light); font-weight: 600; font-size: 15px; }
.chip i { font-style: normal; font-weight: 400; color: var(--muted-on-light); font-size: 13px; }
.small-print { font-size: 14px; color: var(--muted-on-light); margin-top: 24px; max-width: 70ch; }

/* Organisations */
.benefits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.benefits .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--ink-3); border: 1px solid var(--line-dark); font: 400 14px/1 var(--font-display); color: var(--signal-text); }
.benefits b { display: block; font-size: 18px; }
.benefits span { color: var(--muted-on-dark); }
.org-card { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); }
.org-card h3 { font: 400 20px/1.3 var(--font-display); margin-bottom: 10px; }
.org-card > p { color: var(--muted-on-dark); }
.org-card ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.org-card li { padding: 12px 14px; border-radius: var(--radius-md); background: var(--ink-3); font-weight: 600; }
.org-card li span { display: block; font-weight: 400; font-size: 15px; color: var(--muted-on-dark); }
.status { display: inline-block; font: 600 12px/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-text); border: 1px solid rgba(255, 138, 61, 0.45); border-radius: var(--radius-pill); padding: 6px 10px; margin-bottom: 16px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trust-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); }
.trust-item svg { width: 30px; height: 30px; color: var(--sage-deep); }
.trust-item h3 { margin-bottom: 6px; }
.trust-item p { margin: 0; color: var(--muted-on-light); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { color: var(--muted-on-light); margin: 0 0 22px; max-width: 72ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact-card { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 28px; }
.contact-card p { color: var(--muted-on-dark); }
.contact-card .email { font-size: 19px; font-weight: 700; color: var(--text-on-dark); word-break: break-word; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line-dark); }
.page-hero .lead { margin-top: 16px; }
.prose { max-width: 780px; padding: clamp(40px, 6vw, 72px) 0; }
.prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: #d3d9d4; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose .note { border-left: 3px solid var(--sage); padding: 14px 18px; background: var(--ink-2); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line-dark); border-radius: var(--radius-md); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); }
th { background: var(--ink-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.steps { padding-left: 1.3em; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 56px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid .asar-logo { height: 30px; color: var(--text-on-dark); margin-bottom: 14px; }
.site-footer h2 { font: 600 13px/1.2 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.disclaimer { color: var(--muted-on-dark); font-size: 13px; line-height: 1.6; margin: 0; padding-top: 24px; border-top: 1px solid var(--line-dark); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Gentle reveal on scroll. Only applied when JavaScript runs and motion is welcome. */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
.mt { margin-top: 18px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }

/* Who we are */
.expertise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.expertise li { background: var(--ink-3); border: 1px solid var(--line-dark); border-top: 2px solid var(--sage-deep); border-radius: var(--radius-lg); padding: 24px; }
.expertise h3 { margin-bottom: 8px; }
.expertise p { margin: 0; color: var(--muted-on-dark); font-size: 16px; }
@media (max-width: 1000px) { .expertise { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expertise { grid-template-columns: 1fr; } }

/* On-this-page list for long legal pages */
.toc { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 40px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--text-on-dark); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* How to join */
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } .join-side { order: -1; padding-top: 32px; } }
.join-steps { max-width: none; }
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.2em; display: grid; gap: 14px; }
.steps-list li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-md); margin: 0; }
.steps-list li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-deep); color: var(--white); font: 400 14px/1 var(--font-display); }
.steps-list b { color: var(--text-on-dark); }
.join-side { padding-top: clamp(40px, 6vw, 72px); }
@media (min-width: 901px) { .join-side { position: sticky; top: 88px; } }
.join-card { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 24px; }
.join-card h2 { font-size: 20px; margin-bottom: 10px; }
.join-card p { color: var(--muted-on-dark); }
.join-card .store-badges { margin: 18px 0; }
.join-small { font-size: 14px; margin: 0; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .interest-grid { grid-template-columns: 1fr; } }
.interest-card { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.interest-card h3 { margin-bottom: 8px; }
.interest-card p { color: var(--muted-on-light); }
.interest-card .btn { margin-top: auto; }
.interest-note { font-size: 14px; margin: 14px 0 0; }
