/* kustard.ai inner pages: the same tokens, type, buttons, header and footer as the home page (index.html),
   pulled into one file so the agency pages, the Knowledge Hub and the policies all wear the same brand. */
@font-face { font-family: "Switzer"; src: url("/assets/switzer.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/satoshi.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light;
  --indigo: #4356ff; --custard: #fedd56; --orange: #ff9432; --purple: #7c33ec; --navy: #0b0a1c;
  --indigo-p: #dfe3ff; --custard-p: #fff0b3; --orange-p: #ffd9c2; --purple-p: #e0d2fd;
  --ink: #1b1206; --ink-soft: #4d4339; --ink-faint: #6b5f52; --paper: #fbf5ea; --cream-ink: #fff7ea; --white: #ffffff;
  --edge: #000000; --line: rgba(27, 18, 6, 0.14); --line-strong: rgba(27, 18, 6, 0.3); --muted: rgba(27, 18, 6, 0.06);
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 16px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gut: clamp(16px, 4vw, 64px);
  --section: clamp(64px, 9vw, 128px);
  --head-h: 68px;
  --font-title: "Bricolage Grotesque", "Switzer", system-ui, sans-serif;
  --font-body: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-small: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --block: 2px solid var(--edge); --shade: 6px 6px 0 var(--edge); --shade-sm: 3px 3px 0 var(--edge);
  --ring: var(--indigo);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-padding-top: calc(var(--head-h) + 56px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 650; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gut); position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

/* Buttons (the home page's data-slot buttons) */
[data-slot="button"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border: 2px solid var(--edge); border-radius: 10px; box-shadow: var(--shade-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 650; line-height: 1; height: 44px; padding: 0 18px; text-decoration: none; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease; -webkit-tap-highlight-color: transparent; }
[data-slot="button"]:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--edge); }
[data-slot="button"]:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }
[data-slot="button"][data-size="lg"] { height: 52px; padding: 0 26px; font-size: 17px; }
[data-slot="button"][data-size="sm"] { height: 38px; padding: 0 14px; font-size: 14px; }
[data-slot="button"][data-variant="default"] { background: var(--indigo); color: #ffffff; }
[data-slot="button"][data-variant="secondary"] { background: #ffffff; color: var(--ink); }
[data-slot="button"][data-variant="secondary"]:hover { background: var(--custard-p); }
[data-slot="button"][data-variant="ink"] { background: var(--ink); color: var(--cream-ink); }
@media (max-width: 560px) { [data-slot="button"][data-size="sm"] { height: 44px; padding: 0 18px; font-size: 15px; } }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(251, 245, 234, 0.94); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 2px solid var(--edge); }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: var(--head-h); }
.site-head .mark { display: inline-flex; padding-block: 7px; border-radius: 6px; flex: none; }
.site-head .mark img { height: 30px; width: auto; }
.site-head .mark:hover { opacity: 0.7; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.navlink { text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.site-nav a.navlink:hover { background: rgba(255, 255, 255, 0.8); }
.site-nav a.navlink[aria-current="page"], .site-nav a.navlink[aria-current="page"]:hover { background: var(--ink); color: var(--cream-ink); }
.site-nav .nav-cta { margin-left: 8px; }
.menu { display: none; position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: #ffffff; border: var(--block); box-shadow: var(--shade-sm); cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; }
.menu .sheet { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 32px)); background: #ffffff; border: var(--block); border-radius: var(--r); box-shadow: var(--shade); padding: 6px; display: grid; gap: 2px; }
.menu .sheet a { text-decoration: none; font-weight: 600; padding: 12px; border-radius: var(--r-sm); }
.menu .sheet a:hover, .menu .sheet a:focus-visible { background: var(--custard-p); }
.menu .sheet .lbl { font-family: var(--font-small); font-size: 12.5px; font-weight: 700; color: var(--ink-faint); padding: 10px 12px 2px; }
@media (max-width: 980px) {
  .site-nav a.navlink, .site-nav .nav-cta { display: none; }
  .menu { display: block; }
}

/* The agency bar: the Mauka One logo and its pages, under the header on every agency page */
.agency-bar { background: var(--white); border-bottom: 2px solid var(--edge); position: sticky; top: var(--head-h); z-index: 45; }
.agency-bar .row { display: flex; align-items: center; gap: var(--s4); min-height: 54px; }
.agency-bar .who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; font-family: var(--font-small); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.agency-bar .who img { height: 30px; width: auto; }
.agency-bar nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent); padding-right: 24px; }
.agency-bar nav::-webkit-scrollbar { display: none; }
.agency-bar nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 11px; border-radius: var(--r-sm); white-space: nowrap; }
.agency-bar nav a:hover { background: var(--custard-p); }
.agency-bar nav a[aria-current="page"] { background: var(--indigo); color: #ffffff; }
.agency-bar .book { margin-left: auto; flex: none; }
@media (max-width: 760px) { .agency-bar .who span, .agency-bar .book { display: none; } .agency-bar .who img { height: 24px; } .agency-bar .row { gap: 8px; } }

/* Footer */
.site-foot { margin-top: 0; padding-block: var(--s8) var(--s6); border-top: 2px solid var(--edge); background: var(--paper); font-family: var(--font-small); font-size: 14px; color: var(--ink-soft); position: relative; z-index: 3; }
.site-foot .cols { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.site-foot .brand img { height: 30px; width: auto; }
.site-foot .brand p { margin: 14px 0 0; max-width: 30ch; }
.site-foot .brand .mk { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none; color: var(--ink); font-weight: 700; }
.site-foot .brand .mk img { height: 22px; }
.site-foot h4 { margin: 0 0 10px; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-foot a { color: inherit; text-underline-offset: 4px; border-radius: 4px; }
.site-foot ul a { display: inline-block; padding: 4px 0; text-decoration: none; }
.site-foot ul a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .base { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-foot .soc { display: flex; gap: 10px; margin-top: 16px; }
.site-foot .soc a { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--edge); display: flex; align-items: center; justify-content: center; background: #fff; }
.site-foot .soc svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-foot ul a { padding: 8px 0; } }

/* Cookie consent (one choice for the whole of kustard.ai) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-inline: auto; display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: var(--r); background: var(--white); border: var(--block); box-shadow: var(--shade); font-family: var(--font-small); font-size: 14px; }
.cookie.show { display: flex; }
.cookie p { flex: 1 1 260px; margin: 0; }
.cookie .btns { display: flex; gap: 8px; }
