/* v4-rules.css: Cortex DESIGN-RULES brand pass, loaded LAST on every page (2026-11-12, task_1794493031602_75587056).
   Spec: SPEC-site-v4.md (Runner, Fable 5.2). Nico 11-11: "same exact spacing as the base design, slap the brand kit over it", so
   Base-design spacing, type sizes and radii stay (R25/R26/R38/R22 void). Here: R37 font, R13 borders, R9 bands, R6 ring colour,
   R52 hit areas at 390 where the layout does not move, R42 lanyard role text, the primary-pill shimmer, lanyard heading clear.
   Owned by Runner's W2 patch, NOT here: "(Sample data)", the scrollbar, the /tools H1 clip + card clamp, the lanyard container.
   Rule of this file: no margin, gap, font-size or radius change except the R52 hit-area pairs and the lanyard heading. */

/* ---- R37: every word is Urbanist (self-hosted, OFL). Two faces of the same Urbanist file, metric-fitted to the
   base-design fonts they replace so lines break where the base design's break: the normal-width face fits body text (was Nunito), the
   112.5% face fits titles (was Bricolage Grotesque at 36 px). size-adjust = measured advance-width ratio per weight band
   (tools/ width probe, Chrome, same sentence); ascent/descent overrides from v4-type.css. ---- */
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 100 449; font-stretch: 100%; font-display: block; size-adjust: 102.72%; ascent-override: 97.63%; descent-override: 34.09%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 450 549; font-stretch: 100%; font-display: block; size-adjust: 102.63%; ascent-override: 98.77%; descent-override: 34.49%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 550 649; font-stretch: 100%; font-display: block; size-adjust: 102.12%; ascent-override: 99.92%; descent-override: 34.89%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 650 749; font-stretch: 100%; font-display: block; size-adjust: 103.02%; ascent-override: 101.14%; descent-override: 35.31%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 750 900; font-stretch: 100%; font-display: block; size-adjust: 101.91%; ascent-override: 102.21%; descent-override: 35.69%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 100 449; font-stretch: 112.5%; font-display: block; size-adjust: 104.00%; ascent-override: 82.89%; descent-override: 24.06%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 450 549; font-stretch: 112.5%; font-display: block; size-adjust: 104.00%; ascent-override: 83.86%; descent-override: 24.35%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 550 649; font-stretch: 112.5%; font-display: block; size-adjust: 103.93%; ascent-override: 84.83%; descent-override: 24.63%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 650 749; font-stretch: 112.5%; font-display: block; size-adjust: 104.02%; ascent-override: 85.86%; descent-override: 24.93%; line-gap-override: 0%; }
@font-face { font-family: "Urbanist"; src: url(/assets/v4/fonts/Urbanist.ttf) format("truetype"); font-weight: 750 900; font-stretch: 112.5%; font-display: block; size-adjust: 104.24%; ascent-override: 86.78%; descent-override: 25.19%; line-gap-override: 0%; }
@font-face { font-family: "Doto"; src: url(/assets/v4/fonts/Doto.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --font-sans: Urbanist, sans-serif;
  --font-serif: Urbanist, sans-serif;
  --font-display: Urbanist, sans-serif;
  --font-nunito: Urbanist;
  --font-bricolage: Urbanist;
}
html, body, button, input, select, textarea, optgroup { font-family: Urbanist, sans-serif; }
h1, h2, h3, h4, h5, h6, .font-display, .font-heading, .ct-pilltext, .ct-cred { font-family: Urbanist, sans-serif; font-stretch: 112.5%; }
.ogl-island-testimonials .it-root { --it-sans: Urbanist, sans-serif; }

/* ---- R6: no #FF4F00 in the focus-ring default (the scrollbar is W2's patch) ---- */
*, ::before, ::after, ::backdrop { --tw-ring-color: rgb(11 95 255 / .5); }
/* Doto only for code and hex labels (R37): inline code in posts, the badge number on the team lanyard */
code, kbd, samp, pre, .font-mono { font-family: Doto, monospace; font-weight: 800; font-variation-settings: "ROND" 100; }

/* ---- R13: no dark or solid coloured outline; ring at most white .24, bright top lip ---- */
/* get-started checkboxes: lavender fill + top lip instead of the 1px Blue border; checked stays the Blue fill with its tick */
button[role="checkbox"] { border-color: transparent; background-color: rgba(214, 204, 255, .62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 3px 13px rgba(110, 48, 90, .10); }
button[role="checkbox"][data-state="checked"] { background-color: var(--v4-blue, #0B5FFF); }
/* outline pills (FAQ "View Pricing", get-started Google button): white ring .24, top lip .95 */
:is(a, button).rounded-full.border-brand.text-brand, :is(a, button).rounded-full.border.border-brand, button.border-input.rounded-full {
  border-color: rgba(255, 255, 255, .24); border-top-color: rgba(255, 255, 255, .95);
}

/* ---- R9: bands sit on the canvas (page mesh shows through), never a flat fill ---- */
[data-island="team"] section.bg-background { background-color: transparent; }


/* ---- R52 (390 only): hit areas grow to >= 48 where the layout does not move.
   Invisible extensions only: padding paired with an equal negative margin (or inline padding, which never moves lines).
   Visible controls (pills, inputs, chips, carousel dots) keep their base-design size; see the report. ---- */
@media (max-width: 759px) {
  /* header logo link and burger */
  header .justify-between > a[href="/"]:first-child { display: block; padding-block: 13px; margin-block: -13px; }
  a.mx-auto.block[href="/"] { padding-block: 3px; margin-block: -3px; height: auto !important; min-height: 50px; }
  header button.md\:hidden.p-2\.5 { padding: 13px; margin: -3px; }
  /* footer disclaimer "Read More": 24 -> 50 (home: the mobile pass already pads it to 44, so only 3 more) */
  footer a.self-end { padding-block: 13px; margin-block: -13px; }
  html:has(link[href="/assets/clone/ct-extra.css"]) footer a.self-end { margin-block: -3px; }
  /* a link wrapped round a button: an inline box (padding never moves the line) or a flex item (padding paid back by margin) */
  a:not([class]):has(> :is(button, div, span)) { padding-block: 21px; margin-block: -21px; }
  .flex-col > a:not([class]):has(> button) { padding-block: 0; margin-block: 0; }
  .flex-col > a:not([class]):has(> button):first-child { padding-top: 8px; margin-top: -8px; }
  .flex-col > a:not([class]):has(> button):last-child { padding-bottom: 8px; margin-bottom: -8px; }
  /* text links inside running text */
  :is(p, li, label) > a:not([class*="flex"]):not([class*="block"]):not(:has(> button)),
  a.text-brand.font-semibold:not([class*="flex"]):not([class*="block"]) { padding-block: 21px; }
  a.text-primary.font-medium { padding-inline: 3px; margin-inline: -3px; }
  a.text-primary.hover\:underline:not([class*="flex"]):not([class*="block"]) { padding-block: 21px; }
  /* blog "Back to Blog" (inline-flex) */
  a.text-brand.inline-flex.gap-2 { padding-block: 13px; margin-block: -13px; }
  a.text-brand.inline-flex.gap-2.mb-8 { padding-block: 34px 0; margin-block: -34px 2rem; }
  /* /tools card "Learn more" (ghost, 32 high): grows down into the card padding and the grid gap only */
  html:has([data-testid="text-integrations-headline"]) button.min-h-8.w-full { padding-bottom: 21px !important; margin-bottom: -21px; }
}

/* ---- SPEC-site-v4 4: the primary pill shimmers (ALIVE.md 2, same values as the apps' Alive.kt): a soft 20deg band of white
   light, 25% of the pill wide, white 0 -> .35 -> 0, sweeps left to right in 1.6 s, then rests 5 s; every second pill runs
   3.4 s later so they do not sweep together. The band is a full-size layer behind the label (no overflow, no layout); it
   moves by background-position, because a moving transform would add scroll overflow to the pill (R42) or the page (R31).
   Reduced motion: no band. The rim-brighten step is left out (it would fight the hover filter in v4.css). ---- */
:is(.bg-brand.text-white, .bg-primary.text-primary-foreground, .bg-primary.text-white):is(.rounded-full, .rounded-xl):not(.absolute):not(.fixed) { position: relative; }
:is(.bg-brand.text-white, .bg-primary.text-primary-foreground, .bg-primary.text-white):is(.rounded-full, .rounded-xl) { isolation: isolate; }
:is(.bg-brand.text-white, .bg-primary.text-primary-foreground, .bg-primary.text-white):is(.rounded-full, .rounded-xl)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 55%) no-repeat;
  background-size: 250% 100%; background-position: 93% 0;
  animation: v4r-sweep 6.6s cubic-bezier(.37, 0, .63, 1) 1.2s infinite;
}
:nth-child(2n of :is(.bg-brand.text-white, .bg-primary.text-white)):is(.rounded-full, .rounded-xl)::after,
a:nth-of-type(2n) > :is(.bg-brand.text-white, .bg-primary.text-white):is(.rounded-full, .rounded-xl)::after { animation-delay: 4.6s; }
@keyframes v4r-sweep {
  0% { background-position: 93% 0; }
  24.2%, 100% { background-position: 7% 0; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.bg-brand.text-white, .bg-primary.text-primary-foreground, .bg-primary.text-white):is(.rounded-full, .rounded-xl)::after { animation: none; background: none; }
}

/* ---- SPEC-site-v4 5: team-lanyard-rail on /about (component file untouched; container and spacing only) ----
   heading above the rail with 34 clear (was 30); role text never ends in an ellipsis. The 610 container is W2's patch. */
[data-island="team"] > section > header + div.mt-4 { margin-top: 20px; }
[data-island="team"] span.truncate { text-overflow: clip; }
