/* ==========================================================
       SHARED GLOBAL CSS — /assets/css/global.css
       ========================================================== */
    :root {
      color-scheme: light;
      --page: #f7f8fa;
      --surface: #ffffff;
      --surface-soft: #f1f4f9;
      --surface-raised: #ffffff;
      --ink: #172033;
      --muted: #536176;
      --muted-light: #6d798d;
      --line: #dfe5ee;
      --line-strong: #cdd6e5;
      --accent: #2853d8;
      --accent-strong: #1d40b8;
      --accent-faint: #edf2ff;
      --on-accent: #ffffff;
      --success: #147d65;
      --header-glass: rgba(247, 248, 250, .93);
      --shadow: 0 16px 44px rgba(23, 32, 51, .05);
      --shadow-hover: 0 14px 34px rgba(23, 32, 51, .09);
      --radius: 16px;
      --container: 1180px;
    }
    :root[data-theme="dark"] {
      color-scheme: dark;
      --page: #101521;
      --surface: #182131;
      --surface-soft: #202b3c;
      --surface-raised: #1b2638;
      --ink: #f1f5fc;
      --muted: #b4c0d2;
      --muted-light: #94a5bc;
      --line: #2d3a4e;
      --line-strong: #42516a;
      --accent: #9db5ff;
      --accent-strong: #b8c8ff;
      --accent-faint: #26385b;
      --on-accent: #0e1b38;
      --success: #74d4b6;
      --header-glass: rgba(16, 21, 33, .94);
      --shadow: 0 16px 44px rgba(0, 0, 0, .12);
      --shadow-hover: 0 14px 34px rgba(0, 0, 0, .2);
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 92px; }
    body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
    button, input, textarea { font: inherit; }
    button { cursor: pointer; }
    a { color: inherit; text-decoration: none; }
    a, button, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
    :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
    ::selection { background: var(--accent-faint); color: var(--ink); }
    svg { display: block; flex: none; }
    img { max-width: 100%; }
    [hidden] { display: none !important; }
    .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
    .skip-link { position: fixed; z-index: 1000; top: -80px; left: 16px; background: var(--accent); color: var(--on-accent); padding: 10px 15px; border-radius: 9px; }
    .skip-link:focus { top: 12px; }
    .eyebrow { color: var(--accent-strong); font-size: .77rem; font-weight: 760; letter-spacing: .115em; text-transform: uppercase; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; min-height: 44px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: .91rem; line-height: 1.2; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: var(--accent); color: var(--on-accent); }
    .btn-primary:hover { background: var(--accent-strong); }
    .btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
    .btn-outline:hover { background: var(--surface-soft); }
    .btn-quiet { background: var(--accent-faint); color: var(--accent-strong); }
    .btn-quiet:hover { background: var(--surface-soft); }
    .text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-strong); font-size: .9rem; font-weight: 750; }
    .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
    .section { padding-block: 42px 58px; }
    .section-top { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 15px; margin-bottom: 23px; }
    .section-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); line-height: 1.22; letter-spacing: -.035em; margin: 6px 0 6px; }
    .section-head p { color: var(--muted); margin: 0; max-width: 670px; }
    .site-header { position: sticky; z-index: 30; top: 0; background: var(--header-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
    .header-row { height: 68px; display: flex; align-items: center; gap: 21px; }
    .brand { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 1.28rem; font-weight: 820; letter-spacing: -.05em; }
    .brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: #2853d8; }
    .brand-mark svg { width: 23px; height: 23px; }
    .desktop-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
    .desktop-nav a { padding: 8px 10px; border-radius: 9px; font-size: .865rem; font-weight: 630; color: var(--muted); white-space: nowrap; }
    .desktop-nav a:hover, .mobile-nav a:hover { color: var(--ink); background: var(--surface-soft); }
    .header-actions { display: flex; align-items: center; gap: 7px; flex: none; }
    .icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); }
    .icon-btn:hover { background: var(--surface-soft); color: var(--ink); border-color: var(--line); }
    .icon-btn svg { width: 19px; height: 19px; }
    .header-support { padding-inline: 13px; min-height: 39px; }
    .mobile-menu-button { display: none; }
    .mobile-nav { display: none; border-top: 1px solid var(--line); padding: 9px 0 15px; }
    .mobile-nav a { display: block; padding: 12px; border-radius: 9px; font-weight: 650; }
    .mobile-nav .mobile-support { color: var(--accent-strong); }
    .site-footer { margin-top: 35px; background: var(--surface); border-top: 1px solid var(--line); }
    .footer-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 42px; padding-block: 62px 46px; }
    .footer-brand { max-width: 290px; }
    .footer-brand p { color: var(--muted); font-size: .93rem; margin: 16px 0 16px; }
    .footer-column h2 { font-size: .94rem; margin: 4px 0 17px; }
    .footer-column ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
    .footer-column li a, .footer-extras a { color: var(--muted); font-size: .9rem; }
    .footer-column li a:hover, .footer-extras a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 19px 27px; color: var(--muted); font-size: .84rem; }
    .footer-extras { display: flex; flex-wrap: wrap; gap: 16px; }
    @media (max-width: 1030px) { .desktop-nav a { padding-inline: 7px; font-size: .82rem; } .header-row { gap: 10px; } }
    @media (max-width: 880px) {
      .desktop-nav, .header-support { display: none; }
      .header-row { justify-content: space-between; }
      .header-actions { margin-left: auto; }
      .mobile-menu-button { display: inline-grid; }
      .mobile-nav:not([hidden]) { display: block; }
      .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    }
    @media (max-width: 580px) {
      .container { width: min(calc(100% - 32px), var(--container)); }
      .section { padding-block: 29px 39px; }
      .header-row { height: 62px; }
      .brand { font-size: 1.2rem; }
      .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; padding-block: 43px 33px; }
      .footer-brand { grid-column: 1 / -1; }
      .footer-column h2 { margin-bottom: 13px; }
      .footer-bottom { padding-bottom: 24px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }

/* ==========================================================
   SHARED BACK TO TOP BUTTON — available on every DevBinly page
   The button itself is created by /assets/js/global.js.
   ========================================================== */
.back-to-top {
  position: fixed;
  z-index: 25;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-raised);
  color: var(--accent-strong);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-faint);
}
.back-to-top:active { transform: translateY(0); }
.back-to-top svg { width: 21px; height: 21px; }
@media (max-width: 580px) {
  .back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 43px;
    height: 43px;
  }
}
