/* Dulux Mosaic — design tokens pulled from the actual capstone deck XML colours */
:root {
  --c-navy: #023E81;
  --c-ink: #0E1B2A;
  --c-ink-2: #0C1826;
  --c-slate: #2B3845;
  --c-slate-muted: #5A6876;
  --c-border: #DAE0E6;
  --c-border-2: #B6BEC6;
  --c-bg: #F6FAFD;
  --c-card: #FFFFFF;

  --c-teal: #17C3B2;
  --c-teal-2: #05B4BE;
  --c-mint: #73FDD6;
  --c-amber: #F2B705;
  --c-indigo: #8B93FF;
  --c-pink: #F5437F;
  --c-success: #196B24;
  --c-success-bg: #E4F5E6;
  --c-warn-bg: #FFF4DE;
  --c-warn: #9A6B00;
  --c-danger-bg: #FDE7EC;
  --c-danger: #B0264A;

  --c-harvest: var(--c-amber);
  --c-sense: var(--c-teal);
  --c-shield: var(--c-indigo);
  --c-tint: var(--c-pink);
  --c-paint: var(--c-pink);
  --c-technology: var(--c-teal-2);
  --c-platform: var(--c-navy);

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(14, 27, 42, 0.06), 0 1px 2px rgba(14, 27, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(14, 27, 42, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-slate);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--c-ink); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  background: var(--c-ink);
  color: #fff;
  padding: 0 28px;
  height: 64px;
}
.topbar-left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; border: none; background: none; color: #fff; padding: 0; }
.brand-logo-chip {
  display: flex; align-items: center; background: #fff; border-radius: 9px;
  padding: 5px 12px; flex-shrink: 0;
}
.brand-logo { height: 32px; width: auto; display: block; }
.brand-word { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; }
.brand-word span { color: var(--c-mint); }
.topbar-nav { display: flex; gap: 4px; overflow-x: auto; }
.topbar-nav a {
  display: block; padding: 10px 14px; border-radius: 8px; font-size: 0.86rem; font-weight: 600;
  color: #B9C4CE; text-decoration: none; white-space: nowrap;
}
.topbar-nav a.active, .topbar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.role-select {
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px; padding: 8px 12px; font-size: 0.82rem; font-weight: 600;
}
.role-select option { color: #0E1B2A; }

/* ---------- Layout ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 32px 28px 72px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; }
.page-header .subtitle { color: var(--c-slate-muted); font-size: 0.92rem; margin-top: 4px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 800; color: var(--c-teal-2); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split-320 { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.prop-list-col { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .grid-4, .grid-3, .grid-2, .split-320 { grid-template-columns: 1fr; } .topbar { padding: 0 14px; } .page { padding: 20px 16px 56px; } }

.card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-flush { padding: 0; overflow: hidden; }
.card-header { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-slate-muted); margin-bottom: 12px; }

/* ---------- KPI ---------- */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi-value { font-size: 1.7rem; font-weight: 800; color: var(--c-ink); }
.kpi-sub { font-size: 0.8rem; font-weight: 700; }
.kpi-sub.up { color: var(--c-success); }
.kpi-sub.warn { color: var(--c-warn); }
.kpi-sub.muted { color: var(--c-slate-muted); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 10px;
  padding: 11px 18px; font-size: 0.88rem; font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--c-navy); color: #fff; }
.btn-primary:hover { background: #032f63; }
.btn-accent { background: var(--c-teal-2); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline { background: #fff; color: var(--c-navy); border: 1.5px solid var(--c-navy); }
.btn-sm { padding: 7px 12px; font-size: 0.78rem; border-radius: 8px; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.pill-success { background: var(--c-success-bg); color: var(--c-success); }
.pill-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.pill-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.pill-neutral { background: #EEF2F5; color: var(--c-slate-muted); }
.pill-navy { background: rgba(2,62,129,0.08); color: var(--c-navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-connected { background: var(--c-success); }
.dot-available { background: var(--c-border-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
th { background: #F8FAFC; color: var(--c-slate-muted); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:hover { background: #FAFCFE; }
tbody tr.clickable { cursor: pointer; }
td.wrap, th.wrap { white-space: normal; }

/* ---------- Property / list cards ---------- */
.list-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff;
  cursor: pointer; box-shadow: var(--shadow);
}
.list-card:hover { border-color: var(--c-teal-2); }
.list-card.active { border-color: var(--c-navy); background: #F2F7FC; }
.list-card-title { font-weight: 800; color: var(--c-ink); font-size: 0.95rem; }
.list-card-meta { color: var(--c-slate-muted); font-size: 0.8rem; margin-top: 2px; }

/* ---------- Segmented control / tabs ---------- */
.segmented { display: inline-flex; background: #EEF2F5; border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: none; background: none; padding: 7px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; color: var(--c-slate-muted); }
.segmented button.active { background: #fff; color: var(--c-ink); box-shadow: var(--shadow); }

/* ---------- Progress ---------- */
.progress-track { height: 10px; border-radius: 6px; background: #EEF2F5; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--c-teal-2), var(--c-success)); }

/* ---------- Hero (public) ---------- */
.hero {
  background: radial-gradient(1100px 460px at 15% -10%, rgba(23,195,178,0.35), transparent 60%),
              radial-gradient(900px 420px at 100% 0%, rgba(245,67,127,0.25), transparent 55%),
              linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
  color: #fff; padding: 72px 28px 60px;
}
.hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero { padding: 48px 18px 40px; } }
.hero h1 { color: #fff; font-size: 2.5rem; line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; }
.hero p.lead { color: #C9D6E0; font-size: 1.05rem; margin-top: 16px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 36px; }
.hero-stat-value { font-size: 1.4rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 0.72rem; color: #93A4B3; margin-top: 2px; }
.hero-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); }

.section { padding: 56px 28px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: 1.7rem; font-weight: 800; }
.section-head p { color: var(--c-slate-muted); margin-top: 10px; }
.section-alt { background: #fff; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.section-dark { background: var(--c-ink); color: #fff; }
.section-dark .section-head p { color: #93A4B3; }
.section-dark h2 { color: #fff; }

.cap-card { border-radius: var(--radius-lg); padding: 22px; color: #fff; background: var(--c-ink-2); position: relative; overflow: hidden; }
.cap-card .cap-chip { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.cap-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.cap-card .tagline { color: #A9B7C4; font-size: 0.85rem; margin-bottom: 14px; }
.cap-card ul { margin: 0; padding-left: 18px; font-size: 0.82rem; color: #C9D6E0; line-height: 1.6; }

.pillar-card { border-radius: var(--radius-lg); padding: 26px; color: #fff; }
.pillar-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.pillar-card p { color: rgba(255,255,255,0.88); font-size: 0.9rem; line-height: 1.55; }

.pricing-card { border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.pricing-card.featured { border-color: var(--c-navy); box-shadow: var(--shadow-lg); position: relative; }
.pricing-card .price { font-size: 1.8rem; font-weight: 800; color: var(--c-ink); }
.pricing-card .cadence { font-size: 0.78rem; color: var(--c-slate-muted); }
.pricing-card ul { margin: 0; padding-left: 18px; font-size: 0.85rem; line-height: 1.7; color: var(--c-slate); flex: 1; }
.badge-featured { position: absolute; top: -12px; right: 20px; background: var(--c-pink); color: #fff; font-size: 0.68rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }

.testimonial { border-radius: var(--radius-lg); padding: 22px; background: #fff; border: 1px solid var(--c-border); }
.testimonial p.quote { font-size: 0.92rem; line-height: 1.6; color: var(--c-slate); font-style: italic; }
.testimonial .who { margin-top: 14px; font-size: 0.8rem; font-weight: 800; color: var(--c-ink); }
.testimonial .who span { display: block; font-weight: 500; color: var(--c-slate-muted); font-style: normal; }

.footer { background: var(--c-ink); color: #93A4B3; padding: 36px 28px; font-size: 0.82rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.ai-suggest { border-radius: var(--radius); border: 1px dashed var(--c-teal-2); background: #F0FBFA; padding: 16px 18px; }
.ai-suggest .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 800; color: var(--c-teal-2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.ai-suggest ul { margin: 0; padding-left: 18px; font-size: 0.85rem; line-height: 1.65; color: var(--c-slate); }

.device-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--c-border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.device-icon { font-size: 1.3rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #F1F5F8; border-radius: 10px; }
.device-name { font-weight: 700; font-size: 0.86rem; color: var(--c-ink); }
.device-vendor { font-size: 0.74rem; color: var(--c-slate-muted); }
.device-state { margin-left: auto; font-size: 0.74rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }

.empty-hint { color: var(--c-slate-muted); font-size: 0.85rem; padding: 10px 0; }
