/* ==========================================================================
   Public website design system
   Direction: editorial ledger. Warm paper, deep green ink, a restrained brass
   accent, hairline rules, tabular figures. Brand colours arrive from admin
   settings as --brand-* variables (see layouts/site.blade.php); everything
   else derives from them.
   ========================================================================== */

:root {
  /* Brand inputs (overridden inline from BrandSettings) */
  --brand-primary: #14532D;
  --brand-secondary: #1F3A2E;
  --brand-accent: #B8873B;
  --brand-bg: #FAF7F2;
  --brand-surface: #FFFFFF;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Colour tokens */
  --primary: var(--brand-primary);
  --primary-strong: color-mix(in oklab, var(--brand-primary) 82%, black);
  --primary-tint: color-mix(in oklab, var(--brand-primary) 9%, var(--brand-bg));
  --primary-tint-2: color-mix(in oklab, var(--brand-primary) 16%, var(--brand-bg));
  --accent: var(--brand-accent);
  --accent-tint: color-mix(in oklab, var(--brand-accent) 14%, var(--brand-bg));
  --bg: var(--brand-bg);
  --surface: var(--brand-surface);
  --surface-sunken: color-mix(in oklab, var(--brand-bg) 92%, #000 3%);
  --ink: #16201A;
  --ink-2: #4A544D;
  --ink-3: #6F776F;
  --line: #E4DED2;
  --line-strong: #CFC7B8;
  --on-primary: #FFFFFF;

  --success: #1F7A4A;
  --success-tint: #E3F1E8;
  --warning: #9A6410;
  --warning-tint: #F8EDD8;
  --danger: #B3261E;
  --danger-tint: #FBE6E3;
  --info: #2B5C8A;
  --info-tint: #E3ECF5;

  /* Type scale (1.25 minor third-ish, clamped for display sizes) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --text-4xl: clamp(2.375rem, 1.6rem + 3.4vw, 4rem);

  /* Spacing (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgb(22 32 26 / 0.05);
  --shadow-2: 0 1px 2px rgb(22 32 26 / 0.04), 0 8px 24px -12px rgb(22 32 26 / 0.18);
  --shadow-3: 0 2px 4px rgb(22 32 26 / 0.04), 0 24px 48px -24px rgb(22 32 26 / 0.28);

  --container: 1180px;
  --gutter: 16px;
  --header-h: 68px;
  --focus: 0 0 0 3px color-mix(in oklab, var(--brand-primary) 35%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 76px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.015em; margin: 0; color: var(--ink); font-variation-settings: "opsz" 96; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: var(--s-3); color: #fff; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding-block: var(--s-8); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }
.section--tint { background: var(--primary-tint); }
.section--sunken { background: var(--surface-sunken); }
.section--rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--s-3); max-width: 720px; margin-bottom: var(--s-6); }
.section-head p { color: var(--ink-2); font-size: var(--text-md); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Eyebrow: small caps label with a brass rule — the recurring editorial mark */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* --------------------------------------------------------------------------
   Header & navigation (mobile menu uses <details>, no JS required)
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.brand img { height: 32px; width: auto; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 1rem; font-weight: 600; }
.nav { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--text-sm); font-weight: 500; padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-sunken); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-actions .btn--ghost { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; gap: var(--s-1); }
  .header-actions .btn--ghost { display: inline-flex; }
  .menu { display: none; }
}
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-sunken); }
.menu__panel { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-4) var(--gutter) var(--s-6); box-shadow: var(--shadow-3); display: grid; gap: var(--s-1); }
.menu__panel a:not(.btn) { padding: var(--s-3) 0; color: var(--ink); text-decoration: none; font-size: var(--text-md); border-bottom: 1px solid var(--line); }
.menu__panel .btn { margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--radius-sm); border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--text-sm)/1 var(--font-body); letter-spacing: 0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.btn:hover { --btn-bg: var(--primary-strong); --btn-bd: var(--primary-strong); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn--secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--secondary:hover { --btn-bg: var(--surface-sunken); --btn-bd: var(--ink-3); --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-sunken); --btn-bd: transparent; --btn-fg: var(--ink); }
.btn .icon { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--s-7) var(--s-8); position: relative; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .hero { padding-block: var(--s-8) var(--s-9); } .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--s-8); } }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--primary); font-weight: 500; }
.hero__lede { font-size: var(--text-md); color: var(--ink-2); max-width: 36rem; }
@media (min-width: 1024px) { .hero__lede { font-size: var(--text-lg); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__note { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); color: var(--ink-3); }
.hero__note .icon { width: 16px; height: 16px; color: var(--primary); }
.hero__visual { position: relative; }
.hero__visual::before { content: ""; position: absolute; inset: -24px -24px 32px 48px; border-radius: var(--radius-lg); background:
  repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in oklab, var(--line) 70%, transparent) 31px 32px), var(--primary-tint); z-index: 0; }
.hero__visual > * { position: relative; z-index: 1; }
@media (max-width: 1023px) { .hero__visual::before { inset: -16px -8px 24px 24px; } }
.hero__caption { margin-top: var(--s-3); font-size: var(--text-xs); color: var(--ink-3); display: flex; align-items: center; gap: var(--s-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-tint); }

/* Money-flow diagram (hero fallback when no business is open) */
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); box-shadow: var(--shadow-2); display: grid; gap: 0; }
.flow__row { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px dashed var(--line); }
.flow__row:last-child { border-bottom: 0; }
.flow__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; }
.flow__icon .icon { width: 20px; height: 20px; }
.flow__row h4 { font-size: var(--text-base); margin-bottom: 2px; }
.flow__row p { font-size: var(--text-sm); color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Cards & business card
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-1); }
.card--flat { box-shadow: none; }
.card--pad-lg { padding: var(--s-6); }

.biz-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); color: inherit; text-decoration: none; }
a.biz-card:hover { box-shadow: var(--shadow-3); border-color: var(--line-strong); transform: translateY(-2px); color: inherit; }
.biz-card__cover { aspect-ratio: 16 / 7; background: var(--primary-tint-2); position: relative; overflow: hidden; }
.biz-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__cover--placeholder { background:
  linear-gradient(135deg, color-mix(in oklab, var(--primary) 18%, var(--bg)), color-mix(in oklab, var(--primary) 6%, var(--bg))); display: grid; place-items: center; color: color-mix(in oklab, var(--primary) 55%, var(--bg)); }
.biz-card__cover--placeholder::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 14px, rgb(255 255 255 / .18) 14px 15px); }
.biz-card__cover--placeholder .icon { width: 44px; height: 44px; position: relative; z-index: 1; }
.biz-card__status { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; }
.biz-card__body { padding: var(--s-5); display: grid; gap: var(--s-4); flex: 1; }
.biz-card__head { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); align-items: center; margin-top: calc(-1 * var(--s-5) - 22px); }
.biz-card__logo { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-weight: 600; color: var(--primary); position: relative; z-index: 2; }
.biz-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__title { padding-top: 22px; display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.biz-card__title h3 { font-size: var(--text-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-card__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-size: var(--text-sm); color: var(--ink-2); }
.biz-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.biz-card__meta .icon { width: 14px; height: 14px; color: var(--ink-3); }
.biz-card__desc { font-size: var(--text-sm); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.biz-card__figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.figure { display: grid; gap: 2px; }
.figure__label { font-size: var(--text-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.figure__value { font-size: var(--text-base); font-weight: 600; font-variant-numeric: tabular-nums; }
.biz-card__foot { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 60%, var(--bg)); font-size: var(--text-sm); }

/* Progress */
.progress { display: grid; gap: var(--s-2); }
.progress__bar { height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.progress__fill { height: 100%; border-radius: inherit; background: var(--primary); min-width: 4px; }
.progress__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--text-sm); }
.progress__row strong { font-size: var(--text-base); font-variant-numeric: tabular-nums; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; letter-spacing: .01em; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge--open { background: var(--success-tint); color: var(--success); border-color: transparent; }
.badge--soon { background: var(--info-tint); color: var(--info); border-color: transparent; }
.badge--funded, .badge--active { background: var(--accent-tint); color: color-mix(in oklab, var(--accent) 70%, black); border-color: transparent; }
.badge--closed { background: var(--surface-sunken); color: var(--ink-3); border-color: transparent; }
.verified { display: inline-flex; color: var(--primary); flex-shrink: 0; }
.verified .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Steps, trust points, stats
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; } }
.step { counter-increment: step; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: var(--s-3); }
@media (min-width: 900px) { .step { display: block; padding: var(--s-5) var(--s-5) 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong); } }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: var(--text-2xl); color: var(--accent); line-height: 1; font-variant-numeric: lining-nums; }
@media (min-width: 900px) { .step::before { display: block; margin-bottom: var(--s-5); } }
.step h3 { font-size: var(--text-lg); margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); font-size: var(--text-sm); }

.trust { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.trust__icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--primary); }
.trust__icon .icon { width: 22px; height: 22px; }
.trust h3 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-1); }
.trust p { color: var(--ink-2); font-size: var(--text-sm); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.stat__label { color: var(--ink-2); font-size: var(--text-sm); margin-top: var(--s-1); }

/* --------------------------------------------------------------------------
   FAQ (native details/summary)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s-5) 0; display: flex; justify-content: space-between; gap: var(--s-4); font-weight: 600; font-size: var(--text-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-3); transition: transform .2s var(--ease); margin-top: 3px; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--primary); }
.faq__answer { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 64ch; }

/* --------------------------------------------------------------------------
   Prose (CMS pages)
   -------------------------------------------------------------------------- */
.prose { color: var(--ink); font-size: var(--text-md); line-height: 1.75; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--text-2xl); margin-top: 2em; }
.prose h3 { font-size: var(--text-lg); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.5em 0; padding-left: var(--s-5); border-left: 2px solid var(--accent); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
.prose code { font-size: .9em; background: var(--surface-sunken); padding: 1px 6px; border-radius: 4px; }
.page-head { padding-block: var(--s-7) var(--s-6); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-2); font-size: var(--text-md); max-width: 60ch; margin-top: var(--s-3); }
.page-meta { font-size: var(--text-sm); color: var(--ink-3); margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: var(--s-2); }
.field + .field { margin-top: var(--s-5); }
.label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: var(--s-2); }
.label .optional { font-weight: 400; color: var(--ink-3); }
.input { width: 100%; min-height: 50px; padding: 0 var(--s-4); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 400 var(--text-base)/1.4 var(--font-body); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input-group:focus-within { border-color: var(--primary); box-shadow: var(--focus); }
.input-group.is-invalid { border-color: var(--danger); }
.input-group .input { border: 0; box-shadow: none; background: transparent; min-width: 0; }
.input-group__addon { display: flex; align-items: center; padding: 0 var(--s-3) 0 var(--s-4); color: var(--ink-2); font-weight: 500; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.input-group__btn { border: 0; background: transparent; padding: 0 var(--s-4); color: var(--ink-2); cursor: pointer; font: 600 var(--text-sm) var(--font-body); }
.input-group__btn:hover { color: var(--ink); }
.input--otp { font-size: 1.75rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; min-height: 64px; padding-left: calc(var(--s-4) + .5em); }
.hint { font-size: var(--text-sm); color: var(--ink-3); }
.error { font-size: var(--text-sm); color: var(--danger); display: flex; gap: 6px; align-items: flex-start; }
.error .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; font-size: var(--text-sm); color: var(--ink-2); }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */
.notice { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); padding: var(--s-4); border-radius: var(--radius); background: var(--info-tint); color: color-mix(in oklab, var(--info) 75%, black); font-size: var(--text-sm); }
.notice .icon { width: 20px; height: 20px; }
.notice--risk { background: var(--warning-tint); color: color-mix(in oklab, var(--warning) 80%, black); }
.notice--danger { background: var(--danger-tint); color: var(--danger); }
.notice--success { background: var(--success-tint); color: var(--success); }

/* --------------------------------------------------------------------------
   Auth / registration shell
   -------------------------------------------------------------------------- */
.auth { min-height: calc(100dvh - var(--header-h)); display: grid; }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth__aside { display: none; background: var(--primary); color: var(--on-primary); padding: var(--s-8) var(--s-7); position: relative; overflow: hidden; }
.auth__aside::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 39px, rgb(255 255 255 / .06) 39px 40px); pointer-events: none; }
@media (min-width: 1024px) { .auth__aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth__aside h2 { color: inherit; font-size: var(--text-3xl); max-width: 14ch; }
.auth__aside .eyebrow { color: rgb(255 255 255 / .75); }
.auth__aside .eyebrow::before { background: var(--accent); }
.auth__points { display: grid; gap: var(--s-5); position: relative; z-index: 1; }
.auth__point { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); color: rgb(255 255 255 / .86); font-size: var(--text-sm); }
.auth__point .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.auth__point strong { color: #fff; display: block; font-size: var(--text-base); }
.auth__main { display: flex; justify-content: center; padding: var(--s-7) var(--gutter) var(--s-8); }
.auth__panel { width: 100%; max-width: 440px; }
.auth__panel h1 { font-size: var(--text-3xl); }
.auth__panel > p { color: var(--ink-2); margin-top: var(--s-3); }
.progress-steps { display: flex; gap: var(--s-2); margin-bottom: var(--s-6); list-style: none; padding: 0; }
.progress-steps li { flex: 1; display: grid; gap: var(--s-2); font-size: var(--text-xs); color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.progress-steps li::before { content: ""; height: 3px; border-radius: 2px; background: var(--line); }
.progress-steps li[aria-current="step"], .progress-steps li.is-done { color: var(--ink); }
.progress-steps li[aria-current="step"]::before, .progress-steps li.is-done::before { background: var(--primary); }
.form-foot { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.reassure { display: flex; gap: var(--s-2); align-items: center; font-size: var(--text-sm); color: var(--ink-3); }
.reassure .icon { width: 16px; height: 16px; color: var(--primary); }

/* --------------------------------------------------------------------------
   Download page
   -------------------------------------------------------------------------- */
.download { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .download { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.release__head { padding: var(--s-5); display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); align-items: center; border-bottom: 1px solid var(--line); }
.release__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; overflow: hidden; }
.release__icon img { width: 100%; height: 100%; object-fit: cover; }
.release__icon .icon { width: 28px; height: 28px; }
.release__specs { display: grid; grid-template-columns: repeat(2, 1fr); }
.release__specs div { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.release__specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.release__body { padding: var(--s-5); display: grid; gap: var(--s-4); }
.release__notes { padding-left: 1.1em; color: var(--ink-2); font-size: var(--text-sm); display: grid; gap: var(--s-1); margin: 0; }
.checksum { display: grid; gap: var(--s-2); font-size: var(--text-xs); color: var(--ink-3); }
.checksum code { display: block; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); background: var(--surface-sunken); padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); word-break: break-all; }

.guide { display: grid; gap: 0; counter-reset: guide; list-style: none; margin: 0; padding: 0; }
.guide__step { counter-increment: guide; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding-bottom: var(--s-6); position: relative; }
.guide__step::before { content: counter(guide); width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.guide__step::after { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: var(--line-strong); }
.guide__step:last-child::after { display: none; }
.guide__step h3 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; padding-top: 8px; }
.guide__step p { color: var(--ink-2); font-size: var(--text-sm); margin-top: var(--s-1); }
.screen-hint { margin-top: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--s-4); font-size: var(--text-sm); max-width: 360px; box-shadow: var(--shadow-1); }
.screen-hint__title { font-weight: 600; margin-bottom: var(--s-1); }
.screen-hint__actions { display: flex; justify-content: flex-end; gap: var(--s-4); margin-top: var(--s-3); font-weight: 600; color: var(--primary); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; }
.screen-hint__actions span:first-child { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Business detail (public preview)
   -------------------------------------------------------------------------- */
.biz-hero { padding-block: var(--s-6) var(--s-7); border-bottom: 1px solid var(--line); }
.biz-hero__cover { aspect-ratio: 21 / 8; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--s-6); position: relative; }
.biz-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-layout { display: grid; gap: var(--s-7); padding-block: var(--s-7); }
@media (min-width: 1024px) { .biz-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .biz-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts div { padding: var(--s-4); border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.doc-list { display: grid; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--text-sm); }
.doc-list .icon { width: 18px; height: 18px; color: var(--ink-3); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.timeline li { padding: 0 0 var(--s-5) var(--s-5); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.timeline time { font-size: var(--text-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* Filters */
.tabs { display: flex; gap: var(--s-1); overflow-x: auto; padding-bottom: var(--s-1); margin-bottom: var(--s-6); scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: var(--s-2) var(--s-4); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; border: 1px solid var(--line); background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Empty state */
.empty { text-align: center; padding: var(--s-8) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); display: grid; justify-items: center; gap: var(--s-3); }
.empty__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; }
.empty__icon .icon { width: 26px; height: 26px; }
.empty p { color: var(--ink-2); max-width: 40ch; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: var(--s-7) var(--s-5); display: grid; gap: var(--s-5); position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: var(--s-8) var(--s-7); } }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgb(255 255 255 / .72); margin-top: var(--s-3); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 0 0 40px rgb(255 255 255 / .02), 0 0 0 80px rgb(255 255 255 / .015); pointer-events: none; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.cta-band .btn:hover { --btn-bg: var(--accent-tint); --btn-bd: var(--accent-tint); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-6); background: var(--surface-sunken); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-about { color: var(--ink-2); max-width: 36ch; margin-top: var(--s-4); }
.footer-risk { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--text-xs); line-height: 1.7; display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .footer-risk { grid-template-columns: 1fr auto; gap: var(--s-6); } }

/* Icons */
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Reveal on scroll (progressive enhancement; content visible without JS) */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(12px); }

/* Maintenance / error */
.state-page { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: var(--s-8) var(--gutter); }
.state-page .stack { max-width: 520px; display: grid; justify-items: center; }

/* ==========================================================================
   Premium polish — NayabX
   Layered on top of the system above. Adds depth, warmth and a stronger brass
   presence without changing the underlying structure. All values derive from
   the existing --brand-* tokens so a brand recolour still flows through.
   ========================================================================== */
:root {
  --grad-primary: linear-gradient(135deg, color-mix(in oklab, var(--brand-primary) 92%, white 0%) 0%, var(--brand-secondary) 100%);
  --grad-hero-glow: radial-gradient(60% 70% at 70% 20%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 70%);
  --shadow-brand: 0 1px 2px rgb(22 32 26 / 0.05), 0 16px 34px -22px color-mix(in oklab, var(--brand-primary) 34%, transparent);
  --shadow-accent: 0 8px 22px -14px color-mix(in oklab, var(--accent) 50%, transparent);
  --ring-accent: 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent);
  /* Button shadows — intentionally restrained so buttons sit on the page, not float. */
  --btn-shadow: 0 1px 1px rgb(22 32 26 / 0.06), 0 2px 6px -2px rgb(22 32 26 / 0.12);
  --btn-shadow-hover: 0 2px 4px rgb(22 32 26 / 0.08), 0 8px 18px -6px color-mix(in oklab, var(--brand-primary) 30%, transparent);
}

/* Header: a touch more lift once scrolled, cleaner wordmark */
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgb(22 32 26 / 0.5); }
.brand img { height: 34px; }

/* Eyebrow: fuller brass rule with a soft glow dot */
.eyebrow { color: color-mix(in oklab, var(--brand-primary) 60%, var(--ink-2)); }
.eyebrow::before { width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 40%, transparent)); }

/* Buttons — one consistent system, three clear levels:
   · PRIMARY (solid green)  — the main action. Solid, subtle depth. Big (--lg)
     ones in the hero/CTA get a gentle brand gradient; small ones stay flat solid.
   · SECONDARY (outlined)   — the calm alternative. Crisp border, white fill.
   · GHOST (transparent)    — tertiary. No fill until hover.
   Ghost/secondary --btn-bg is NEVER touched here, so the header "Get the app"
   ghost stays transparent. Shadows are restrained so buttons sit, not float. */
.btn { font-weight: 640; letter-spacing: 0.01em; }

/* Primary — solid, with a soft seated shadow */
.btn:not(.btn--secondary):not(.btn--ghost) { box-shadow: var(--btn-shadow); }
.btn:not(.btn--secondary):not(.btn--ghost):hover { box-shadow: var(--btn-shadow-hover); transform: translateY(-1px); }
.btn:not(.btn--secondary):not(.btn--ghost):active { transform: translateY(0); box-shadow: var(--btn-shadow); }
/* Large primary only (hero, CTA): a gentle brand gradient for presence */
.btn--lg:not(.btn--secondary):not(.btn--ghost) { background: var(--grad-primary); border-color: transparent; }
.btn--lg { border-radius: var(--radius); }

/* Secondary — crisp outlined, hairline lift */
.btn--secondary { box-shadow: var(--shadow-1); }
.btn--secondary:hover { box-shadow: var(--btn-shadow); transform: translateY(-1px); }

/* Ghost — flat; gains a soft tint on hover only (no shadow, no float) */
.btn--ghost { box-shadow: none; }
.btn--ghost:hover { transform: none; }

/* Hero: warm glow behind the featured card, richer paper grid */
.hero { overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: min(620px, 80%); height: 520px; background: var(--grad-hero-glow); pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero h1 em { background: linear-gradient(120deg, var(--primary), color-mix(in oklab, var(--accent) 80%, var(--primary))); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: italic; }
.hero__visual::before { background:
  repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in oklab, var(--line) 55%, transparent) 31px 32px),
  linear-gradient(135deg, var(--primary-tint-2), var(--primary-tint)); box-shadow: var(--shadow-2); }
.hero__note .icon { color: var(--accent); }

/* Cards & business cards: softer warm borders, a lifted, brand-tinted hover */
.card { box-shadow: var(--shadow-2); }
.biz-card { box-shadow: var(--shadow-2); }
a.biz-card:hover { box-shadow: var(--shadow-brand); border-color: color-mix(in oklab, var(--accent) 30%, var(--line-strong)); transform: translateY(-3px); }
.biz-card__logo { box-shadow: var(--shadow-1), var(--ring-accent); }

/* Progress fill: a living brass→green sheen instead of a flat bar */
.progress__fill { background: linear-gradient(90deg, var(--primary), color-mix(in oklab, var(--accent) 75%, var(--primary))); }

/* Flow diagram (hero fallback): brass-tinted step icons */
.flow { box-shadow: var(--shadow-brand); }
.flow__icon { background: linear-gradient(135deg, var(--primary-tint-2), var(--accent-tint)); color: var(--primary-strong); }

/* Steps: brass numerals with a hairline brass top-rule per step */
.step::before { background: linear-gradient(120deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--primary))); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
@media (min-width: 900px) { .step { border-top-color: color-mix(in oklab, var(--accent) 35%, var(--line-strong)); } }

/* Trust icons: premium raised tiles */
.trust__icon { background: linear-gradient(160deg, var(--surface), var(--primary-tint)); box-shadow: var(--shadow-1), var(--ring-accent); }

/* Stats: brass underline accent under each figure */
.stats { border-top-color: color-mix(in oklab, var(--accent) 40%, var(--line-strong)); }
.stat__value { position: relative; display: inline-block; padding-bottom: var(--s-2); color: var(--primary-strong); }
.stat__value::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }

/* CTA band: deep brand gradient with a brass edge instead of flat ink */
.cta-band { background: var(--grad-primary); box-shadow: var(--shadow-brand); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero-glow); opacity: .5; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn { background: #fff; --btn-bg: #fff; --btn-fg: var(--primary-strong); --btn-bd: #fff; box-shadow: var(--btn-shadow); }
.cta-band .btn:hover { background: var(--accent-tint); --btn-bg: var(--accent-tint); --btn-bd: var(--accent-tint); --btn-fg: color-mix(in oklab, var(--accent) 72%, black); box-shadow: var(--btn-shadow-hover); }

/* Tinted sections: a hair warmer so the brand green reads through */
.section--tint { background: linear-gradient(180deg, var(--primary-tint), transparent); }

/* Auth aside: brand gradient panel with a brass seam */
.auth__aside { background: var(--grad-primary); }
.auth__aside::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }

/* Footer: subtle brand lift at the top edge */
.site-footer { border-top: 2px solid color-mix(in oklab, var(--accent) 45%, var(--line)); }

/* Badges: give the "open" state a gentle brand-green glow */
.badge--open { box-shadow: 0 0 0 1px color-mix(in oklab, var(--success) 20%, transparent); }
