/* MirajSIM design system
   Tokens come from the locked brand: Night Sky is the one primary action
   colour, Midnight is the deep surface and ink, Dawn Amber is a sparing
   accent, First Light and white are the surfaces. Colour beyond that is
   spent on meaning only, as muted status tints. Shape follows the console
   benchmark: white cards on a pale ground, pill buttons, hairline tables,
   generous padding and calm empty states. */

:root{
  --night:#2E3A67; --night-deep:#232E52;
  --midnight:#1C2340;
  --amber:#E8A33D; --amber-hi:#F0B45A; --amber-deep:#9A6206;
  --first-light:#F5F1E8;
  --ground:#F8F6F1; --console-ground:#EEF0F5;
  --white:#FFFFFF;
  --text:#1C2340; --stone:#5D6575; --faint:#868FA1;
  --line:#E2E5EC; --line-strong:#D3D8E2;
  --ready-bg:#E7F1E9; --ready-text:#256B45; --ready-line:#B9D6C0;
  --progress-bg:#FBF1DC; --progress-text:#855A08; --progress-line:#EAC987;
  --help-bg:#F9E9E5; --help-text:#8F3524; --help-line:#E2B3A7;
  --plain-bg:#ECEEF2; --plain-text:#5D6575;
  --critical:#A63A2E;
  --shadow:0 16px 40px rgba(28,35,64,.13), 0 3px 10px rgba(28,35,64,.07);
  --shadow-soft:0 8px 24px rgba(28,35,64,.07), 0 1px 3px rgba(28,35,64,.05);
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--text); background:var(--ground);
  font-family:"Inter","SF Pro Text","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  font-size:18px; line-height:1.55; -webkit-font-smoothing:antialiased;
}
img{max-width:100%}
a{color:var(--night)}
a:hover{color:var(--night-deep)}
h1,h2,h3{color:var(--midnight); line-height:1.16; letter-spacing:-.02em; margin:0 0 .45em}
h1{font-size:clamp(34px,5.4vw,58px); font-weight:800}
h2{font-size:clamp(26px,3.4vw,36px); font-weight:800}
h3{font-size:22px; font-weight:700}
p{margin:0 0 1em}
.small{font-size:16px; color:var(--stone)}

/* type scale: one ladder everywhere, so headings always outweigh body.
   Display and h1 and h2 carry marketing pages; .page-title heads console
   and account pages; .section-title heads cards and page sections;
   .label is the small grey eyebrow above numbers and fields. */
.page-title{font-size:30px; font-weight:800; letter-spacing:-.02em;
  color:var(--midnight); line-height:1.15; margin:0 0 6px}
.section-title{font-size:22px; font-weight:800; letter-spacing:-.015em;
  color:var(--midnight); line-height:1.2; margin:0 0 10px}
.label{display:block; font-size:13.5px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; color:var(--stone); margin-bottom:6px}
.lede{font-size:19px; color:var(--stone); max-width:44em}
a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline:3px solid rgba(46,58,103,.45); outline-offset:2px}
.wrap{max-width:1120px; margin:0 auto; padding:0 20px}
.narrow{max-width:720px; margin:0 auto; padding:0 20px}

/* header */
.site-head{position:sticky; top:0; z-index:40; background:rgba(255,255,255,.9);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line)}
.site-head .bar{display:flex; align-items:center; gap:18px; padding:12px 20px;
  max-width:1120px; margin:0 auto}
.site-head img.logo{height:42px; width:auto}
.site-head nav{margin-left:auto; display:flex; gap:22px; align-items:center; flex-wrap:wrap}
.site-head nav a{color:var(--midnight); text-decoration:none; font-weight:600}
.site-head nav a:hover{color:var(--night)}
@media (max-width:640px){
  .site-head .bar{padding:10px 14px; gap:10px}
  .site-head img.logo{height:34px}
  .site-head nav{gap:13px}
  .site-head nav a{font-size:15.5px}
}

/* hero */
.hero{position:relative; color:#fff; overflow:hidden; background:var(--midnight)}
.hero .bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.hero .scrim{position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(28,35,64,.45) 0%, rgba(28,35,64,.20) 34%,
  rgba(28,35,64,.68) 78%, rgba(28,35,64,.93) 100%)}
.hero .inner{position:relative; z-index:2; max-width:1120px; margin:0 auto;
  padding:26px 20px 64px}
.hero .glassbar{display:flex; align-items:center; gap:16px; padding:12px 18px;
  background:rgba(28,35,64,.42); border:1px solid rgba(232,163,61,.45);
  border-radius:999px; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px)}
.hero .glassbar img{height:38px}
.hero .glassbar .sp{margin-left:auto; display:flex; gap:10px; align-items:center}
.hero h1{color:#fff; max-width:15em; margin-top:56px}
.hero .lede{font-size:clamp(19px,2.4vw,23px); max-width:34em; color:#E8EBF3}
.hero .cta-row{display:flex; gap:14px; flex-wrap:wrap; margin-top:26px}
.glass-strip{margin-top:38px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
  background:rgba(28,35,64,.48); border:1px solid rgba(232,163,61,.35); border-radius:16px;
  padding:18px; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px)}
.glass-strip div{text-align:center; color:#EDF0F6; font-weight:600}
.glass-strip .n{display:block; font-size:26px; font-weight:800; color:var(--amber)}
@media (max-width:640px){.glass-strip{grid-template-columns:1fr}}

/* buttons: pills, with Night Sky as the one primary action colour */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:none; cursor:pointer; text-decoration:none; font-weight:700; font-size:19px;
  padding:16px 30px; border-radius:999px; min-height:58px; transition:transform .08s ease}
.btn:active{transform:translateY(1px)}
.btn-primary{color:#fff; background:var(--night);
  box-shadow:0 10px 24px rgba(46,58,103,.28)}
.btn-primary:hover{background:var(--night-deep); color:#fff}
.btn-gold{color:var(--midnight); background:var(--amber);
  box-shadow:0 10px 24px rgba(232,163,61,.32)}
.btn-gold:hover{background:var(--amber-hi); color:var(--midnight)}
.btn-ghost{background:rgba(255,255,255,.10); color:#fff; border:1.5px solid rgba(255,255,255,.55)}
.btn-ghost:hover{color:#fff}
/* The one button hierarchy on light surfaces. Primary is the Night Sky
   solid pill. Secondary is the same pill outlined, on white. Danger is a
   quiet outline in the muted help tone, for destructive and test actions
   that must never compete with the primary. Quiet actions are plain text
   links, never buttons. Grey filled action buttons do not exist. */
.btn-secondary, .btn-outline{background:var(--white); color:var(--night);
  border:1.5px solid var(--night)}
.btn-secondary:hover, .btn-outline:hover{background:#EEF1F8; color:var(--night-deep)}
.btn-danger{background:var(--white); color:var(--help-text);
  border:1.5px solid var(--help-line)}
.btn-danger:hover{background:var(--help-bg); color:var(--help-text)}
/* btn-quiet is retired as a filled style. It now renders as the muted
   outline so any missed usage still follows the hierarchy. */
.btn-quiet{background:transparent; color:var(--stone);
  border:1.5px solid var(--line-strong)}
.btn-quiet:hover{color:var(--midnight); border-color:var(--stone)}
/* btn-sm: the compact size for table rows and console toolbars */
.btn-sm{min-height:42px; padding:9px 18px; font-size:15.5px}
.btn-block{display:flex; width:100%}
.btn[disabled]{opacity:.55; cursor:not-allowed}

/* cards and layout */
.section{padding:52px 0}
.grid{display:grid; gap:20px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.grid-3{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.grid-3,.grid-2{grid-template-columns:1fr}}
.card{background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-soft);
  padding:24px; border:1px solid var(--line)}
.card.hero-card{box-shadow:var(--shadow); border-top:4px solid var(--amber)}
.kicker, .card .kicker{color:var(--amber-deep); font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; font-size:15px; margin-bottom:6px}
.price{font-size:34px; font-weight:800; color:var(--midnight); letter-spacing:-.02em}
.price small{font-size:18px; color:var(--stone); font-weight:600}
.rows{list-style:none; margin:14px 0; padding:0}
.rows li{padding:9px 0; border-bottom:1px solid var(--line)}
.rows li:last-child{border-bottom:none}
.refund-line{background:var(--first-light); border:1.5px solid var(--amber); border-radius:12px;
  padding:14px 18px; font-weight:600; color:var(--midnight)}
.chip{display:inline-block; padding:6px 14px; border-radius:999px; font-weight:700;
  font-size:16px; background:var(--progress-bg); color:var(--amber-deep)}
.pill{display:inline-block; padding:6px 14px; border-radius:999px; font-weight:700; font-size:16px}
.pill-ready{background:var(--ready-bg); color:var(--ready-text)}
.pill-progress{background:var(--progress-bg); color:var(--progress-text)}
.pill-help{background:var(--help-bg); color:var(--help-text)}
.pill-plain{background:var(--plain-bg); color:var(--plain-text)}
/* badge: a smaller pill than .pill, for status inside tables and lists */
.badge{display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px;
  font-weight:700; font-size:13.5px; line-height:1.4; background:var(--plain-bg);
  color:var(--plain-text); border:1px solid var(--line)}
.badge-ready{background:var(--ready-bg); color:var(--ready-text); border-color:var(--ready-line)}
.badge-progress{background:var(--progress-bg); color:var(--progress-text); border-color:var(--progress-line)}
.badge-help{background:var(--help-bg); color:var(--help-text); border-color:var(--help-line)}
.seg{display:inline-flex; background:var(--plain-bg); border-radius:999px; padding:5px; gap:4px}
.seg a{padding:10px 22px; border-radius:999px; text-decoration:none; color:var(--midnight);
  font-weight:700}
.seg a.on{background:var(--night); color:#fff}

/* forms */
label{display:block; font-weight:700; color:var(--midnight); margin:18px 0 8px}
input[type=text],input[type=email],input[type=tel],input[type=password],select,textarea{
  width:100%; font-size:19px; padding:15px 18px; border-radius:12px;
  border:1.5px solid var(--line-strong); background:#fff; color:var(--text); font-family:inherit}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--night);
  box-shadow:0 0 0 4px rgba(46,58,103,.16)}
.radio-card{display:flex; gap:14px; align-items:flex-start; background:#fff;
  border:1.5px solid var(--line-strong); border-radius:16px; padding:18px; margin:10px 0; cursor:pointer}
.radio-card:hover{border-color:var(--night)}
.radio-card input{width:24px; height:24px; margin-top:4px; accent-color:var(--night)}
.radio-card .t{font-weight:700; color:var(--midnight)}
.checkline{display:flex; gap:12px; align-items:flex-start; margin:16px 0}
.checkline input{width:26px; height:26px; margin-top:3px; accent-color:var(--night)}
.notice{border-radius:12px; padding:18px 20px; margin:18px 0; font-weight:600}
.notice-good{background:var(--ready-bg); color:var(--ready-text); border:1.5px solid var(--ready-line)}
.notice-warn{background:var(--progress-bg); color:var(--progress-text); border:1.5px solid var(--progress-line)}
.notice-bad{background:var(--help-bg); color:var(--help-text); border:1.5px solid var(--help-line)}
.notice-info{background:var(--console-ground); color:var(--midnight); border:1.5px solid var(--line)}

/* steps */
.progress{display:flex; gap:8px; margin:20px 0}
.progress span{flex:1; height:9px; border-radius:99px; background:var(--plain-bg)}
.progress span.done{background:var(--night)}
.stepword{color:var(--amber-deep); font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  font-size:15px}

/* data hero */
.data-hero{background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:30px; border:1px solid var(--line); border-top:4px solid var(--amber)}
.data-big{font-size:clamp(64px,14vw,92px); font-weight:800; color:var(--midnight);
  letter-spacing:-.03em; line-height:1}
.data-big small{font-size:34px; font-weight:700}
.meter{height:20px; border-radius:99px; background:var(--plain-bg); overflow:hidden; margin:16px 0 6px}
.meter i{display:block; height:100%; border-radius:99px; background:var(--night)}
.meter.low i{background:linear-gradient(90deg, var(--amber-deep), var(--amber))}
.meter.critical i{background:repeating-linear-gradient(45deg, var(--critical) 0 14px, #C05A4C 14px 28px)}
.days-big{font-size:40px; font-weight:800; color:var(--midnight)}

/* floating tab bar */
.tabbar{position:sticky; bottom:14px; z-index:30; display:flex; justify-content:space-around;
  gap:4px; background:rgba(255,255,255,.9); backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px); border:1px solid var(--line);
  border-radius:999px; box-shadow:var(--shadow); padding:10px; margin:28px auto 10px;
  max-width:560px}
.tabbar a{text-decoration:none; color:var(--stone); font-weight:700; font-size:15px;
  padding:9px 14px; border-radius:999px; text-align:center}
@media (max-width:480px){.tabbar a{padding:8px 8px; font-size:13.5px}}
.tabbar a.on{background:var(--night); color:#fff}

/* delivery and install */
.qrbox{text-align:center}
.qrbox img{width:min(300px,80vw); height:auto; background:#fff; border-radius:16px;
  padding:10px; box-shadow:var(--shadow-soft)}
.code-field{display:flex; gap:10px; align-items:center; background:var(--console-ground); border-radius:12px;
  padding:12px 16px; margin:8px 0; word-break:break-all}
.code-field b{color:var(--midnight)}
.checklist{list-style:none; padding:0; margin:0}
.checklist li{background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-soft);
  padding:18px 20px; margin:12px 0; display:flex; gap:14px; align-items:flex-start}
.checklist .tick{flex:none; width:34px; height:34px; border-radius:50%;
  background:var(--amber); color:var(--midnight);
  font-weight:800; display:flex; align-items:center; justify-content:center}

/* sheet */
.dim{background:linear-gradient(180deg, rgba(28,35,64,.55), rgba(28,35,64,.78));
  min-height:100vh; padding:40px 0}
.sheet{background:var(--white); border-radius:24px 24px 16px 16px; box-shadow:var(--shadow);
  padding:30px; max-width:640px; margin:0 auto}
.sheet .grab{width:56px; height:6px; border-radius:99px; background:var(--line-strong); margin:0 auto 20px}

/* footer */
footer.site{background:var(--midnight); color:#DDE1EC; padding:48px 0 30px; margin-top:60px}
footer.site a{color:var(--amber-hi)}
footer.site .cols{display:grid; grid-template-columns:2fr 1fr 1fr; gap:26px}
@media (max-width:700px){footer.site .cols{grid-template-columns:1fr}}

/* admin and console */
.admin-body{background:var(--console-ground)}
/* table.admin and table.data: hairline row dividers only, small grey column
   headers, no heavy grid borders. Use table.data on non admin pages that
   need the same treatment outside the console. */
table.admin, table.data{width:100%; border-collapse:collapse; font-size:15px; background:#fff}
table.admin th, table.data th{padding:10px 12px; text-align:left; vertical-align:top;
  font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--stone); background:#F8F9FB; border-bottom:1px solid var(--line-strong)}
table.admin td, table.data td{padding:10px 12px; text-align:left; vertical-align:top;
  border-bottom:1px solid var(--line)}
table.admin tr:last-child td, table.data tr:last-child td{border-bottom:none}
/* num: money and counts align right in tables, headers included */
table.admin td.num, table.data td.num,
table.admin th.num, table.data th.num{text-align:right}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13.5px; word-break:break-all}
.share-url{overflow-wrap:anywhere}

/* empty: a calm centred empty state block for lists and tables with no
   data yet, stated plainly and never styled like an error */
.empty{padding:44px 24px; text-align:center; color:var(--stone);
  background:#F8F9FB; border:1px dashed var(--line-strong); border-radius:var(--radius)}
.empty h3{color:var(--midnight)}
.empty p{max-width:32em; margin-left:auto; margin-right:auto}
.empty .btn{margin-top:6px}

/* auth: the admin sign in layout. One centred card on the pale console
   ground, a Midnight head carrying the brand mark, then the one form. */
.auth{min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:36px 18px; background:var(--console-ground)}
.auth-card{width:100%; max-width:440px; padding:0; overflow:hidden}
.auth-head{background:var(--midnight); padding:24px 28px}
.auth-head img{height:38px; width:auto}
.auth-head .sub{display:block; margin-top:8px; font-size:13px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; color:#9AA3BC}
.auth-body{padding:26px 28px 28px}
.auth-body label:first-child{margin-top:0}

/* console shell: the admin console layout, on the benchmark structure.
   A Midnight sidebar carries the brand mark and the navigation; a slim
   white top bar carries the page title and the environment badges; the
   content sits on the pale console ground. Wrap a page in .console, put
   the sidebar in .console-side, and the top bar plus page in
   .console-main, with the page itself inside .console-content. */
.console{display:grid; grid-template-columns:252px minmax(0,1fr); min-height:100vh;
  background:var(--console-ground)}
.console-side{background:var(--midnight); color:#DDE1EC; padding:24px 16px;
  display:flex; flex-direction:column; gap:24px}
.console-brand{padding:2px 8px}
.console-brand img{height:36px; width:auto}
.console-brand .sub{display:block; margin-top:8px; font-size:13px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; color:#9AA3BC}
.console-nav{display:flex; flex-direction:column; gap:4px}
.console-nav a{display:flex; align-items:center; gap:10px; padding:11px 14px;
  border-radius:10px; color:#C6CCDC; text-decoration:none; font-weight:600}
.console-nav a svg{flex:none; width:19px; height:19px; stroke:currentColor;
  fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.console-nav a:hover{background:rgba(255,255,255,.07); color:#fff}
.console-nav a.on{background:var(--night); color:#fff; font-weight:700}
.console-side .foot{margin-top:auto; border-top:1px solid rgba(255,255,255,.14);
  padding-top:14px}
.console-main{min-width:0; display:flex; flex-direction:column}
.console-top{position:sticky; top:0; z-index:20; display:flex; align-items:center;
  gap:14px; flex-wrap:wrap; padding:14px 28px; background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line)}
.console-top .page-title{font-size:22px; margin:0}
.console-top .sp{margin-left:auto; display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.console-content{padding:28px; min-width:0}
.env-badge{display:inline-flex; align-items:center; gap:6px; padding:4px 11px;
  border-radius:999px; font-size:13px; font-weight:600; background:var(--plain-bg);
  color:var(--plain-text); border:1px solid var(--line)}
.env-badge b{color:var(--midnight); font-weight:700}
@media (max-width:820px){
  .console{grid-template-columns:1fr}
  .console-side{gap:14px}
  .console-nav{flex-direction:row; flex-wrap:wrap}
  .console-side .foot{margin-top:0}
  .console-top{padding:12px 16px}
  .console-content{padding:20px 16px}
}

/* kpi: the benchmark dashboard card. A solid rounded square icon tile with
   a white glyph, then a small grey label over one large bold number.
   Tile colour is spent on meaning: amber for money, rose for help,
   stone for money back, Night Sky for counts. */
.kpi{background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-soft); padding:20px 22px; display:flex; gap:14px;
  align-items:flex-start}
.kpi-icon{flex:none; width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; background:var(--night)}
.kpi-icon svg{width:24px; height:24px; stroke:#fff; fill:none; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round}
.kpi-icon.amber{background:var(--amber-deep)}
.kpi-icon.rose{background:var(--critical)}
.kpi-icon.stone{background:var(--stone)}
.kpi-icon.ready{background:var(--ready-text)}
.kpi-body{min-width:0}
.kpi-label{display:block; font-size:13.5px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; color:var(--stone); margin-bottom:4px}
.kpi-value{display:block; font-size:34px; font-weight:800; letter-spacing:-.02em;
  color:var(--midnight); line-height:1.1}
.kpi-sub{display:block; font-size:14.5px; color:var(--stone); margin-top:4px}
/* stat-grid: a responsive grid of kpi cards that wraps to one column on
   narrow screens */
.stat-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px}

/* spacing and bleed utilities, so templates never need inline styles for
   rhythm: stack gaps between page sections, and a full bleed card for
   photo led panels */
.mt-s{margin-top:20px}
.mt-m{margin-top:34px}
.mt-l{margin-top:52px}
.section-tight{padding-top:0}
.card-bleed{padding:0; overflow:hidden}
footer.site h3{color:#fff}
.footer-logo{height:44px; width:auto}
/* toolbar: a filter and actions row that sits above a table or list, with
   controls grouped at the left and actions pushed right by a .sp spacer */
.toolbar{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 16px}
.toolbar .sp{margin-left:auto; display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.toolbar input[type=text], .toolbar select{width:auto}
