/* tokens/fonts.css */
/* Buyo — Webfonts (self-hosted)
 * Geist + Geist Mono variable fonts (Vercel's open-source family).
 * Served from /assets/fonts/ — no third-party CDN, no Google Fonts request.
 * Files contain the variable-weight axis; we declare the same .woff2 at each
 * weight so the browser picks the right glyph without extra fetches.
 *
 * Subsets kept: latin (TR covered), latin-ext (TR İ/ı/ğ/ş/etc.).
 * Cyrillic & Vietnamese dropped to keep payload small — re-add if needed. */

/* ---- Geist (sans, variable) ---- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
}

/* latin-ext (Turkish-specific İ/ı/ğ/ş/ḱ and € variants) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('assets/fonts/geist-latin-ext.woff2') format('woff2');
}

/* ---- Geist Mono (mono, variable) ---- */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-mono-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-mono-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  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;
  src: url('assets/fonts/geist-mono-latin.woff2') format('woff2');
}

/* Geist Mono latin-ext (covers TR diacritics) */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('assets/fonts/geist-mono-latin-ext.woff2') format('woff2');
}
/* tokens/colors.css */
/* Buyo — Color tokens
 * LIGHT, warm-neutral foundation with a single confident orange accent.
 * Corporate software / automation look: white surfaces over a warm off-white
 * canvas, deep ink text, soft real shadows. Semantic aliases sit on the scales. */

:root {
  /* ---- Absolutes ---- */
  --white: #ffffff;
  --black: #000000;

  /* ---- Neutral scale (warm; 1 = lightest paper -> 12 = ink) ---- */
  --gray-1:  #ffffff;  /* white card / lightest */
  --gray-2:  #faf9f7;  /* app canvas (warm off-white) */
  --gray-3:  #f5f3f1;  /* subtle section / inset */
  --gray-4:  #efece8;  /* hover surface */
  --gray-5:  #e7e3de;  /* hairline border (subtle) */
  --gray-6:  #ddd8d2;  /* border (default) */
  --gray-7:  #cbc4bc;  /* border (strong) */
  --gray-8:  #a89f96;  /* muted icon */
  --gray-9:  #8c8379;  /* placeholder text */
  --gray-10: #6f665d;  /* tertiary text */
  --gray-11: #4a423b;  /* secondary text */
  --gray-12: #1c1815;  /* primary text / ink */

  /* ---- Accent: warm corporate orange (vermilion) ---- */
  --accent-1:  #fef3ed;  /* accent-tinted surface (very light) */
  --accent-2:  #fde4d6;  /* accent surface hover */
  --accent-3:  #f7cab2;  /* accent border subtle */
  --accent-7:  #a5360f;  /* accent pressed (darkest) */
  --accent-8:  #db5126;  /* accent — PRIMARY */
  --accent-9:  #c2431b;  /* accent hover (darker, on light) */
  --accent-10: #b8431b;  /* accent text-on-light (links, eyebrows) */
  --accent-contrast: #ffffff;

  /* translucent accent washes */
  --accent-a10: rgba(219, 81, 38, 0.08);
  --accent-a20: rgba(219, 81, 38, 0.14);
  --accent-a35: rgba(219, 81, 38, 0.24);

  /* ---- Semantic status (tuned for contrast on light) ---- */
  --success-8: #1f9655;
  --success-9: #1a7f4b;
  --success-a15: rgba(26, 127, 75, 0.12);

  --warning-8: #c2870a;
  --warning-9: #a9740a;
  --warning-a15: rgba(200, 130, 10, 0.14);

  --danger-8: #d33b3f;
  --danger-9: #c2363a;
  --danger-a15: rgba(211, 59, 63, 0.11);

  /* ================= Semantic aliases ================= */

  /* Surfaces */
  --bg-app:        var(--gray-2);
  --bg-subtle:     var(--gray-3);
  --surface-card:  var(--gray-1);
  --surface-hover: var(--gray-3);
  --surface-inset: var(--gray-3);
  --surface-accent: var(--accent-1);
  --surface-overlay: rgba(28, 24, 21, 0.40);

  /* Text */
  --text-primary:   var(--gray-12);
  --text-secondary: var(--gray-11);
  --text-tertiary:  var(--gray-10);
  --text-muted:     var(--gray-9);
  --text-accent:    var(--accent-10);
  --text-on-accent: var(--accent-contrast);

  /* Borders */
  --border-subtle:  var(--gray-5);
  --border-default: var(--gray-6);
  --border-strong:  var(--gray-7);
  --border-accent:  var(--accent-8);

  /* Section backgrounds with smooth gradient transition */
  --bg-section-alt: linear-gradient(
    180deg,
    var(--bg-app),
    var(--bg-subtle) 48px,
    var(--bg-subtle) calc(100% - 48px),
    var(--bg-app)
  );

  /* Interactive */
  --focus-ring: var(--accent-a35);
}

/* tokens/typography.css */
/* Buyo — Typography tokens
 * Geist (grotesque sans) for everything; Geist Mono for technical labels,
 * eyebrows, code and data. Tight tracking on large display sizes. */

:root {
  /* Families */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Fluid display + static text scale (px) */
  --text-display-2xl: 72px;
  --text-display-xl:  56px;
  --text-display-lg:  44px;
  --text-h1: 36px;
  --text-h2: 28px;
  --text-h3: 22px;
  --text-h4: 18px;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-caption: 13px;
  --text-micro: 12px;

  /* Stat scale — big metric numbers in bands & feature cards */
  --text-stat-lg: clamp(48px, 4vw, 56px);  /* feature-card metrics (Problem) */
  --text-stat-md: clamp(32px, 2.6vw, 40px); /* compact band metrics (StatsBand) */

  /* Line heights */
  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.02em;
  --tracking-eyebrow: 0.14em;  /* uppercase mono labels */
}

/* tokens/spacing.css */
/* Buyo — Spacing tokens. 4px base grid. */

:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: 24px;

  /* Section vertical rhythm (4px-grid based) */
  --section-padding: var(--space-24) var(--gutter);          /* standard sections */
  --section-padding-compact: var(--space-12) var(--gutter);   /* stat bands, strips */
  --section-padding-tight: var(--space-20) var(--gutter);    /* tighter sections (Hero top, CTA) */
}

/* tokens/radius.css */
/* Buyo — Radius tokens. Soft but architectural; nothing pill-shaped except chips. */

:root {
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 28px;
  --radius-full: 999px;
}

/* tokens/shadows.css */
/* Buyo — Elevation & motion tokens (LIGHT theme)
 * On light, depth = soft, warm-tinted drop shadows + a hairline border.
 * Accent glow stays reserved for live / featured states. */

:root {
  /* Drop shadows (warm ink, low alpha) */
  --shadow-sm: 0 1px 2px rgba(28, 24, 21, 0.06);
  --shadow-md: 0 4px 14px rgba(28, 24, 21, 0.08);
  --shadow-lg: 0 14px 34px rgba(28, 24, 21, 0.10);
  --shadow-xl: 0 28px 64px rgba(28, 24, 21, 0.14);

  /* Card composite: hairline top + soft drop. Use on raised surfaces. */
  --elevation-card: 0 1px 2px rgba(28, 24, 21, 0.05), 0 1px 1px rgba(28, 24, 21, 0.03);
  --elevation-pop:  0 18px 44px rgba(28, 24, 21, 0.14), 0 2px 6px rgba(28, 24, 21, 0.06);

  /* Accent glow — sparingly, for live / featured states */
  --glow-accent: 0 0 0 1px var(--accent-a35), 0 10px 30px var(--accent-a20);

  /* Focus ring */
  --ring: 0 0 0 3px var(--focus-ring);

  /* Motion — restrained, no bounce */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --dur-fast: 120ms;                              /* @kind other */
  --dur-base: 180ms;                              /* @kind other */
  --dur-slow: 280ms;                              /* @kind other */
}

/* tokens/base.css */
/* Buyo — base element defaults & a few text helpers.
 * Kept light: tokens do the work; this just wires sane defaults. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 1000px 500px at 50% -5%, rgba(219,81,38,0.035), transparent 70%),
    var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-a35); color: var(--white); }

a { color: inherit; text-decoration: none; }

/* Type helpers — optional, tokens are the source of truth */
.bx-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-accent);
  font-weight: var(--weight-medium);
}

.bx-display {
  font-size: var(--text-display-xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  font-weight: var(--weight-semibold);
  text-wrap: balance;
}

.bx-h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-semibold);
}

.bx-body-muted { color: var(--text-tertiary); }

/* Reusable dotted/grid backdrop used across marketing + app shells */
.bx-grid-bg {
  background-image:
    linear-gradient(to right, var(--gray-5) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gray-5) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* components/styles/components.css */
/* Buyo — component styles. Shipped via styles.css so consumers + cards get them.
 * Components render these classNames; all visuals derive from tokens. */

/* ============ Button ============ */
.bx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: var(--weight-medium);
  border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.bx-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.bx-btn:active { transform: translateY(0.5px); }
.bx-btn[disabled], .bx-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.bx-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.bx-btn--md { height: 40px; padding: 0 16px; font-size: 14px; }
.bx-btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }

.bx-btn--primary { background: var(--accent-8); color: var(--text-on-accent); }
.bx-btn--primary:hover { background: var(--accent-9); }
.bx-btn--primary:active { background: var(--accent-7); }

.bx-btn--secondary { background: var(--surface-card); color: var(--text-primary); border-color: var(--border-default); }
.bx-btn--secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.bx-btn--ghost { background: transparent; color: var(--text-secondary); }
.bx-btn--ghost:hover { background: var(--surface-hover); color: var(--text-primary); }

.bx-btn--danger { background: var(--danger-8); color: #fff; }
.bx-btn--danger:hover { background: var(--danger-9); }

.bx-btn__spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: bx-spin 0.6s linear infinite; }
@keyframes bx-spin { to { transform: rotate(360deg); } }

/* ============ Icon button ============ */
.bx-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); border: 1px solid transparent; background: transparent;
  color: var(--text-tertiary); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bx-iconbtn--sm { width: 32px; height: 32px; }
.bx-iconbtn--md { width: 40px; height: 40px; }
.bx-iconbtn:hover { background: var(--surface-hover); color: var(--text-primary); }
.bx-iconbtn:focus-visible { outline: none; box-shadow: var(--ring); }
.bx-iconbtn--solid { background: var(--surface-card); border-color: var(--border-default); }

/* ============ Badge ============ */
.bx-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 12px; font-weight: var(--weight-medium);
  line-height: 1; padding: 4px 9px; border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.bx-badge--neutral { background: var(--surface-hover); color: var(--text-secondary); border-color: var(--border-default); }
.bx-badge--accent  { background: var(--accent-a10); color: var(--accent-10); border-color: var(--accent-a35); }
.bx-badge--success { background: var(--success-a15); color: var(--success-9); }
.bx-badge--warning { background: var(--warning-a15); color: var(--warning-9); }
.bx-badge--danger  { background: var(--danger-a15); color: var(--danger-9); }
.bx-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============ Avatar ============ */
.bx-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); overflow: hidden; flex: none;
  background: var(--surface-hover); color: var(--text-secondary);
  font-family: var(--font-sans); font-weight: var(--weight-medium);
  border: 1px solid var(--border-subtle);
}
.bx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bx-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.bx-avatar--md { width: 36px; height: 36px; font-size: 13px; }
.bx-avatar--lg { width: 48px; height: 48px; font-size: 16px; }

/* ============ Input / Textarea / Select ============ */
.bx-field { display: flex; flex-direction: column; gap: 6px; }
.bx-label { font-size: 13px; font-weight: var(--weight-medium); color: var(--text-secondary); }
.bx-hint { font-size: 12px; color: var(--text-muted); }
.bx-hint--error { color: var(--danger-9); }

.bx-input-wrap { position: relative; display: flex; align-items: center; }
.bx-input-wrap .bx-input__icon { position: absolute; left: 12px; display: flex; color: var(--text-muted); pointer-events: none; }
.bx-input-wrap--icon .bx-input { padding-left: 38px; }

.bx-input, .bx-textarea, .bx-select {
  width: 100%; font-family: var(--font-sans); font-size: 14px; color: var(--text-primary);
  background: var(--surface-inset); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.bx-input { height: 40px; padding: 0 12px; }
.bx-textarea { padding: 10px 12px; min-height: 88px; resize: vertical; line-height: 1.5; }
.bx-select { height: 40px; padding: 0 36px 0 12px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b929b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.bx-input::placeholder, .bx-textarea::placeholder { color: var(--text-muted); }
.bx-input:hover, .bx-textarea:hover, .bx-select:hover { border-color: var(--border-strong); }
.bx-input:focus, .bx-textarea:focus, .bx-select:focus { outline: none; border-color: var(--accent-8); box-shadow: var(--ring); }
.bx-input[aria-invalid="true"], .bx-textarea[aria-invalid="true"] { border-color: var(--danger-8); }
.bx-input:disabled, .bx-textarea:disabled, .bx-select:disabled { opacity: 0.5; pointer-events: none; }

/* ============ Checkbox ============ */
.bx-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-secondary); user-select: none; }
.bx-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.bx-check__box { width: 18px; height: 18px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); background: var(--surface-inset); display: inline-flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); flex: none; }
.bx-check__box svg { opacity: 0; transform: scale(0.6); transition: all var(--dur-fast) var(--ease-out); color: #fff; }
.bx-check input:checked + .bx-check__box { background: var(--accent-8); border-color: var(--accent-8); }
.bx-check input:checked + .bx-check__box svg { opacity: 1; transform: scale(1); }
.bx-check input:focus-visible + .bx-check__box { box-shadow: var(--ring); }

/* ============ Switch ============ */
.bx-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.bx-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.bx-switch__track { width: 40px; height: 23px; border-radius: var(--radius-full); background: var(--gray-6); position: relative; transition: background var(--dur-base) var(--ease-out); flex: none; }
.bx-switch__thumb { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform var(--dur-base) var(--ease-out); box-shadow: var(--shadow-sm); }
.bx-switch input:checked + .bx-switch__track { background: var(--accent-8); }
.bx-switch input:checked + .bx-switch__track .bx-switch__thumb { transform: translateX(17px); }
.bx-switch input:focus-visible + .bx-switch__track { box-shadow: var(--ring); }

/* ============ Card ============ */
.bx-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--elevation-card); }
.bx-card--pad { padding: 24px; }
.bx-card--hover { transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.bx-card--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

/* ============ Stat ============ */
.bx-stat { display: flex; flex-direction: column; gap: 6px; }
.bx-stat__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.bx-stat__value { font-size: 32px; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--text-primary); line-height: 1; }
.bx-stat__delta { font-size: 13px; font-weight: 500; }
.bx-stat__delta--up { color: var(--success-9); }
.bx-stat__delta--down { color: var(--danger-9); }

/* ============ Tabs ============ */
.bx-tabs { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface-inset); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.bx-tab { appearance: none; border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 13px; font-weight: var(--weight-medium); color: var(--text-tertiary); padding: 7px 14px; border-radius: var(--radius-sm); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.bx-tab:hover { color: var(--text-primary); }
.bx-tab--active { background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.bx-tab:focus-visible { outline: none; box-shadow: var(--ring); }

/* ============ Tooltip ============ */
.bx-tooltip-wrap { position: relative; display: inline-flex; }
.bx-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--gray-12); color: var(--gray-1); font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: var(--radius-sm); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); box-shadow: var(--shadow-md); z-index: 50; }
.bx-tooltip-wrap:hover .bx-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Dialog ============ */
.bx-overlay { position: fixed; inset: 0; background: var(--surface-overlay); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.bx-dialog { width: 100%; max-width: 460px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); box-shadow: var(--elevation-pop); overflow: hidden; }
.bx-dialog__body { padding: 26px; }
.bx-dialog__title { font-size: 19px; font-weight: var(--weight-semibold); letter-spacing: -0.01em; margin: 0 0 8px; }
.bx-dialog__desc { font-size: 14px; color: var(--text-tertiary); margin: 0; line-height: 1.6; }
.bx-dialog__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--border-subtle); background: var(--surface-inset); }

/* ============ Toast ============ */
.bx-toast { display: flex; align-items: flex-start; gap: 12px; width: 340px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--elevation-pop); padding: 14px 16px; }
.bx-toast__icon { display: flex; flex: none; margin-top: 1px; }
.bx-toast__title { font-size: 14px; font-weight: var(--weight-medium); color: var(--text-primary); }
.bx-toast__msg { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

/* ============ Divider ============ */
.bx-divider { border: none; height: 1px; background: var(--border-subtle); margin: 0; }

/* ui_kits/marketing/responsive.css */
/* Buyo marketing — mobile-first responsive breakpoint system.
 * Desktop layouts live as inline gridTemplateColumns for readability;
 * breakpoint collapses live here, hooked via stable class names.
 * No attribute-selector hacks, no display:none !important scattered around.
 *
 * Breakpoints:
 *   1024px — tablet (4-col → 2-col, split sections stack)
 *   768px  — mobile (3-col → 1-col, 2-col → 1-col, nav hides behind hamburger)
 *   480px  — small phone (4-col → 1-col, footer stacks, nav CTA hides — hamburger menu carries its own CTA)
 *   320px  — smallest phones (tightened spacing/touch targets only, no further column collapses needed)
 */

/* ===== Desktop defaults (CSS owns the responsive axis) ===== */

/* 3-column grids: Problem loss cards, HowItWorks steps, Pricing tiers, Testimonials */
.bx-r-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 4-column grids: StatsBand metrics, Integrations tool groups */
.bx-r-4 { grid-template-columns: repeat(4, 1fr); }

/* 2-column equal grids: capability lists, security items, integrations header */
.bx-r-2 { grid-template-columns: 1fr 1fr; }

/* Asymmetric splits (collapse fully at tablet) */
.bx-r-agents    { grid-template-columns: 1.05fr 0.95fr; }
.bx-r-security  { grid-template-columns: 0.9fr 1.1fr; }
.bx-r-demo      { grid-template-columns: 0.92fr 1.08fr; }

/* Footer 5-column row */
.bx-r-footer    { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }

/* Nav links (kept visible by default; hidden on mobile) */
.bx-nav-links     { display: flex; }
/* Hamburger toggle — hidden on desktop, shown on mobile */
.bx-nav-hamburger { display: none; }

/* ===== Tablet (<=1024px) ===== */
@media (max-width: 1024px) {
  .bx-r-agents    { grid-template-columns: 1fr; }
  .bx-r-security  { grid-template-columns: 1fr; }
  .bx-r-demo      { grid-template-columns: 1fr; }

  .bx-r-4         { grid-template-columns: repeat(2, 1fr); }

  /* Pricing stacks so featured card can keep its offset breathe */
  .bx-r-pricing   { grid-template-columns: 1fr; max-width: 480px; }

  /* Footer: brand col + 2-col links */
  .bx-r-footer    { grid-template-columns: 1fr 1fr; }
}

/* ===== Mobile (<=768px) ===== */
@media (max-width: 768px) {
  .bx-r-3    { grid-template-columns: 1fr; }
  .bx-r-2    { grid-template-columns: 1fr; }
  .bx-r-4    { grid-template-columns: repeat(2, 1fr); }

  /* Nav links hidden — logo + CTA remain visible */
  .bx-nav-links { display: none; }
  /* Hamburger toggle shown on mobile */
  .bx-nav-hamburger { display: inline-flex; }

  /* Pricing stacks 1-col already at tablet; reinforce constraints below */
  .bx-r-pricing { gap: 16px !important; }

  /* Featured card offset removed on mobile for clean stack */
  .bx-r-feature-lift { transform: none !important; }

  /* Touch targets — Apple HIG / WCAG 2.5.5 minimum is 44px; design-system
     sm/md buttons (32/40px) are fine for mouse use but too small to tap
     reliably, so bump them up on touch-sized viewports only. */
  .bx-btn--sm, .bx-btn--md { min-height: 44px; }
  .bx-iconbtn--sm, .bx-iconbtn--md { min-width: 44px; min-height: 44px; }
}

/* ===== Small phone (<=480px) ===== */
@media (max-width: 480px) {
  .bx-r-4    { grid-template-columns: 1fr; }
  .bx-r-footer { grid-template-columns: 1fr; }

  /* Logo + CTA + hamburger no longer fit one row at this width —
     the hamburger's dropdown carries its own full-width CTA instead. */
  .bx-nav-cta { display: none; }
}

/* ===== Smallest phones (<=320px) ===== */
@media (max-width: 320px) {
  :root { --gutter: 16px; }
}
/* ui_kits/marketing/inline-styles.css */
/* Buyo marketing — component-scoped CSS extracted from inline <style> tags.
 * Moved out of JSX so the CSP style-src can drop 'unsafe-inline'. */

body { margin: 0; user-select: none; -webkit-user-select: none; -ms-user-select: none; }
input, textarea, [contenteditable] { user-select: auto; -webkit-user-select: auto; -ms-user-select: auto; }

/* Footer.jsx — BackToTop */
@keyframes bxBackTop { 0% { opacity: 0; transform: translateY(16px) scale(.9); } 60% { transform: translateY(-4px) scale(1.04); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.bx-back-to-top { animation: bxBackTop .4s var(--ease-out) both !important; }
.bx-back-to-top:hover { background: var(--accent-9); transform: scale(1.06); box-shadow: 0 8px 28px rgba(219,81,38,0.5); }
.bx-back-to-top:active { transform: translateY(0) scale(.96); }
@media (max-width: 768px) { .bx-back-to-top { right: 16px; bottom: 16px; } }

/* CookieConsent.jsx */
@keyframes bxCookieSlide { 0% { transform: translateY(100%) translateY(10px); opacity: 0; } 40% { transform: translateY(-6px); } 100% { transform: translateY(0); opacity: 1; } }
.bx-cookie-banner { animation: bxCookieSlide .45s var(--ease-out) both; }
.bx-cookie-banner button:hover { filter: brightness(1.08); }
@media (max-width: 480px) {
  .bx-cookie-banner { padding: 10px 16px !important; gap: 8px !important; }
  .bx-cookie-banner span { font-size: 12px !important; min-width: 100% !important; }
  .bx-cookie-banner button { padding: 6px 14px !important; font-size: 12px !important; }
}

/* MarketingNav.jsx */
@keyframes bxNavDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Comparison.jsx */
@media (max-width: 768px) {
  .bx-r-comp-header { grid-template-columns: 1.2fr 1fr 1fr !important; }
  .bx-r-comp-row { grid-template-columns: 1.2fr 1fr 1fr !important; }
  .bx-r-comp-header > div, .bx-r-comp-row > div { padding: 12px 14px !important; }
}

/* Community.jsx — FAQ accordion */
.bx-faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease-out, cubic-bezier(.22,1,.36,1)); }
.bx-faq-answer[data-open="true"] { grid-template-rows: 1fr; }
.bx-faq-answer-inner { overflow: hidden; }
.bx-faq-answer-text { padding: 0 20px; opacity: 0; transform: translateY(-4px); transition: opacity .22s var(--ease-out), transform .28s var(--ease-out); }
.bx-faq-answer[data-open="true"] .bx-faq-answer-text { opacity: 1; transform: translateY(0); transition-delay: .08s; padding-bottom: 20px; }

/* Community.jsx — meeting form */
@keyframes bxSpin { to { transform: rotate(360deg); } }
.bx-mi:focus { border-color: var(--accent-8) !important; box-shadow: 0 0 0 3px var(--accent-a15) !important; }
.bx-mi-card:hover { border-color: var(--accent-6) !important; }

/* Hero.jsx */
@keyframes bxRise { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bxRiseLg { from { transform: translateY(34px) scale(.99); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes bxCtaIn { 0% { opacity: 0; transform: translateY(12px) scale(.97); } 60% { transform: translateY(-3px) scale(1.01); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bxPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bxPulse { 0%, 100% { box-shadow: 0 0 0 3px var(--success-a15); } 50% { box-shadow: 0 0 0 6px var(--success-a15); } }
@keyframes bxBounce { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(7px); opacity: 1; } }
@keyframes bxOrbDrift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,-20px) scale(1.07); } }
@keyframes bxOrbDrift2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-22px,18px) scale(1.05); } }
.bx-rise { animation: bxRise .68s var(--ease-out) both; }
.bx-rise-lg { animation: bxRiseLg .8s var(--ease-out) .12s both; }
.bx-hero-cta { animation: bxCtaIn .6s var(--ease-out) .18s both; }
.bx-hero-cta > * { transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.bx-hero-cta > *:hover { box-shadow: var(--shadow-lg); }
.bx-hero-showcase { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,440px); align-items: stretch; }
.bx-hero-badge-dot { animation: bxPulse 2.2s ease-in-out infinite; }
.bx-hero-orb { animation: bxOrbDrift 17s ease-in-out infinite; }
.bx-hero-orb-2 { animation: bxOrbDrift2 21s ease-in-out infinite; }
.bx-hero-cue { animation: bxFade .6s ease .4s both; }
.bx-hero-cue-chevron { animation: bxBounce 1.7s ease-in-out infinite; }
@media (max-width: 1024px) {
  .bx-hero-showcase { grid-template-columns: 1fr; }
  .bx-hero-showcase .bx-showcase-left { border-right: none !important; border-bottom: 1px solid var(--border-subtle); }
}
@media (max-width: 768px) {
  .bx-hero-showcase .bx-showcase-right { padding: 24px 16px !important; }
  .bx-hero-preview-frame { max-width: 320px !important; }
  .bx-hero-pin { height: auto !important; }
  .bx-hero-pin-inner { position: relative !important; height: auto !important; padding: 96px 0 56px !important; }
  .bx-hero-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-rise, .bx-rise-lg { opacity: 1 !important; animation: none !important; }
  .bx-hero-badge-dot, .bx-hero-orb, .bx-hero-orb-2, .bx-hero-cue-chevron { animation: none !important; }
}

/* InteractiveDemo.jsx */
@keyframes bx-typing { 0%,60%,100% { opacity:.25; transform:translateY(0);} 30% { opacity:1; transform:translateY(-3px);} }
@keyframes bx-online { 0%,100% { box-shadow: 0 0 0 3px var(--success-a15); } 50% { box-shadow: 0 0 0 6px var(--success-a15), 0 0 0 9px var(--success-a10);} }
@keyframes bx-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bx-channel-float-wa { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,-7px); } }
@keyframes bx-channel-float-ph { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6px,2px); } }
@keyframes bx-channel-float-web { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-3px,6px); } }
.bx-msg { animation: bx-msg-in .34s var(--ease-out, cubic-bezier(.22,1,.36,1)) both; }
.mb-wa { animation: bx-channel-float-wa 5.5s ease-in-out infinite; }
.mb-ph { animation: bx-channel-float-ph 6s ease-in-out infinite 1.1s; }
.mb-web { animation: bx-channel-float-web 5s ease-in-out infinite 2.2s; }
.bx-demo-chip:hover { background: var(--surface-card); border-color: var(--accent-a35); color: var(--accent-10); }
.bx-demo-chip:active { transform: scale(.97); }
.bx-demo-iconbtn:hover { color: var(--accent-10); background: var(--accent-a6); }
.bx-demo-call:hover { background: var(--accent-a10); }
@media (max-width: 900px) {
  .bx-channel-badge, .bx-channel-lines { display: none !important; }
  .bx-demo-wrap { padding: 0 !important; }
}

/* FloatingCTA.jsx */
@keyframes bxFadeInUp { 0% { opacity: 0; transform: translateY(16px) scale(.92); } 50% { transform: translateY(-4px) scale(1.03); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.bx-floating-cta { animation: bxFadeInUp .4s var(--ease-out) both; }
.bx-floating-cta:hover { background: var(--accent-9); transform: scale(1.04); box-shadow: 0 10px 32px rgba(219,81,38,0.5); }
.bx-floating-cta:active { transform: translateY(0) scale(.97); }
@media (max-width: 768px) { .bx-floating-cta { right: 16px; bottom: 72px; padding: 10px 16px; font-size: 13; } }

/* Pricing.jsx */
.bx-price-card:hover{ box-shadow: var(--shadow-lg) !important; border-color: var(--border-strong) !important; }

/* BlogPreview.jsx */
.bx-blog-card:hover { transform: translateY(-3px); border-color: var(--accent-8); }
