/* ============================================================================
   AIVory brand stylesheet for the public (unauthenticated) NiceGUI pages:
   the /plans family (cream_frame) and the /signup family (login_frame).
   Ported verbatim from the two sources of truth named in the design plan --
   values are copied, not invented:

   - Tokens, canvas, card, labels, inputs, black-pill button:
     aivory-infrastructure/keycloak/aivory-theme/login/resources/css/
     aivory-brand.v3.css (the Keycloak login theme -- source of truth for the
     AIVory login family).
   - Site header nav bar mechanics + pricing card mechanics:
     aivory-hugo/themes/kronk/assets/css/kronk-styles.css (the CSS aivory.net
     itself loads; .nav/.nav-logo/.nav-link/.pricing-card/.footer etc.),
     recolored to the AIVory ink/blue/black-pill signature per the approved
     design (aivory.net's own nav-cta uses a pink gradient there -- AIVory's
     product surfaces use the black pill instead, matching the login family).

   assets/theme.py's cream_frame() and login_frame() load this file. It is
   NOT loaded by frame()/blank_frame() -- the logged-in dashboard is
   untouched by this stylesheet.
   ============================================================================ */

/* ---- Fonts (self-hosted, copied from the Keycloak theme's fonts dir) ---- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Variable-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens (aivory-brand.v3.css :root, verbatim) ------------------------ */
:root {
  --aiv-ink: #0d0d0e;
  --aiv-ink-soft: #5a564f;
  --aiv-cream: #faf6ef;
  --aiv-cream-2: #f2ece1;
  --aiv-cream-paper: #fffdf7;
  --aiv-card: #ffffff;
  --aiv-blue: #4169e1;
  --aiv-blue-ink: #2f51bd;
  --aiv-line: rgba(13, 13, 14, 0.12);
  --aiv-line-soft: rgba(13, 13, 14, 0.08);
  --aiv-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --aiv-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* Design-spec section 1: rainbow gradient text-fill (aivory-hugo variables.css --rainbow-grad). */
  --rainbow-grad: linear-gradient(90deg, #f59e0b 0%, #f97316 15%, #ef4444 30%, #7c3aed 50%, #6b8aff 65%, #51b5bf 80%, #059669 100%);
}

/* ---- Canvas: warm cream with soft peach + blue glows, faint grid --------
   (aivory-brand.v3.css html/body rule, applied to our own wrapper div
   instead of html/body so it can sit inside a NiceGUI page). */
.aiv-canvas {
  min-height: 100vh;
  width: 100%;
  background-color: var(--aiv-cream);
  background-image:
    linear-gradient(rgba(13, 13, 14, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 14, 0.022) 1px, transparent 1px),
    radial-gradient(1150px 560px at 82% -8%, rgba(232, 121, 43, 0.13) 0%, rgba(232, 121, 43, 0) 55%),
    radial-gradient(900px 520px at 6% 2%, rgba(65, 105, 225, 0.10) 0%, rgba(65, 105, 225, 0) 52%),
    radial-gradient(1000px 700px at 50% 120%, rgba(26, 155, 142, 0.08) 0%, rgba(26, 155, 142, 0) 60%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: var(--aiv-sans);
  color: var(--aiv-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---- Wordmark (black AIV mark above the login card) ---------------------- */
.aiv-wordmark {
  width: 158px;
  height: 46px;
  filter: brightness(0.15);
}
@media (max-width: 520px) {
  .aiv-wordmark {
    width: 132px;
    height: 40px;
  }
}

/* ---- Card (aivory-brand.v3.css .card-pf) ---------------------------------- */
.aiv-card {
  background: var(--aiv-card);
  border: 1px solid var(--aiv-line-soft);
  border-radius: 20px;
  box-shadow:
    0 28px 60px -26px rgba(13, 13, 14, 0.28),
    0 6px 16px -8px rgba(13, 13, 14, 0.08);
  padding: 40px 38px 34px;
  box-sizing: border-box;
}
@media (max-width: 520px) {
  .aiv-card {
    padding: 30px 22px 26px;
    border-radius: 16px;
  }
}

/* ---- Mono uppercase micro-label (aivory-brand.v3.css form label) --------- */
.aiv-label {
  font-family: var(--aiv-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--aiv-ink-soft);
}

/* ---- Inputs (aivory-brand.v3.css .pf-v5-c-form-control), scoped to our
   own cards so nothing outside the signup/plans pages is touched. -------- */
.aiv-card .q-field__control {
  background: #fdfcfa !important;
  border: 1px solid var(--aiv-line) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  padding: 0 14px !important;
}
.aiv-card .q-field--outlined .q-field__control:before,
.aiv-card .q-field--outlined .q-field__control:after {
  border: none !important;
}
.aiv-card .q-field__native,
.aiv-card .q-field__prefix,
.aiv-card .q-field__suffix {
  color: var(--aiv-ink) !important;
  font-family: var(--aiv-sans) !important;
}
.aiv-card .q-field--focused .q-field__control {
  border-color: var(--aiv-blue) !important;
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.16) !important;
}

/* ---- Buttons: black pill (brand signature) + white pill (social) --------- */
.aiv-btn-black {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  font-family: var(--aiv-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  background: var(--aiv-ink);
  border: 1px solid var(--aiv-ink);
  border-radius: 999px;
  padding: 13px 20px;
  box-shadow: 0 12px 26px -12px rgba(13, 13, 14, 0.55);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}
.aiv-btn-black:hover {
  background: #23232a;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(13, 13, 14, 0.6);
  color: #ffffff !important;
}
.aiv-btn-black:active {
  transform: translateY(0);
}

/* Kronk's own violet slide-in hover on the shared black pill (kronk-styles.css
   .btn-primary), built as a real ::before wipe -- not a static swatch. */
.aiv-btn-kronk-hover {
  position: relative;
  z-index: 0;
}
.aiv-btn-kronk-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #7c3aed;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.aiv-btn-kronk-hover:hover::before {
  transform: scaleX(1);
}

.aiv-btn-white {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
  font-family: var(--aiv-sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--aiv-ink) !important;
  background: var(--aiv-card);
  border: 1px solid var(--aiv-line);
  border-radius: 999px;
  padding: 12px 20px;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}
.aiv-btn-white:hover {
  background: var(--aiv-cream-2);
  border-color: var(--aiv-line);
  color: var(--aiv-ink) !important;
}

/* ---- Links ----------------------------------------------------------------- */
.aiv-canvas a.aiv-link {
  color: var(--aiv-blue-ink);
  text-decoration: none;
  font-weight: 500;
}
.aiv-canvas a.aiv-link:hover {
  color: var(--aiv-ink);
  text-decoration: underline;
}

/* ---- Trust badge pill (mono micro-label on a tinted pill) ----------------- */
.aiv-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--aiv-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--aiv-ink-soft);
  font-weight: 600;
}

/* ============================================================================
   Site header (from kronk-styles.css .nav / .nav-logo / .nav-link / .nav-cta
   -- same fixed dark bar aivory.net itself renders -- recolored: the nav-cta
   is the AIVory black pill instead of the site's pink gradient).
   ============================================================================ */
.aiv-site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--aiv-sans);
}
.aiv-nav-logo {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.aiv-nav-logo img {
  height: 26px;
  width: auto;
  /* aivory.svg is already white (fill:#fff) -- matches the dark nav bar as-is. */
}
.aiv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.aiv-nav-link {
  font-family: var(--aiv-sans);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.aiv-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.aiv-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  color: var(--aiv-ink) !important;
  font-family: var(--aiv-sans);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.aiv-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* ============================================================================
   Site footer (from kronk-styles.css .footer -- cream-dark bar, same as the
   real site footer, not the app dashboard's dark footer).
   ============================================================================ */
.aiv-site-footer {
  background: var(--aiv-cream-2);
  border-top: 1px solid var(--aiv-line-soft);
  padding: 28px 32px;
  font-family: var(--aiv-sans);
}
.aiv-site-footer .aiv-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.aiv-site-footer img {
  height: 20px;
  width: auto;
  filter: brightness(0.15);
  opacity: 0.85;
}
.aiv-site-footer a {
  color: var(--aiv-ink-soft);
  text-decoration: none;
  font-size: 13px;
}
.aiv-site-footer a:hover {
  color: var(--aiv-ink);
}

/* ============================================================================
   Outcome cards -- legacy hover-lift card mechanics, kept for any page that
   still asks for a plain accent-bar card. The /plans router itself now uses
   the hero-tile system further down (design-spec section 1).
   ============================================================================ */
.aiv-outcome-card {
  position: relative;
  background: var(--aiv-card);
  border: 1px solid var(--aiv-line-soft);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.aiv-outcome-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(13, 13, 14, 0.22);
}
.aiv-outcome-card .aiv-card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

/* ============================================================================
   Product plans page hero -- design-spec section 2 (Guard), reused
   generically by content/{guard,architect,monitor,inference}/plans.py: an
   icon-box eyebrow chip, a clamp() H1 and a muted subhead, left-aligned
   below the (untouched) site header.
   ============================================================================ */
.aiv-product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--aiv-cream-paper);
  border: 1px solid rgba(13, 13, 14, 0.08);
  border-radius: 999px;
  font-family: var(--aiv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tile-grad-solid, var(--aiv-ink-soft));
  margin-bottom: 20px;
}
.aiv-product-eyebrow-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-grad);
  color: #ffffff;
  flex-shrink: 0;
}
.aiv-product-h1 {
  font-family: var(--aiv-sans);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--aiv-ink);
}
.aiv-product-subhead {
  font-size: 16px;
  color: var(--aiv-ink-soft);
  max-width: 520px;
  margin: 0;
}

/* ============================================================================
   Pricing cards -- design-spec section 2 (Guard 4-tier row), reused generically
   by content/{guard,architect,monitor,inference}/plans.py. Equal-height grid
   (display:flex column, height:100%), fixed 28px badge slot always reserved so
   every card's name baseline lines up, baseline-aligned price row, CTA pinned
   to the bottom via margin-top:auto.
   ============================================================================ */
.aiv-pricing-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}
.aiv-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: var(--aiv-cream-paper);
  border: 1px solid rgba(13, 13, 14, 0.14);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(13, 13, 14, 0.04), 0 8px 24px rgba(13, 13, 14, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.aiv-pricing-card:hover {
  transform: translateY(-4px);
}
/* Dominant (recommended) tier -- teal by default (Guard), overridden per
   product via --dom-color/--dom-tint/--dom-shadow inline custom properties. */
.aiv-pricing-card--dominant {
  background: linear-gradient(180deg, #fff 0%, var(--dom-tint, rgba(81, 181, 191, 0.06)) 100%);
  border: 2px solid var(--dom-color, #51b5bf);
  box-shadow: 0 20px 44px -18px var(--dom-shadow, rgba(81, 181, 191, 0.38)), 0 8px 24px rgba(13, 13, 14, 0.06);
}
/* Contact/Enterprise tier -- dark card, white/rgba-white text. */
.aiv-pricing-card--contact {
  background: #0d0d0e;
  border: 1px solid #0d0d0e;
}
.aiv-pricing-card--contact .aiv-tier-name,
.aiv-pricing-card--contact .aiv-amount {
  color: #fff;
}
.aiv-pricing-card--contact .aiv-tier-desc,
.aiv-pricing-card--contact .aiv-tier-price-sub,
.aiv-pricing-card--contact .aiv-tier-price-row .aiv-period,
.aiv-pricing-card--contact .aiv-features-list li {
  color: rgba(255, 255, 255, 0.72);
}
.aiv-pricing-card--contact .aiv-tier-divider {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.aiv-card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}
/* Legacy absolute ribbon badge -- superseded by the in-flow .aiv-tier-badge-slot
   below on the product plans pages, kept for any page still using it. */
.aiv-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: var(--aiv-ink);
  color: #fff;
  font-family: var(--aiv-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

/* In-flow badge slot: fixed height, always reserved (empty on non-recommended
   tiers) so every card's name baseline lines up. */
.aiv-tier-badge-slot {
  height: 28px;
  display: flex;
  align-items: flex-start;
}
.aiv-tier-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--aiv-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tier-badge-grad, linear-gradient(135deg, #51b5bf 0%, #6b8aff 100%));
  border-radius: 999px;
  padding: 5px 12px;
}

.aiv-tier-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--aiv-ink);
  margin: 0 0 6px;
}
.aiv-tier-desc {
  font-size: 13.5px;
  color: var(--aiv-ink-soft);
  min-height: 38px;
  margin: 0;
  line-height: 1.4;
}
.aiv-tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
}
.aiv-tier-price-row .aiv-amount {
  font-family: var(--aiv-sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--aiv-ink);
  letter-spacing: -0.02em;
}
.aiv-tier-price-row .aiv-period {
  font-size: 13.5px;
  color: var(--aiv-ink-soft);
}
.aiv-tier-price-sub {
  font-size: 12.5px;
  color: #8a8a8a;
  margin: 4px 0 20px;
  min-height: 16px;
}
.aiv-tier-divider {
  border-top: 1px solid rgba(13, 13, 14, 0.1);
  margin: 0 0 18px;
}
.aiv-tier-cta {
  margin-top: auto;
  width: 100%;
}

/* Legacy price/feature-list classes -- still used inline by pages that have
   not adopted .aiv-tier-price-row yet. */
.aiv-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.aiv-price .aiv-amount {
  font-family: var(--aiv-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--aiv-ink);
  letter-spacing: -0.02em;
}
.aiv-price .aiv-period {
  color: var(--aiv-ink-soft);
  font-size: 1rem;
}
.aiv-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aiv-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--aiv-ink-soft);
  line-height: 1.45;
}
.aiv-features-list li strong {
  color: var(--aiv-ink);
  font-weight: 600;
}

/* Gradient CTA pill (dominant/recommended tier) -- default is Guard's exact
   spec gradient (source: header-footer.css .btn-accent[data-accent="guard"]);
   other products override --btn-grad/--btn-grad-shadow inline with their own
   PRODUCT_COLORS gradient. */
.aiv-btn-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  font-family: var(--aiv-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #ffffff !important;
  background: var(--btn-grad, linear-gradient(100deg, #51b5bf 0%, #6b8aff 50%, #7c3aed 100%));
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  box-shadow: var(--btn-grad-shadow, 0 18px 40px -14px rgba(107, 138, 255, 0.45)), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}
.aiv-btn-gradient:hover {
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* Light pill (Enterprise/contact CTA on a dark card) -- cream-paper bg, ink
   text, no shadow. */
.aiv-btn-light {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  font-family: var(--aiv-sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--aiv-ink) !important;
  background: var(--aiv-cream-paper);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.aiv-btn-light:hover {
  background: #ffffff;
}

/* ============================================================================
   Feature comparison table -- design-spec section 2: heavy top rule (no card
   chrome), hairline row dividers only (no alternating row background), and a
   vertical column tint on the recommended tier (.aiv-compare-th--pro /
   .aiv-compare-td--pro), not horizontal striping.
   ============================================================================ */
.aiv-compare-label {
  font-family: var(--aiv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aiv-ink-soft);
  margin: 0 0 20px;
}
.aiv-compare-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 2px solid #0d0d0e;
}
.aiv-compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-family: var(--aiv-sans);
}
.aiv-compare-table thead th {
  font-family: var(--aiv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aiv-ink-soft);
  text-align: left;
  padding: 18px;
  border-bottom: 1px solid rgba(13, 13, 14, 0.14);
  white-space: nowrap;
}
.aiv-compare-table thead th:not(:first-child) {
  text-align: center;
}
.aiv-compare-table thead th.aiv-compare-th--pro {
  color: #6b8aff;
  font-weight: 700;
  border-bottom: 2px solid #51b5bf;
  background: rgba(81, 181, 191, 0.05);
}
.aiv-compare-table tbody td {
  padding: 20px 18px;
  font-size: 14.5px;
  color: var(--aiv-ink);
  border-bottom: 1px solid rgba(13, 13, 14, 0.08);
  text-align: center;
}
.aiv-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.aiv-compare-table tbody td.aiv-compare-td--pro {
  background: rgba(81, 181, 191, 0.05);
}
.aiv-compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--aiv-ink);
  text-align: left;
}

/* ============================================================================
   Minimal layout utilities. cream_frame()/login_frame() do NOT load
   public/css/main.css (the dashboard's Tailwind-compatible utility set,
   loaded via render_static_files() in frame()/blank_frame()) -- matching the
   kronk_blank_frame reference pattern, these pages are self-contained. The
   page markup uses a small, fixed vocabulary of grid/flex utility class
   names; defined here with their standard values (not invented) so that
   markup keeps working without depending on main.css.
   ============================================================================ */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.text-center { text-align: center; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.inline-flex { display: inline-flex; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================================
   /plans router (design-spec section 1) -- asymmetric editorial hero: mesh +
   grid-overlay backgrounds behind an eyebrow/H1/subhead/trust-line left
   column and a "THE PLATFORM" hero-tile card on the right. Values ported
   verbatim from aivory-hugo/themes/aivory/assets/css/hero-products.css.
   Used only by content/unified_plans.py.
   ============================================================================ */
.aiv-router-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.aiv-router-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(249, 115, 22, 0.14) 0%, transparent 55%),
    radial-gradient(700px 500px at 10% 30%, rgba(107, 138, 255, 0.14) 0%, transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(5, 150, 105, 0.12) 0%, transparent 55%);
}
.aiv-router-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 13, 14, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 14, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.aiv-router-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .aiv-router-content {
    grid-template-columns: 1fr;
  }
}
.aiv-router-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  background: var(--aiv-cream-paper);
  border: 1px solid rgba(13, 13, 14, 0.08);
  border-radius: 999px;
  font-family: var(--aiv-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 28px;
}
.aiv-router-eyebrow .aiv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b8aff;
  flex-shrink: 0;
}
.aiv-router-h1 {
  font-family: var(--aiv-sans);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--aiv-ink);
}
.aiv-router-h1 .aiv-rainbow-text {
  background: var(--rainbow-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.aiv-router-subhead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--aiv-ink-soft);
  max-width: 420px;
  margin: 0 0 40px;
}
.aiv-router-trust {
  font-family: var(--aiv-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
}

.aiv-platform-card {
  position: relative;
  background: var(--aiv-cream-paper);
  border: 1px solid rgba(13, 13, 14, 0.08);
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(13, 13, 14, 0.06), 0 16px 40px rgba(13, 13, 14, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aiv-platform-tag {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 4px 12px;
  background: var(--aiv-cream-paper);
  border: 1px solid rgba(13, 13, 14, 0.12);
  border-radius: 999px;
  font-family: var(--aiv-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #4a4a4a;
  white-space: nowrap;
}
.aiv-hero-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--aiv-cream);
  border: 1px solid rgba(13, 13, 14, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.aiv-hero-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--tile-grad);
  color: #ffffff;
  transition: background 0.2s ease;
}
.aiv-hero-tile-body {
  flex: 1;
  min-width: 0;
}
.aiv-hero-tile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.aiv-hero-tile-name {
  font-family: var(--aiv-sans);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--aiv-ink);
}
.aiv-hero-tile-pill {
  font-family: var(--aiv-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tile-grad);
  color: #ffffff;
  white-space: nowrap;
}
.aiv-hero-tile-desc {
  font-size: 13.5px;
  color: var(--aiv-ink-soft);
  margin-top: 2px;
  line-height: 1.4;
}
.aiv-hero-tile-chevron {
  flex-shrink: 0;
  color: var(--aiv-ink-soft);
}
.aiv-hero-tile:hover,
.aiv-hero-tile:focus-visible {
  background: var(--tile-grad);
  border-color: transparent;
  box-shadow: 0 12px 28px -14px rgba(13, 13, 14, 0.35);
}
.aiv-hero-tile:hover .aiv-hero-tile-icon,
.aiv-hero-tile:focus-visible .aiv-hero-tile-icon {
  background: rgba(255, 255, 255, 0.18);
}
.aiv-hero-tile:hover .aiv-hero-tile-name,
.aiv-hero-tile:focus-visible .aiv-hero-tile-name,
.aiv-hero-tile:hover .aiv-hero-tile-desc,
.aiv-hero-tile:focus-visible .aiv-hero-tile-desc {
  /* Light gradients (amber SI) hover with ink instead of white -- the tile
     sets --tile-hover-ink per product. */
  color: var(--tile-hover-ink, #ffffff);
}
.aiv-hero-tile:hover .aiv-hero-tile-pill,
.aiv-hero-tile:focus-visible .aiv-hero-tile-pill {
  background: rgba(255, 255, 255, 0.22);
}
.aiv-hero-tile:hover .aiv-hero-tile-chevron,
.aiv-hero-tile:focus-visible .aiv-hero-tile-chevron {
  color: var(--tile-hover-ink, rgba(255, 255, 255, 0.85));
}
.aiv-hero-tile:hover .aiv-hero-tile-pill,
.aiv-hero-tile:focus-visible .aiv-hero-tile-pill {
  color: var(--tile-hover-ink, #ffffff);
}

/* ============================================================================
   /signup split layout (design-spec section 3) -- a fixed 600px LEFT brand
   panel (mesh + grid + the three.js particle scene + wordmark + footer
   domain) beside a fluid RIGHT auth column (left-aligned 400px content,
   flat/gradient background per brand). Used only by assets/theme.py's
   login_frame() -- the /signup and /signup/workspace pages.

   The RIGHT panel hosts the three.js dotted-lattice animation (public/js/
   aiv-signup-visual.js, owned by a parallel task -- not edited here) plus a
   small eyebrow/headline/wordmark text block; its own background color comes
   from login_frame's per-brand panel_bg inline style (written on the canvas's
   own parent -- aiv-signup-visual.js reads that inline style to decide
   light/dark glow blending) and is the fallback if WebGL/three.js is
   unavailable.
   ============================================================================ */
.aiv-split {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 600px 1fr;
}
.aiv-brand-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 44px 48px;
}
.aiv-brand-panel-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.aiv-brand-panel-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
}
.aiv-brand-eyebrow {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--aiv-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.aiv-brand-eyebrow .aiv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.aiv-brand-center {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aiv-brand-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 480 / 340;
}
.aiv-signup-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.aiv-split-right-text {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  pointer-events: none;
}
.aiv-split-eyebrow {
  font-family: var(--aiv-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.aiv-split-headline {
  font-family: var(--aiv-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 320px;
}
.aiv-split-wordmark {
  margin-top: 4px;
  opacity: 0.96;
}
.aiv-brand-footer {
  position: relative;
  z-index: 2;
  flex: none;
  font-family: var(--aiv-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.aiv-brand-footer-headline {
  font-family: var(--aiv-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #ffffff;
}

.aiv-auth-column {
  display: flex;
  align-items: center;
  justify-content: center; /* keep the 400px auth block centered on wide screens */
  min-height: 100vh;
  box-sizing: border-box;
  padding: 40px;
}
.aiv-auth-content {
  width: 100%;
  max-width: 400px;
}

/* Right auth column type scale (design-spec section 3b). */
.aiv-auth-eyebrow {
  font-family: var(--aiv-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--aiv-ink-soft);
  margin: 0 0 14px;
}
.aiv-auth-title {
  font-family: var(--aiv-sans);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--aiv-ink);
  margin: 0 0 10px;
}
.aiv-auth-subtitle {
  font-size: 15px;
  color: var(--aiv-ink-soft);
  margin: 0 0 36px;
}
.aiv-auth-legal {
  font-size: 12px;
  color: var(--aiv-ink-soft);
  line-height: 1.6;
  margin-top: 20px;
}
.aiv-auth-signin-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--aiv-line-soft);
  font-size: 13.5px;
  color: var(--aiv-ink-soft);
}

/* Workspace step input field (aivory-brand.v3.css .pf-v5-c-form-control),
   scoped so nothing outside a .aiv-input-field wrapper is touched -- does not
   depend on the .aiv-card wrapper (the split layout has no card chrome). */
.aiv-input-field .q-field__control {
  background: #fdfcfa !important;
  border: 1px solid var(--aiv-line) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  padding: 0 14px !important;
}
.aiv-input-field .q-field--outlined .q-field__control:before,
.aiv-input-field .q-field--outlined .q-field__control:after {
  border: none !important;
}
.aiv-input-field .q-field__native {
  color: var(--aiv-ink) !important;
  font-family: var(--aiv-sans) !important;
  font-size: 15px !important;
}
.aiv-input-field .q-field--focused .q-field__control {
  border-color: var(--aiv-blue) !important;
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.16) !important;
}

/* Below 1024px the brand panel hides entirely; the auth column takes the
   full viewport width. */
@media (max-width: 1024px) {
  .aiv-split {
    grid-template-columns: 1fr;
  }
  .aiv-brand-panel {
    display: none;
  }
  .aiv-auth-column {
    padding-left: 24px;
  }
}
@media (max-width: 520px) {
  .aiv-auth-column {
    padding: 24px 16px;
  }
  .aiv-brand-panel {
    padding: 24px 20px 32px;
  }
}

/* ============================================================================
   Smart Inference plans page (content/inference/plans.py) -- P0 visual-quality
   fix. Reuses the aivory-hugo Smart Inference marketing page's section
   treatments (aivory-hugo/themes/aivory/layouts/_default/smart-inference.html
   .si-hero / .si-code-mockup / .si-cta), recolored to this stylesheet's cream
   editorial system with the amber #F59E0B Smart Inference product accent
   (content.common.product_context.PRODUCT_COLORS[SMART_INFERENCE]). Appended
   only -- no rule above this point is modified.
   ============================================================================ */

/* ---- Hero banner: eyebrow + h1 + subhead + PAYG badge + CTA grouped into
   one bordered card so the CTA reads as part of the hero, not a floating
   orphan pill underneath it (was: ui.row() CTA alone below the subhead). ---- */
.aiv-hero-banner {
  position: relative;
  background: var(--aiv-cream-paper);
  border: 1px solid rgba(13, 13, 14, 0.08);
  border-radius: 24px;
  padding: 44px 44px 40px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(13, 13, 14, 0.05), 0 20px 48px -24px rgba(13, 13, 14, 0.16);
}
.aiv-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(640px 320px at 88% -10%, var(--hero-glow, rgba(245, 158, 11, 0.14)) 0%, transparent 60%);
}
.aiv-hero-banner > * {
  position: relative;
  z-index: 1;
}
.aiv-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.aiv-payg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--badge-tint, rgba(245, 158, 11, 0.1));
  border: 1px solid var(--badge-border, rgba(245, 158, 11, 0.3));
  font-family: var(--aiv-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--badge-color, #b45309);
}
.aiv-payg-badge .aiv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ---- GPU pricing section eyebrow (mono caption above the table, matching
   Guard's .aiv-compare-label above its comparison table) + empty/loading
   state (replaces the bare "GPU pricing is loading..." text card with a
   styled placeholder when the marketplace fetch returns no data). ---- */
.aiv-section-eyebrow {
  font-family: var(--aiv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aiv-ink-soft);
  text-align: center;
  margin: 0 auto 12px;
}
.aiv-gpu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 48px 32px;
  background: var(--aiv-cream-paper);
  border: 2px dashed rgba(13, 13, 14, 0.14);
  border-radius: 18px;
}
.aiv-gpu-empty-title {
  font-family: var(--aiv-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--aiv-ink);
}
.aiv-gpu-empty-body {
  font-size: 0.9rem;
  color: var(--aiv-ink-soft);
  max-width: 380px;
}

/* ---- Dark code panel: chrome header (traffic-light dots + language label)
   sits above the code body, so the code element's own copy button -- which
   nicegui positions with Tailwind utility classes (absolute/right-2/top-2/
   opacity-20) that public/css/main.css defines but cream_frame() does NOT
   load on this page -- gets an explicit, non-Tailwind-dependent position and
   enough top/right clearance from the code text that it can never overlap
   it. Without this override the button falls back to static in-flow
   placement flush against the code block, which read as "overlapping". ---- */
.aiv-code-panel {
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(13, 13, 14, 0.5);
}
.aiv-code-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.aiv-code-panel-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.aiv-code-panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.aiv-code-panel-dots span:nth-child(1) {
  background: #ff5f56;
}
.aiv-code-panel-dots span:nth-child(2) {
  background: #ffbd2e;
}
.aiv-code-panel-dots span:nth-child(3) {
  background: #27c93f;
}
.aiv-code-panel-lang {
  font-family: var(--aiv-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.aiv-code-panel-body {
  padding: 4px 0;
}
.aiv-code-panel-body .nicegui-code {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.aiv-code-panel-body .nicegui-markdown {
  overflow-x: auto;
}
.aiv-code-panel-body .codehilite {
  padding: 16px 52px 16px 18px !important;
  margin: 0 !important;
}
.aiv-code-panel-body .codehilite pre {
  margin: 0 !important;
}
.aiv-code-panel-body .codehilite,
.aiv-code-panel-body .codehilite * {
  font-family: var(--aiv-mono) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #f4f1ea !important;
  background: transparent !important;
}
.aiv-code-panel-body .nicegui-code > button {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  opacity: 0.7 !important;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.aiv-code-panel-body .nicegui-code > button .q-icon {
  color: #f4f1ea !important;
}
.aiv-code-panel-body .nicegui-code > button:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  opacity: 1 !important;
}

/* ---- Bottom CTA banner: full-width cream-2 band with headline + one black
   pill, replacing a lone centered button (the "bottom CTA button looks bad"
   complaint). Uses the standard full-bleed technique to escape the page's
   max-width wrapper -- safe here because every ancestor div between this
   element and <body> is symmetrically centered (padding or margin:auto on
   both sides), which is what the left:50%/-50vw math requires. ---- */
.aiv-cta-banner {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 56px;
  box-sizing: border-box;
  background: var(--aiv-cream-2);
  border-top: 1px solid var(--aiv-line-soft);
  border-bottom: 1px solid var(--aiv-line-soft);
  padding: 56px 24px;
}
.aiv-cta-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.aiv-cta-banner-title {
  font-family: var(--aiv-sans);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--aiv-ink);
  margin: 0 0 12px;
}
.aiv-cta-banner-sub {
  font-size: 15px;
  color: var(--aiv-ink-soft);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* ---- Full-bleed particle canvas (fix: the wrap painted its own background
   over the mesh, creating a visible seam box; the scene also only filled a
   fraction of the panel). The wrap now stretches over the whole panel,
   transparent, under the eyebrow/footer text layers. ---------------------- */
.aiv-brand-canvas-wrap {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  z-index: 0 !important;
}
.aiv-signup-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* The canvas wrap must anchor to the PANEL, not the padded inner
   .aiv-brand-center box -- release the inner positioning context. */
.aiv-brand-center {
  position: static !important;
}
/* The spec-era wrap rule pinned an explicit 480x340 frame; with inset:0 the
   explicit size wins over stretching. Force auto so inset stretches it. */
.aiv-brand-canvas-wrap {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}
.aiv-brand-canvas-wrap {
  aspect-ratio: auto !important;
}

/* ---- Auth column: cream canvas + card (user: "super empty... misses some
   background color"). The column paints the brand cream canvas (grid +
   glows, same recipe as .aiv-canvas) and the auth content sits in the
   .aiv-card white card -- the exact Keycloak-login family language. ------- */
.aiv-auth-column {
  background-color: var(--aiv-cream);
  background-image:
    linear-gradient(rgba(13, 13, 14, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 14, 0.022) 1px, transparent 1px),
    radial-gradient(900px 460px at 85% -6%, rgba(232, 121, 43, 0.10) 0%, rgba(232, 121, 43, 0) 55%),
    radial-gradient(760px 520px at 10% 108%, rgba(26, 155, 142, 0.07) 0%, rgba(26, 155, 142, 0) 60%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
.aiv-auth-content {
  max-width: 440px;
  background: var(--aiv-card);
  border: 1px solid var(--aiv-line-soft);
  border-radius: 20px;
  box-shadow:
    0 28px 60px -26px rgba(13, 13, 14, 0.28),
    0 6px 16px -8px rgba(13, 13, 14, 0.08);
  padding: 40px 38px 34px;
  box-sizing: border-box;
}
@media (max-width: 520px) {
  .aiv-auth-content {
    padding: 30px 22px 26px;
    border-radius: 16px;
  }
}

/* ---- Panel center wordmark block (design-spec 3a, per the approved canvas):
   big typographic brand name + tagline centered ABOVE the particle field.
   The animation is an ambient accent behind this block. ------------------- */
.aiv-panel-center-block {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  pointer-events: none;
}
.aiv-pname-aivory {
  font-family: var(--aiv-sans);
  font-weight: 800;
  font-size: 120px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}
.aiv-pname-slaide {
  font-family: var(--aiv-sans);
  font-weight: 800;
  font-size: 76px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}
.aiv-pname-kronk {
  font-family: 'Space Grotesk', var(--aiv-sans);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}
.aiv-ptagline {
  font-family: var(--aiv-sans);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  color: #ffffff;
  max-width: 380px;
}
.aiv-ptagline-slaide {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: #ffffff;
  max-width: 380px;
}
.aiv-ptagline-support {
  font-family: var(--aiv-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}
/* Fraunces for the Slaide tagline (self-hosted; the 600 upright file --
   the italic class synthesizes the slant, matching the site's usage). */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/slaide/fraunces/Fraunces-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* The static dot field anchors inside the center block. */
.aiv-panel-center-block {
  position: relative;
}

/* Full-bleed sections built on 100vw (e.g. .aiv-cta-banner) overflow by the
   vertical-scrollbar width -- the classic 100vw pitfall. Clip the frame root
   so the page never grows a horizontal scrollbar. */
.aiv-canvas {
  overflow-x: clip;
}
