/* ==========================================================================
   SmartOpen — DESIGN SYSTEM
   Implements SmartOpen Brand Guidelines v1.0 (2026).

   Colour balance is the brand's own: roughly 60% neutral, 30% navy, 10%
   blue + mint. In this app that reads as an off-white canvas with white
   cards (the 60), a navy nav rail and navy bands (the 30), and Action Blue
   reserved for actions and links with Smart Mint for status (the 10).

   MudBlazor ships prebuilt from NuGet (no npm/node in this repo, by
   convention), so its component styles are overridden here rather than
   recompiled. Linked after MudBlazor.min.css, so equal-specificity rules
   win on source order.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Typography — Sora for headings, Inter for body and UI */
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Brand palette */
  --navy: #0B1F3A;          /* trust & stability — leads */
  --navy-hover: #132C4F;
  --blue: #2563EB;          /* digital energy — actions & links only */
  --blue-hover: #1D4FC7;
  --mint: #2DD4BF;          /* innovation — status & highlights */
  --off-white: #F7F8FA;     /* backgrounds */
  --charcoal: #1F2937;      /* body text */

  /* Neutrals */
  --border: #E3E7EE;
  --border-strong: #C9D1DC;
  --muted: #5B6572;         /* captions & metadata */
  --muted-light: #9AA3AF;

  /* On-navy text */
  --on-navy: #F7F8FA;
  --on-navy-dim: rgba(247, 248, 250, 0.72);
  --on-navy-faint: rgba(247, 248, 250, 0.5);

  /* Glass, for navy surfaces only — 8% fill, 16% border, 12px blur */
  --glass-fill: rgba(247, 248, 250, 0.08);
  --glass-border: 1px solid rgba(247, 248, 250, 0.16);
  --glass-blur: blur(12px);

  /* Geometry & shadow */
  --r-card: 16px;
  --r-panel: 14px;
  --r-control: 10px;
  --shadow-card: 0 4px 16px rgba(11, 31, 58, 0.05);
  --shadow-raised: 0 4px 16px rgba(11, 31, 58, 0.08);

  --drawer-w: 248px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
html,
body {
  background-color: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mud-layout,
.mud-main-content {
  background-color: var(--off-white);
}

/* MudBlazor emits a separate --mud-typography-*-family variable per variant
   and applies it by class. One attribute selector at the same specificity,
   loaded later, retakes all of them at once. */
.mud-typography,
[class*='mud-typography-'],
.mud-input-root,
.mud-button-root,
.mud-table {
  font-family: var(--font-body);
}

/* Sora 600–800 for headlines, tight tracking per the guidelines. */
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.mud-typography-h4 { font-size: 2rem; font-weight: 800; }
.mud-typography-h5 { font-size: 1.5rem; }
.mud-typography-h6 { font-size: 1.125rem; letter-spacing: -0.02em; }

.mud-typography-body2,
.mud-text-secondary {
  color: var(--muted);
}

/* FocusOnNavigate (Routes.razor) parks focus on the page's h1 after every
   navigation so screen readers announce the new page. Chromium counts that
   programmatic focus as :focus-visible, so it also paints a ring around the
   hero headline for everyone — hence this is scoped to the heading itself
   rather than guarded with :not(:focus-visible), which does not match.

   Limited to h1[tabindex='-1'], the exact shape FocusOnNavigate creates: a
   non-interactive element that never receives focus by tab or click. Real
   controls keep their focus rings. */
h1[tabindex='-1']:focus {
  outline: none;
}

/* ==========================================================================
   3. LAYOUT
   The app bar is white with a hairline rule; the drawer is the navy 30%.
   MudBlazor already reserves the drawer track via --mud-drawer-width-left and
   animates margin-left on .mud-main-content, so nothing here fights that.
   ========================================================================== */
.mud-appbar.mud-appbar-fixed-top {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.mud-appbar .mud-toolbar {
  padding-left: 24px;
  padding-right: 24px;
}

/* Navy nav rail. These selectors are long on purpose: MudBlazor sets the
   drawer's own background from rules carrying several classes, so anything
   shorter silently loses. */
.mud-layout .mud-drawer.mud-drawer-persistent.mud-drawer-pos-left,
.mud-layout .mud-drawer.mud-drawer-pos-left {
  background: var(--navy);
  border-right: none;
  box-shadow: none;
}

.mud-main-content {
  padding-top: calc(var(--mud-appbar-height) + 8px);
  padding-bottom: 32px;
}

/* The content column. Plain canvas — cards carry the structure, per the
   brand's feature-block pattern. */
.app-board {
  padding: 32px 32px 40px;
  background: transparent;
}

/* ==========================================================================
   4. SURFACES
   White cards, hairline borders, subtle shadow. No glass on light surfaces —
   the guidelines scope glass to dark ones only.
   ========================================================================== */
.mud-paper,
.mud-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  background-image: none;
}

/* Elevation props already on the pages (Elevation="1|2") resolve to the
   brand's single subtle shadow rather than Material's drop shadows. */
:root {
  --mud-elevation-1: var(--shadow-card);
  --mud-elevation-2: var(--shadow-card);
  --mud-elevation-3: var(--shadow-raised);
  --mud-elevation-4: var(--shadow-raised);
  --mud-elevation-6: var(--shadow-raised);
  --mud-elevation-8: 0 12px 32px rgba(11, 31, 58, 0.12);
}

/* Tables & data grids */
.mud-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.mud-table-root,
.mud-table-container,
.mud-table-toolbar,
.mud-table-head .mud-table-cell,
.mud-table-body .mud-table-cell,
.mud-table-foot .mud-table-cell {
  background-color: transparent;
}

.mud-table-head .mud-table-cell {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.mud-table-body .mud-table-cell {
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
  font-size: 0.9rem;
}

.mud-table-body .mud-table-row:hover > .mud-table-cell {
  background-color: var(--off-white);
}

/* Sticky action columns must stay opaque or cells scroll visibly underneath. */
.mud-table .mud-table-cell.sticky-right {
  background: #fff;
  border-left: 1px solid var(--border);
}

.mud-table-body .mud-table-row:hover > .mud-table-cell.sticky-right {
  background: var(--off-white);
}

.mud-simple-table {
  background: transparent;
}

.mud-simple-table td,
.mud-simple-table th {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

/* Tabs */
.mud-tabs .mud-tabs-toolbar-wrapper,
.mud-tabs .mud-tabs-panels {
  background-color: transparent;
}

.mud-tab {
  border-radius: var(--r-control);
  margin-right: 4px;
  min-height: 40px;
  color: var(--muted);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}

.mud-tab:hover {
  background: var(--off-white);
  color: var(--navy);
}

.mud-tab.mud-tab-active {
  color: var(--blue);
}

.mud-tab-slider {
  background-color: var(--blue);
}

/* Dialogs */
.mud-dialog {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.18);
}

.mud-dialog-title .mud-typography {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mud-overlay-dialog {
  background-color: rgba(11, 31, 58, 0.4);
}

/* Alerts */
.mud-alert {
  border-radius: var(--r-panel);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* ==========================================================================
   5. NAVIGATION (the navy rail)

   MudBlazor styles the selected link from
   `.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled)`
   — five classes, with a six-class variant for active+hover. Its defaults paint
   the label in the palette primary (Action Blue on navy: 3.2:1, below AA) and
   the background in action-hover (black 6%, which makes the selected row
   *darker* than the rail). So every state below is written at six classes to
   take precedence. Shortening these selectors reintroduces both bugs.
   ========================================================================== */
.so-nav {
  padding: 12px 0;
}

.mud-navmenu.so-nav .mud-nav-link {
  border-radius: var(--r-control);
  margin: 1px 12px;
  padding: 9px 14px;
  min-height: 42px;
  color: var(--on-navy-dim);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mud-navmenu.so-nav .mud-nav-link .mud-nav-link-icon {
  color: var(--on-navy-faint);
  font-size: 22px;
  transition: color 0.15s ease;
}

.mud-navmenu.so-nav .mud-nav-link .mud-nav-link-text {
  margin-left: 14px;
}

/* --- hover: lift toward full off-white on a faint wash. No transforms —
   the brand's personality is "professional, clean", never playful. --- */
.mud-navmenu.so-nav .mud-nav-link:hover:not(.mud-nav-link-disabled) {
  color: var(--on-navy);
  background-color: rgba(247, 248, 250, 0.07);
}

.mud-navmenu.so-nav .mud-nav-link:hover:not(.mud-nav-link-disabled) .mud-nav-link-icon {
  color: var(--on-navy);
}

/* --- selected: mint. The guidelines reserve mint for status and highlights,
   and the wordmark already uses a mint dot for "access granted", so the
   selected route is marked the same way: a mint rule, a mint-lit icon, and an
   off-white label. The label stays off-white rather than mint because it is
   the longest run of text in the rail and wants the full 15.5:1. --- */
.mud-navmenu.so-nav .mud-nav-link.active:not(.mud-nav-link-disabled),
.mud-navmenu.so-nav .mud-nav-link.active:not(.mud-nav-link-disabled):hover:not(.mud-nav-link-disabled),
.mud-navmenu.so-nav .mud-nav-link.active:not(.mud-nav-link-disabled):focus-visible:not(.mud-nav-link-disabled) {
  color: var(--on-navy);
  background-color: rgba(45, 212, 191, 0.12);
  font-weight: 600 !important;
}

.mud-navmenu.so-nav .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon {
  color: var(--mint);
}

.mud-navmenu.so-nav .mud-nav-link.active:not(.mud-nav-link-disabled)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--mint);
}

/* --- section headings --- */
.so-nav__section {
  margin: 20px 26px 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* 0.55 not lower: at ~11px these count as normal text and need 4.5:1, which
     42% white on navy misses (3.8:1). */
  color: rgba(247, 248, 250, 0.55);
}

.mud-drawer .mud-divider {
  border-color: rgba(247, 248, 250, 0.12);
}

/* ==========================================================================
   6. CONTROLS
   Buttons: 10px radius, Inter 600, blue for primary actions.
   ========================================================================== */
.mud-button-root {
  border-radius: var(--r-control);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.mud-button-filled {
  box-shadow: none;
}

.mud-button-filled.mud-button-filled-primary {
  background: var(--blue);
  color: #fff;
}

.mud-button-filled.mud-button-filled-primary:hover {
  background: var(--blue-hover);
  box-shadow: none;
}

.mud-button-outlined {
  border-color: var(--border-strong);
  color: var(--navy);
}

.mud-button-outlined:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.mud-button-text {
  color: var(--blue);
}

.mud-button-text:hover {
  background: rgba(37, 99, 235, 0.06);
}

.mud-icon-button:hover {
  background: var(--off-white);
}

/* Inputs */
.mud-input.mud-input-text,
.mud-input.mud-input-filled,
.mud-input.mud-input-outlined {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  padding-left: 12px;
  padding-right: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mud-input.mud-input-underline::before,
.mud-input.mud-input-underline::after {
  border-bottom: none !important;
}

.mud-input.mud-input-text:hover,
.mud-input.mud-input-filled:hover,
.mud-input.mud-input-outlined:hover {
  border-color: var(--muted-light);
}

.mud-input.mud-input-text.mud-focused,
.mud-input.mud-input-filled.mud-focused,
.mud-input.mud-input-outlined.mud-focused {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mud-input-slot,
.mud-input-root {
  color: var(--charcoal);
}

.mud-input-label {
  color: var(--muted);
}

.mud-input-label.mud-input-label-inputcontrol {
  left: 12px;
}

.mud-input-helper-text {
  color: var(--muted);
  padding-left: 12px;
}

/* Chips — status colour lives here, so mint and the semantic hues carry it. */
.mud-chip {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0;
  box-shadow: none;
}

.mud-chip.mud-chip-filled.mud-chip-color-default {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--muted);
}

.mud-chip.mud-chip-filled.mud-chip-color-success {
  background: rgba(45, 212, 191, 0.16);
  color: #0F7A6C;
}

.mud-chip.mud-chip-filled.mud-chip-color-info {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

/* Amber on white fails contrast at chip text sizes, so warning follows the
   same tinted-fill / dark-text construction as the others. */
.mud-chip.mud-chip-filled.mud-chip-color-warning {
  background: rgba(217, 119, 6, 0.14);
  color: #92500A;
}

.mud-chip.mud-chip-filled.mud-chip-color-error {
  background: rgba(176, 74, 74, 0.12);
  color: #8F3A3A;
}

/* Date picker */
.mud-picker-calendar-day.mud-selected {
  background-color: var(--blue);
  color: #fff;
}

/* ==========================================================================
   7. OVERLAYS
   ========================================================================== */
.mud-popover,
.mud-popover.mud-paper,
.mud-picker-container,
.mud-picker-inline-paper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.12);
  overflow: hidden;
}

.mud-popover .mud-list-item:hover,
.mud-list .mud-list-item:hover {
  background-color: var(--off-white);
}

.mud-popover .mud-selected-item,
.mud-list .mud-selected-item {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.mud-snackbar {
  border-radius: var(--r-panel);
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.16);
}

/* ==========================================================================
   8. BRAND WORDMARK
   "Smart" + the open O + "pen". The O is drawn as an unlatched ring with a
   mint access dot at the gap — never close it, never recolour it outside
   the palette.
   ========================================================================== */
.so-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}

.so-logo__open {
  display: inline-flex;
  align-items: baseline;
  color: var(--blue);
}

.so-logo__mark {
  margin: 0 1px;
}

/* Reversed, for navy surfaces */
.so-logo--reversed { color: var(--on-navy); }
.so-logo--reversed .so-logo__open { color: var(--mint); }

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .app-board { padding: 24px 20px 32px; }
}

@media (max-width: 768px) {
  .app-board { padding: 20px 16px 28px; }
  .mud-typography-h4 { font-size: 1.6rem; }
}

/* ==========================================================================
   10. LOGIN PAGE
   Pages/Login.cshtml renders outside the Blazor layout (Layout = null). Navy
   ground with the geometric outline motif, per the brand's cover pattern.
   ========================================================================== */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* The motif: rotated rounded squares in mint and blue, outline only. */
.login-page::before,
.login-page::after {
  content: '';
  position: absolute;
  border-radius: 64px;
  transform: rotate(12deg);
  pointer-events: none;
}

.login-page::before {
  right: -120px;
  top: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.login-page::after {
  left: -100px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 56px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.login-card .so-logo {
  font-size: 22px;
  margin-bottom: 28px;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 6px;
}

.login-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-card .form-group { margin-bottom: 18px; }

.login-card label {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.login-card input[type='email'],
.login-card input[type='password'] {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-card input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-login {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-control);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-login:hover { background: var(--blue-hover); }

.error-msg {
  color: #B04A4A;
  font-size: 14px;
  margin-bottom: 18px;
  padding: 11px 14px;
  background: rgba(176, 74, 74, 0.07);
  border: 1px solid rgba(176, 74, 74, 0.22);
  border-radius: var(--r-control);
}

/* ==========================================================================
   11. PUBLIC HOMEPAGE
   ========================================================================== */
.home {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  min-height: 100vh;
}

.home__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
  box-sizing: border-box;
}

/* --- nav --- */
.home__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.home__nav .so-logo { font-size: 20px; }

.home__navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.home__navlinks a {
  color: var(--charcoal);
  text-decoration: none;
}

.home__navlinks a:hover { color: var(--blue); }

/* The login button — upper right. Navy per the brand's nav CTA.
   Qualified with `a` because `.home__navlinks a` above is (0,1,1) and would
   otherwise win, painting charcoal text onto the navy fill. */
.home__navlinks a.home__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--r-control);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.home__navlinks a.home__login:hover { background: var(--navy-hover); color: #fff; }

/* --- hero --- */
.home__hero {
  background: var(--navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}

.home__hero-motif {
  position: absolute;
  border-radius: 64px;
  transform: rotate(12deg);
  pointer-events: none;
}

.home__hero-motif--1 {
  right: -120px;
  top: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.home__hero-motif--2 {
  right: 0;
  top: -20px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 48px;
}

.home__hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
  position: relative;
}

.home__eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 600;
}

.home__h1 {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  line-height: 1.08;
}

.home__lede {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-navy-dim);
  max-width: 460px;
}

.home__cta-row { display: flex; gap: 14px; margin-bottom: 36px; }

.home__btn {
  font-family: var(--font-body);
  border-radius: var(--r-control);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home__btn--primary { background: var(--blue); color: #fff; border: none; }
.home__btn--primary:hover { background: var(--blue-hover); color: #fff; }

.home__btn--ghost {
  background: transparent;
  color: var(--on-navy);
  border: 1px solid rgba(247, 248, 250, 0.3);
}

.home__btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

.home__trustnote { margin: 0; font-size: 13px; color: var(--on-navy-faint); }

/* Glass stat mock — the one place glass is used, and it is on navy. */
.home__mock {
  background: var(--glass-fill);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.home__mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home__mock-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}

.home__live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mint);
  font-weight: 600;
}

.home__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.home__mock-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.home__stat {
  background: rgba(247, 248, 250, 0.06);
  border: 1px solid rgba(247, 248, 250, 0.1);
  border-radius: 12px;
  padding: 14px;
}

.home__stat-label { margin: 0 0 4px; font-size: 11px; color: rgba(247, 248, 250, 0.55); }
.home__stat-value { margin: 0; font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.home__stat-value--mint { color: var(--mint); }

.home__cells { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }

.home__cell {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(247, 248, 250, 0.12);
}

.home__cell--inuse { background: var(--blue); }
.home__cell--open { background: rgba(45, 212, 191, 0.85); }
.home__cell--free { background: rgba(247, 248, 250, 0.12); }

.home__mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(247, 248, 250, 0.55);
}

.home__legend { display: flex; gap: 14px; }
.home__legend span { display: flex; align-items: center; gap: 6px; }

.home__swatch { width: 8px; height: 8px; border-radius: 3px; }

/* --- features --- */
.home__section { padding-top: 88px; padding-bottom: 88px; }

.home__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  text-align: center;
}

.home__h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 auto 56px;
  line-height: 1.15;
  color: var(--navy);
  text-align: center;
  max-width: 560px;
}

.home__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.home__feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.home__feature h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.home__feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* --- closing CTA --- */
.home__cta { padding-top: 96px; padding-bottom: 96px; text-align: center; }

.home__cta .home__h2 { margin-bottom: 16px; }

.home__cta-lede {
  margin: 0 auto 32px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
}

.home__cta-row--center { justify-content: center; margin-bottom: 0; }

.home__btn--secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border-strong);
}

.home__btn--secondary:hover { border-color: var(--blue); color: var(--blue); }

/* --- footer --- */
.home__footer { border-top: 1px solid var(--border); background: #fff; }

.home__footer-inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.home__footer .so-logo { font-size: 16px; }

.home__copy { margin: 0; font-size: 13px; color: var(--muted-light); }

@media (max-width: 960px) {
  .home__wrap { padding-left: 24px; padding-right: 24px; }
  .home__hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .home__h1 { font-size: 40px; }
  .home__features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .home__navlinks { gap: 14px; }
  .home__navlinks a { display: none; }
  .home__features { grid-template-columns: 1fr; }
  .home__h1 { font-size: 32px; }
  .home__h2 { font-size: 27px; }
  .home__cta-row { flex-wrap: wrap; }
}

/* ==========================================================================
   12. KIT PHOTOGRAPHY
   ========================================================================== */

/* The drag-to-frame preview. Fixed aspect so what is framed here is exactly
   what the client's card will show. */
.so-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--off-white);
  user-select: none;
}

.so-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* the frame owns the pointer, not the image */
}

/* A grid overlay while dragging, so the framing is judged against something. */
.so-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(255,255,255,.35) 1px, transparent 1px) 33.33% 0 / 33.33% 100%,
    linear-gradient(to bottom, rgba(255,255,255,.35) 1px, transparent 1px) 0 33.33% / 100% 33.33%;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.so-frame:hover::after { opacity: 1; }

.so-frame__hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

/* Clickable catalog images */
.so-photo { cursor: zoom-in; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.so-photo:hover { transform: scale(1.01); box-shadow: var(--shadow-raised); }

/* --- lightbox ------------------------------------------------------------
   The dialog itself is a MudDialog; this animates its content expanding from
   slightly small and transparent to full size, which reads as the thumbnail
   growing into the full view. */
@keyframes so-lightbox-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.so-lightbox .mud-dialog-content {
  padding: 0;
  overflow: hidden;
  animation: so-lightbox-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.so-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  background: var(--navy);
}

.so-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .so-lightbox .mud-dialog-content { animation: none; }
  .so-photo, .so-photo:hover { transition: none; transform: none; }
}

/* ==========================================================================
   13. MAPS
   ========================================================================== */
.so-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  /* Leaflet paints tiles and controls right to the edge; without this they
     square off the rounded corner. */
  overflow: hidden;
  background: var(--off-white);
  z-index: 0; /* keep tiles under MudBlazor overlays and dialogs */
}

.so-map--picker { height: 320px; cursor: crosshair; }

.so-map__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 280px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  background: var(--off-white);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

/* Leaflet's own attribution styling clashes with the brand type scale. */
.so-map .leaflet-control-attribution {
  font-family: var(--font-body);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   14. LAUNCH CARDS
   Dashboard tiles that leave the app for a client's own CDEM consoles.

   Built as white cards on purpose. A first pass made these navy so they would
   read as "departing", but on a dashboard of white cards over off-white they
   just looked like a different app bolted on. They are links, so the colour
   that marks them is Action Blue — which is what the 60/30/10 balance already
   reserves it for. Mint survives only as the accent inside each icon: at
   ~1.9:1 on white it can never carry text.
   ========================================================================== */
.launch-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 20px;
  /* Matches .mud-paper / .mud-card exactly, so the row reads as one set. */
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.launch-card:hover,
.launch-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-raised);
  text-decoration: none;
}

/* The card is one big link, so the ring goes on the tile, not on text inside. */
.launch-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.launch-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: var(--blue);
  transition: background-color 0.18s ease;
}

.launch-card:hover .launch-card__icon {
  background: rgba(37, 99, 235, 0.14);
}

.launch-card__icon .mud-icon-root {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.launch-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* lets the host line ellipsis instead of stretching the card */
}

.launch-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.launch-card__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* The destination, shown before the click rather than only in the status bar. */
.launch-card__host {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The external-link glyph. Sits top-right and drifts on hover, which is the
   only motion on the card — the guidelines ask for restraint here. */
.launch-card__go {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted-light);
  transition: transform 0.18s ease, color 0.18s ease;
}

.launch-card:hover .launch-card__go,
.launch-card:focus-visible .launch-card__go {
  color: var(--blue);
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .launch-card,
  .launch-card__icon,
  .launch-card__go {
    transition: none;
  }

  .launch-card:hover,
  .launch-card:focus-visible {
    transform: none;
  }

  .launch-card:hover .launch-card__go,
  .launch-card:focus-visible .launch-card__go {
    transform: none;
  }
}
