/* Our sites (/subdomains), page-local styles. The page frame uses the KCT house
   style (kwizweb's --kw-* tokens); each card carries its own product's colours
   through --os-* custom properties that subdomains.qmd sets on the card.
   Mobile first: one column, large tap targets; wider screens add columns. */

/* Montserrat is the Green Town Cyclists brand font (SIL Open Font License,
   montserrat-OFL.txt). Self-hosted latin subset, variable weight 400 to 800. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.os {
  --os-radius: 14px;
  --os-shadow: 0 1px 2px rgba(13, 34, 64, .06), 0 10px 28px rgba(13, 34, 64, .09);
  --os-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --os-text: #4a5568;
  max-width: 72rem;
  margin: 0 auto 3.5rem;
  color: var(--kw-black, #333);
}
/* :where() keeps these resets weaker than the component rules below. */
:where(.os) :is(h1, h2, h3) { border: 0; padding: 0; }
:where(.os) p { margin: 0; }

/* ---- hero: the page frame in KCT navy and gold ---------------------------- */
.os-hero {
  overflow: hidden;
  margin: 1rem 0 2.5rem;
  padding: 2rem 1.25rem 1.5rem;
  border-radius: var(--os-radius);
  color: var(--kw-white, #fff);
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(201, 168, 76, .2), transparent 70%),
    linear-gradient(135deg, var(--kw-navy, #0d2240) 0%, var(--kw-dark-blue, #1a3a5c) 55%, var(--kw-navy, #0d2240) 100%);
}
.os-hero__eyebrow {
  margin-bottom: .65rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--kw-gold, #c9a84c);
}
.os-hero__title {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 8vw, 3.1rem); font-weight: 800; line-height: 1.08;
  color: var(--kw-white, #fff);
}
.os-hero__title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: .9rem;
  border-radius: 2px; background: var(--kw-gold, #c9a84c);
}
.os-hero__lead { max-width: 40rem; margin-bottom: 1.5rem; font-size: 1.06rem; line-height: 1.6; color: var(--kw-cream, #ece3cf); }
.os-jump { display: flex; flex-wrap: wrap; gap: .55rem; }
.os-jump a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .55rem .45rem .95rem;
  border: 1px solid rgba(236, 227, 207, .35); border-radius: 999px; background: rgba(255, 255, 255, .05);
  color: var(--kw-white, #fff); font-size: .92rem; font-weight: 600; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.os-jump a:hover { border-color: var(--kw-gold, #c9a84c); color: var(--kw-gold, #c9a84c); }
.os-jump a:focus-visible { outline: 3px solid var(--kw-gold, #c9a84c); outline-offset: 2px; }
.os-jump__n {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
  border-radius: 999px; background: var(--kw-gold, #c9a84c); color: var(--kw-navy, #0d2240);
  font-size: .75rem; font-weight: 800;
}

/* ---- sections ------------------------------------------------------------- */
.os-sec { margin: 0 0 3rem; scroll-margin-top: 84px; }
.os-sec__head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.15rem; }
.os-sec__num {
  flex: none; margin-top: .3rem; padding: .3rem .5rem; border-radius: 7px;
  background: rgba(201, 168, 76, .2); color: var(--kw-navy, #0d2240);
  font-size: .78rem; font-weight: 800; letter-spacing: .06em;
}
.os-sec__head h2 { margin: 0; font-size: clamp(1.35rem, 5vw, 1.8rem); font-weight: 800; color: var(--kw-navy, #0d2240); }
.os-sec__head p { margin-top: .2rem; color: var(--os-text); }

/* ---- buttons and addresses ------------------------------------------------ */
.os a.os-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .6rem 1.2rem; border: 2px solid transparent; border-radius: 10px;
  background: var(--os-accent, var(--kw-navy)); color: var(--os-accent-ink, #fff);
  font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.os a.os-btn:hover { color: var(--os-accent-ink, #fff); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(13, 34, 64, .2); }
.os a.os-btn:focus-visible { outline: 3px solid var(--kw-navy, #0d2240); outline-offset: 3px; }
.os-host {
  display: inline-flex; align-items: center; gap: .4rem; min-width: 0;
  font-family: var(--os-mono); font-size: .78rem; color: var(--kw-grey, #666);
}
.os-host span { overflow-wrap: break-word; }
.os-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: auto; padding-top: .4rem; }
.os-who { display: flex; gap: .55rem; color: var(--os-text); font-size: .93rem; line-height: 1.5; }
.os-who .bi { flex: none; margin-top: .05rem; color: var(--os-bg, var(--kw-navy)); }
.os-pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--os-accent) 75%, transparent);
  background: color-mix(in srgb, var(--os-accent) 18%, transparent);
  color: var(--os-ink, #fff); font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}

/* ---- our products: a tile per product, in its own colours ----------------- */
.os-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.os-tile {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(13, 34, 64, .1); border-radius: var(--os-radius);
  background: var(--kw-white, #fff); box-shadow: var(--os-shadow);
}
.os-tile__brand {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.15rem 1.25rem 1.3rem;
  color: var(--os-ink);
  background:
    radial-gradient(110% 120% at 100% 0%, color-mix(in srgb, var(--os-glow) 30%, transparent) 0%, transparent 58%),
    var(--os-bg);
}
.os-tile__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 40px; }
.os-tile__mark { display: block; width: auto; height: 40px; }
.os-tile__mark--square { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.os-tile__id { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem 1rem; }
.os-tile__kicker {
  margin-bottom: .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--os-kicker);
}
.os-tile__name { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--os-ink); }
.os-tile__body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1.15rem 1.25rem 1.3rem; }
.os-tile__line { color: var(--kw-navy, #0d2240); font-size: 1rem; line-height: 1.55; }

.os-motif { flex: none; }
.os-motif--code {
  display: grid; gap: .1rem; padding: .55rem .75rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px;
  background: rgba(255, 255, 255, .05);
}
.os-motif--code code { padding: 0; background: none; color: #e2e8f0; font: .74rem/1.5 var(--os-mono); white-space: pre; }
.os-motif--code b { color: #c084fc; font-weight: 600; }
.os-motif--code i { color: #94a3b8; font-style: normal; }
.os-motif--svg { display: block; width: 132px; height: 52px; }
.os-motif--svg .up { fill: var(--os-accent); stroke: var(--os-accent); stroke-width: 1.4; }
.os-motif--svg .down { fill: none; stroke: #94a3b8; stroke-width: 1.4; }
.os-motif--svg .hi { fill: var(--os-hi); }
.os-motif--svg .lo { fill: rgba(255, 255, 255, .45); }
.os-motif--flow { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; }
.os-motif--flow span {
  padding: .25rem .6rem; border: 1px solid color-mix(in srgb, var(--os-accent) 60%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--os-accent) 16%, transparent); color: #ccfbf1;
}
.os-motif--flow .bi { color: var(--os-accent); font-size: .7rem; }

/* ---- apps we run for clients: the client's own brand ---------------------- */
.os-spot {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  border: 1px solid rgba(20, 83, 45, .25); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(11, 31, 21, .2);
  font-family: "Montserrat", var(--kw-font, system-ui), sans-serif;
}
.os-spot__brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem 1.25rem 1.9rem;
  text-align: center; color: #fff;
  background:
    radial-gradient(60% 45% at 62% 30%, rgba(244, 185, 66, .16), transparent 70%),
    linear-gradient(165deg, #0B1F15 0%, #0F2619 55%, #14532D 135%);
}
.os-spot__emblem {
  display: block; width: min(220px, 62vw); height: auto;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  mask-image: radial-gradient(circle, #000 55%, transparent 71%);
}
.os-spot__name {
  margin: -.5rem 0 0; font-family: inherit; font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 800; line-height: 1.02;
  letter-spacing: .01em; text-transform: uppercase; color: #fff;
}
.os-spot__place { margin-top: .5rem; color: #9CCC3C; font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.os-spot__rule { display: block; width: 56px; height: 4px; margin: .9rem auto .75rem; border-radius: 2px; background: #F4B942; }
.os-spot__tagline { color: rgba(255, 255, 255, .88); font-weight: 500; }
.os-spot__body { display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem 1.25rem 1.5rem; background: #F5F8F2; color: #15281C; }
.os-spot__kicker { color: #2F7A4E; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.os-spot__line { font-size: 1.06rem; font-weight: 500; line-height: 1.55; }
.os-spot .os-who { color: #3d5245; }
.os-spot .os-who .bi { color: #2F7A4E; }
.os-spot__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin-top: .2rem; }
.os a.os-btn--spot { min-height: 56px; border-radius: 12px; background: #14532D; color: #fff; }
.os a.os-btn--spot:hover { color: #fff; }
.os a.os-android {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 56px; padding: .45rem 1.1rem .45rem .9rem;
  border: 1px solid rgba(156, 204, 60, .5); border-radius: 12px; background: #0B1F15; color: #fff; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.os a.os-android:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11, 31, 21, .28); }
.os a.os-android:focus-visible { outline: 3px solid #14532D; outline-offset: 3px; }
.os-android .bi-phone { font-size: 1.55rem; color: #9CCC3C; }
.os-android .bi-download { margin-left: .2rem; font-size: 1.1rem; color: #F4B942; }
.os-android__text small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .1em; line-height: 1.1; text-transform: uppercase; opacity: .85; }
.os-android__text strong { display: block; font-size: 1.22rem; font-weight: 800; line-height: 1.15; }
.os-android__meta { color: #3d5245; font-size: .86rem; line-height: 1.5; }
.os-android__meta a {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; padding: .2rem 0;
  color: #14532D; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
.os-android__meta a:focus-visible { outline: 3px solid #14532D; outline-offset: 2px; border-radius: 3px; }
.os-android__note {
  padding: .7rem .85rem; border-left: 3px solid #5DAE49; border-radius: 8px; background: #DCE8D6;
  color: #15281C; font-size: .86rem; line-height: 1.5;
}
.os-spot .os-host { color: #3d5245; }

/* ---- team sign-in: compact doors ------------------------------------------ */
.os-doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.os-door {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: .9rem 1rem; padding: 1rem;
  border: 1px solid rgba(13, 34, 64, .12); border-radius: var(--os-radius); background: var(--kw-white, #fff);
  box-shadow: var(--os-shadow);
}
.os-door__mark { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; font-size: 1.35rem; }
.os-door__img { display: block; width: 48px; height: 48px; }
.os-door__name { margin: 0; color: var(--kw-navy, #0d2240); font-size: 1.1rem; font-weight: 800; }
.os-door__line { margin: .2rem 0 .4rem; color: var(--os-text); font-size: .93rem; line-height: 1.5; }
.os-door a.os-btn { grid-column: 1 / -1; border-color: var(--kw-navy, #0d2240); background: transparent; color: var(--kw-navy, #0d2240); }
.os-door a.os-btn:hover { background: var(--kw-navy, #0d2240); color: #fff; }

/* ---- for developers -------------------------------------------------------- */
.os-api {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.3rem 1.25rem;
  border-radius: var(--os-radius); color: var(--kw-cream, #ece3cf); box-shadow: var(--os-shadow);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(201, 168, 76, .14), transparent 70%),
    linear-gradient(160deg, var(--kw-navy-deep, #081120), var(--kw-navy, #0d2240));
}
.os-api__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; }
.os-api__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  background: rgba(201, 168, 76, .16); color: var(--kw-gold, #c9a84c); font-size: 1.3rem;
}
.os-api__name { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 800; }
.os-pill--key { --os-accent: #c9a84c; --os-ink: #ece3cf; }
.os-api__line { margin: .8rem 0 1rem; line-height: 1.55; }
.os-api .os-foot { padding-top: 0; }
.os-api a.os-btn { --os-accent: #c9a84c; --os-accent-ink: #0d2240; }
.os-api a.os-btn:focus-visible { outline-color: var(--kw-gold, #c9a84c); }
.os-api .os-host { color: var(--kw-steel, #8497b4); }
.os-api__code {
  margin: 0; padding: 1rem 1.1rem; border: 1px solid rgba(132, 151, 180, .3); border-radius: 11px;
  background: rgba(0, 0, 0, .32); color: #e2e8f0; font: .82rem/1.7 var(--os-mono);
  white-space: pre-wrap; overflow-wrap: break-word;
}
.os-api__code code { padding: 0; background: none; color: inherit; font: inherit; white-space: inherit; }
.os-api__code .c { color: var(--kw-steel, #8497b4); }
.os-api__code .k { color: var(--kw-gold, #c9a84c); }

/* ---- wider screens --------------------------------------------------------- */
@media (max-width: 479.98px) {
  .os a.os-btn, .os a.os-android { width: 100%; justify-content: center; }
  .os-foot { flex-direction: column; align-items: stretch; }
  .os-foot .os-host { justify-content: center; }
}
@media (min-width: 576px) {
  .os-hero { padding: 2.75rem 2.25rem 2rem; }
}
@media (min-width: 760px) {
  .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .os-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
  .os-api { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding: 1.9rem; }
  .os-tile__brand, .os-tile__body { padding-left: 1.5rem; padding-right: 1.5rem; }
  /* equal brand panels, so the text below starts level across a row */
  .os-tile__brand { min-height: 200px; justify-content: space-between; }
}
@media (min-width: 880px) {
  .os-spot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .os-spot__brand { padding: 2rem; }
  .os-spot__body { justify-content: center; padding: 2.25rem 2.25rem 2.25rem 2.5rem; }
}
@media (min-width: 1040px) {
  .os-door { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; }
  .os-door a.os-btn { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .os a.os-btn, .os a.os-android, .os-jump a { transition: none; }
  .os a.os-btn:hover, .os a.os-android:hover { transform: none; }
}
