/* Self-hosted Google Fonts (latin + latin-ext) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/DMSans-400-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/DMSans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/DMSans-500-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/DMSans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/DMSans-600-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/DMSans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/DMSans-700-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/DMSans-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/Manrope-600-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/Manrope-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/Manrope-700-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/Manrope-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/Manrope-800-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/Manrope-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/SourceCodePro-400-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/SourceCodePro-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/SourceCodePro-500-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/SourceCodePro-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─────────────────────────────────────────────
   Design tokens — Accentity "ink & cobalt" palette
   Warm paper canvas, ink text, cobalt primary, lemon accent.
   ───────────────────────────────────────────── */
:root {
  /* Canvas / surfaces */
  --canvas:       #F4F4F2; /* warm paper */
  --surface-soft: #ECECEA;
  --surface-card: #FFFFFF;
  --surface-doc:  #F6F6F4;
  --surface-dark: #0B0B0C; /* near-black pill/nav */

  /* Borders */
  --line:      #E2E2DE;
  --line-soft: #ECECEA;

  /* Typography — ink scale */
  --text-main: #0A0B2E; /* ink */
  --text-soft: #5D5E68;
  --text-mute: #9A9BA6;
  --text-ash:  #C9C9CF;

  /* Primary — cobalt */
  --primary:        #1737EF;
  --primary-pressed:#1029C4;
  --primary-text:   #FFFFFF;
  --primary-soft:   #EEF0FE;

  /* Accent — lemon (fills only, always with ink text) */
  --accent:      #F8F36A;
  --accent-text: #0A0B2E;

  /* Semantic pastel tokens (fintech-mapped) */
  --pastel-blue:          #EEF0FE;
  --pastel-blue-deep:     #1737EF;
  --pastel-green:         #ECFDF5;
  --pastel-green-deep:    #059669;
  --pastel-peach:         #FFF7ED;
  --pastel-peach-deep:    #D97706;
  --pastel-lavender:      #F5F3FF;
  --pastel-lavender-deep: #7C3AED;
  --pastel-yellow:        #FFFBEB;
  --pastel-yellow-deep:   #B45309;
  --pastel-pink:          #FEF2F2;
  --pastel-pink-deep:     #DC2626;
  --pastel-mint:          #ECFDF5;
  --pastel-mint-deep:     #059669;

  /* Semantic status triplets (bg / text / border) */
  --success-bg:     #ECFDF5;
  --success-text:   #065F46;
  --success-border: #A7F3D0;
  --warning-bg:     #FFFBEB;
  --warning-text:   #92400E;
  --warning-border: #FDE68A;
  --danger-bg:      #FEF2F2;
  --danger-text:    #991B1B;
  --danger-border:  #FECACA;
  --info-bg:        #EEF0FE;
  --info-text:      #1029C4;
  --info-border:    #C3CBFB;

  /* Radius scale — restrained, not the consumer-fintech card-stack look */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --radius-card: 14px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --transition-fast: 140ms;
  --transition-base: 180ms;
}

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

html,
body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 95% 5%, rgba(23, 55, 239, .07), transparent 24rem),
    var(--canvas);
  color: var(--text-main);
  font-family:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Display headings use Manrope */
h1, h2, h3, .font-display {
  font-family: "Manrope", "DM Sans", sans-serif;
}

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

/* ─────────────────────────────────────────────
   Surface helpers
   ───────────────────────────────────────────── */
.surface {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(10, 11, 46, .10);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 0 rgba(10, 11, 46, .04);
  transition: border-color var(--transition-base) var(--ease-out),
              box-shadow var(--transition-base) var(--ease-out);
}

.surface-soft {
  background: var(--surface-doc);
  border: 1px solid rgba(10, 11, 46, .10);
  border-radius: 20px;
}

.btn,
.status-pill {
  border-radius: 999px;
}

/* .btn is a button/pill style, but it's widely reused as the base class for
   text inputs/selects/textareas across admin templates (border + padding
   convenience). Pill radius on a wide text field reads as a broken oval/
   circle, not a text box — override to a normal input radius here instead
   of touching every template. */
input.btn,
select.btn,
textarea.btn {
  border-radius: var(--radius-sm);
}

.icon-tile { border-radius: 999px; }

/* ─────────────────────────────────────────────
   Shared components — KoboPay layout language
   ───────────────────────────────────────────── */

.app-shell-frame {
  min-height: 100dvh;
  width: 100%;
  background:
    radial-gradient(circle at 95% 5%, rgba(23, 55, 239, .07), transparent 24rem),
    var(--canvas);
}

.app-sidebar-panel {
  background: var(--canvas) !important;
  border-right: 1px solid rgba(10, 11, 46, .08);
}

.app-sidebar-panel > div:first-child {
  min-height: 72px;
  border-bottom-color: transparent !important;
}

.app-sidebar-panel nav a,
.app-sidebar-panel .nav a {
  min-height: 44px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.app-sidebar-panel nav a:hover,
.app-sidebar-panel .nav a:hover {
  background: var(--surface-soft);
  color: var(--text-main);
}

.app-sidebar-panel nav a.active,
.app-sidebar-panel nav a.bg-surfaceDark,
.app-sidebar-panel .nav a.active {
  background: var(--surface-dark) !important;
  color: #fff !important;
}

.app-sidebar-panel nav a.active i,
.app-sidebar-panel nav a.bg-surfaceDark i,
.app-sidebar-panel .nav a.active i {
  color: #fff !important;
}

.app-topbar {
  border-bottom: 1px solid rgba(10, 11, 46, .08) !important;
  background: rgba(244, 244, 242, .90) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.app-mobile-bar {
  position: fixed;
  inset-inline: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: rgba(11, 11, 12, .96);
  padding: 8px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(10, 11, 46, .22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.app-mobile-bar a {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
  font-weight: 700;
}

.app-mobile-bar a:hover,
.app-mobile-bar a:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  outline: none;
}

.app-mobile-bar a.active {
  background: #fff;
  color: var(--text-main);
}

.app-mobile-bar i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.app-main-panel #main-content {
  padding-bottom: 112px;
}

@media (min-width: 1024px) {
  .app-sidebar-panel {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 50;
    width: 16rem !important;
    height: 100dvh !important;
    transform: none !important;
    visibility: visible !important;
  }

  .app-main-panel {
    width: calc(100% - 16rem);
    min-height: 100dvh;
    margin-left: 16rem;
  }

  .app-mobile-bar { display: none; }

  .app-main-panel #main-content {
    padding-bottom: 0;
  }
}

@media (min-width: 1280px) {
  .app-sidebar-panel {
    width: 18rem !important;
  }

  .app-main-panel {
    width: calc(100% - 18rem);
    margin-left: 18rem;
  }

}

/* Page head: eyebrow + display title */
.page-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(10, 11, 46, .45);
}
.page-title {
  margin: 2px 0 0;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-main);
}

/* Pill buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(10, 11, 46, .10);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-main);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-base) var(--ease-out),
              color var(--transition-base) var(--ease-out),
              border-color var(--transition-base) var(--ease-out);
  white-space: nowrap;
}
.btn-pill:hover { background: var(--surface-soft); }
.btn-pill[aria-expanded="true"],
.btn-pill.active { background: var(--surface-dark); border-color: transparent; color: #fff; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-dark);
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-base) var(--ease-out);
  white-space: nowrap;
}
.btn-dark:hover { background: var(--primary); }

.btn-cobalt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-base) var(--ease-out);
  white-space: nowrap;
}
.btn-cobalt:hover { background: var(--primary-pressed); }

/* Collapsible filter panel (behind the Filter button) */
.filter-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(10, 11, 46, .10);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(10, 11, 46, .04);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(10, 11, 46, .10);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color var(--transition-fast) var(--ease-out),
              box-shadow var(--transition-fast) var(--ease-out);
}
.filter-panel input:focus,
.filter-panel select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 55, 239, .12);
}
.filter-panel > .filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Filter disclosure: native <details> — Filter pill trigger, panel hidden
   until toggled. Server renders `open` on the <details> when a request
   already has filters applied, so results stay explainable on load. */
.filter-disclosure { margin-bottom: 14px; }
.filter-disclosure summary {
  list-style: none;
  width: fit-content;
}
.filter-disclosure summary::-webkit-details-marker { display: none; }
.filter-disclosure summary::marker { content: ""; }
.filter-disclosure summary .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 800;
}
.filter-disclosure[open] summary.btn-pill {
  background: var(--surface-dark);
  border-color: transparent;
  color: #fff;
}
.filter-disclosure[open] summary .filter-chevron { transform: rotate(180deg); }
.filter-disclosure summary .filter-chevron { transition: transform var(--transition-base) var(--ease-out); }

@keyframes filter-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.filter-disclosure[open] > .filter-panel {
  animation: filter-reveal var(--transition-base) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .filter-disclosure[open] > .filter-panel { animation: none; }
}

/* Modern table (mockup transactions table) */
.table-modern thead tr {
  background: #f8f8f6;
}
.table-modern th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(10, 11, 46, .45);
}
.table-modern td {
  padding: 12px 16px;
  border-top: 1px solid rgba(10, 11, 46, .07);
}
.table-modern tbody tr:hover { background: #fafaf8; }

/* White frosted (sidebar stays dark so this targets topbar/modals) */
.frosted {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ─────────────────────────────────────────────
   Scrollbars
   ───────────────────────────────────────────── */
.table-scroll::-webkit-scrollbar,
.content-scroll::-webkit-scrollbar,
.main::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-scroll::-webkit-scrollbar-thumb,
.content-scroll::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: #C9C9CF;
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-track,
.content-scroll::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* ─────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────── */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 120ms;
  white-space: nowrap;
}

.button-primary:hover {
  background: var(--primary-pressed);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 120ms;
  white-space: nowrap;
}

.button-secondary:hover {
  background: var(--surface-soft);
}

/* ─────────────────────────────────────────────
   Public site — marketing / landing pages
   ───────────────────────────────────────────── */
.public-shell {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text-soft);
}

.public-container {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 242, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-soft);
}

.public-nav-links a {
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 12px;
}

.public-nav-links a:hover {
  background: var(--surface-soft);
  color: var(--text-main);
}

.public-nav-links a.active {
  background: var(--surface-dark);
  color: #fff;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.public-brand img { display: block; }

.public-brand span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.public-section { padding: 80px 0; }

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.public-eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.public-title {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.public-copy {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.public-grid { display: grid; gap: 16px; }
.public-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.public-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.public-card h3,
.public-card h2 {
  margin: 0;
  color: var(--text-main);
}

.public-card p {
  margin: 10px 0 0;
  line-height: 1.6;
  color: var(--text-soft);
}

.public-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.public-illustration img {
  width: min(100%, 320px);
  height: auto;
}

.feature-list,
.pricing-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li,
.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.feature-list li::before,
.pricing-list li::before {
  content: "✓";
  color: var(--pastel-green-deep);
  font-weight: 700;
  flex-shrink: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-links a:hover { color: var(--text-main); }

/* ─────────────────────────────────────────────
   Code blocks
   ───────────────────────────────────────────── */
.mono {
  font-family: "Source Code Pro", ui-monospace, monospace;
}

.public-code {
  background: var(--surface-dark);
  color: #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .public-hero,
  .public-grid-3,
  .public-grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .public-nav { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .public-container {
    width: min(100vw - 24px, 1280px);
  }

  .public-section { padding: 48px 0; }

  .public-nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
}
