/* ==========================================================================
   Affordable Group — website styles
   Built on the Affordable Group Design System v1 (EdsaseTech, Nov 2026).
   Tokens and ag-* component classes follow the brand book; layout classes
   (hero, statement, bento, story, gallery) are site-specific.
   ========================================================================== */

/* ---------- Tokens: light ---------- */
:root {
  --paper: #f6f4ee;
  --surface: #ffffff;
  --sunk: #ece9e0;
  --ink: #11201b;
  --ink-muted: #51605a;
  --line: #dcd8cd;
  --line-strong: #848c86;
  --pine: #0b4a3b;
  --pine-strong: #07362b;
  --pine-tint: #dbeae3;
  --on-pine: #ffffff;
  --marigold: #f0a22e;
  --marigold-tint: #fbeed5;
  --on-marigold: #2a1a00;
  --clay: #b54a2a;
  --clay-tint: #fbeee8;
  --cobalt: #2f4bc8;
  --cobalt-tint: #e2e7fb;
  --on-accent: #ffffff;
  --success: #1a7446;
  --warning: #855600;
  --danger: #b3261e;
  --danger-tint: #fae0dd;
  --focus: var(--cobalt);

  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px;
  --space-24: 24px; --space-32: 32px; --space-48: 48px; --space-64: 64px; --space-96: 96px;

  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 32px; --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 32, 27, .06), 0 2px 6px rgba(17, 32, 27, .05);
  --shadow-md: 0 6px 16px rgba(17, 32, 27, .08), 0 2px 4px rgba(17, 32, 27, .06);

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  color-scheme: light;
}

/* ---------- Tokens: dark (system preference, unless forced light) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101513; --surface: #19201d; --sunk: #0a0e0c;
    --ink: #edf1ee; --ink-muted: #a4b1ab; --line: #2b3430; --line-strong: #6f7b75;
    --pine: #66d4b2; --pine-strong: #8fe4c9; --pine-tint: #16302a; --on-pine: #06221b;
    --marigold: #f0a22e; --marigold-tint: #38290d; --on-marigold: #2a1a00;
    --clay: #ee9777; --clay-tint: #3a1f15; --cobalt: #9cadff; --cobalt-tint: #1b244d;
    --on-accent: #101513; --success: #70d79b; --warning: #f3ba4f; --danger: #ff8d83; --danger-tint: #3d1714;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 8px 20px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
/* ---------- Tokens: dark (forced by the theme switch) ---------- */
:root[data-theme="dark"] {
  --paper: #101513; --surface: #19201d; --sunk: #0a0e0c;
  --ink: #edf1ee; --ink-muted: #a4b1ab; --line: #2b3430; --line-strong: #6f7b75;
  --pine: #66d4b2; --pine-strong: #8fe4c9; --pine-tint: #16302a; --on-pine: #06221b;
  --marigold: #f0a22e; --marigold-tint: #38290d; --on-marigold: #2a1a00;
  --clay: #ee9777; --clay-tint: #3a1f15; --cobalt: #9cadff; --cobalt-tint: #1b244d;
  --on-accent: #101513; --success: #70d79b; --warning: #f3ba4f; --danger: #ff8d83; --danger-tint: #3d1714;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 8px 20px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-strong); }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--pine-tint); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--pine); color: var(--on-pine); padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-pine); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ---------- Type scale ---------- */
.ag-display { font-stretch: 115%; font-variation-settings: "wdth" 115; letter-spacing: -0.03em; }
.t-display-xl { font-size: clamp(42px, 7.4vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.t-display { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.t-h1 { font-size: clamp(28px, 3.6vw, 34px); line-height: 1.18; font-weight: 650; letter-spacing: -0.015em; }
.t-h2 { font-size: 24px; line-height: 30px; font-weight: 650; letter-spacing: -0.01em; }
.t-h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
.t-body-lg { font-size: 18px; line-height: 28px; }
.t-small { font-size: 14px; line-height: 20px; }
.t-figure { font-size: 32px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.t-muted { color: var(--ink-muted); }
.ag-eyebrow {
  display: inline-block; font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.wrap--narrow { max-width: 880px; }
.section { padding-block: var(--space-64); }
@media (min-width: 900px) { .section { padding-block: var(--space-96); } }
.section--tight { padding-block: var(--space-48); }
.section--sunk { background: var(--sunk); }
.section-head { display: grid; gap: var(--space-16); margin-bottom: var(--space-48); }
.section-head.center { justify-items: center; text-align: center; }
.section-head .t-body-lg { color: var(--ink-muted); max-width: 60ch; }
.stack-8 > * + * { margin-top: var(--space-8); }
.stack-16 > * + * { margin-top: var(--space-16); }
.stack-24 > * + * { margin-top: var(--space-24); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.row.center { justify-content: center; }

/* ==========================================================================
   Components (design system)
   ========================================================================== */

/* Button */
.ag-btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: var(--btn-h); padding: 0 22px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--pine); background: var(--pine); color: var(--on-pine);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.ag-btn:hover { background: var(--pine-strong); border-color: var(--pine-strong); color: var(--on-pine); }
.ag-btn:active { transform: scale(.98); }
.ag-btn--secondary { background: transparent; color: var(--pine); border-color: var(--line-strong); }
.ag-btn--secondary:hover { background: var(--pine-tint); color: var(--pine-strong); border-color: var(--pine); }
.ag-btn--quiet { background: transparent; color: var(--ink); border-color: transparent; }
.ag-btn--quiet:hover { background: var(--sunk); color: var(--ink); border-color: transparent; }
.ag-btn--offer { background: var(--marigold); border-color: var(--marigold); color: var(--on-marigold); }
.ag-btn--offer:hover { background: #e3931c; border-color: #e3931c; color: var(--on-marigold); }
.ag-btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.ag-btn--sm { --btn-h: 36px; padding: 0 16px; font-size: 13px; }
.ag-btn--lg { --btn-h: 52px; padding: 0 28px; font-size: 16px; }
.ag-btn[disabled], .ag-btn[aria-disabled="true"] { background: var(--sunk); border-color: var(--sunk); color: var(--ink-muted); cursor: not-allowed; }

.ag-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--pine);
  font-weight: 600; text-decoration: none; min-height: 44px;
}
.ag-link::after { content: "→"; transition: transform .2s var(--ease); }
.ag-link:hover { color: var(--pine-strong); }
.ag-link:hover::after { transform: translateX(4px); }

/* Tag */
.ag-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 10px; border-radius: var(--radius-pill);
  background: var(--sunk); color: var(--ink); font-size: 13px; line-height: 16px; font-weight: 600;
  white-space: nowrap;
}
.ag-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ag-tag--group { background: var(--pine-tint); } .ag-tag--group::before { background: var(--pine); }
.ag-tag--market { background: var(--marigold-tint); } .ag-tag--market::before { background: var(--marigold); }
.ag-tag--cafe { background: var(--clay-tint); } .ag-tag--cafe::before { background: var(--clay); }
.ag-tag--gym { background: var(--cobalt-tint); } .ag-tag--gym::before { background: var(--cobalt); }
.ag-tag--plain { padding-left: 12px; } .ag-tag--plain::before { display: none; }

/* Card */
.ag-card {
  display: flex; flex-direction: column; gap: var(--space-12);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-24); color: var(--ink);
}
.ag-card--lift { border-color: transparent; box-shadow: var(--shadow-sm); text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
.ag-card--lift:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.ag-card--feature { border: 0; border-radius: var(--radius-xl); background: var(--pine-tint); padding: var(--space-32); }
.ag-card--feature.ag-card--market { background: var(--marigold-tint); }
.ag-card--feature.ag-card--cafe { background: var(--clay-tint); }
.ag-card--feature.ag-card--gym { background: var(--cobalt-tint); }
.ag-card__title { font-size: 24px; line-height: 30px; font-weight: 650; letter-spacing: -0.01em; }
.ag-card__body { color: var(--ink-muted); }
.ag-card--feature .ag-card__body { color: var(--ink); }
.ag-card__foot { margin-top: auto; padding-top: var(--space-8); }

/* Field */
.ag-field { display: grid; gap: var(--space-8); }
.ag-field__label { font-size: 14px; line-height: 20px; font-weight: 600; }
.ag-field__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ag-input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 400 16px/24px var(--font);
}
.ag-input::placeholder { color: var(--ink-muted); opacity: .8; }
.ag-input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--pine); }
textarea.ag-input { min-height: 120px; resize: vertical; }
select.ag-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2351605a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 40px; }
.ag-field--error .ag-input { border-color: var(--danger); }
.ag-field--error .ag-field__hint { color: var(--danger); }

.choice { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.choice label {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--pine); background: var(--pine-tint); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.choice .dot--market { background: var(--marigold); } .choice .dot--cafe { background: var(--clay); }
.choice .dot--gym { background: var(--cobalt); } .choice .dot--group { background: var(--pine); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: var(--space-8); }

/* Stat */
.ag-stat { display: grid; gap: 4px; }
.ag-stat__label { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ag-stat__value { font-size: 32px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-stat__delta { font-size: 14px; line-height: 20px; font-weight: 600; }
.ag-stat__delta--up { color: var(--success); } .ag-stat__delta--down { color: var(--danger); } .ag-stat__delta--flat { color: var(--ink-muted); }

/* Price tag */
.ag-price {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 14px;
  border-radius: var(--radius-pill); background: var(--marigold); color: var(--on-marigold);
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1;
}
.ag-price__cur { font-size: 12px; font-weight: 600; }
.ag-price__amt { font-size: 18px; font-weight: 700; }
.ag-price__unit { font-size: 13px; font-weight: 500; }
.ag-price__was { font-size: 13px; font-weight: 500; text-decoration: line-through; opacity: .75; margin-right: 2px; }
.ag-price--plain { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ag-price--lg { padding: 10px 20px; }
.ag-price--lg .ag-price__amt { font-size: 32px; }
.ag-price--lg .ag-price__cur { font-size: 15px; }
.ag-price--lg .ag-price__unit { font-size: 15px; }

/* Alert */
.ag-alert {
  display: flex; gap: var(--space-12); align-items: flex-start; padding: var(--space-16);
  border-radius: var(--radius-md); background: var(--cobalt-tint); color: var(--ink);
}
.ag-alert__dot {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cobalt); color: var(--on-accent); font-size: 13px; font-weight: 700;
}
.ag-alert__title { font-weight: 650; }
.ag-alert--success { background: var(--pine-tint); } .ag-alert--success .ag-alert__dot { background: var(--success); color: var(--surface); }
.ag-alert--warning { background: var(--marigold-tint); } .ag-alert--warning .ag-alert__dot { background: var(--marigold); color: var(--on-marigold); }
.ag-alert--danger { background: var(--danger-tint); } .ag-alert--danger .ag-alert__dot { background: var(--danger); color: var(--surface); }

/* Icons: 24px grid, 1.75 stroke, round caps and joins */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Site chrome
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--space-24); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 650; background: var(--sunk); }
.nav a.ag-btn, .nav a.ag-btn:hover { color: var(--on-pine); background: var(--pine); }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: var(--space-8); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--sunk); }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-grid; }
  .header-actions .ag-btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav a { font-size: 22px; font-weight: 600; min-height: 56px; border-radius: var(--radius-md); padding: 0 8px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 16px; justify-content: center; border: 0; font-size: 16px; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 900px) { .nav .nav-cta { display: none; } }

.site-footer { background: var(--sunk); padding-block: var(--space-64) var(--space-32); margin-top: 0; }
.footer-grid { display: grid; gap: var(--space-32); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-12); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid a { color: var(--ink); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-grid a:hover { color: var(--pine); text-decoration: underline; }
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--space-16); }
.footer-base { margin-top: var(--space-48); padding-top: var(--space-24); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-24); justify-content: space-between; color: var(--ink-muted); font-size: 14px; line-height: 20px; }

/* ==========================================================================
   Hero + the roof-and-arches mark
   ========================================================================== */
.hero { padding-block: var(--space-64) var(--space-48); text-align: center; }
@media (min-width: 900px) { .hero { padding-block: var(--space-96) var(--space-64); } }
.hero .t-display-xl { max-width: 13ch; margin: var(--space-16) auto 0; }
.hero .lead { margin: var(--space-24) auto 0; max-width: 56ch; color: var(--ink-muted); }
.hero .row { margin-top: var(--space-32); justify-content: center; }

.roof { width: min(760px, 100%); margin: var(--space-64) auto 0; }
.roof__bar {
  height: clamp(28px, 5vw, 44px); border-radius: var(--radius-pill); background: var(--pine);
  display: flex; align-items: center; justify-content: space-evenly; padding-inline: 4%;
  animation: roof-in .9s var(--ease) both;
}
.roof__bar i { width: clamp(5px, .9vw, 8px); aspect-ratio: 1; border-radius: 50%; background: var(--on-pine); opacity: 0; animation: dot-in .35s var(--ease) forwards; }
.roof__arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; align-items: end; height: clamp(200px, 34vw, 340px); margin-top: clamp(14px, 2.4vw, 22px); }
.arch {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0; text-decoration: none;
  transform-origin: bottom; animation: arch-up 1s var(--ease) both;
  padding-bottom: clamp(12px, 2.4vw, 24px);
  transition: filter .2s;
}
.arch--market { background: var(--marigold); height: 66%; color: var(--on-marigold); animation-delay: .25s; }
.arch--cafe { background: var(--clay); height: 100%; color: var(--on-accent); animation-delay: .4s; }
.arch--gym { background: var(--cobalt); height: 56%; color: var(--on-accent); animation-delay: .55s; }
.arch span { font-weight: 650; font-size: clamp(14px, 2vw, 18px); display: inline-flex; align-items: center; gap: 6px; }
a.arch:hover { filter: brightness(1.06); }
a.arch span::after { content: "→"; transition: transform .2s var(--ease); }
a.arch:hover span::after { transform: translateX(3px); }
.roof__ground { height: 1px; background: var(--line); }

@keyframes roof-in { from { transform: translateY(-14px) scaleX(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dot-in { to { opacity: 1; } }
@keyframes arch-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Business page heroes: one business colour gets a full tile */
.biz-hero { padding-top: var(--space-24); }
.biz-hero__tile {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 72px); display: grid; gap: var(--space-32); align-items: end;
  min-height: min(78vh, 640px);
}
@media (min-width: 900px) { .biz-hero__tile { grid-template-columns: 1.15fr .85fr; } }
.biz-hero__tile .ag-tag { background: rgba(255, 255, 255, .85); color: #11201b; }
.biz-hero__copy { position: relative; z-index: 1; display: grid; gap: var(--space-16); justify-items: start; }
.biz-hero__copy .t-display-xl { max-width: 12ch; }
.biz-hero__copy .t-body-lg { max-width: 44ch; }
.biz-hero--market .biz-hero__tile { background: var(--marigold); color: var(--on-marigold); }
.biz-hero--cafe .biz-hero__tile { background: var(--clay); color: var(--on-accent); }
.biz-hero--gym .biz-hero__tile { background: var(--cobalt); color: var(--on-accent); }
.biz-hero--group .biz-hero__tile { background: var(--pine); color: var(--on-pine); }
.biz-hero .ag-btn { background: #0b4a3b; border-color: #0b4a3b; color: #fff; }
.biz-hero .ag-btn:hover { background: #07362b; border-color: #07362b; }
.biz-hero .ag-btn--secondary { background: transparent; color: inherit; border-color: currentColor; }
.biz-hero .ag-btn--secondary:hover { background: rgba(255, 255, 255, .16); color: inherit; }

/* decorative shape clusters (pill, arch, disc) */
.shapes { position: relative; height: clamp(220px, 30vw, 380px); }
.shapes > * { position: absolute; animation: float-in 1s var(--ease) both; }
.shapes .s-arch { border-radius: var(--radius-pill) var(--radius-pill) 0 0; bottom: 0; }
.shapes .s-disc { border-radius: 50%; aspect-ratio: 1; }
.shapes .s-pill { border-radius: var(--radius-pill); }
.shapes .s-1 { animation-delay: .1s; } .shapes .s-2 { animation-delay: .25s; } .shapes .s-3 { animation-delay: .4s; } .shapes .s-4 { animation-delay: .55s; }
@keyframes float-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Scroll-lit statement
   ========================================================================== */
.statement { padding-block: var(--space-96); }
.statement p {
  font-size: clamp(28px, 4.4vw, 52px); line-height: 1.14; font-weight: 650; letter-spacing: -0.02em;
  max-width: 22ch; margin-inline: auto; text-align: center;
}
.statement .w { color: var(--line-strong); transition: color .35s; }
.statement .w.is-lit { color: var(--ink); }
.statement .hl-market.is-lit { color: var(--ink); box-shadow: inset 0 -.32em 0 var(--marigold-tint); }
.statement .hl-cafe.is-lit { color: var(--ink); box-shadow: inset 0 -.32em 0 var(--clay-tint); }
.statement .hl-gym.is-lit { color: var(--ink); box-shadow: inset 0 -.32em 0 var(--cobalt-tint); }

/* ==========================================================================
   Three counters (feature tiles)
   ========================================================================== */
.counters { display: grid; gap: var(--space-24); }
@media (min-width: 900px) { .counters { grid-template-columns: repeat(3, 1fr); } }
.counter-tile { min-height: 460px; overflow: hidden; position: relative; text-decoration: none; transition: transform .25s var(--ease); }
.counter-tile:hover { transform: translateY(-4px); color: var(--ink); }
.counter-tile .ag-card__title { font-size: 28px; line-height: 32px; }
.counter-tile__art { position: relative; height: 170px; margin-top: auto; }
.counter-tile__art > * { position: absolute; bottom: -32px; }
.counter-tile .ag-link { min-height: 0; }

/* ==========================================================================
   Sticky story (one card)
   ========================================================================== */
.story { display: grid; gap: var(--space-48); }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; gap: var(--space-64); } }
.story__visual { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; z-index: 1; }
@media (max-width: 959px) {
  .story__visual { top: var(--header-h); padding-block: 12px; background: var(--sunk); margin-inline: -16px; padding-inline: 16px; }
  .story__visual .loyalty { width: min(100%, 300px); }
  .story__readout { margin-top: var(--space-12); }
}
.story__steps { display: grid; gap: 0; }
.story__step { min-height: 60vh; display: grid; align-content: center; gap: var(--space-12); padding-block: var(--space-32); opacity: .35; transition: opacity .4s; }
.story__step.is-active { opacity: 1; }
.story__step .num { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); }
@media (max-width: 959px) { .story__step { min-height: 46vh; } }

.loyalty {
  position: relative; width: min(100%, 480px); margin-inline: auto; aspect-ratio: 1.586;
  border-radius: var(--radius-lg); background: var(--pine); color: var(--on-pine);
  padding: clamp(18px, 4%, 28px); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.loyalty__brand { font-weight: 700; font-stretch: 115%; font-variation-settings: "wdth" 115; letter-spacing: -0.03em; font-size: clamp(16px, 2.6vw, 22px); line-height: 1.05; }
.loyalty__chip { position: absolute; top: clamp(18px, 4%, 28px); right: clamp(18px, 4%, 28px); display: flex; gap: 6px; }
.loyalty__chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--on-pine); opacity: .35; transition: opacity .3s, transform .3s var(--ease); }
.loyalty__arches { position: absolute; right: 6%; bottom: 0; width: 38%; height: 58%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10%; align-items: end; }
.loyalty__arches i { border-radius: var(--radius-pill) var(--radius-pill) 0 0; transition: height .5s var(--ease); }
.loyalty__arches i:nth-child(1) { background: var(--marigold); height: 62%; }
.loyalty__arches i:nth-child(2) { background: var(--clay); height: 86%; }
.loyalty__arches i:nth-child(3) { background: var(--cobalt); height: 50%; }
.loyalty__meta { align-self: end; display: grid; gap: 2px; font-variant-numeric: tabular-nums; position: relative; }
.loyalty__num { font-size: clamp(15px, 2.4vw, 20px); font-weight: 600; letter-spacing: .06em; }
.loyalty__name { font-size: 14px; opacity: .85; }
.story__readout { margin-top: var(--space-24); display: flex; justify-content: center; gap: var(--space-12); flex-wrap: wrap; align-items: center; min-height: 44px; }
.story__readout .ag-stat { text-align: center; }
.story__readout .ag-stat__value { transition: opacity .2s; }

[data-step="2"] .loyalty__arches i:nth-child(1),
[data-step="3"] .loyalty__arches i:nth-child(2),
[data-step="4"] .loyalty__arches i:nth-child(3) { height: 100%; }
[data-step="2"] .loyalty__chip i:nth-child(1),
[data-step="3"] .loyalty__chip i:nth-child(2),
[data-step="4"] .loyalty__chip i:nth-child(3),
[data-step="5"] .loyalty__chip i { opacity: 1; transform: scale(1.15); }

/* ==========================================================================
   Bento grid
   ========================================================================== */
.bento { display: grid; gap: var(--space-16); grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(6, 1fr); gap: var(--space-24); } }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: var(--space-32); display: flex; flex-direction: column; gap: var(--space-12); min-height: 260px;
  position: relative; overflow: hidden;
}
:where(.tile, .ag-card, .plan, .legend-item, .stack-8, .biz-hero__copy) > :where(.ag-tag, .ag-price) { align-self: flex-start; justify-self: start; }
.tile h3 { font-size: 24px; line-height: 30px; font-weight: 650; letter-spacing: -0.01em; }
.tile p { color: var(--ink-muted); max-width: 46ch; }
.tile--pine { background: var(--pine); color: var(--on-pine); border-color: transparent; }
.tile--pine p { color: var(--on-pine); opacity: .85; }
.tile--tint { background: var(--pine-tint); border-color: transparent; }
.tile--tint p, .tile--market p, .tile--cafe p, .tile--gym p { color: var(--ink); }
.tile--market { background: var(--marigold-tint); border-color: transparent; }
.tile--cafe { background: var(--clay-tint); border-color: transparent; }
.tile--gym { background: var(--cobalt-tint); border-color: transparent; }
.tile .big { font-size: clamp(44px, 6vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile .foot { margin-top: auto; }
@media (min-width: 720px) { .span-2-md { grid-column: span 2; } }
@media (min-width: 1024px) {
  .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
  .tall { grid-row: span 2; }
}
.pay-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-8); }
.pay-list li { display: flex; align-items: center; gap: var(--space-12); padding: 12px 16px; border-radius: var(--radius-md); background: var(--paper); font-weight: 600; }
.tile--pine .pay-list li { background: rgba(255, 255, 255, .1); }
.date-strip { display: grid; gap: var(--space-8); margin-top: var(--space-16); }
.date-strip div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface); font-variant-numeric: tabular-nums; font-size: 15px; }
.date-strip .first { outline: 2px solid var(--pine); outline-offset: -2px; }
.date-strip .gone { color: var(--ink-muted); text-decoration: line-through; }

/* ==========================================================================
   Horizontal gallery
   ========================================================================== */
.gallery { position: relative; }
.gallery__head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-24); flex-wrap: wrap; margin-bottom: var(--space-32); }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: var(--space-16);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  padding: 4px 16px 24px; margin-inline: -16px; scrollbar-width: none; overscroll-behavior-x: contain;
}
@media (min-width: 640px) { .gallery__track { scroll-padding-inline: 24px; padding-inline: 24px; margin-inline: -24px; } }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { scroll-snap-align: start; }
.paddles { display: flex; gap: var(--space-8); }
.paddle {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sunk); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: opacity .2s, background-color .2s;
}
.paddle:hover { background: var(--line); }
.paddle[disabled] { opacity: .35; cursor: default; }

.product {
  background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.product__art { position: relative; height: 180px; background: var(--marigold-tint); overflow: hidden; }
.product__art > * { position: absolute; }
.product__body { padding: var(--space-16) var(--space-24) var(--space-24); display: grid; gap: var(--space-8); flex: 1; align-content: start; }
.product__body h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
.product__body p { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.product__body .ag-price { justify-self: start; margin-top: 4px; }
.product--cafe .product__art { background: var(--clay-tint); }
.product--gym .product__art { background: var(--cobalt-tint); }

/* ==========================================================================
   Menu (café), plans (gym), steps, misc
   ========================================================================== */
.menu-grid { display: grid; gap: var(--space-24); }
@media (min-width: 900px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list .name { font-weight: 600; }
.menu-list .desc { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); font-weight: 400; }

.plans { display: grid; gap: var(--space-24); }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-32); display: grid; gap: var(--space-16); align-content: start; }
.plan--featured { border: 2px solid var(--pine); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--pine); margin-top: 0; width: 22px; height: 22px; }
.plan .ag-btn { width: 100%; margin-top: var(--space-8); }

.steps { display: grid; gap: var(--space-16); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-24); display: grid; gap: var(--space-8); align-content: start; }
.steps li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pine); color: var(--on-pine); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: var(--space-8);
}
.steps h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
.steps p { color: var(--ink-muted); }
.steps--3 { }
@media (min-width: 820px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: var(--space-48); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-64); } }

.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 48px); }
.form-grid { display: grid; gap: var(--space-24); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form-status:empty { display: none; }

.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.hours li { display: flex; justify-content: space-between; gap: var(--space-16); padding: 14px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours li:last-child { border-bottom: 0; }

.cta-band { border-radius: var(--radius-xl); background: var(--pine); color: var(--on-pine); padding: clamp(32px, 6vw, 72px); display: grid; gap: var(--space-24); justify-items: center; text-align: center; }
.cta-band .t-body-lg { opacity: .88; max-width: 52ch; }
.cta-band .ag-btn { background: var(--on-pine); color: var(--pine); border-color: var(--on-pine); }
.cta-band .ag-btn:hover { background: var(--pine-tint); color: var(--pine-strong); border-color: var(--pine-tint); }

.legend-row { display: grid; gap: var(--space-16); }
@media (min-width: 720px) { .legend-row { grid-template-columns: repeat(4, 1fr); } }
.legend-item { display: grid; gap: var(--space-12); align-content: start; }
.legend-swatch { height: 150px; border-radius: var(--radius-pill) var(--radius-pill) var(--radius-md) var(--radius-md); }
.legend-swatch--roof { border-radius: var(--radius-pill); height: 40px; background: var(--pine); }
@media (min-width: 720px) { .legend-swatch--roof { margin-top: 110px; } }

.note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal-scale.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
  .statement .w { color: var(--ink); }
}
