/* KeelBase product page (keelcon.com/KeelBase/).

   Loaded after /styles.css and /css/keellock.css: the product pages share
   that file's marketing layout (hero, sections, feature cards, tables, the
   product bar). This file adds KeelBase's periwinkle accent, the three
   edition cards and the page's own pictures. */

.in-base {
  --kb: #7c9cff;
  --kb-light: #a5b4ff;
  --kb-soft: rgba(124, 156, 255, 0.12);
  --kb-line: rgba(124, 156, 255, 0.35);
}

.in-base main a:not(.btn) { color: var(--kb-light); }
.in-base main a:not(.btn):hover { color: #c9d3ff; }
.in-base .hero-title em { background: linear-gradient(90deg, var(--kb-light), var(--kb) 55%, var(--teal)); -webkit-background-clip: text; background-clip: text; }
.in-base .feature-icon { color: var(--kb-light); background: var(--kb-soft); }
.in-base .feature:hover { border-color: var(--kb-line); }
.in-base .feature-featured { background: linear-gradient(135deg, rgba(124, 156, 255, 0.1), rgba(62, 224, 196, 0.05)); border-color: var(--kb-line); }
.in-base .section-alt { background: linear-gradient(180deg, transparent, rgba(124, 156, 255, 0.04) 30%, rgba(62, 224, 196, 0.03) 70%, transparent); }
.in-base .cta-card { background: linear-gradient(135deg, rgba(124, 156, 255, 0.11), rgba(62, 224, 196, 0.06)); }
.in-base .trust li:first-child, .in-base .trust li:nth-child(2) { color: #c9d3ff; border-color: var(--kb-line); }
.base-bar .lock-brand b { color: var(--kb); }

/* Hero: interfaces over the engine over the two stores ---------------------- */

.kb-stack { display: grid; gap: 0.7rem; width: 100%; max-width: 460px; margin: 0; padding: 1.25rem; background: linear-gradient(160deg, rgba(124, 156, 255, 0.08), rgba(13, 19, 29, 0.6)); border: 1px solid var(--kb-line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.kb-stack-head { display: flex; align-items: center; gap: 0.55rem; font-size: 1.15rem; font-weight: 600; }
.kb-stack-head .brand-mark { width: 30px; height: 30px; }
.kb-stack-head b { color: var(--kb); }
.kb-apis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.kb-apis li { padding: 0.45rem 0.3rem; font-size: 0.8rem; font-weight: 600; text-align: center; color: #c9d3ff; background: var(--kb-soft); border: 1px solid var(--kb-line); border-radius: 8px; }
.kb-apis li:nth-child(n + 4) { color: var(--teal); background: var(--teal-soft); border-color: rgba(62, 224, 196, 0.3); }
.kb-engine { display: grid; gap: 0.1rem; padding: 0.75rem; text-align: center; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); border-radius: 10px; }
.kb-engine span, .kb-store span { font-size: 0.78rem; color: var(--muted); }
.kb-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.kb-store { display: grid; gap: 0.1rem; padding: 0.8rem 0.5rem; text-align: center; background: rgba(124, 156, 255, 0.05); border: 1px solid var(--border); border-radius: 8px 8px 16px 16px; }
.kb-store b, .kb-engine b { font-size: 0.92rem; }

/* Editions ------------------------------------------------------------------ */

.kb-editions { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .kb-editions { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .kb-editions { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .kb-editions .product-name { font-size: 1.25rem; }
}
.edition { display: flex; flex-direction: column; }
.edition-trial .product-name { color: var(--teal); }
.edition-edu { border-color: rgba(62, 224, 196, 0.3); }
.edition-edu .product-name { color: var(--teal); }
.edition-trial .product-name { color: var(--text); }
.tag-edu { color: var(--teal); background: var(--teal-soft); }
.edition-pro { border-color: var(--kb-line); }
.edition-pro .product-name { color: var(--kb-light); }
.edition-ultra { border-color: rgba(242, 210, 122, 0.35); background: linear-gradient(160deg, rgba(242, 210, 122, 0.06), var(--card) 60%); }
.edition-ultra .product-name { color: var(--gold); }
.edition .product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; }
.price-was { font-size: 1rem; color: var(--muted); }
.tag-offer { color: #17130a; background: linear-gradient(135deg, var(--gold), #e8b94d); }
/* keellock.css brightens the first model's column; here all editions read alike. */
.compare-editions td, .compare-editions td:first-of-type { color: var(--text); white-space: normal; }
@media (min-width: 640px) {
  .compare-editions tbody th { width: 24%; }
}

/* Interfaces and platforms --------------------------------------------------- */

.kb-ifaces { display: grid; gap: 0.9rem; margin: 0.8rem 0 0; }
.kb-ifaces dt { font-weight: 650; color: var(--text); }
.kb-ifaces dd { margin: 0.15rem 0 0; font-size: 0.93rem; }
.kb-platforms { margin-top: 1.25rem; }

/* Licensing ------------------------------------------------------------------ */

.kb-steps { display: grid; gap: 1rem; margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: kb-step; }
@media (min-width: 640px) {
  .kb-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .kb-steps { grid-template-columns: repeat(4, 1fr); }
}
.kb-steps li { counter-increment: kb-step; }
.kb-steps li::before { content: counter(kb-step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 0.7rem; font-weight: 700; color: var(--kb-light); background: var(--kb-soft); border-radius: 50%; }
.kb-steps h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.kb-steps p { margin: 0; font-size: 0.93rem; }
.kb-license-points { max-width: 40rem; margin: 0 auto 1rem; }
.kb-support { margin: 1rem 0 0; }

/* The signed-in guide (/KeelBase/start) -------------------------------------- */

.kb-start { display: grid; gap: 1.25rem; padding-bottom: 4rem; }
@media (min-width: 860px) {
  .kb-start { grid-template-columns: 1fr 1fr; }
  .kb-start-wide { grid-column: 1 / -1; }
}
.kb-start h2 { font-size: 1.2rem; }
.kb-start .checks { margin-bottom: 0; }
.kb-start-edu { border-color: rgba(62, 224, 196, 0.35); }
.kb-edu-hint { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.kb-start-steps { margin: 0.4rem 0 1.2rem; padding-left: 1.3rem; }
.kb-start-steps li { padding: 0.25rem 0; }
.kb-ultra-note { margin: 0 0 1.2rem; padding: 0.7rem 0.9rem; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 8px 8px 0; }
.kb-start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.kb-start-actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Licenses on /KeelBase/start and /KeelBase/admin -------------------------- */

.kb-license-form { display: grid; gap: 0.75rem; align-content: start; max-width: 32rem; margin: 1.2rem 0; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.kb-license-form h3 { margin: 0; font-size: 1.05rem; }
.kb-license-form p { margin: 0; }
.kb-license-form .btn { justify-self: start; }
.kb-cmd { margin: 0; padding: 0.55rem 0.75rem; overflow-x: auto; font-size: 0.85rem; white-space: pre; color: var(--text); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 8px; }
.kb-new-code { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid rgba(62, 224, 196, 0.35); border-radius: var(--radius-sm); background: var(--teal-soft); }
.kb-new-code p { margin: 0 0 0.6rem; }
.kb-code { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; user-select: all; word-break: break-all; }
.kb-open-codes ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.kb-open-codes p { margin: 0; }
.kb-activations-title { margin: 1.6rem 0 0.6rem; font-size: 1.05rem; }
.kb-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.kb-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.kb-table th, .kb-table td { padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.kb-table tr:last-child td { border-bottom: 0; }
.kb-table thead th { font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.kb-sub { display: block; margin-top: 0.2rem; }
.kb-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.kb-break { word-break: break-all; }
.kb-files { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.kb-install-hint { margin: 0.8rem 0 0.4rem; }
.kb-admin { display: grid; gap: 1.25rem; padding-bottom: 4rem; }
@media (min-width: 860px) {
  .kb-admin { grid-template-columns: 1fr 1fr; }
}
.kb-admin h2 { font-size: 1.15rem; }
.kb-admin-actions { display: grid; gap: 0.4rem; min-width: 15rem; }
.kb-admin-actions form { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.kb-admin-actions input, .kb-domain-form input { min-width: 0; flex: 1 1 8rem; padding: 0.35rem 0.55rem; font: inherit; font-size: 0.85rem; color: var(--text); background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-strong); border-radius: 8px; }
.kb-domain-form { display: grid; gap: 0.6rem; margin-top: 1rem; }
.kb-domain-form .btn { justify-self: start; }
.kb-events { margin: 0; padding: 0; list-style: none; }
.kb-events li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.kb-events li:last-child { border-bottom: 0; }
