/* =========================================================
   TowerFinOps — App Stylesheet
   ========================================================= */

/* ── Cloak: hide until Drapo finishes rendering ─────────── */
.d-cloak { display: none; }

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --primary:          #1a73e8;
  --primary-dark:     #1557b0;
  --primary-light:    #e8f0fe;
  --sidebar-bg:       #1e293b;
  --sidebar-text:     #cbd5e1;
  --sidebar-hover:    #334155;
  --sidebar-active:   #1a73e8;
  --sidebar-width:    240px;
  --header-height:    56px;
  --surface:          #ffffff;
  --surface-alt:      #f8fafc;
  --border:           #e2e8f0;
  --text:             #1e293b;
  --text-muted:       #64748b;
  --danger:           #ef4444;
  --success:          #22c55e;
  --warning:          #f59e0b;
  --highlight:        #7c3aed;
  --radius:           8px;
  --shadow:           0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:        0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
}

/* ── Dark theme overrides ───────────────────────────────── */
body.dark {
  --surface:       #1e293b;
  --surface-alt:   #0f172a;
  --border:        #334155;
  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --primary-light: #1e3a5f;
  --shadow:        0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md:     0 4px 6px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
}

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

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--surface-alt);
}

a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}
a:hover { text-decoration: underline; }

/* ── Layout — body is a flex column: header on top, app-body below ── */
body.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--surface-alt);
}

/* ── Top app header (authenticated only) ─────────────────── */
.app-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.25rem;
  height: var(--header-height);
  background: var(--sidebar-bg);
  color: #f1f5f9;
  flex-shrink: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.hamburger-btn {
  background: none;
  border: none;
  color: #f1f5f9;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  transition: background .15s;
  flex-shrink: 0;
}
.hamburger-btn:hover { background: rgba(255,255,255,.12); }

.app-header__brand {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.app-header__brand:hover { color: #fff; text-decoration: none; }

.app-header__spacer { flex: 1; }

.app-header__user {
  font-size: .8rem;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.app-header__user:hover { color: #f1f5f9; text-decoration: none; }

/* ── App body row: sidebar + content ─────────────────────── */
.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* d-sidebar passes through; .sidebar inside is the flex child */
d-sidebar {
  display: contents;
}

/* ── Content sector ───────────────────────────────────────── */
#app-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

/* Unauthenticated — dark gradient background */
body.layout:not(:has(.sidebar)) #app-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Mobile overlay backdrop — closes sidebar when tapped */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0,0,0,.4);
  z-index: 149;
  cursor: pointer;
}
@media (max-width: 768px) {
  .sidebar-overlay--open { display: block; }
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width .25s ease;
}

/* Desktop closed: collapse to zero width */
.sidebar--closed {
  width: 0;
  overflow: hidden;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar__logo { font-size: 1.5rem; }

.sidebar__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: .02em;
}

.sidebar__nav {
  list-style: none;
  flex: 1;
  padding: .75rem 0;
}

.sidebar__nav li { margin: .1rem 0; }

.sidebar__link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  color: var(--sidebar-text);
  font-size: .9rem;
  border-radius: var(--radius);
  margin: 0 .5rem;
  transition: background .15s, color .15s;
  cursor: pointer;
  text-decoration: none;
}

.sidebar__link:hover {
  background: var(--sidebar-hover);
  color: #f1f5f9;
  text-decoration: none;
}

.sidebar__icon { font-size: 1rem; }

.sidebar__footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sidebar__user-icon { font-size: 1.1rem; }

.sidebar__email {
  font-size: .8rem;
  color: var(--sidebar-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.sidebar__logout {
  display: block;
  padding: .4rem .75rem;
  font-size: .8rem;
  color: var(--sidebar-text);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  text-align: center;
  transition: background .15s, color .15s;
  cursor: pointer;
}

.sidebar__logout:hover {
  background: rgba(255,255,255,.1);
  color: #f1f5f9;
  text-decoration: none;
}

.sidebar__settings {
  display: flex;
  gap: .5rem;
  padding: .5rem 1rem .25rem;
}

.sidebar__setting-btn {
  background: transparent;
  border: 1px solid var(--sidebar-hover);
  color: var(--sidebar-text);
  border-radius: var(--radius);
  padding: .2rem .55rem;
  font-size: .75rem;
  cursor: pointer;
  transition: background .15s;
}

.sidebar__setting-btn:hover {
  background: var(--sidebar-hover);
}

/* ── Auth page & card ────────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: calc(100vh - var(--header-height));
  padding: 2rem;
  width: 100%;
}

.auth-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card__logo {
  font-size: 3rem;
  display: block;
  margin-bottom: .5rem;
}

.auth-card__header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.auth-card__header p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .35rem;
}

.form-group input,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-group input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

input[readonly] {
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: default;
}

.form-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: .5rem .75rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}

.form-required {
  color: var(--danger);
  margin-left: .15rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.25rem;
  font-size: .95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  text-decoration: none;
}

.btn--primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  margin-top: .5rem;
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow);
}

/* ── Page layout ─────────────────────────────────────────── */
.page {
  padding: 2rem;
  max-width: 1200px;
}

.page__header {
  margin-bottom: 2rem;
}

.page__header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.page__subtitle {
  color: var(--text-muted);
  font-size: .95rem;
}

.page__section {
  margin-top: 2.5rem;
}

.page__section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* ── Stats grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ── Stat card ───────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

.stat-card--highlight {
  border-left-color: var(--highlight);
}

.stat-card__icon {
  font-size: 1.75rem;
  margin-bottom: .5rem;
}

.stat-card__label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.stat-card__sub {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Steps (onboarding) ──────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step__content strong {
  display: block;
  font-weight: 600;
  margin-bottom: .25rem;
}

.step__content p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 520px;
}

.empty-state__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--text);
}

.empty-state p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: .25rem;
}

.empty-state__hint {
  font-size: .8rem !important;
  color: #94a3b8 !important;
  margin-top: .75rem !important;
}

/* ── Info card ───────────────────────────────────────────── */
.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 480px;
}

/* ── Loading screen ──────────────────────────────────────── */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1rem;
  color: #94a3b8;
}

.loading-screen__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(26,115,232,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile: sidebar becomes a fixed off-canvas drawer */
  .sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width) !important; /* keep width; use transform not width for animate */
    z-index: 150;
    transform: translateX(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .sidebar:not(.sidebar--closed) {
    transform: translateX(0);
  }
  .sidebar--closed {
    transform: translateX(-100%);
  }

  .stats-grid { grid-template-columns: 1fr; }
  .page { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Page header row ─────────────────────────── */
.page__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Filter bar ──────────────────────────────── */
.filter-bar {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .75rem 1.25rem;
}

/* ── Form card / panel ───────────────────────── */
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 680px;
}

.form-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* ── Buttons (variants) ─────────────────────── */
.btn--sm {
  padding: .35rem .75rem;
  font-size: .85rem;
  width: auto;
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--surface-alt);
}

.btn--danger {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.btn--danger:hover {
  background: #fee2e2;
}

/* ── Select (form element) ───────────────────── */
.form-group select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

.form-group input[type="number"] {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.form-group input[type="number"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

/* ── Progress bar ────────────────────────────── */
.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: .5rem 0;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
  background: var(--success);
  min-width: 2px;
}

/* ── Budget card ─────────────────────────────── */
.budget-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.budget-card__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.budget-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}

.budget-card__scope {
  font-size: .75rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: .2rem .6rem;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.budget-card__actions {
  display: flex;
  gap: .5rem;
}

.budget-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .35rem;
}

.budget-card__amount {
  font-weight: 600;
  color: var(--text);
}


/* ── Breadcrumb ─────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb__link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}
.breadcrumb__link:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--text-muted); margin: 0 .1rem; }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ── Drillable table rows ────────────────────── */
.data-table tr.drillable { cursor: pointer; }
.data-table tr.drillable:hover { background: var(--surface-alt); }

/* ── Status badges ──────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .6rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}
.badge--success { background: #dcfce7; color: #15803d; }
.badge--danger  { background: #fee2e2; color: #b91c1c; }
.badge--warning { background: #fef9c3; color: #92400e; }
.badge--info    { background: #dbeafe; color: #1d4ed8; }

/* ── Tab navigation ──────────────────────────── */
.tab-btn {
  padding: .6rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: .92rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn--active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── Recommendation cards ────────────────────── */
.savings-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #065f46, #059669);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.savings-banner__icon { font-size: 2rem; }
.savings-banner__label { font-size: .85rem; opacity: .85; }
.savings-banner__value { font-size: 1.8rem; font-weight: 700; }
.savings-banner__sub { margin-left: auto; font-size: .9rem; opacity: .85; }

.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.rec-card__header { display:flex; justify-content:space-between; align-items:center; margin-bottom:.75rem; }
.rec-card__title { font-size:1rem; font-weight:600; margin:.25rem 0 .5rem; }
.rec-card__desc { font-size:.9rem; color:var(--text-muted); margin:.25rem 0 .75rem; }
.rec-card__footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; }
.rec-card__savings { font-weight:600; color:var(--success); font-size:.92rem; }

/* ── Reports ────────────────────────────────────────────── */
.report-layout { display:grid; grid-template-columns:320px 1fr; gap:1.5rem; align-items:start; }
@media(max-width:768px) { .report-layout { grid-template-columns:1fr; } }
.report-form-card { position:sticky; top:1rem; }
.report-list-header { display:flex; justify-content:space-between; align-items:center; }
.btn--full { width:100%; justify-content:center; }
.btn-group { display:flex; gap:.5rem; }

/* ── Registration & Onboarding ───────────────────────────── */
.auth-card--wide { max-width: 460px; }
.auth-card__footer { text-align:center; margin-top:1rem; font-size:.9rem; color:var(--text-muted); }
.auth-card__footer a { color:var(--primary); text-decoration:none; }

.onboarding-page { display:flex; justify-content:center; align-items:center; min-height:100vh; padding:2rem; background:var(--surface-alt); }
.onboarding-card { background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow-md); padding:2rem; max-width:600px; width:100%; }
.onboarding-step { text-align:center; padding:1rem 0; }
.onboarding-step__icon { font-size:3rem; margin-bottom:1rem; }
.onboarding-step h2 { font-size:1.5rem; font-weight:700; margin-bottom:.75rem; }
.onboarding-step p { color:var(--text-muted); margin-bottom:1.5rem; }
.onboarding-step__actions { display:flex; gap:1rem; justify-content:center; margin-top:1.5rem; }
.onboarding-features { list-style:none; text-align:left; display:inline-block; margin:0 auto 1.5rem; padding:0; }
.onboarding-features li { padding:.35rem 0; color:var(--text); font-size:.95rem; }

.stepper { display:flex; align-items:center; justify-content:center; margin-bottom:2rem; gap:0; }
.step { display:flex; flex-direction:column; align-items:center; gap:.25rem; }
.step__circle { width:2rem; height:2rem; border-radius:50%; background:var(--border); color:var(--text-muted); display:flex; align-items:center; justify-content:center; font-size:.85rem; font-weight:600; transition:.2s; }
.step--active .step__circle { background:var(--primary); color:#fff; }
.step__label { font-size:.75rem; color:var(--text-muted); white-space:nowrap; }
.step--active .step__label { color:var(--primary); font-weight:600; }
.step__connector { flex:1; height:2px; background:var(--border); min-width:40px; margin:0 .25rem; margin-bottom:1rem; }

.provider-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin:1.5rem 0; }
.provider-card { border:2px solid var(--border); border-radius:var(--radius); padding:1.25rem .5rem; text-align:center; cursor:pointer; transition:.15s; }
.provider-card:hover { border-color:var(--primary); background:var(--primary-light); }
.provider-card__icon { font-size:1.75rem; }
.provider-card__name { font-size:.85rem; font-weight:500; margin-top:.5rem; }

/* ── Carbon Footprint ────────────────────────────────────── */
.carbon-layout { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; margin-top:1.5rem; }
@media(max-width:768px) { .carbon-layout { grid-template-columns:1fr; } }
.stat-card--green { border-top:3px solid var(--success); }
.alert { padding:1rem 1.25rem; border-radius:var(--radius); font-size:.9rem; }
.alert--info { background:#eff6ff; border:1px solid #bfdbfe; color:#1e40af; }

/* SKU Catalog & Comparison */
.sku-provider-tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem; }
.sku-provider-tab { padding:.4rem 1rem; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); cursor:pointer; font-size:.85rem; font-weight:500; transition:all .15s; }
.sku-provider-tab:hover { border-color:var(--primary); color:var(--primary); }
.sku-provider-tab--active { background:var(--primary); color:#fff; border-color:var(--primary); }

.sku-badge { display:inline-block; padding:.15rem .55rem; border-radius:.25rem; font-size:.75rem; font-weight:600; letter-spacing:.02em; }
.sku-badge--azure { background:#0078d4; color:#fff; }
.sku-badge--aws { background:#ff9900; color:#000; }
.sku-badge--gcp { background:#34a853; color:#fff; }
.sku-badge--oracle { background:#c74634; color:#fff; }

.sku-compare-panel { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin:1.5rem 0; }
.sku-compare-slot { border:2px dashed var(--border); border-radius:var(--radius); padding:1rem; min-height:80px; }
.sku-compare-slot--filled { border-style:solid; border-color:var(--primary); }
.sku-compare-slot__label { font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin-bottom:.35rem; }
.sku-compare-slot__name { font-weight:600; margin-bottom:.15rem; }
.sku-compare-slot__sub { font-size:.8rem; color:var(--text-muted); }

.sku-compare-table { width:100%; border-collapse:collapse; margin-top:1rem; }
.sku-compare-table th { background:var(--surface); padding:.6rem .75rem; text-align:left; font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); border-bottom:2px solid var(--border); }
.sku-compare-table td { padding:.55rem .75rem; border-bottom:1px solid var(--border); font-size:.9rem; }
.sku-compare-table tr:last-child td { border-bottom:none; }
.sku-compare-table td:first-child { font-weight:500; color:var(--text-muted); width:180px; }

.diff-better { background:#dcfce7; color:#166534; font-weight:600; border-radius:.25rem; padding:.15rem .4rem; }
.diff-worse { background:#fee2e2; color:#991b1b; border-radius:.25rem; padding:.15rem .4rem; }
.diff-equal { color:var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   LANDING PAGE — public marketing page at /
   ══════════════════════════════════════════════════════════ */

/* Reset #app-content when landing page is active */
/* Landing page overrides: own background, block layout, full scroll */
#app-content:has(.lp) {
  background: none !important;
  overflow-y: auto;
}

.lp {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

/* ── Nav ────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lp-nav__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.lp-nav__logo { font-size: 1.4rem; }
.lp-nav__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: .02em;
}
.lp-nav__actions { display: flex; gap: .75rem; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.lp-btn--primary {
  background: #1a73e8;
  color: #fff;
}
.lp-btn--primary:hover { background: #1557b0; text-decoration: none; color: #fff; }
.lp-btn--ghost {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.2);
}
.lp-btn--ghost:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #f1f5f9; }
.lp-btn--ghost-light {
  background: rgba(255,255,255,.12);
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,.25);
}
.lp-btn--ghost-light:hover { background: rgba(255,255,255,.2); text-decoration: none; color: #fff; }
.lp-btn--outline {
  background: transparent;
  color: #1a73e8;
  border: 1.5px solid #1a73e8;
}
.lp-btn--outline:hover { background: #e8f0fe; text-decoration: none; }
.lp-btn--lg { padding: .75rem 2rem; font-size: 1rem; border-radius: 8px; }
.lp-btn--full { width: 100%; }

/* ── Hero ────────────────────────────────────────────────── */
.lp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  color: #f1f5f9;
}
.lp-hero__content { max-width: 760px; margin: 0 auto; }
.lp-hero__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #60a5fa;
  margin-bottom: 1.25rem;
}
.lp-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
}
.lp-hero__subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.lp-hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.lp-hero__providers {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.lp-cloud-badge {
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.lp-cloud-badge--azure  { background: rgba(0,120,212,.25); color: #60a5fa; border: 1px solid rgba(0,120,212,.4); }
.lp-cloud-badge--aws    { background: rgba(255,153,0,.2);  color: #fbbf24; border: 1px solid rgba(255,153,0,.35); }
.lp-cloud-badge--gcp    { background: rgba(52,168,83,.2);  color: #4ade80; border: 1px solid rgba(52,168,83,.35); }
.lp-cloud-badge--oracle { background: rgba(199,70,52,.2);  color: #f87171; border: 1px solid rgba(199,70,52,.35); }

/* Hero stats row */
.lp-hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 600px;
  margin: 0 auto;
}
.lp-stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.lp-stat__label {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: .35rem;
}

/* ── Section headers ─────────────────────────────────────── */
.lp-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.lp-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .75rem;
}
.lp-section-sub {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Features ────────────────────────────────────────────── */
.lp-features {
  padding: 5rem 2rem;
  background: #fff;
}
.lp-features__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.lp-feature-card {
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.lp-feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.lp-feature-card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.lp-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .5rem;
}
.lp-feature-card p {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── Pricing ─────────────────────────────────────────────── */
.lp-pricing {
  padding: 5rem 2rem;
  background: #f8fafc;
}
.lp-pricing__grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.lp-plan {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}
.lp-plan--pro {
  border: 2px solid #1a73e8;
  box-shadow: 0 8px 32px rgba(26,115,232,.15);
}
.lp-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a73e8;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .2rem .85rem;
  border-radius: 20px;
  white-space: nowrap;
}
.lp-plan__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .5rem;
}
.lp-plan__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .5rem;
  line-height: 1;
}
.lp-plan__price span {
  font-size: 1rem;
  font-weight: 400;
  color: #64748b;
}
.lp-plan__desc {
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.lp-plan__features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.lp-plan__features li {
  font-size: .9rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.lp-check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.lp-footer {
  background: #0f172a;
  padding: 2.5rem 2rem;
}
.lp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.lp-footer__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.lp-footer__links {
  display: flex;
  gap: 1.5rem;
}
.lp-footer__links a {
  color: #94a3b8;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
}
.lp-footer__links a:hover { color: #f1f5f9; text-decoration: none; }
.lp-footer__copy {
  color: #64748b;
  font-size: .8rem;
  width: 100%;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .lp-nav { padding: .75rem 1rem; }
  .lp-hero { padding: 4rem 1rem 3rem; }
  .lp-hero__stats { gap: 1.5rem; }
  .lp-features, .lp-pricing { padding: 3.5rem 1rem; }
  .lp-footer__inner { flex-direction: column; align-items: flex-start; }
  .lp-footer__links { flex-wrap: wrap; gap: 1rem; }
}
