/* Auto-generated bundle: app-header.css + marketing.css */

/* app-header.css - RC layout (header + sidebar + user dropdown) */

:root{
  --rc-header-h: 56px;
  --rc-sidebar-w: 260px;

  --rc-surface: rgba(10, 14, 20, 0.70);
  --rc-surface-2: rgba(10, 14, 20, 0.92);
  --rc-border: rgba(255,255,255,0.10);
  --rc-border-2: rgba(255,255,255,0.08);

  --rc-surface-light: rgba(255,255,255,0.75);
  --rc-surface-2-light: rgba(255,255,255,0.92);
  --rc-border-light: rgba(2,8,23,0.10);
}

/* Layout wrapper injected by app-header.js */
#rcAppWrap{
  min-height: 100vh;
  display: flex;
}

#rcSidebar{
  width: var(--rc-sidebar-w);
  flex: 0 0 var(--rc-sidebar-w);
}

/* Sidebar hidden state (requested) */
body.rc-sidebar-hidden #rcSidebar{
  display: none;
}

#rcContentSlot{
  flex: 1 1 auto;
  min-width: 0;
}

/* Header */
.rc-header{
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--rc-header-h);
  display: flex;
  align-items: center;
  background: var(--rc-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rc-border-2);
}

html[data-theme="light"] .rc-header{
  background: var(--rc-surface-light);
  border-bottom-color: var(--rc-border-light);
}

.rc-header-inner{
  width: 100%;
  max-width: 1400px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rc-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.rc-brand{
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: var(--text-main);
}

.rc-icon-btn{
  height: 36px;
  width: 36px;
  border-radius: 12px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .rc-icon-btn{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-center{
  flex: 1 1 auto;
  min-width: 240px;
}

.rc-search{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.rc-search input{
  width: 100%;
  height: 38px;
  border-radius: 999px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  outline: none;
}

html[data-theme="light"] .rc-search input{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-search-icon{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rc-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 280px;
}

.rc-auth-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rc-auth-actions .btn{
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 999px;
}

/* Sidebar */
.rc-sidebar{
  position: sticky;
  top: var(--rc-header-h);
  height: calc(100vh - var(--rc-header-h));
  overflow: auto;
  border-right: 1px solid var(--rc-border-2);
  background: rgba(10, 14, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="light"] .rc-sidebar{
  border-right-color: var(--rc-border-light);
  background: rgba(255,255,255,0.55);
}

.rc-sidebar-inner{
  padding: 14px;
}

.rc-section-label{
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 14px 10px 8px;
}

.rc-nav{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rc-nav a{
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  opacity: 0.85;
  border: 1px solid transparent;
}

.rc-nav a.is-active{
  opacity: 1;
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
}

.rc-nav a:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

html[data-theme="light"] .rc-nav a:hover{
  background: rgba(2,8,23,0.04);
}

/* ===== User dropdown ===== */
.rc-user-wrap{ position: relative; }

.rc-user-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
}

html[data-theme="light"] .rc-user-btn{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-user-name{ font-weight: 800; }

.rc-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.4px;
  background: rgba(59,130,246,0.20);
  border: 1px solid rgba(59,130,246,0.30);
}

.rc-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rc-user-chevron{
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rc-badge{
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}

html[data-theme="light"] .rc-badge{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-badge--admin{ border-color: rgba(59,130,246,0.40); }
.rc-badge--lang{ opacity: 0.9; }

.rc-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 360px;
  z-index: 2000;
}

.rc-menu__panel{
  border-radius: 16px;
  border: 1px solid var(--rc-border);
  background: var(--rc-surface-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}

html[data-theme="light"] .rc-menu__panel{
  border-color: var(--rc-border-light);
  background: var(--rc-surface-2-light);
  box-shadow: 0 16px 40px rgba(2,8,23,0.10);
}

.rc-menu__head{
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--rc-border-2);
}

html[data-theme="light"] .rc-menu__head{
  border-bottom-color: var(--rc-border-light);
}

.rc-menu__name{
  font-weight: 900;
  font-size: 14px;
  color: var(--text-main);
}

.rc-menu__meta{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rc-pill{
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}

html[data-theme="light"] .rc-pill{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-pill--muted{ opacity: 0.85; }

.rc-menu__section{
  padding: 12px 14px;
  border-bottom: 1px solid var(--rc-border-2);
}

html[data-theme="light"] .rc-menu__section{
  border-bottom-color: var(--rc-border-light);
}

.rc-menu__section:last-child{ border-bottom: none; }

.rc-menu__label{
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
  color: var(--text-main);
}

.rc-menu__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.rc-menu__rowlabel{
  font-weight: 800;
  opacity: 0.9;
  color: var(--text-main);
}

.rc-chips{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rc-chip{
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  opacity: 0.95;
}

html[data-theme="light"] .rc-chip{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-chip:hover{ background: rgba(255,255,255,0.10); }
html[data-theme="light"] .rc-chip:hover{ background: rgba(2,8,23,0.06); }

.rc-chip.is-active{
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.14);
}

.rc-chip__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* IMPORTANT: avoid purple/underlined links from global styles */
.rc-menu a,
.rc-menu a:visited,
.rc-menu a:hover{
  color: var(--text-main) !important;
  text-decoration: none !important;
}

.rc-menu__item{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 800;
  opacity: 0.95;
}

.rc-menu__item:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

html[data-theme="light"] .rc-menu__item:hover{
  background: rgba(2,8,23,0.04);
}

.rc-menu__itemicon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.rc-menu__item--danger{
  color: #fca5a5;
}

@media (max-width: 520px){
  .rc-menu{ width: 92vw; }
}

/* ---- marketing.css ---- */

/* /assets/css/marketing.css
   Shared styling for marketing + legal pages.
   Keep it minimal-premium (style A) and compatible with existing layout.
*/

/* Background helpers (subtle, works in light/dark) */
body.landing.marketing {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(31,111,235,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 5%, rgba(168,85,247,.10), transparent 55%),
    var(--bg-main);
}

:root[data-theme="light"] body.landing.marketing {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(31,111,235,.10), transparent 60%),
    radial-gradient(900px 520px at 90% 5%, rgba(168,85,247,.08), transparent 55%),
    var(--bg-main);
}

/* Reusable grids */
.mk-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

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

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

@media (max-width: 1100px) {
  .mk-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 640px) {
  .mk-grid-4 { grid-template-columns: 1fr; }
}

/* Shared "glass" surface that respects theme */
.mk-surface {
  background: color-mix(in srgb, var(--bg-surface) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

:root[data-theme="light"] .mk-surface {
  box-shadow: var(--shadow-md);
}

/* Legal pages */
.legal-wrap {
  padding: 52px 0;
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
}

.prose h1 { font-size: 1.9rem; letter-spacing: -0.01em; }
.prose h2 { font-size: 1.15rem; margin-top: 18px; }
.prose h3 { font-size: 1rem; margin-top: 14px; }

.prose p,
.prose li {
  line-height: 1.75;
  color: var(--text-muted);
}

.prose ul { padding-left: 18px; }

.prose a {
  color: var(--accent-blue);
  text-decoration: none;
}

.prose a:hover { text-decoration: underline; }

.legal-toc {
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 18px;
}

.legal-toc a {
  color: var(--text-muted);
}

.legal-toc a:hover {
  color: var(--text-main);
}

/* Pricing */
.pricing-wrap { padding: 70px 0 30px; }

.pricing-grid { margin-top: 18px; }

.price-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.price-card .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
  color: var(--text-main);
}

.price-card.featured {
  border-color: color-mix(in srgb, var(--accent-blue) 45%, transparent);
  box-shadow: 0 18px 60px rgba(31,111,235,.10), 0 18px 50px rgba(0,0,0,.22);
  transform: translateY(-2px);
}

.tier { font-weight: 800; font-size: 18px; margin-bottom: 4px; color: var(--text-main); }
.tier-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 14px;
}

.price .value { font-weight: 900; font-size: 34px; letter-spacing: -0.02em; color: var(--text-main); }
.price .unit { color: var(--text-muted); font-size: 13px; }

.features {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
  color: var(--text-muted);
  font-size: 13px;
}

.features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.tick {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, #22c55e 16%, transparent);
  border: 1px solid color-mix(in srgb, #22c55e 34%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tick::before { content: "✓"; font-size: 12px; color: color-mix(in srgb, #22c55e 92%, white); }

.cross {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, #ef4444 14%, transparent);
  border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.cross::before { content: "✕"; font-size: 12px; color: color-mix(in srgb, #ef4444 86%, white); }

.price-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.btn-full { width: 100%; justify-content: center; }

.note {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
}

.compare {
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
}

.compare .row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  border-top: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
}

.compare .row:first-child { border-top: none; }

.compare .cell {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-left: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
}

.compare .cell:first-child {
  border-left: none;
  color: var(--text-main);
  font-weight: 700;
}

.compare .head .cell {
  font-weight: 800;
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-surface) 75%, transparent);
}

.yes { color: color-mix(in srgb, #22c55e 92%, white); font-weight: 800; }
.no { color: color-mix(in srgb, var(--text-muted) 60%, transparent); }

@media (max-width: 980px) {
  .compare { display: none; }
}

.faq {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

details.faq-item {
  border-radius: 18px;
  padding: 14px 16px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text-main);
  list-style: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.beta-banner {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 65%, transparent);
}

.beta-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
  background: color-mix(in srgb, var(--accent-blue) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-blue) 28%, transparent);
  color: var(--text-main);
}

.beta-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 1px;
}

.billing-toggle {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
}

.billing-label {
  font-weight: 800;
  color: var(--text-main);
  font-size: 13px;
}

.billing-chips { display: flex; gap: 8px; align-items: center; }

.billing-chips .chip {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
  color: var(--text-main);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.billing-chips .chip.active {
  border-color: color-mix(in srgb, var(--accent-blue) 38%, transparent);
  background: color-mix(in srgb, var(--accent-blue) 16%, transparent);
}

.billing-chips .chip.disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Contact */
.contact-grid { gap: 18px; margin-top: 18px; }

.contact-info { display: grid; gap: 12px; }

.contact-line { display: flex; gap: 10px; align-items: center; }

.contact-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
}

textarea.mk-textarea {
  resize: vertical;
  min-height: 120px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-main);
  font-family: inherit;
}

textarea.mk-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}


/* About page (shared style) */
.about-wrap{ padding-top: 10px; }

.num{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: color-mix(in srgb, var(--accent-blue) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-blue) 22%, transparent);
  color: var(--text-main);
  margin-bottom: 10px;
}

.about-list{ display:grid; gap: 12px; }
.about-list .card{ padding: 14px 16px; }
.about-list .title{ font-weight: 800; color: var(--text-main); }
.about-list .desc{ margin-top: 4px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }

.about-road{ display:grid; gap: 10px; margin-top: 14px; }
.road-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-surface) 65%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}
.road-chip{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  color: var(--text-main);
}
.road-desc{ color: var(--text-muted); font-size: 13px; line-height: 1.55; margin-top: 2px; }

.about-cta2{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(31,111,235,.16), transparent),
    radial-gradient(1000px 420px at 90% 40%, rgba(168,85,247,.12), transparent),
    color-mix(in srgb, var(--bg-surface) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}
.about-cta2 h3{ margin: 0 0 10px 0; font-size: 18px; color: var(--text-main); }
.about-cta2 .landing-cta{ margin-top: 10px; }
/* Pricing cards — shared UI states (used by marketing + subscription) */
.pricing-grid.mk-grid-3{ gap: 14px; }

.price-card.is-selected{
  box-shadow: 0 0 0 2px var(--accent), 0 16px 40px rgba(0,0,0,.22);
}
:root[data-theme="light"] .price-card.is-selected{
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}

.price-card.is-current{
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-color));
}

.badge.badge-current{
  background: color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.06));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: rgba(255,255,255,.92);
}
:root[data-theme="light"] .badge.badge-current{
  color: rgba(0,0,0,.75);
}

/* Disabled CTA (links) */
.rc-disabled{
  pointer-events: none !important;
  opacity: .72 !important;
}

