/* ==========================================================================
   Center Tactical — Site Styles (consuming design tokens)
   ========================================================================== */

/* ── Google Fonts Import ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ── Blazor reconnect / error UI (hidden by default; framework toggles) ───── */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #1a1a1a;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--ot-font-body);
    font-size: var(--ot-text-base);
    line-height: var(--ot-leading-normal);
    color: var(--ot-color-text);
    background-color: var(--ot-color-bg);
    transition: background-color var(--ot-transition-base), color var(--ot-transition-base);
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ot-font-heading);
    font-weight: var(--ot-weight-bold);
    line-height: var(--ot-leading-tight);
    text-transform: var(--ot-heading-transform);
    letter-spacing: var(--ot-tracking-wide);
    color: var(--ot-color-text);
    margin-top: 0;
}

h1 { font-size: var(--ot-text-4xl); }
h2 { font-size: var(--ot-text-3xl); }
h3 { font-size: var(--ot-text-2xl); }
h4 { font-size: var(--ot-text-xl); }
h5 { font-size: var(--ot-text-lg); }
h6 { font-size: var(--ot-text-base); }

a {
    color: var(--ot-color-text-link);
    text-decoration: none;
    transition: color var(--ot-transition-fast);
}
a:hover {
    color: var(--ot-color-text-link-hover);
}

p {
    margin-top: 0;
    margin-bottom: var(--ot-space-4);
    color: var(--ot-color-text-secondary);
}

small, .text-muted {
    color: var(--ot-color-text-muted);
    font-size: var(--ot-text-sm);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ot-space-2);
    padding: var(--ot-space-2) var(--ot-space-4);
    font-family: var(--ot-font-body);
    font-size: var(--ot-text-sm);
    font-weight: var(--ot-weight-semibold);
    line-height: var(--ot-leading-normal);
    border: 1px solid transparent;
    border-radius: var(--ot-radius-button);
    cursor: pointer;
    transition: all var(--ot-transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--ot-color-primary);
    color: var(--ot-color-primary-contrast);
    border-color: var(--ot-color-primary);
}
.btn-primary:hover {
    background-color: var(--ot-color-primary-dark);
    border-color: var(--ot-color-primary-dark);
}

.btn-accent {
    background-color: var(--ot-color-accent);
    color: var(--ot-color-accent-contrast);
    border-color: var(--ot-color-accent);
}
.btn-accent:hover {
    background-color: var(--ot-color-accent-dark);
    border-color: var(--ot-color-accent-dark);
}

.btn-secondary {
    background-color: var(--ot-color-secondary);
    color: var(--ot-color-secondary-contrast);
    border-color: var(--ot-color-secondary);
}
.btn-secondary:hover {
    background-color: var(--ot-color-secondary-dark);
    border-color: var(--ot-color-secondary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--ot-color-primary);
    border-color: var(--ot-color-primary);
}
.btn-outline:hover {
    background-color: var(--ot-color-primary);
    color: var(--ot-color-primary-contrast);
}

.btn-lg {
    padding: var(--ot-space-3) var(--ot-space-6);
    font-size: var(--ot-text-base);
}

.btn-sm {
    padding: var(--ot-space-1) var(--ot-space-3);
    font-size: var(--ot-text-xs);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
    background-color: var(--ot-color-surface);
    border: 1px solid var(--ot-color-border);
    border-radius: var(--ot-radius-card);
    box-shadow: var(--ot-shadow-sm);
    transition: box-shadow var(--ot-transition-fast), transform var(--ot-transition-fast);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--ot-shadow-md);
}
.card-body {
    padding: var(--ot-space-4);
}
.card-header {
    padding: var(--ot-space-3) var(--ot-space-4);
    border-bottom: 1px solid var(--ot-color-border);
    font-family: var(--ot-font-heading);
    font-weight: var(--ot-weight-semibold);
    text-transform: var(--ot-heading-transform);
    letter-spacing: var(--ot-tracking-wide);
}
.card-footer {
    padding: var(--ot-space-3) var(--ot-space-4);
    border-top: 1px solid var(--ot-color-border);
    background-color: var(--ot-color-bg-alt);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--ot-space-2) var(--ot-space-3);
    font-family: var(--ot-font-body);
    font-size: var(--ot-text-base);
    color: var(--ot-color-text);
    background-color: var(--ot-color-surface);
    border: 1px solid var(--ot-color-border);
    border-radius: var(--ot-radius-input);
    transition: border-color var(--ot-transition-fast), box-shadow var(--ot-transition-fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ot-color-border-focus);
    box-shadow: 0 0 0 3px rgba(74, 93, 35, 0.15);
}

.form-label {
    display: block;
    margin-bottom: var(--ot-space-1);
    font-size: var(--ot-text-sm);
    font-weight: var(--ot-weight-medium);
    color: var(--ot-color-text);
}

.form-group {
    margin-bottom: var(--ot-space-4);
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--ot-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ot-space-4);
    padding-right: var(--ot-space-4);
}

.grid {
    display: grid;
    gap: var(--ot-space-4);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--ot-space-2); }
.gap-4 { gap: var(--ot-space-4); }
.gap-6 { gap: var(--ot-space-6); }

/* ── Section Spacing ──────────────────────────────────────────────────────── */
.section {
    padding: var(--ot-space-16) 0;
}
.section-sm {
    padding: var(--ot-space-8) 0;
}

/* ── Header/Navbar ────────────────────────────────────────────────────────── */
.site-header {
    height: var(--ot-header-height);
    background-color: var(--ot-color-header-bg, var(--ot-color-primary));
    color: var(--ot-color-header-text, var(--ot-color-primary-contrast));
    display: flex;
    align-items: center;
    padding: 0 var(--ot-space-6);
    position: sticky;
    top: 0;
    z-index: var(--ot-z-sticky);
    box-shadow: var(--ot-shadow-md);
    border-bottom: 1px solid var(--ot-color-header-border, transparent);
}
.site-header a {
    color: var(--ot-color-header-text, var(--ot-color-primary-contrast));
    font-weight: var(--ot-weight-semibold);
}
.site-header .logo {
    font-family: var(--ot-font-heading);
    font-size: var(--ot-text-xl);
    text-transform: var(--ot-heading-transform);
    letter-spacing: var(--ot-tracking-wider);
    text-decoration: none;
}
.site-header nav {
    display: flex;
    gap: var(--ot-space-6);
    margin-left: auto;
}
.site-header nav a {
    font-size: var(--ot-text-sm);
    opacity: 0.85;
    transition: opacity var(--ot-transition-fast);
}
.site-header nav a:hover {
    opacity: 1;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
    background-color: var(--ot-color-primary);
    color: var(--ot-color-primary-contrast);
    padding: var(--ot-space-20) var(--ot-space-6);
    text-align: center;
}
.hero h1 {
    color: var(--ot-color-primary-contrast);
    font-size: var(--ot-text-5xl);
    margin-bottom: var(--ot-space-4);
}
.hero p {
    color: var(--ot-color-primary-contrast);
    opacity: 0.9;
    font-size: var(--ot-text-lg);
    max-width: 640px;
    margin: 0 auto var(--ot-space-8);
}
.hero .btn {
    margin: 0 var(--ot-space-2);
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--ot-space-1) var(--ot-space-2);
    font-size: var(--ot-text-xs);
    font-weight: var(--ot-weight-semibold);
    border-radius: var(--ot-radius-full);
    line-height: 1;
}
.badge-primary {
    background-color: var(--ot-color-primary);
    color: var(--ot-color-primary-contrast);
}
.badge-accent {
    background-color: var(--ot-color-accent);
    color: var(--ot-color-accent-contrast);
}
.badge-danger {
    background-color: var(--ot-color-danger);
    color: #ffffff;
}
.badge-success {
    background-color: var(--ot-color-success);
    color: #ffffff;
}
.badge-warning {
    background-color: var(--ot-color-warning);
    color: #1a1a1a;
}

/* ── Compliance Alert Badges ──────────────────────────────────────────────── */
.alert-block    { background-color: var(--ot-color-alert-block);    color: #fff; }
.alert-warning  { background-color: var(--ot-color-alert-warning);  color: #fff; }
.alert-advisory { background-color: var(--ot-color-alert-advisory); color: #1a1a1a; }
.alert-info     { background-color: var(--ot-color-alert-info);     color: #fff; }
.alert-audit    { background-color: var(--ot-color-alert-audit);    color: #fff; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--ot-text-sm);
}
.table th {
    text-align: left;
    padding: var(--ot-space-3) var(--ot-space-4);
    background-color: var(--ot-color-bg-alt);
    font-weight: var(--ot-weight-semibold);
    border-bottom: 2px solid var(--ot-color-border-strong);
    font-family: var(--ot-font-heading);
    text-transform: var(--ot-heading-transform);
    letter-spacing: var(--ot-tracking-wide);
    font-size: var(--ot-text-xs);
}
.table td {
    padding: var(--ot-space-3) var(--ot-space-4);
    border-bottom: 1px solid var(--ot-color-border);
}
.table tr:hover td {
    background-color: var(--ot-color-surface-hover);
}

/* ── Price Display ────────────────────────────────────────────────────────── */
.price {
    font-family: var(--ot-font-heading);
    font-weight: var(--ot-weight-bold);
    font-size: var(--ot-text-2xl);
    color: var(--ot-color-primary);
}
.price-strike {
    text-decoration: line-through;
    color: var(--ot-color-text-muted);
    font-size: var(--ot-text-base);
    font-weight: var(--ot-weight-normal);
}
.price-member {
    color: var(--ot-color-accent-dark);
}

/* ── Stat Cards (Dashboard) ───────────────────────────────────────────────── */
.stat-card {
    background-color: var(--ot-color-surface);
    border: 1px solid var(--ot-color-border);
    border-radius: var(--ot-radius-card);
    padding: var(--ot-space-4);
    text-align: center;
}
.stat-card .stat-value {
    font-family: var(--ot-font-heading);
    font-size: var(--ot-text-3xl);
    font-weight: var(--ot-weight-bold);
    color: var(--ot-color-primary);
}
.stat-card .stat-label {
    font-size: var(--ot-text-sm);
    color: var(--ot-color-text-muted);
    text-transform: var(--ot-heading-transform);
    letter-spacing: var(--ot-tracking-wide);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--ot-color-footer-bg, var(--ot-color-secondary));
    color: var(--ot-color-footer-text, var(--ot-color-secondary-contrast));
    padding: var(--ot-space-12) var(--ot-space-6);
}
.site-footer h4,
.site-footer h5 {
    color: var(--ot-color-footer-heading, var(--ot-color-accent));
}
.site-footer a {
    color: var(--ot-color-footer-link, var(--ot-color-accent));
}
.site-footer a:hover {
    color: var(--ot-color-footer-link-hover, var(--ot-color-accent-light));
}
.site-footer a {
    color: var(--ot-color-accent);
}
.site-footer a:hover {
    color: var(--ot-color-accent-light);
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: var(--ot-space-4); }
.mt-8 { margin-top: var(--ot-space-8); }
.mb-4 { margin-bottom: var(--ot-space-4); }
.mb-8 { margin-bottom: var(--ot-space-8); }
.p-4 { padding: var(--ot-space-4); }
.p-6 { padding: var(--ot-space-6); }
.w-full { width: 100%; }
.hidden { display: none; }

/* ── Promo Popup Modal ────────────────────────────────────────────────────── */
.promo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.promo-modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
}
.promo-modal-card {
    position: relative;
    width: min(480px, 90vw);
    background: var(--ot-color-bg);
    border-radius: var(--ot-radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.promo-modal-backdrop.visible .promo-modal-card {
    transform: translateY(0) scale(1);
}
.promo-modal-hero {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, var(--ot-color-primary), var(--ot-color-secondary, var(--ot-color-primary)));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ot-color-primary-contrast);
    padding: var(--ot-space-6);
    overflow: hidden;
}
.promo-modal-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}
.promo-modal-hero > *:not(.promo-modal-hero-bg) { position: relative; z-index: 1; }
.promo-modal-logo {
    width: 80px;
    height: auto;
    margin-bottom: var(--ot-space-3);
}
.promo-modal-badge {
    display: inline-block;
    background: var(--ot-color-accent);
    color: var(--ot-color-accent-contrast, #fff);
    font-size: var(--ot-text-xs);
    font-weight: var(--ot-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--ot-space-1) var(--ot-space-4);
    border-radius: var(--ot-radius-sm);
    margin-bottom: var(--ot-space-3);
}
.promo-modal-headline {
    font-family: var(--ot-font-heading);
    font-size: var(--ot-text-2xl);
    font-weight: var(--ot-weight-bold);
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 0;
}
.promo-modal-body {
    padding: var(--ot-space-6) var(--ot-space-8);
    text-align: center;
}
.promo-modal-body h3 {
    font-size: var(--ot-text-xl);
    margin-bottom: var(--ot-space-2);
}
.promo-modal-body p {
    font-size: var(--ot-text-sm);
    color: var(--ot-color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--ot-space-6);
}
.promo-modal-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--ot-space-3);
    margin-bottom: var(--ot-space-6);
    flex-wrap: wrap;
}
.promo-modal-price .price-new {
    font-family: var(--ot-font-heading);
    font-size: var(--ot-text-4xl);
    font-weight: var(--ot-weight-bold);
    color: var(--ot-color-primary);
}
.promo-modal-price .price-old {
    font-size: var(--ot-text-lg);
    color: var(--ot-color-text-muted);
    text-decoration: line-through;
}
.promo-modal-price .price-save {
    font-size: var(--ot-text-xs);
    font-weight: var(--ot-weight-bold);
    color: var(--ot-color-danger, #b91c1c);
    background: rgba(185, 28, 28, 0.12);
    padding: var(--ot-space-1) var(--ot-space-3);
    border-radius: var(--ot-radius-sm);
}
.promo-modal-footer {
    display: flex;
    flex-direction: column;
    gap: var(--ot-space-3);
    align-items: center;
}
.promo-modal-dismiss {
    background: none;
    border: none;
    color: var(--ot-color-text-muted);
    font-size: var(--ot-text-xs);
    cursor: pointer;
    padding: var(--ot-space-2);
    transition: color 0.15s ease;
}
.promo-modal-dismiss:hover { color: var(--ot-color-text); }
.promo-modal-close {
    position: absolute;
    top: var(--ot-space-3);
    right: var(--ot-space-3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: var(--ot-text-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 10;
    line-height: 1;
}
.promo-modal-close:hover { background: rgba(0, 0, 0, 0.5); }
@media (max-width: 768px) {
    .promo-modal-card { width: 92vw; }
    .promo-modal-body { padding: var(--ot-space-5); }
}

/* ── ActiveBannerStrip ─────────────────────────────────────────────── */
.banner-strip {
    background: var(--ot-color-accent);
    color: var(--ot-color-accent-contrast);
    padding: var(--ot-space-2) var(--ot-space-4);
    text-align: center;
    font-size: var(--ot-text-sm);
}
.banner-strip-item + .banner-strip-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--ot-space-2);
    margin-top: var(--ot-space-2);
}
.banner-strip a {
    color: inherit;
    text-decoration: underline;
}

/* ── Public marketing site ──────────────────────────────────────────── */
.public-marketing-header {
    background: var(--ot-color-bg);
    border-bottom: 1px solid var(--ot-color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.public-marketing-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--ot-space-2);
    color: var(--ot-color-text);
    text-decoration: none;
    font-size: var(--ot-text-lg);
}
/* Reticle mark: strokes follow currentColor; gold accents are inline. */
.ot-reticle-mark {
    width: 2rem;
    height: 2rem;
    flex: none;
    color: var(--ot-color-text);
}
.ot-wordmark {
    font-family: var(--ot-font-heading);
    font-weight: var(--ot-weight-bold);
    letter-spacing: var(--ot-tracking-wide);
    text-transform: uppercase;
    line-height: 1;
}
.ot-wordmark b { color: var(--ot-color-accent); font-weight: inherit; }
.public-marketing-logo--footer .ot-reticle-mark { width: 1.75rem; height: 1.75rem; }
.public-marketing-logo--footer { font-size: var(--ot-text-base); margin-bottom: var(--ot-space-2); }
.public-marketing-header nav a {
    color: var(--ot-color-text);
    text-decoration: none;
}
.public-marketing-header nav a:hover { color: var(--ot-color-primary); }
.public-marketing-main { min-height: 60vh; }
.public-marketing-footer {
    background: var(--ot-color-bg-alt);
    padding: var(--ot-space-10) 0 var(--ot-space-6);
    margin-top: var(--ot-space-12);
}
.public-marketing-footer h4 { font-size: var(--ot-text-base); margin-bottom: var(--ot-space-3); }
.public-marketing-links { list-style: none; padding: 0; }
.public-marketing-links li { padding: var(--ot-space-1) 0; }
.public-marketing-links a {
    color: var(--ot-color-text-muted);
    text-decoration: none;
    font-size: var(--ot-text-sm);
}
.public-marketing-links a:hover { color: var(--ot-color-primary); }

.public-hero {
    background-color: var(--ot-color-primary);
    color: var(--ot-color-primary-contrast);
    padding: var(--ot-space-16) var(--ot-space-6);
    text-align: center;
}
.public-hero h1 {
    color: var(--ot-color-primary-contrast);
    font-size: var(--ot-text-5xl);
    margin-bottom: var(--ot-space-4);
}
.public-hero-subtitle {
    color: var(--ot-color-primary-contrast);
    opacity: 0.92;
    font-size: var(--ot-text-lg);
    max-width: 720px;
    margin: 0 auto;
}

.public-feature-card {
    padding: var(--ot-space-5);
    border-radius: var(--ot-radius);
    background: var(--ot-color-bg);
    border: 1px solid var(--ot-color-border);
}
.public-feature-card h3 {
    color: var(--ot-color-primary);
    margin-bottom: var(--ot-space-3);
}

.public-feature-detail {
    padding-bottom: var(--ot-space-8);
    margin-bottom: var(--ot-space-8);
    border-bottom: 1px solid var(--ot-color-border);
}
.public-feature-detail:last-child { border-bottom: none; }
.public-feature-detail h2 {
    color: var(--ot-color-primary);
}
.public-feature-detail ul {
    padding-left: var(--ot-space-5);
}
.public-feature-detail li {
    padding: var(--ot-space-1) 0;
}

.public-pricing-card {
    background: var(--ot-color-bg);
    border: 1px solid var(--ot-color-border);
    border-radius: var(--ot-radius);
    padding: var(--ot-space-6);
    position: relative;
    text-align: center;
}
.public-pricing-card-featured {
    border-color: var(--ot-color-accent);
    border-width: 2px;
    transform: scale(1.04);
}
.public-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ot-color-accent);
    color: var(--ot-color-accent-contrast);
    padding: var(--ot-space-1) var(--ot-space-3);
    border-radius: var(--ot-radius);
    font-size: var(--ot-text-sm);
    font-weight: 600;
}
.public-pricing-price {
    font-size: var(--ot-text-4xl);
    font-weight: 700;
    color: var(--ot-color-primary);
    margin: var(--ot-space-4) 0 var(--ot-space-2);
}
.public-pricing-price-period {
    font-size: var(--ot-text-base);
    color: var(--ot-color-text-muted);
    font-weight: 400;
}
.public-pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: var(--ot-space-5) 0;
}
.public-pricing-features li {
    padding: var(--ot-space-1) 0;
    padding-left: var(--ot-space-5);
    position: relative;
}
.public-pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ot-color-success);
    font-weight: 700;
}
.btn-block { display: block; width: 100%; }

.public-cta {
    background-color: var(--ot-color-bg-alt);
    padding: var(--ot-space-12) var(--ot-space-6);
    color: var(--ot-color-text);
}
.public-cta h2 {
    color: var(--ot-color-text);
}

/* ── Signup wizard ──────────────────────────────────────────────────── */
.signup-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--ot-space-6);
    position: relative;
}
.signup-stepper::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ot-color-border);
    z-index: 0;
}
.signup-step {
    position: relative;
    z-index: 1;
    background: var(--ot-color-bg);
    padding: 0 var(--ot-space-2);
    text-align: center;
}
.signup-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ot-color-bg-alt);
    color: var(--ot-color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--ot-color-border);
}
.signup-step-label {
    font-size: var(--ot-text-sm);
    color: var(--ot-color-text-muted);
    margin-top: var(--ot-space-1);
}
.signup-step-active .signup-step-num {
    background: var(--ot-color-primary);
    color: var(--ot-color-primary-contrast);
    border-color: var(--ot-color-primary);
}
.signup-step-active .signup-step-label {
    color: var(--ot-color-primary);
    font-weight: 600;
}
.signup-step-done .signup-step-num {
    background: var(--ot-color-success);
    color: var(--ot-color-primary-contrast);
    border-color: var(--ot-color-success);
}

.signup-plan-card {
    display: block;
    width: 100%;
    background: var(--ot-color-bg);
    border: 2px solid var(--ot-color-border);
    border-radius: var(--ot-radius);
    padding: var(--ot-space-4);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.signup-plan-card:hover {
    border-color: var(--ot-color-primary);
}
.signup-plan-card-selected {
    border-color: var(--ot-color-accent);
    background: var(--ot-color-bg-alt);
}
.signup-plan-card h4 {
    margin: 0 0 var(--ot-space-2);
}
.signup-plan-price {
    font-size: var(--ot-text-2xl);
    font-weight: 700;
    color: var(--ot-color-primary);
}
.signup-plan-price span {
    font-size: var(--ot-text-sm);
    color: var(--ot-color-text-muted);
    font-weight: 400;
}

/* ── Admin Home Portal ──────────────────────────────────────────────── */
.admin-home-toprow {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: var(--ot-space-3);
}
.admin-home-viewsite {
    font-size: var(--ot-text-sm);
    font-weight: var(--ot-weight-semibold);
    color: var(--ot-color-text-link);
    text-decoration: none;
}
.admin-home-viewsite:hover { color: var(--ot-color-text-link-hover); }

.admin-home-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ot-space-4);
    margin-bottom: var(--ot-space-6);
}
.admin-home-header h1 { margin: 0; }
.admin-home-subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ot-space-2);
    font-size: var(--ot-text-sm);
    color: var(--ot-color-text);
    text-decoration: none;
    padding: var(--ot-space-1) var(--ot-space-3);
    border-radius: var(--ot-radius-full);
    background: var(--ot-color-bg-alt);
    border: 1px solid var(--ot-color-border);
    transition: background var(--ot-transition-fast);
}
.admin-home-subscription-badge:hover {
    background: var(--ot-color-surface-hover);
    color: var(--ot-color-text);
}
.admin-home-badge-sep { color: var(--ot-color-text-muted); }
.admin-home-trial-meta { color: var(--ot-color-text-muted); }

.admin-home-setup { margin-bottom: var(--ot-space-8); }
.admin-home-setup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-home-setup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ot-space-4);
}
@media (max-width: 1024px) {
    .admin-home-setup-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .admin-home-setup-grid { grid-template-columns: 1fr; }
}
.admin-home-setup-item {
    display: block;
    padding: var(--ot-space-4);
    background: var(--ot-color-bg-alt);
    border: 1px solid var(--ot-color-border);
    border-radius: var(--ot-radius-card);
    text-decoration: none;
    color: var(--ot-color-text);
    transition: border-color var(--ot-transition-fast), background var(--ot-transition-fast);
}
.admin-home-setup-item:hover {
    border-color: var(--ot-color-primary);
    background: var(--ot-color-surface);
    color: var(--ot-color-text);
}
.admin-home-setup-icon {
    font-size: var(--ot-text-2xl);
    margin-bottom: var(--ot-space-2);
}
.admin-home-setup-title {
    font-family: var(--ot-font-heading);
    font-weight: var(--ot-weight-semibold);
    margin-bottom: var(--ot-space-1);
}
.admin-home-setup-sub {
    font-size: var(--ot-text-sm);
    color: var(--ot-color-text-muted);
    margin-bottom: var(--ot-space-3);
}
.admin-home-setup-cta {
    font-size: var(--ot-text-sm);
    font-weight: var(--ot-weight-semibold);
    color: var(--ot-color-primary);
}

.admin-home-complete-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ot-space-4);
    padding: var(--ot-space-3) var(--ot-space-4);
    margin-bottom: var(--ot-space-8);
    background: var(--ot-color-bg-alt);
    border: 1px solid var(--ot-color-border);
    border-left: 4px solid var(--ot-color-success);
    border-radius: var(--ot-radius-card);
}
.admin-home-complete-text { flex: 1; }
.admin-home-complete-dismiss {
    background: none;
    border: none;
    color: var(--ot-color-text-muted);
    font-size: var(--ot-text-xl);
    cursor: pointer;
    line-height: 1;
    padding: var(--ot-space-1) var(--ot-space-2);
    border-radius: var(--ot-radius-sm);
    transition: color var(--ot-transition-fast), background var(--ot-transition-fast);
}
.admin-home-complete-dismiss:hover {
    color: var(--ot-color-text);
    background: var(--ot-color-surface-hover);
}

.admin-home-section-heading {
    margin-top: var(--ot-space-8);
    margin-bottom: var(--ot-space-6);
}

.admin-home-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ot-space-6);
}
@media (max-width: 768px) {
    .admin-home-portal-grid { grid-template-columns: 1fr; }
}
.admin-home-portal-group {
    background: var(--ot-color-surface);
    border: 1px solid var(--ot-color-border);
    border-radius: var(--ot-radius-card);
    overflow: hidden;
}
.admin-home-portal-group-title {
    font-family: var(--ot-font-heading);
    font-weight: var(--ot-weight-semibold);
    text-transform: var(--ot-heading-transform);
    letter-spacing: var(--ot-tracking-wide);
    color: var(--ot-color-primary);
    font-size: var(--ot-text-base);
    padding: var(--ot-space-3) var(--ot-space-4);
    background: var(--ot-color-bg-alt);
    border-bottom: 1px solid var(--ot-color-border);
}
.admin-home-portal-group-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ot-space-1) var(--ot-space-3);
    padding: var(--ot-space-3) var(--ot-space-4);
}
@media (max-width: 480px) {
    .admin-home-portal-group-links { grid-template-columns: 1fr; }
}
.admin-home-portal-group-links a {
    font-size: var(--ot-text-base);
    color: var(--ot-color-text);
    text-decoration: none;
    padding: var(--ot-space-1) 0;
    transition: color var(--ot-transition-fast);
}
.admin-home-portal-group-links a:hover {
    color: var(--ot-color-primary);
}

/* ── Platform sales-inquiry list ────────────────────────────────────── */
.sales-inquiry-row {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ot-color-border);
    padding: var(--ot-space-3) var(--ot-space-4);
    cursor: pointer;
    transition: background 0.1s;
}
.sales-inquiry-row:hover { background: var(--ot-color-bg-alt); }
.sales-inquiry-row-selected {
    background: var(--ot-color-bg-alt);
    border-left: 3px solid var(--ot-color-primary);
}
.flex-wrap { flex-wrap: wrap; }

/* ── Public marketing hero with background image ────────────────────── */
/*
   Three-layer background stack (top → bottom in CSS = top → bottom visually):
     1. Dark overlay gradient — keeps light text legible on any photo.
     2. Per-page image via --hero-bg. If the URL 404s, this layer renders
        transparent and the layer below shows through.
     3. Default americana-tactical SVG — always present in the repo,
        renders whenever the per-page image is missing.

   Why the third layer: `var(--hero-bg, fallback)` only triggers when the
   variable is UNSET, not when its URL fails. Every page sets --hero-bg to
   a .jpg path before operators have populated marketing-heroes/, so we
   need the SVG as an actual underlying layer — not just inside var().
*/
.public-hero.public-hero-image {
    background-image:
        /*
           Light overlay: only enough to keep light text legible. The
           headline + subtitle text-shadow rules below carry most of the
           legibility burden so the photo/SVG can shine through. Tune
           opacity here if real photos prove too bright.
        */
        linear-gradient(rgba(15, 23, 16, 0.28), rgba(15, 23, 16, 0.42)),
        var(--hero-bg, url('/marketing-heroes/americana-tactical-default.svg')),
        url('/marketing-heroes/americana-tactical-default.svg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    /* Solid-color fallback for ancient browsers + the brief moment before the image paints */
    background-color: #1a2418;
    /* Extra padding because background photos look better with breathing room */
    padding: var(--ot-space-20) var(--ot-space-6);
}

/* Pricing/contact pages: shorter hero so the form/cards above the fold */
.public-hero.public-hero-image.public-hero-compact {
    padding: var(--ot-space-12) var(--ot-space-6);
}

/* Strong text-shadow keeps light text legible even with a light overlay */
.public-hero.public-hero-image h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.7);
}
.public-hero.public-hero-image .public-hero-subtitle {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ── Hero CTA contrast on photo backgrounds ─────────────────────────── */
/*
   The accent (gold) button blended with the sunset/amber tones in the
   default hero SVG. Drop shadow + slight outline lifts every button
   off the photo regardless of underlying color, and the same pattern
   covers real photos when they're uploaded.
*/
.public-hero.public-hero-image .btn {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.public-hero.public-hero-image .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Reinforce the outline button's edge so it doesn't disappear on bright photos */
.public-hero.public-hero-image .btn-outline {
    border-width: 2px;
    background-color: rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* ── Marketing header CTA polish ────────────────────────────────────── */
/*
   The default btn-outline-sm (gold border + gold text on white header)
   was reading as nearly invisible. Give the Sign In button a darker
   text + border so it's clearly a clickable button.
*/
.public-marketing-header .btn-outline {
    color: var(--ot-color-text);
    border-color: var(--ot-color-text);
    background-color: transparent;
}
.public-marketing-header .btn-outline:hover {
    background-color: var(--ot-color-text);
    color: var(--ot-color-bg);
}

/* The accent CTA in the header should be unmistakably the primary action */
.public-marketing-header .btn-accent {
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ── Auth Layout (Login / Register / Forgot / Reset) ──────────────────────── */
.auth-header {
    background: var(--ot-color-header-bg, var(--ot-color-primary));
    color: var(--ot-color-header-text, var(--ot-color-primary-contrast));
    padding: var(--ot-space-4) 0;
    border-bottom: 3px solid var(--ot-color-accent);
}
.auth-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-logo {
    font-family: var(--ot-font-heading);
    font-size: var(--ot-text-2xl);
    font-weight: var(--ot-weight-bold);
    color: var(--ot-color-header-text, var(--ot-color-primary-contrast));
    text-decoration: none;
    text-transform: var(--ot-heading-transform);
    letter-spacing: var(--ot-tracking-wide);
}
.auth-logo:hover {
    color: var(--ot-color-accent);
}

.auth-main {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ot-space-8) var(--ot-space-4);
    background: var(--ot-color-bg-alt);
}
.auth-card {
    width: 100%;
    max-width: 900px;
    background: var(--ot-color-surface);
    border: 1px solid var(--ot-color-border);
    border-radius: var(--ot-radius-card);
    box-shadow: var(--ot-shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.12));
    padding: var(--ot-space-8);
}
.auth-card h1 {
    font-size: var(--ot-text-3xl);
    margin-bottom: var(--ot-space-6);
    text-align: center;
}
.auth-card h2 {
    font-size: var(--ot-text-xl);
}
.auth-card h3 {
    font-size: var(--ot-text-lg);
}

.auth-footer {
    padding: var(--ot-space-4) 0;
    background: var(--ot-color-bg);
    border-top: 1px solid var(--ot-color-border);
    text-align: center;
    color: var(--ot-color-text-muted);
}

@media (max-width: 768px) {
    .auth-card {
        padding: var(--ot-space-5);
    }
    .auth-main {
        padding: var(--ot-space-4);
    }
}
