/* ==========================================================================
   iBNSoft CMS - public site design system (ibn.css), v1 2026-10-29

   Replaces sf-base.css on every public page. sf-base.css stays in the tree
   only for markup nobody has moved yet; nothing in _Layout loads it.

   Every value resolves through the tokens below:
     type     Tailwind type scale (12/16 ... 72/72), Manrope only, max weight 700
     spacing  2 4 8 12 16 24 32 40 48 64 80 96 (px), nothing in between
     radius   Tailwind radii; nested radius = outer radius - gap
     motion   cubic-bezier(0.22,1,0.36,1); 500ms for movement, 300ms for colour
     colour   flat backgrounds only; gradients are allowed on hero heading text
   Design rules: .claude/skills/landing-page-design/SKILL.md (repository root).
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ink: #111111;
    --ink-2: #2b2b2b;
    --muted: #5c5c5c;
    --faint: #8a8a8a;
    --line: #e6e4e1;
    --line-strong: #d4d1cc;
    --bg: #ffffff;
    --surface: #f6f5f3;
    --surface-2: #eeece8;

    --accent: #6d4aff;          /* brand violet (back office default): logo, dots, highlights */
    --accent-ink: #5534e0;      /* violet for text on white (AA at 16px) */
    --accent-soft: #f0ecff;
    --accent-hover: #4326b8;
    --accent-line: #d4c9ff;

    --dark: #181818;
    --dark-2: #1f1f1f;
    --dark-3: #272727;
    --dark-line: #313131;
    --dark-muted: #a3a3a3;

    --s-25: 2px;  --s-50: 4px;  --s-75: 8px;  --s-100: 12px; --s-200: 16px;
    --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px;
    --s-800: 80px; --s-900: 96px;

    --r-sm: 2px; --r: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px;
    --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-move: 500ms;
    --t-colour: 300ms;

    --container: 1200px;
    --gutter: var(--s-200);
    --header-space: 96px;       /* floating header height plus its offset */

    --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-ink);
}

@media (min-width: 768px) {
    :root { --gutter: var(--s-400); --header-space: 112px; }
}

/* 2. RESET ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-400); }
body { margin: 0; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 3. BASE ================================================================== */
body.ibn {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* zero class specificity, so any component class (ibn-partner.css, portal pages) sets its own colour */
:where(.ibn) :is(h1, h2, h3, h4) {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
:where(.ibn) :is(p, li) { text-wrap: pretty; }
:where(.ibn) a { color: inherit; }
/* the ring follows each element's own radius; forcing one here squared off round buttons */
.ibn :focus-visible { outline: none; box-shadow: var(--focus); }
.ibn a:not([class]):focus-visible { border-radius: var(--r); }
.ibn ::selection { background: var(--accent-soft); color: var(--ink); }

/* type scale helpers (Tailwind steps) */
.t-xs   { font-size: 0.75rem;  line-height: 1rem; }
.t-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.t-base { font-size: 1rem;     line-height: 1.5rem; }
.t-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.t-xl   { font-size: 1.25rem;  line-height: 1.75rem; }

.skip-link {
    position: absolute; left: var(--s-200); top: var(--s-200); z-index: 100;
    padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
    background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--t-move) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.ibn-container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
/* single column grids must not grow to their widest child (nowrap code lines) */
.ibn-hero__grid, .ibn-row, .ibn-pagehead__grid, .ibn-split, .ibn-deploy__panel, .ibn-quote, .ibn-usage, .ibn-console__pane, .ibn-deploy__diagram { grid-template-columns: minmax(0, 1fr); }
.ibn-section { padding-block: var(--s-700); }
.ibn-section--surface { background: var(--surface); }
.ibn-section--dark { background: var(--dark); color: var(--dark-muted); }
.ibn-section--dark h2, .ibn-section--dark h3 { color: #fff; }
@media (min-width: 1024px) { .ibn-section { padding-block: var(--s-900); } }

.ibn-eyebrow {
    display: inline-flex; align-items: center; gap: var(--s-75);
    font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--muted);
}
.ibn-eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent);
}
.ibn-section--dark .ibn-eyebrow { color: var(--dark-muted); }

.ibn-head { max-width: 680px; margin-bottom: var(--s-600); }
.ibn-head--center { margin-inline: auto; text-align: center; }
.ibn-head--center .ibn-eyebrow { justify-content: center; }
.ibn-head h2 { margin-top: var(--s-100); font-size: 1.875rem; line-height: 2.25rem; }
.ibn-head p { margin-top: var(--s-200); font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.ibn-section--dark .ibn-head p { color: var(--dark-muted); }
@media (min-width: 768px) { .ibn-head h2 { font-size: 2.25rem; line-height: 2.5rem; } }

/* 4. BUTTONS AND LINKS ===================================================== */
.ibn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
    padding: var(--s-75) var(--s-100);
    min-height: 40px;
    border: 1px solid transparent; border-radius: var(--r-full);
    font-size: 1rem; line-height: 1.5rem; font-weight: 600;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color var(--t-colour) var(--ease), color var(--t-colour) var(--ease),
                border-color var(--t-colour) var(--ease), transform var(--t-move) var(--ease);
}
.ibn-btn:active { transform: scale(0.98); }
.ibn-btn--lg { padding-inline: var(--s-200); min-height: 48px; }
.ibn-btn--sm { font-size: 0.875rem; line-height: 1.25rem; min-height: 36px; }
.ibn-btn--primary { background: var(--ink); color: #fff; }
.ibn-btn--primary:hover { background: #2e2e2e; }
.ibn-btn--accent { background: var(--accent-ink); color: #fff; }
.ibn-btn--accent:hover { background: var(--accent-hover); }
.ibn-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ibn-btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.ibn-btn--light { background: #fff; color: var(--ink); }
.ibn-btn--light:hover { background: var(--surface-2); }
.ibn-btn--on-dark { background: transparent; color: #fff; border-color: var(--dark-line); }
.ibn-btn--on-dark:hover { background: var(--dark-3); }
.ibn-btn svg { width: 20px; height: 20px; flex: none; }

.ibn-link {
    display: inline-flex; align-items: center; gap: var(--s-75);
    color: var(--accent-ink); font-weight: 600; text-decoration: none;
    transition: color var(--t-colour) var(--ease);
}
.ibn-link svg { width: 20px; height: 20px; transition: transform var(--t-move) var(--ease); }
.ibn-link:hover { color: var(--ink); }
.ibn-link:hover svg { transform: translateX(4px); }
.ibn-section--dark .ibn-link { color: #fff; }

/* legacy button names still emitted by partner-find.js and partner-detail.js */
.ibn .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
    padding: var(--s-75) var(--s-100); min-height: 40px;
    border: 1px solid transparent; border-radius: var(--r-full);
    font-family: var(--font); font-size: 1rem; line-height: 1.5rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: background-color var(--t-colour) var(--ease), border-color var(--t-colour) var(--ease),
                transform var(--t-move) var(--ease);
}
.ibn .btn:active { transform: scale(0.98); }
.ibn .btn--primary { background: var(--ink); color: #fff; }
.ibn .btn--primary:hover { background: #2e2e2e; }
.ibn .btn--outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.ibn .btn--outline:hover { border-color: var(--ink); }
.ibn .btn--full { width: 100%; }

/* 5. HEADER: floating bar ================================================== */
.ibn-header {
    position: fixed; z-index: 50;
    top: var(--s-200); left: 50%;
    transform: translateX(-50%);
    width: max-content; max-width: calc(100% - var(--s-400));
}
.ibn-header__bar {
    display: flex; align-items: center; gap: var(--s-300);
    padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    transition: background-color var(--t-colour) var(--ease), border-color var(--t-colour) var(--ease);
}
.ibn-header.is-scrolled .ibn-header__bar { background: rgba(255, 255, 255, 0.9); border-color: rgba(17, 17, 17, 0.12); }

.ibn-logo {
    display: inline-flex; align-items: center; gap: var(--s-75);
    color: var(--ink); text-decoration: none; font-weight: 700;
    font-size: 1rem; line-height: 1.5rem; letter-spacing: -0.01em; white-space: nowrap;
}
.ibn-logo svg { width: 28px; height: 20px; color: var(--accent); }
.ibn-logo__muted { color: var(--muted); font-weight: 500; }

.ibn-nav { display: none; }
.ibn-nav__list { display: flex; align-items: center; gap: var(--s-25); list-style: none; margin: 0; padding: 0; }
.ibn-nav__item { position: relative; }
.ibn-nav__link {
    display: inline-flex; align-items: center; gap: var(--s-50);
    padding: var(--s-75) var(--s-100);
    border: 0; border-radius: var(--r-full); background: transparent;
    font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink-2);
    text-decoration: none; cursor: pointer;
    transition: background-color var(--t-colour) var(--ease), color var(--t-colour) var(--ease);
}
.ibn-nav__link:hover, .ibn-nav__item.is-open > .ibn-nav__link { background: rgba(17, 17, 17, 0.06); color: var(--ink); }
.ibn-nav__link[aria-current="page"], .ibn-nav__item.is-current > .ibn-nav__link { color: var(--ink); background: rgba(17, 17, 17, 0.06); }
.ibn-nav__caret { width: 12px; height: 12px; transition: transform var(--t-move) var(--ease); }
.ibn-nav__item.is-open .ibn-nav__caret { transform: rotate(180deg); }

/* dropdown panel: outer 16px radius, 8px padding, so items take 8px */
.ibn-nav__panel {
    position: absolute; top: calc(100% + var(--s-100)); left: 50%;
    min-width: 264px; padding: var(--s-75);
    border: 1px solid var(--line); border-radius: var(--r-2xl);
    background: #fff;
    box-shadow: 0 24px 48px rgba(17, 17, 17, 0.10);
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity var(--t-colour) var(--ease), transform var(--t-move) var(--ease), visibility 0s linear var(--t-colour);
}
.ibn-nav__item.is-open > .ibn-nav__panel {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity var(--t-colour) var(--ease), transform var(--t-move) var(--ease), visibility 0s;
}
.ibn-nav__panel a {
    display: block; padding: var(--s-75) var(--s-100);
    border-radius: var(--r-lg);
    font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
    transition: background-color var(--t-colour) var(--ease);
}
.ibn-nav__panel a:hover { background: var(--surface); color: var(--ink); }
.ibn-nav__panel a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; }
.ibn-nav__panel-sep { height: 1px; margin: var(--s-75) var(--s-100); background: var(--line); }
.ibn-nav__panel a.is-summary { color: var(--accent-ink); font-weight: 600; }

.ibn-header__cta { display: none; }

/* menu toggle: two lines that rotate into a cross */
.ibn-burger {
    position: relative; width: 40px; height: 40px; flex: none;
    border: 0; border-radius: var(--r-full); background: var(--ink); cursor: pointer;
}
.ibn-burger span {
    position: absolute; left: 12px; width: 16px; height: 2px; border-radius: var(--r-full); background: #fff;
    transition: transform var(--t-move) var(--ease);
}
.ibn-burger span:nth-child(1) { top: 15px; }
.ibn-burger span:nth-child(2) { top: 23px; }
.ibn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.ibn-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1024px) {
    .ibn-nav { display: block; }
    .ibn-header__cta { display: inline-flex; }
    .ibn-burger { display: none; }
}

/* full height mobile panel
   Solid surface (page content showing through the blur read as smudges), content capped
   at 560px so a tablet does not get a stretched list, grouped rows in cards, and the
   actions pinned to the bottom edge where a thumb reaches them. */
.ibn-mnav {
    position: fixed; inset: 0; z-index: 40;
    display: flex; flex-direction: column;
    background: var(--surface);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-colour) var(--ease), visibility 0s linear var(--t-colour);
}
.nav-open .ibn-mnav { opacity: 1; visibility: visible; transition: opacity var(--t-colour) var(--ease), visibility 0s; }
.nav-open { overflow: hidden; }
.ibn-mnav__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--header-space) + var(--s-75)) var(--gutter) var(--s-300); }
.ibn-mnav__inner { max-width: 560px; margin-inline: auto; display: grid; gap: var(--s-300); }
.ibn-mnav__title {
    padding-inline: var(--s-100);
    font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--faint); margin-bottom: var(--s-75);
}
/* card 24px radius with 8px padding: rows take 16px */
.ibn-mgroup { padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; list-style: none; margin: 0; }
.ibn-mrow {
    display: flex; align-items: center; gap: var(--s-100);
    padding: var(--s-100); border-radius: var(--r-2xl);
    color: var(--ink); text-decoration: none;
    transition: background-color var(--t-colour) var(--ease), transform var(--t-move) var(--ease);
}
.ibn-mrow:hover { background: var(--surface); }
.ibn-mrow:active { transform: scale(0.98); }
.ibn-mrow__icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--r-xl); background: var(--surface); color: var(--ink);
}
.ibn-mrow__icon svg { width: 20px; height: 20px; }
.ibn-mrow__icon--accent { background: var(--ink); color: #fff; }
.ibn-mrow__text { flex: 1; min-width: 0; display: grid; }
.ibn-mrow__text b { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.ibn-mrow__text small { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibn-mrow__go { flex: none; width: 16px; height: 16px; color: var(--faint); transition: transform var(--t-move) var(--ease), color var(--t-colour) var(--ease); }
.ibn-mrow:hover .ibn-mrow__go { transform: translateX(4px); color: var(--ink); }
.ibn-mrow[aria-current="page"] { background: var(--surface); }
.ibn-mrow + .ibn-mrow { margin-top: var(--s-25); }
.ibn-mchips { display: flex; flex-wrap: wrap; gap: var(--s-75); padding-inline: var(--s-50); }
.ibn-mchips a {
    padding: var(--s-75) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-full); background: #fff;
    font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
    transition: border-color var(--t-colour) var(--ease);
}
.ibn-mchips a:hover { border-color: var(--ink); }
.ibn-mnav__foot {
    padding: var(--s-200) var(--gutter) calc(var(--s-200) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.96);
}
.ibn-mnav__foot-inner { max-width: 560px; margin-inline: auto; display: grid; gap: var(--s-75); grid-template-columns: 1fr 1fr; }
.ibn-mnav__foot .ibn-btn--primary { grid-column: 1 / -1; }
.ibn-mnav__foot .ibn-btn { width: 100%; }
.ibn-mnav__note { grid-column: 1 / -1; margin-top: var(--s-50); text-align: center; font-size: 0.75rem; line-height: 1rem; color: var(--faint); }
.ibn-mnav__note a { color: var(--muted); }
.ibn-mnav [data-stagger] {
    opacity: 0; transform: translateY(24px);
    transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease);
    transition-delay: calc(min(var(--i, 0) * 60ms, 340ms));
}
.nav-open .ibn-mnav [data-stagger] { opacity: 1; transform: none; }
@media (min-width: 1024px) { .ibn-mnav { display: none; } }

/* 6. FOOTER ================================================================ */
.ibn-footer { background: var(--dark); color: var(--dark-muted); padding: var(--s-800) 0 var(--s-400); }
.ibn-footer__grid { display: grid; gap: var(--s-500); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ibn-footer__brand { grid-column: 1 / -1; max-width: 360px; }
.ibn-footer__brand .ibn-logo { color: #fff; }
.ibn-footer__brand p { margin-top: var(--s-200); font-size: 0.875rem; line-height: 1.25rem; }
.ibn-footer h2 {
    font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: var(--s-200);
}
.ibn-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100); }
.ibn-footer a { color: var(--dark-muted); text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; transition: color var(--t-colour) var(--ease); }
.ibn-footer a:hover { color: #fff; }
.ibn-footer :focus-visible { box-shadow: 0 0 0 2px var(--dark), 0 0 0 4px #fff; }
.ibn-social { display: flex; gap: var(--s-75); margin-top: var(--s-300); }
.ibn-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--dark-line); border-radius: var(--r-full);
    transition: background-color var(--t-colour) var(--ease), border-color var(--t-colour) var(--ease);
}
.ibn-social a:hover { background: var(--dark-3); border-color: var(--dark-3); }
.ibn-social svg { width: 16px; height: 16px; fill: currentColor; }
.ibn-footer__bottom {
    display: flex; flex-wrap: wrap; gap: var(--s-200); justify-content: space-between; align-items: center;
    margin-top: var(--s-700); padding-top: var(--s-300);
    border-top: 1px solid var(--dark-line);
    font-size: 0.875rem; line-height: 1.25rem;
}
.ibn-footer__legal { display: flex; gap: var(--s-300); }
@media (min-width: 768px) { .ibn-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .ibn-footer__grid { grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); }
    .ibn-footer__brand { grid-column: auto; }
}

/* 7. MAIN ================================================================== */
.ibn-main { display: block; padding-top: var(--header-space); }
.ibn-main:focus { outline: none; }

/* 8. HERO (home) =========================================================== */
.ibn-hero { padding: var(--s-400) 0 var(--s-700); }
.ibn-hero__grid { display: grid; gap: var(--s-600); align-items: center; }
.ibn-hero__copy { max-width: 680px; }
.ibn-hero h1 {
    margin-top: var(--s-300);
    font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em;
    background: linear-gradient(90deg, #000000, #666666);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.ibn-hero__sub { margin-top: var(--s-300); max-width: 680px; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.ibn-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-300); margin-top: var(--s-500); }
.ibn-hero__proof {
    display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300);
    margin: var(--s-500) 0 0; padding: 0; list-style: none;
    font-size: 0.875rem; line-height: 1.25rem; color: var(--muted);
}
.ibn-hero__proof strong { color: var(--ink); font-weight: 700; }
.ibn-hero__media { position: relative; }
.ibn-hero__frame { border-radius: var(--r-3xl); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.ibn-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.ibn-hero__chip {
    position: absolute; left: var(--s-200); bottom: var(--s-200);
    display: flex; align-items: center; gap: var(--s-100);
    padding: var(--s-100) var(--s-200);
    border-radius: var(--r-2xl);
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2);
}
.ibn-hero__chip b { font-size: 1.5rem; line-height: 2rem; color: var(--ink); }
.ibn-hero__chip-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: #16a34a; }
@media (min-width: 768px) { .ibn-hero h1 { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) {
    .ibn-hero { padding-top: var(--s-600); }
    .ibn-hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-700); }
    .ibn-hero h1 { font-size: 3.75rem; line-height: 1; }
}

/* 9. LOGO STRIP ============================================================ */
.ibn-logos { padding: var(--s-500) 0; border-block: 1px solid var(--line); }
.ibn-logos__label { text-align: center; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); margin-bottom: var(--s-300); }
.ibn-logos__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ibn-logos__track { display: flex; align-items: center; gap: var(--s-700); width: max-content; animation: ibn-marquee 40s linear infinite; }
.ibn-logos__track img { height: 28px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.7; }
.ibn-logos__viewport:hover .ibn-logos__track { animation-play-state: paused; }
@keyframes ibn-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ibn-logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .ibn-logos__track [aria-hidden="true"] { display: none; }
}

/* 10. FEATURE ROWS (benefits) ============================================== */
.ibn-rows { display: grid; gap: var(--s-800); }
.ibn-row { display: grid; gap: var(--s-400); align-items: center; }
.ibn-row__media { border-radius: var(--r-3xl); overflow: hidden; background: var(--surface); aspect-ratio: 5 / 4; }
.ibn-row__media img { width: 100%; height: 100%; object-fit: cover; }
.ibn-row__copy { max-width: 520px; }
.ibn-row__copy h3 { margin-top: var(--s-100); font-size: 1.875rem; line-height: 2.25rem; }
.ibn-row__copy p { margin-top: var(--s-200); font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.ibn-row__list { list-style: none; margin: var(--s-300) 0 0; padding: 0; display: grid; gap: var(--s-100); }
.ibn-row__list li { display: flex; gap: var(--s-100); align-items: flex-start; }
.ibn-row__list svg { width: 20px; height: 20px; flex: none; margin-top: var(--s-25); color: var(--accent-ink); }
.ibn-row__copy .ibn-link { margin-top: var(--s-400); }
@media (min-width: 1024px) {
    .ibn-row { grid-template-columns: 1fr 1fr; gap: var(--s-800); }
    .ibn-row--flip .ibn-row__media { order: 2; }
}

/* 11. TAGLINE REVEAL ======================================================= */
.ibn-tagline { padding-block: var(--s-900); }
.ibn-tagline p {
    max-width: 960px; margin-inline: auto; text-align: center;
    font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
    text-wrap: balance;
}
.ibn-tagline .w {
    opacity: 0.3;
    transition: opacity var(--t-move) var(--ease);
}
.ibn-tagline .w.is-on { opacity: 1; }
@media (min-width: 768px) { .ibn-tagline p { font-size: 3rem; line-height: 1; } }
/* stays at 48px: at 60px the second line no longer fits and leaves one word alone */

/* 12. TABS AND CARDS ======================================================= */
.ibn-tabs { display: inline-flex; gap: var(--s-50); padding: var(--s-50); border-radius: var(--r-full); background: var(--surface-2); margin-bottom: var(--s-500); }
.ibn-tabs-wrap { display: flex; justify-content: center; }
.ibn-tab {
    display: inline-flex; align-items: center; gap: var(--s-75);
    padding: var(--s-75) var(--s-200); white-space: nowrap; border: 0; border-radius: var(--r-full);
    background: transparent; color: var(--muted); font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; cursor: pointer;
    transition: background-color var(--t-colour) var(--ease), color var(--t-colour) var(--ease);
}
.ibn-tab svg { width: 16px; height: 16px; }
/* three labels on one line at phone width: drop the icons and tighten the padding */
@media (max-width: 479px) {
    .ibn-tabs { display: flex; width: 100%; }
    .ibn-tab { flex: 1; justify-content: center; padding-inline: var(--s-100); }
    .ibn-tab svg { display: none; }
}
.ibn-tab:hover { color: var(--ink); }
.ibn-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08); }
.ibn-tabpanel[hidden] { display: none; }
.ibn-tabpanel { animation: ibn-fade var(--t-move) var(--ease); }
@keyframes ibn-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ibn-cards { display: grid; gap: var(--s-300); }
@media (min-width: 768px) { .ibn-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ibn-card {
    display: flex; flex-direction: column;
    padding: var(--s-75);
    border: 1px solid var(--line); border-radius: var(--r-3xl);
    background: #fff;
    transition: border-color var(--t-colour) var(--ease), transform var(--t-move) var(--ease);
}
.ibn-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
/* outer 24px, gap 8px: inner 16px */
.ibn-card__media { border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.ibn-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ibn-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-200) var(--s-200) var(--s-200); }
.ibn-card__body h3 { font-size: 1.25rem; line-height: 1.75rem; }
.ibn-card__body p { margin-top: var(--s-75); color: var(--muted); flex: 1; }
.ibn-card__body .ibn-link { margin-top: var(--s-300); }

/* 13. STATS (dark) ========================================================= */
.ibn-stats { display: grid; gap: var(--s-300); }
.ibn-stat { padding: var(--s-300); border: 1px solid var(--dark-line); border-radius: var(--r-3xl); background: var(--dark-2); }
.ibn-stat__value { font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.ibn-stat__label { margin-top: var(--s-100); color: var(--dark-muted); }
.ibn-recog { display: grid; gap: var(--s-300); margin-top: var(--s-300); }
.ibn-recog__item { padding: var(--s-300); border: 1px solid var(--dark-line); border-radius: var(--r-3xl); }
.ibn-recog__name { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; color: #fff; }
.ibn-recog__item p { margin-top: var(--s-75); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
    .ibn-stats, .ibn-recog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .ibn-stat__value { font-size: 3.75rem; } }

/* 14. TESTIMONIALS ========================================================= */
.ibn-quote { display: grid; gap: var(--s-400); align-items: center; padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.ibn-quote__photo { width: 100%; max-width: 200px; margin: var(--s-300) auto; border-radius: var(--r-full); overflow: hidden; aspect-ratio: 1 / 1; background: #fff; }
.ibn-quote__photo img { width: 100%; height: 100%; object-fit: cover; }
.ibn-quote__body { padding: var(--s-200) var(--s-300) var(--s-300); }
.ibn-quote__mark { width: 32px; height: 32px; color: var(--accent); }
.ibn-quote__lead { margin-top: var(--s-200); font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.ibn-quote__text { margin-top: var(--s-200); font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.ibn-quote__who { display: flex; align-items: center; gap: var(--s-200); margin-top: var(--s-400); }
.ibn-quote__who b { display: block; color: var(--ink); }
.ibn-quote__who span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.ibn-quote__logo { height: 32px; width: auto; margin-left: auto; }
.ibn-slides { position: relative; }
.ibn-slide[hidden] { display: none; }
.ibn-slide { animation: ibn-fade var(--t-move) var(--ease); }
.ibn-dots { display: flex; justify-content: center; gap: var(--s-100); margin-top: var(--s-400); }
.ibn-dots button {
    width: 48px; height: 48px; padding: var(--s-50);
    border: 2px solid transparent; border-radius: var(--r-full); background: transparent; cursor: pointer;
    transition: border-color var(--t-colour) var(--ease), transform var(--t-move) var(--ease);
}
.ibn-dots button img { width: 100%; height: 100%; border-radius: var(--r-full); object-fit: cover; filter: grayscale(1); transition: filter var(--t-colour) var(--ease); }
.ibn-dots button:hover img, .ibn-dots button[aria-current="true"] img { filter: none; }
.ibn-dots button[aria-current="true"] { border-color: var(--ink); }
@media (min-width: 1024px) {
    .ibn-quote { grid-template-columns: 360px 1fr; }
    .ibn-quote__body { padding: var(--s-400) var(--s-500) var(--s-400) var(--s-200); }
    .ibn-quote__lead { font-size: 1.875rem; line-height: 2.25rem; }
}

/* 15. STEPS ================================================================ */
.ibn-steps { display: grid; gap: var(--s-300); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.ibn-step { padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.ibn-step__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--r-full);
    background: var(--accent-soft); color: var(--accent-ink); font-weight: 700;
}
.ibn-step h3 { margin-top: var(--s-300); font-size: 1.25rem; line-height: 1.75rem; }
.ibn-step p { margin-top: var(--s-75); color: var(--muted); }
@media (min-width: 768px) { .ibn-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 16. SPLIT BANNER (partner network) ======================================= */
.ibn-split { display: grid; gap: var(--s-500); align-items: center; padding: var(--s-75); border-radius: var(--r-3xl); background: var(--surface); }
.ibn-split__copy { padding: var(--s-300); }
.ibn-split__copy h2 { margin-top: var(--s-100); font-size: 1.875rem; line-height: 2.25rem; }
.ibn-split__copy p { margin-top: var(--s-200); font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); max-width: 520px; }
.ibn-split__copy .ibn-btn { margin-top: var(--s-400); }
.ibn-split__media { border-radius: var(--r-2xl); background: #fff; padding: var(--s-300); }
@media (min-width: 1024px) {
    .ibn-split { grid-template-columns: 1fr 1fr; }
    .ibn-split__copy { padding: var(--s-600); }
}

/* 17. FINAL CTA ============================================================ */
.ibn-cta {
    padding: var(--s-600) var(--s-300); border-radius: var(--r-3xl);
    background: var(--dark); color: var(--dark-muted); text-align: center;
}
.ibn-cta h2 { max-width: 680px; margin-inline: auto; font-size: 1.875rem; line-height: 2.25rem; color: #fff; }
.ibn-cta p { max-width: 560px; margin: var(--s-200) auto 0; font-size: 1.125rem; line-height: 1.75rem; }
.ibn-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-300); margin-top: var(--s-500); }
.ibn-cta__note { margin-top: var(--s-300); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
    .ibn-cta { padding: var(--s-800) var(--s-600); }
    .ibn-cta h2 { font-size: 3rem; line-height: 1; }
}

.ibn-follow { display: flex; flex-wrap: wrap; gap: var(--s-300); align-items: center; justify-content: space-between; padding: var(--s-400); border: 1px solid var(--line); border-radius: var(--r-3xl); }
.ibn-follow h2 { font-size: 1.5rem; line-height: 2rem; }
.ibn-follow p { margin-top: var(--s-75); color: var(--muted); }
.ibn-follow__actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }

/* 18. PAGE HEADER (content, folder, blog) ================================== */
.ibn-pagehead { padding: var(--s-400) 0 var(--s-600); }
.ibn-pagehead__grid { display: grid; gap: var(--s-500); align-items: center; }
.ibn-crumbs { display: flex; flex-wrap: wrap; gap: var(--s-75); list-style: none; margin: 0; padding: 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.ibn-crumbs li + li::before { content: "/"; margin-right: var(--s-75); color: var(--line-strong); }
.ibn-crumbs a { color: var(--muted); text-decoration: none; }
.ibn-crumbs a:hover { color: var(--ink); }
.ibn-pagehead h1 {
    margin-top: var(--s-300);
    font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.03em;
    background: linear-gradient(90deg, #000000, #666666);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    max-width: 680px;
}
.ibn-pagehead__lead { margin-top: var(--s-200); max-width: 680px; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.ibn-pagehead__meta { display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300); margin-top: var(--s-300); font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.ibn-pagehead__media { border-radius: var(--r-3xl); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.ibn-pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .ibn-pagehead h1 { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) {
    .ibn-pagehead__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s-700); }
    .ibn-pagehead h1 { font-size: 3.75rem; line-height: 1; }
}

/* 19. PROSE: rich text widget output ======================================= */
.ibn-body { padding: var(--s-600) 0 var(--s-800); border-top: 1px solid var(--line); }
.ibn-prose { max-width: 720px; margin-inline: auto; }
.ibn-prose--wide { max-width: var(--container); }
.rich-text { color: var(--ink-2); font-size: 1.125rem; line-height: 1.75rem; }
.rich-text > div > :first-child, .rich-text > :first-child { margin-top: 0; }
.rich-text h1 { font-size: 2.25rem; line-height: 2.5rem; margin: var(--s-600) 0 var(--s-200); color: var(--ink); }
.rich-text h2 { font-size: 1.875rem; line-height: 2.25rem; margin: var(--s-600) 0 var(--s-200); color: var(--ink); }
.rich-text h3 { font-size: 1.25rem; line-height: 1.75rem; margin: var(--s-400) 0 var(--s-75); color: var(--ink); }
.rich-text h4 { font-size: 1.125rem; line-height: 1.75rem; margin: var(--s-300) 0 var(--s-75); color: var(--ink); }
.rich-text p { margin: 0 0 var(--s-200); }
.rich-text strong { color: var(--ink); font-weight: 700; }
.rich-text em, .rich-text i { font-style: normal; font-weight: 600; }
.rich-text ul, .rich-text ol { margin: 0 0 var(--s-300); padding-left: var(--s-300); }
.rich-text li { margin-bottom: var(--s-75); }
.rich-text ul li::marker { color: var(--accent); }
.rich-text a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rich-text a:hover { color: var(--ink); }
.rich-text img { border-radius: var(--r-2xl); margin: var(--s-300) 0; }
.rich-text blockquote { margin: var(--s-400) 0; padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); color: var(--ink); }
.rich-text code { font-family: 'Geist Mono', ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.875rem; line-height: 1.25rem; padding: var(--s-25) var(--s-50); border-radius: var(--r); background: var(--surface-2); }
.rich-text pre { margin: var(--s-300) 0; padding: var(--s-200); border-radius: var(--r-xl); background: var(--dark); color: #eee; overflow-x: auto; }
.rich-text pre code { padding: 0; background: none; color: inherit; }
.rich-text table { width: 100%; margin: var(--s-300) 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; font-size: 1rem; line-height: 1.5rem; display: block; overflow-x: auto; }
.rich-text th, .rich-text td { padding: var(--s-100) var(--s-200); text-align: left; border-bottom: 1px solid var(--line); }
.rich-text th { background: var(--surface); color: var(--ink); font-weight: 600; }
.rich-text tr:last-child td { border-bottom: 0; }
.rich-text hr { border: 0; height: 1px; background: var(--line); margin: var(--s-600) 0; }
.rich-text details { border: 1px solid var(--line); border-radius: var(--r-2xl); margin: 0 0 var(--s-100); background: #fff; }
.rich-text details summary {
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
    padding: var(--s-200) var(--s-300); cursor: pointer; list-style: none;
    font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.5rem;
}
.rich-text details summary::-webkit-details-marker { display: none; }
.rich-text details summary::after {
    content: ""; width: 10px; height: 10px; flex: none;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--t-move) var(--ease);
}
.rich-text details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.rich-text details > :not(summary) { padding: 0 var(--s-300); }
.rich-text details > :last-child { padding-bottom: var(--s-200); }
/* the page header already shows the title; hide the copy of it at the top of the content */
.ibn-prose--drop-h1 .rich-text > div > h1:first-child,
.ibn-prose--drop-h1 .rich-text > h1:first-child { display: none; }
.ibn-prose--drop-h1 .rich-text > div > h1:first-child + * { margin-top: 0; }
.sf-placeholder { color: var(--faint); }

/* home: the editable area below the designed sections */
.ibn-home-cms .rich-text h1 { font-size: 1.875rem; line-height: 2.25rem; margin-top: 0; }
.ibn-home-cms .rich-text h2 { font-size: 1.25rem; line-height: 1.75rem; margin-top: var(--s-75); color: var(--muted); font-weight: 600; }
.ibn-home-cms .rich-text h3 { margin-top: var(--s-500); }
.widget-content > .site-wide { max-width: 720px; margin-inline: auto; }

/* 20. BLOG ================================================================= */
.ibn-blog-grid { display: grid; gap: var(--s-300); }
@media (min-width: 768px) { .ibn-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ibn-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ibn-post-card { text-decoration: none; color: inherit; }
.ibn-post-card .ibn-card__media { position: relative; }
.ibn-post-card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--faint); }
.ibn-post-card__ph svg { width: 40px; height: 40px; }
.ibn-post-card__flag {
    position: absolute; top: var(--s-100); left: var(--s-100);
    padding: var(--s-25) var(--s-75); border-radius: var(--r-full);
    background: #fff; color: var(--ink); font-size: 0.75rem; line-height: 1rem; font-weight: 600;
}
.ibn-post-card__meta { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-200); margin-top: var(--s-200); font-size: 0.875rem; line-height: 1.25rem; color: var(--faint); }
.ibn-post-card h3 { font-size: 1.25rem; line-height: 1.75rem; transition: color var(--t-colour) var(--ease); }
.ibn-post-card:hover h3 { color: var(--accent-ink); }
.ibn-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); margin-top: var(--s-600); }
.ibn-pager a, .ibn-pager span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 var(--s-100);
    border: 1px solid var(--line); border-radius: var(--r-full); text-decoration: none; font-weight: 600; font-size: 0.875rem; color: var(--ink-2);
    transition: background-color var(--t-colour) var(--ease), border-color var(--t-colour) var(--ease);
}
.ibn-pager a:hover { border-color: var(--ink); }
.ibn-pager [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.ibn-empty { padding: var(--s-700) var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); text-align: center; }
.ibn-empty svg { width: 40px; height: 40px; margin: 0 auto; color: var(--faint); }
.ibn-empty h2 { margin-top: var(--s-200); font-size: 1.25rem; line-height: 1.75rem; }
.ibn-empty p { margin-top: var(--s-75); color: var(--muted); }
.ibn-empty .ibn-btn { margin-top: var(--s-300); }

.ibn-back { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--muted); text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.ibn-back svg { width: 16px; height: 16px; transition: transform var(--t-move) var(--ease); }
.ibn-back:hover { color: var(--ink); }
.ibn-back:hover svg { transform: translateX(-4px); }

/* 21. NOT FOUND ============================================================ */
.ibn-404 { padding: var(--s-800) 0 var(--s-900); text-align: center; }
.ibn-404 .ibn-404__code { font-size: 6rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--surface-2); }
.ibn-404 h1 { margin-top: var(--s-200); font-size: 2.25rem; line-height: 2.5rem; }
.ibn-404 p { max-width: 520px; margin: var(--s-200) auto 0; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.ibn-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-200); margin-top: var(--s-500); }
ul.ibn-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-100) var(--s-300); margin: var(--s-600) 0 0; padding: 0; list-style: none; font-size: 0.875rem; line-height: 1.25rem; }
.ibn-404__links a { color: var(--muted); }
@media (min-width: 768px) { .ibn-404 .ibn-404__code { font-size: 8rem; } }

/* 22. SCROLL REVEAL ======================================================== */
.js [data-reveal] {
    opacity: 0; transform: translateY(32px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { transform: none; transition: opacity var(--t-colour) var(--ease); }
    .ibn-card:hover { transform: none; }
    .ibn-tabpanel, .ibn-slide { animation: none; }
    .ibn-mnav [data-stagger] { transform: none; }
}

/* 24. AGENT CONSOLE (hero visual) ========================================== */
/* outer 24px, 8px padding: inner panes 16px */
.ibn-console { padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--surface); }
.ibn-console__bar { display: flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-100) var(--s-100); font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.ibn-console__bar > span:not(.ibn-console__status) { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line-strong); }
.ibn-console__status { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s-50); }
.ibn-console__bar svg { width: 12px; height: 12px; color: #16a34a; }
.ibn-console__pane { padding: var(--s-200); border-radius: var(--r-2xl); background: #fff; display: grid; gap: var(--s-200); }
.ibn-msg { display: flex; gap: var(--s-100); align-items: flex-start; }
.ibn-msg__av { flex: none; width: 32px; height: 32px; border-radius: var(--r-full); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 0.75rem; line-height: 1rem; font-weight: 700; color: var(--ink); }
.ibn-msg__av--ai { background: var(--ink); color: #fff; }
.ibn-msg__av--ai svg { width: 16px; height: 16px; }
.ibn-msg__text { min-width: 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-2); }
.ibn-msg__text b { color: var(--ink); }
.ibn-attach { display: inline-flex; align-items: center; gap: var(--s-75); margin-top: var(--s-75); padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.ibn-attach__thumb { width: 40px; height: 28px; border-radius: var(--r); background: var(--surface-2); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; }
.ibn-attach__thumb span { border-radius: 1px; background: var(--line-strong); }
.ibn-attach__thumb span:first-child { grid-column: 1 / -1; background: var(--accent); }
.ibn-steps-log { list-style: none; margin: var(--s-75) 0 0; padding: 0; display: grid; gap: var(--s-50); font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.ibn-steps-log li { display: flex; align-items: center; gap: var(--s-75); }
.ibn-steps-log svg { width: 14px; height: 14px; flex: none; color: #16a34a; }
.ibn-steps-log code, .ibn-diff { font-family: 'Geist Mono', ui-monospace, Consolas, monospace; }
.ibn-steps-log code { font-size: 0.75rem; color: var(--ink); }
.ibn-diff { margin-top: var(--s-100); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 0.75rem; line-height: 1rem; }
.ibn-diff div { padding: var(--s-25) var(--s-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibn-diff .add { background: #ecfdf3; color: #166534; }
.ibn-diff .del { background: #fef2f2; color: #991b1b; }
.ibn-console__actions { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-100); }
.ibn-composer { display: flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-full); font-size: 0.875rem; line-height: 1.25rem; color: var(--faint); }
.ibn-composer span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibn-composer svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.ibn-composer b { display: inline-flex; flex: none; width: 32px; height: 32px; border-radius: var(--r-full); background: var(--ink); align-items: center; justify-content: center; }
.ibn-composer b svg { width: 16px; height: 16px; color: #fff; }

/* 25. FEATURE GRID (security, inputs) ====================================== */
.ibn-grid { display: grid; gap: var(--s-300); }
@media (min-width: 768px) { .ibn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ibn-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ibn-feat { padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.ibn-section--dark .ibn-feat { background: var(--dark-2); border-color: var(--dark-line); }
.ibn-feat__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); }
.ibn-section--dark .ibn-feat__icon { background: var(--dark-3); color: #fff; }
.ibn-feat__icon svg { width: 20px; height: 20px; }
.ibn-feat h3 { margin-top: var(--s-200); font-size: 1.125rem; line-height: 1.75rem; }
.ibn-feat p { margin-top: var(--s-75); color: var(--muted); }
.ibn-section--dark .ibn-feat p { color: var(--dark-muted); }

/* 26. DEPLOYMENT OPTIONS =================================================== */
.ibn-deploy__panel { display: grid; gap: var(--s-400); padding: var(--s-75); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.ibn-deploy__copy { padding: var(--s-300); }
.ibn-deploy__copy h3 { font-size: 1.5rem; line-height: 2rem; }
.ibn-deploy__copy p { margin-top: var(--s-100); color: var(--muted); }
.ibn-deploy__copy ul { list-style: none; margin: var(--s-300) 0 0; padding: 0; display: grid; gap: var(--s-100); }
.ibn-deploy__copy li { display: flex; gap: var(--s-100); }
.ibn-deploy__copy li svg { width: 20px; height: 20px; flex: none; margin-top: var(--s-25); color: var(--accent-ink); }
.ibn-deploy__diagram { padding: var(--s-300); border-radius: var(--r-2xl); background: var(--surface); display: grid; gap: var(--s-100); align-content: center; }
.ibn-zone { padding: var(--s-200); border: 1px dashed var(--line-strong); border-radius: var(--r-xl); }
.ibn-zone__label { font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: var(--s-100); }
.ibn-zone__row { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.ibn-node { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); }
.ibn-node svg { width: 16px; height: 16px; color: var(--muted); }
.ibn-node--accent { border-color: var(--ink); background: var(--ink); color: #fff; }
.ibn-node--accent svg { color: #fff; }
.ibn-link-line { display: flex; align-items: center; gap: var(--s-75); padding-left: var(--s-200); font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.ibn-link-line::before { content: ""; width: 2px; height: 24px; background: var(--line-strong); }
@media (min-width: 1024px) { .ibn-deploy__panel { grid-template-columns: 1fr 1fr; align-items: stretch; } .ibn-deploy__copy { padding: var(--s-500); } }

/* 27. PRICING ============================================================== */
.ibn-plans { display: grid; gap: var(--s-300); }
@media (min-width: 768px) { .ibn-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ibn-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ibn-plan { display: flex; flex-direction: column; padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.ibn-plan--featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ibn-plan__tag { align-self: flex-start; padding: var(--s-25) var(--s-75); border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: 0.75rem; line-height: 1rem; font-weight: 600; margin-bottom: var(--s-200); }
.ibn-plan__tag--quiet { background: var(--surface-2); color: var(--ink); }
.ibn-plan__tag--spacer { visibility: hidden; }
@media (max-width: 767px) { .ibn-plan__tag--spacer { display: none; } }
.ibn-plan h3 { font-size: 1.25rem; line-height: 1.75rem; }
.ibn-plan__for { margin-top: var(--s-50); font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); min-height: 40px; }
.ibn-plan__price { margin-top: var(--s-300); display: flex; align-items: baseline; gap: var(--s-50); }
.ibn-plan__price b { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ibn-plan__price span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.ibn-plan__extra { margin-top: var(--s-50); font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); min-height: 20px; }
.ibn-plan .ibn-btn { margin-top: var(--s-300); }
.ibn-plan ul { list-style: none; margin: var(--s-300) 0 0; padding: var(--s-300) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-100); font-size: 0.875rem; line-height: 1.25rem; }
.ibn-plan li { display: flex; gap: var(--s-75); }
.ibn-plan li svg { width: 16px; height: 16px; flex: none; margin-top: var(--s-25); color: var(--accent-ink); }
.ibn-plan li.is-head { font-weight: 600; color: var(--ink); }
.ibn-usage { margin-top: var(--s-300); padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; display: grid; gap: var(--s-200); }
.ibn-usage h3 { font-size: 1.125rem; line-height: 1.75rem; }
.ibn-usage p { color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.ibn-usage__rows { display: grid; gap: var(--s-100); }
@media (min-width: 768px) { .ibn-usage { grid-template-columns: 1fr 2fr; align-items: start; } .ibn-usage__rows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ibn-usage__row { padding: var(--s-200); border-radius: var(--r-2xl); background: var(--surface); }
.ibn-usage__row b { display: block; color: var(--ink); }
.ibn-draft { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100); border: 1px solid var(--accent-line); border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink); font-size: 0.75rem; line-height: 1rem; font-weight: 600; }

/* 28. FAQ ================================================================== */
.ibn-faq { display: grid; gap: var(--s-100); max-width: 840px; margin-inline: auto; }
.ibn-faq details { border: 1px solid var(--line); border-radius: var(--r-2xl); background: #fff; transition: border-color var(--t-colour) var(--ease); }
.ibn-faq details[open] { border-color: var(--line-strong); }
.ibn-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-200) var(--s-300); cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.ibn-faq summary::-webkit-details-marker { display: none; }
.ibn-faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform var(--t-move) var(--ease); }
.ibn-faq details[open] summary svg { transform: rotate(180deg); }
.ibn-faq details p { padding: 0 var(--s-300) var(--s-300); color: var(--muted); }
.ibn-faq summary:focus-visible { border-radius: var(--r-2xl); }

/* 30. PRODUCT MOCKS (benefit rows; they replace stretched stock photos) ==== */
/* frames reuse .ibn-console: 24px outer, 8px padding, 16px pane */
.ibn-sk { display: block; height: 8px; border-radius: var(--r); background: var(--surface-2); }
.ibn-sk--title { height: 12px; background: var(--line-strong); }
.ibn-sk--w90 { width: 90%; } .ibn-sk--w70 { width: 70%; } .ibn-sk--w50 { width: 50%; } .ibn-sk--w40 { width: 40%; }
.ibn-seg { display: flex; align-items: center; gap: var(--s-50); font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.ibn-seg > span { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); color: var(--muted); }
.ibn-seg > span[aria-current] { background: var(--ink); color: #fff; }
.ibn-seg__end { margin-left: auto; border: 1px solid var(--line); }
.ibn-pv { position: relative; padding-bottom: var(--s-400); }
.ibn-pv__desk { border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.ibn-pv__hero { display: grid; gap: var(--s-100); padding: var(--s-300); background: var(--surface); }
.ibn-pv__cta { width: 96px; height: 24px; border-radius: var(--r-full); background: var(--accent); }
.ibn-pv__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-100); padding: var(--s-200); }
.ibn-pv__cards > span { display: grid; gap: var(--s-75); padding: var(--s-100); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ibn-pv__img { display: block; height: 40px; border-radius: var(--r-md); background: var(--surface-2); }
.ibn-pv__phone {
    position: absolute; right: var(--s-200); bottom: 0; width: 120px;
    padding: var(--s-50); border: 1px solid var(--line-strong); border-radius: var(--r-3xl); background: #fff;
    box-shadow: 0 16px 32px rgba(17, 17, 17, 0.12);
}
.ibn-pv__phone > div { display: grid; gap: var(--s-75); padding: var(--s-200) var(--s-100); border-radius: 20px; background: var(--surface); }
.ibn-pv__phone .ibn-pv__cta { width: 64px; height: 16px; }

.ibn-branch { display: flex; align-items: center; gap: var(--s-75); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); }
.ibn-branch svg { width: 16px; height: 16px; color: var(--muted); }
.ibn-branch code { font-family: 'Geist Mono', ui-monospace, Consolas, monospace; font-size: 0.75rem; padding: var(--s-25) var(--s-75); border-radius: var(--r-md); background: var(--surface); }
.ibn-branch span { margin-left: auto; font-size: 0.75rem; line-height: 1rem; color: var(--muted); font-weight: 500; }
.ibn-files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.ibn-files li { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-75) var(--s-100); font-size: 0.75rem; line-height: 1rem; }
.ibn-files li + li { border-top: 1px solid var(--line); }
.ibn-files code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Geist Mono', ui-monospace, Consolas, monospace; color: var(--ink-2); }
.ibn-files .add { color: #15803d; font-weight: 600; font-variant-numeric: tabular-nums; }
.ibn-files .del { color: #b91c1c; font-weight: 600; font-variant-numeric: tabular-nums; }
.ibn-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-75); }
.ibn-checks li { display: flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); background: #f0fdf4; color: #166534; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.ibn-checks svg { width: 16px; height: 16px; flex: none; }
.ibn-checks span { margin-left: auto; font-weight: 500; font-size: 0.75rem; line-height: 1rem; color: #15803d; }

.ibn-audit { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.ibn-audit li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s-100); align-items: center; padding: var(--s-100); font-size: 0.75rem; line-height: 1rem; }
.ibn-audit li + li { border-top: 1px solid var(--line); }
.ibn-audit time { color: var(--faint); font-variant-numeric: tabular-nums; }
.ibn-audit b { display: block; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibn-audit em { font-style: normal; color: var(--muted); }
.ibn-badge { padding: var(--s-25) var(--s-75); border-radius: var(--r-full); font-size: 0.75rem; line-height: 1rem; font-weight: 600; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.ibn-badge--ok { background: #f0fdf4; color: #166534; }
.ibn-badge--ink { background: var(--ink); color: #fff; }
.ibn-mock-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-100); font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.ibn-mock-foot svg { width: 14px; height: 14px; }
.ibn-mock-foot span { display: inline-flex; align-items: center; gap: var(--s-50); }
.ibn-row__media--mock { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }

/* 31. STEP VISUALS ========================================================= */
/* card 24px with 8px padding: visual 16px */
.ibn-step { padding: var(--s-75); }
.ibn-step__vis { display: grid; align-content: center; gap: var(--s-75); min-height: 152px; padding: var(--s-200); border-radius: var(--r-2xl); background: var(--surface); }
.ibn-step__body { padding: var(--s-200); }
.ibn-step__body .ibn-step__n { width: 32px; height: 32px; font-size: 0.875rem; line-height: 1.25rem; }
.ibn-step__body h3 { margin-top: var(--s-200); }
.ibn-step__vis .ibn-composer { background: #fff; }
.ibn-step__vis .ibn-attach { background: #fff; justify-self: start; margin-top: 0; }
.ibn-step__vis .ibn-checks li { background: #fff; }
.ibn-step__vis .ibn-btn { justify-self: start; pointer-events: none; }
.ibn-step__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); }
.ibn-step__vis .ibn-badge { display: inline-flex; align-items: center; gap: var(--s-50); background: #fff; border: 1px solid var(--line); }
.ibn-step__vis .ibn-badge svg { width: 12px; height: 12px; }
.ibn-step__vis .ibn-btn--ghost { background: #fff; }

/* 32. PARTNER LOGO GRID ==================================================== */
.ibn-plogos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-75); }
.ibn-plogos span { display: flex; align-items: center; justify-content: center; height: 80px; padding: var(--s-200); border-radius: var(--r-xl); background: #fff; }
.ibn-plogos img { max-height: 32px; max-width: 120px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter var(--t-colour) var(--ease), opacity var(--t-colour) var(--ease); }
.ibn-plogos span:hover img { filter: none; opacity: 1; }
@media (min-width: 640px) { .ibn-plogos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ibn-plogos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ibn-split__stats { display: flex; flex-wrap: wrap; gap: var(--s-400); margin-top: var(--s-300); }
.ibn-split__stats b { display: block; font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.ibn-split__stats span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.ibn-split__media--logos { background: none; padding: 0; }

/* 23. PRINT ================================================================ */
@media print {
    .ibn-header, .ibn-mnav, .ibn-footer, .skip-link { display: none; }
    .ibn-main { padding-top: 0; }
}

/* 33. SMALL HELPERS ====================================================== */
.ibn-sentinel { position: absolute; top: 0; width: 1px; height: 8px; }
.ibn-stats--after { margin-top: var(--s-600); }
.ibn-follow--after { margin-top: var(--s-300); }

/* 34. SITE VIEWS (added when the demo landed in SiteFiles, 2026-10-29) ===== */
.ibn-section--flush-top { padding-top: 0; }
.ibn-prose--after { margin-top: var(--s-600); }
.ibn-prose--after:empty { display: none; }
.ibn-main--bare { padding-top: 0; }

/* folder pages list their children: card 24px, 8px padding, rows 16px */
ul.ibn-childlist { display: grid; gap: var(--s-100); max-width: 840px; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 768px) { .ibn-childlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ibn-childlist__item {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-200);
    padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff;
    font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--ink); text-decoration: none;
    transition: border-color var(--t-colour) var(--ease), transform var(--t-move) var(--ease);
}
.ibn-childlist__item:hover { border-color: var(--ink); transform: translateY(-2px); }
.ibn-childlist__item svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform var(--t-move) var(--ease); }
.ibn-childlist__item:hover svg { transform: translateX(4px); color: var(--ink); }

/* page types with no documents yet (case study, event, report, success story, training
   course, webinar, partner detail page, landing page) still render through these */
.sf-page { width: 100%; max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: var(--s-400) var(--gutter) var(--s-800); }
.sf-page-title { font-size: 2.25rem; line-height: 2.5rem; margin-bottom: var(--s-400); letter-spacing: -0.03em; }
@media (min-width: 768px) { .sf-page-title { font-size: 3rem; line-height: 1; } }

/* 33. SMALL HELPERS ====================================================== */
.ibn-sentinel { position: absolute; top: 0; width: 1px; height: 8px; }
.ibn-stats--after { margin-top: var(--s-600); }
.ibn-follow--after { margin-top: var(--s-300); }

/* 35. DEMO V2: ACCENT THEMES, INTERACTIVE DEMOS, BRANDS, DEVELOPER DOCS ===== */
/* Accent themes. Violet is the default in :root (back office default); the back office setting
   "Accent colour" writes data-accent on <html> to pick another one. */
:root[data-accent="cobalt"] { --accent: #3b5bdb; --accent-ink: #2f4ac0; --accent-soft: #edf1fd; --accent-hover: #263d9e; --accent-line: #c7d2f7; }
:root[data-accent="emerald"] { --accent: #0f8a63; --accent-ink: #0b7353; --accent-soft: #e7f6f0; --accent-hover: #095c43; --accent-line: #b9e3d3; }

/* Helpers */
.ibn-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ibn-todo { padding: var(--s-75) var(--s-100); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--faint); font-size: 0.875rem; line-height: 1.25rem; }
.ibn-spin { width: 14px; height: 14px; flex: none; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: var(--r-full); animation: ibn-spin 800ms linear infinite; }
@keyframes ibn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ibn-spin { animation: none; } }
.ibn-badge { display: inline-flex; align-items: center; gap: var(--s-50); }
.ibn-badge svg { width: 12px; height: 12px; }
.ibn-badge--draft { background: var(--accent-soft); color: var(--accent-ink); }

/* AI Studio walkthrough (hero) */
.ibn-studio__note { font-size: 0.75rem; line-height: 1rem; color: var(--faint); }
.ibn-studio__log { display: grid; align-content: start; gap: var(--s-200); height: 320px; overflow-y: auto; overscroll-behavior: contain; padding-right: var(--s-50); }
.ibn-msg--in { animation: ibn-msg-in 400ms var(--ease) both; }
@keyframes ibn-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ibn-msg--in { animation: none; } }
.ibn-steps-log li.is-running { color: var(--ink); }
.ibn-studio__chips { display: flex; flex-wrap: wrap; gap: var(--s-50); }
.ibn-chip { padding: var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-full); background: #fff; font: inherit; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color var(--t-colour) var(--ease), background-color var(--t-colour) var(--ease); }
.ibn-chip:hover { border-color: var(--line-strong); background: var(--surface); }
.is-busy .ibn-chip, .is-busy .ibn-composer__send { opacity: 0.5; pointer-events: none; }
.ibn-composer--live { padding-left: var(--s-100); background: #fff; }
.ibn-composer--live:focus-within { border-color: var(--ink); }
.ibn-composer--live input { flex: 1; min-width: 0; padding: var(--s-50) var(--s-100); border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.ibn-composer--live input::placeholder { color: var(--faint); }
.ibn-composer__tool, .ibn-composer__send { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-full); background: none; cursor: pointer; }
.ibn-composer__tool svg { width: 20px; height: 20px; color: var(--muted); }
.ibn-composer__send { background: var(--ink); }
.ibn-composer__send svg { width: 16px; height: 16px; color: #fff; }
.ibn-console__actions .ibn-badge { padding: var(--s-50) var(--s-100); }
.ibn-studio__pv { margin-top: var(--s-100); padding: var(--s-100); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: var(--s-50); justify-items: start; font-size: 0.75rem; line-height: 1rem; color: var(--muted); }

/* Campaign preview: device and language switch */
.ibn-seg button { padding: var(--s-50) var(--s-100); border: 0; border-radius: var(--r-full); background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.ibn-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ibn-seg__end { display: flex; padding: 2px; border-radius: var(--r-full); }
.ibn-pv2 { display: flex; justify-content: center; padding: var(--s-200); border-radius: var(--r-xl); background: var(--surface); }
.ibn-pv2__frame { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; transition: width var(--t-move) var(--ease); }
[data-device="phone"] .ibn-pv2__frame { width: 220px; border-radius: var(--r-3xl); border-color: var(--line-strong); }
.ibn-pv2__hero { display: grid; gap: var(--s-75); justify-items: start; padding: var(--s-300); background: var(--accent-soft); }
.ibn-pv2__hero b { font-size: 1.25rem; line-height: 1.75rem; color: var(--ink); }
.ibn-pv2__hero span { font-size: 0.75rem; line-height: 1rem; color: var(--ink-2); }
.ibn-pv2__hero i { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--accent-ink); color: #fff; font-style: normal; font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.ibn-pv2__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-100); padding: var(--s-200); }
[data-device="phone"] .ibn-pv2__cards { grid-template-columns: minmax(0, 1fr); }
.ibn-pv2__cards > span { display: grid; gap: var(--s-25); font-size: 0.75rem; line-height: 1rem; }
.ibn-pv2__cards em { display: block; font-style: normal; height: 48px; border-radius: var(--r-md); background: var(--surface-2); }
[data-device="phone"] .ibn-pv2__cards em { height: 32px; }
.ibn-pv2__cards b { color: var(--ink); }
.ibn-pv2__cards small { color: var(--muted); font-size: 0.75rem; }

/* Change review: files are buttons, the diff follows the selection */
.ibn-files--live li { padding: 0; }
.ibn-files--live button { display: flex; align-items: center; gap: var(--s-100); width: 100%; padding: var(--s-75) var(--s-100); border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.ibn-files--live button:hover { background: var(--surface); }
.ibn-files--live button[aria-pressed="true"] { background: var(--accent-soft); }
.ibn-diff--file { margin-top: 0; }
.ibn-diff--file div { white-space: pre; }
.ibn-checks li.is-pending { background: var(--surface); color: var(--muted); }
.ibn-review__rerun { justify-self: start; }
.ibn-audit li { transition: opacity var(--t-move) var(--ease); }
.ibn-audit li.is-hidden { opacity: 0; }

/* Our brands */
.ibn-brands { display: grid; gap: var(--s-300); margin-top: var(--s-500); }
@media (min-width: 768px) { .ibn-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ibn-brand--wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ibn-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ibn-brand--wide { grid-column: span 2; } }
.ibn-brand { display: grid; align-content: start; gap: var(--s-200); padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.ibn-brand__top { display: flex; align-items: center; gap: var(--s-200); }
.ibn-brand__top h3 { font-size: 1.125rem; line-height: 1.75rem; }
.ibn-brand__mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-xl); background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 0.875rem; }
.ibn-brand__mark svg { width: 20px; height: 20px; }
img.ibn-brand__mark { object-fit: cover; background: #0b0f17; }
.ibn-brand__mark--bz { background: #2563eb; color: #fff; }
.ibn-brand__top > div { min-width: 0; }
.ibn-brand__url { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); overflow-wrap: anywhere; }
a.ibn-brand__url { color: var(--accent-ink); text-decoration: none; }
a.ibn-brand__url:hover { text-decoration: underline; }
.ibn-brand > p { color: var(--muted); }
.ibn-brand__products { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-75); }
.ibn-brand__products li { display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--surface); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); }
.ibn-brand__products svg { width: 16px; height: 16px; color: var(--muted); }
.ibn-try { display: grid; gap: var(--s-100); padding: var(--s-200); border-radius: var(--r-2xl); background: var(--surface); }
.ibn-try__form { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.ibn-try__form select, .ibn-try__form input { height: 36px; padding: 0 var(--s-100); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #fff; font: inherit; font-size: 0.875rem; color: var(--ink); }
.ibn-try__form input { flex: 1; min-width: 120px; }
.ibn-try__out, .ibn-code { margin: 0; padding: var(--s-200); max-height: 260px; overflow: auto; border-radius: var(--r-lg); background: var(--dark); color: #e5e5e5; font-family: 'Geist Mono', ui-monospace, Consolas, monospace; font-size: 0.75rem; line-height: 1.25rem; white-space: pre; }
.ibn-try__note { font-size: 0.75rem; line-height: 1rem; color: var(--faint); }
.ibn-code .k { color: #93c5fd; } .ibn-code .s { color: #fcd34d; } .ibn-code .c { color: #86efac; }
.ibn-partners2 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100); }
.ibn-partners2 li { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-200); border-radius: var(--r-xl); background: var(--surface); }
.ibn-partners2 b { display: block; color: var(--ink); }
.ibn-partners2 span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
/* Developer docs */
.ibn-pagehead--docs { padding-bottom: var(--s-400); border-bottom: 1px solid var(--line); }
.ibn-docs { padding: var(--s-600) 0 var(--s-800); }
.ibn-docs__grid { display: grid; gap: var(--s-500); }
@media (min-width: 1024px) { .ibn-docs__grid { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.ibn-docs__nav { display: grid; gap: var(--s-25); font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 1024px) { .ibn-docs__nav { position: sticky; top: 112px; } }
@media (max-width: 1023px) { .ibn-docs__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-200); border: 1px solid var(--line); border-radius: var(--r-2xl); } .ibn-docs__nav p { grid-column: 1 / -1; } }
.ibn-docs__nav p { margin-top: var(--s-200); font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.ibn-docs__nav p:first-child { margin-top: 0; }
.ibn-docs__nav a { display: flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100); border-radius: var(--r-lg); color: var(--ink-2); text-decoration: none; }
.ibn-docs__nav a:hover { background: var(--surface); }
.ibn-docs__nav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ibn-docs__body { min-width: 0; display: grid; gap: var(--s-600); }
.ibn-docs__body section { display: grid; gap: var(--s-200); scroll-margin-top: 112px; }
.ibn-docs__body h2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100); font-size: 1.5rem; line-height: 2rem; }
.ibn-docs__body p, .ibn-docs__body li { color: var(--ink-2); }
.ibn-docs__body ul, .ibn-docs__body ol { margin: 0; padding-left: var(--s-300); display: grid; gap: var(--s-75); }
.ibn-docs__body :not(pre) > code { padding: 1px var(--s-50); border-radius: var(--r-md); background: var(--surface-2); font-family: 'Geist Mono', ui-monospace, Consolas, monospace; font-size: 0.875rem; color: var(--ink); overflow-wrap: anywhere; }
.ibn-docs__callout { display: grid; gap: var(--s-50); padding: var(--s-200); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); }
.ibn-docs__callout span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.ibn-ep { display: grid; gap: var(--s-200); padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.ibn-ep__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100); }
.ibn-ep__head > code { font-weight: 600; }
.ibn-ep__head > span:last-child { margin-left: auto; font-size: 0.875rem; color: var(--muted); }
.ibn-verb { display: inline-block; min-width: 52px; padding: 2px var(--s-75); border-radius: var(--r-md); font-family: 'Geist Mono', ui-monospace, Consolas, monospace; font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-align: center; }
.ibn-verb--get { background: #e8f1ff; color: #1d4ed8; }
.ibn-verb--post { background: #e7f6ee; color: #166534; }
.ibn-params { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.25rem; }
.ibn-params th { text-align: left; padding: var(--s-75) var(--s-100); border-bottom: 1px solid var(--line-strong); font-weight: 600; color: var(--ink); }
.ibn-params td { padding: var(--s-75) var(--s-100); border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.ibn-params--ep td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.ibn-params--ep td code { display: inline-block; margin: 0 var(--s-25) var(--s-50) 0; }
@media (max-width: 639px) { .ibn-params--ep td:first-child { white-space: normal; } .ibn-params, .ibn-params tbody, .ibn-params tr, .ibn-params td { display: block; } .ibn-params thead { display: none; } .ibn-params tr { padding: var(--s-75) 0; border-bottom: 1px solid var(--line); } .ibn-params td { border: 0; padding: var(--s-25) 0; } }
.ibn-try__url { display: inline-flex; flex: 1; flex-wrap: wrap; align-items: center; gap: var(--s-25); min-width: 0; padding: 0 var(--s-100); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #fff; font-family: 'Geist Mono', ui-monospace, Consolas, monospace; font-size: 0.75rem; overflow-wrap: anywhere; }
.ibn-try__url input { height: 32px; width: 80px; border: 0; border-bottom: 1px dashed var(--line-strong); border-radius: 0; padding: 0; font: inherit; color: var(--accent-ink); }
.ibn-tabs-code { display: grid; gap: var(--s-75); }
.ibn-tabs-code [role="tablist"] { display: flex; gap: var(--s-50); }
.ibn-tabs-code [role="tab"] { padding: var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-full); background: #fff; font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.ibn-tabs-code [role="tab"][aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.ibn-docs .ibn-code { max-height: none; }
/* the pill shows focus for the live composer; the input itself draws none */
.ibn .ibn-composer--live input:focus-visible { box-shadow: none; }
.ibn-composer--live:focus-within { box-shadow: var(--focus); }
