/* TrackerPro Portal v2 - mobile-first responsive stylesheet */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('../fonts/Inter-Bold.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:800;
  font-display:swap;
  src:url('../fonts/Inter-ExtraBold.woff2') format('woff2');
}
:root{
  --ink:#07153d;
  --muted:#51607f;
  --blue:#086cf4;
  --green:#0b9b53;
  --purple:#5f2bd8;
  --panel:#ffffff;
  --border:#d8e3f5;
  --shadow:0 18px 45px rgba(30,64,130,.16);
}

*,*::before,*::after{box-sizing:border-box}
html{
  height:100%;
  -webkit-text-size-adjust:100%;
  -moz-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  min-height:100%;
  margin:0;
  font-family:Inter,"Segoe UI","Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:linear-gradient(135deg,#f8fbff 0%,#eef7ff 50%,#f8fbff 100%);
  -webkit-font-smoothing:antialiased;
  word-spacing:normal;
  letter-spacing:normal;
}
img{max-width:100%}
a{text-decoration:none;color:inherit}
ul{list-style:none}

/* ===== Layout shell ===== */
.portal-shell{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px 16px 22px;
}
.portal-shell::before,
.portal-shell::after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(8,108,244,.08);
  z-index:0;
  pointer-events:none;
}
.portal-shell::before{width:280px;height:280px;right:-90px;top:120px}
.portal-shell::after{width:340px;height:140px;left:-130px;top:280px;transform:rotate(18deg)}
.portal-shell > *{position:relative;z-index:1}

/* ===== Brand header ===== */
.brand-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  font-size:20px;
  font-weight:800;
  letter-spacing:-.3px;
}
.brand-logo{
  height:auto;
  max-height:46px;
  width:auto;
  max-width:170px;
  object-fit:contain;
  display:block;
}
.trust-pill{
  display:none;
  gap:18px;
  align-items:center;
  padding:12px 22px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.62);
  font-weight:700;
  color:#142968;
  box-shadow:0 8px 26px rgba(54,92,150,.08);
}
.trust-pill span+span::before{content:"\2022";opacity:.4;margin-right:18px}

.license-message{text-align:center;color:#d83a3a;font-weight:700}

/* ===== Hero ===== */
.hero{text-align:center}
.tenant-name{
  margin:0 0 6px;
  color:var(--blue);
  font-size:15px;
  font-weight:800;
  letter-spacing:.3px;
}
.hero h1{
  margin:0;
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.4px;
}
.hero h1 span{color:var(--blue)}
.title-line{
  width:56px;height:4px;
  background:var(--blue);
  border-radius:99px;
  margin:12px auto;
}
.hero-subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
  font-weight:600;
  line-height:1.4;
}

/* ===== Portal cards ===== */
.portal-grid{
  width:100%;
  max-width:1240px;
  margin:6px auto 0;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.portal-card{
  color:inherit;
  background:var(--panel);
  border:2px solid #d3dfef;
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
  display:flex;
  flex-direction:column;
}
.portal-card:hover{
  transform:translateY(-6px);
  box-shadow:0 26px 60px rgba(30,64,130,.24);
  border-color:currentColor;
}
.card-top{
  height:96px;
  position:relative;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}
.card-top::after{
  content:"";
  position:absolute;
  left:-10%;right:-10%;bottom:-26px;
  height:58px;
  background:#fff;
  border-radius:50% 50% 0 0 / 60% 60% 0 0;
  opacity:.96;
}
.icon-circle{
  position:absolute;
  z-index:1;
  left:50%;bottom:-34px;
  transform:translateX(-50%);
  width:98px;height:98px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:46px;
  line-height:1;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Segoe UI",Arial,sans-serif;
  border:1px solid #edf2fb;
  box-shadow:0 12px 24px rgba(30,64,130,.2);
}
.card-body{
  padding:56px 22px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
  text-align:center;
}
.card-body h2{margin:0;font-size:23px;color:var(--accent)}
.card-line{width:50px;height:4px;background:var(--accent);border-radius:99px;margin:12px 0 18px}
.card-body p{
  margin:0 0 18px;
  max-width:300px;
  color:#344262;
  font-size:15px;
  line-height:1.55;
}
.card-body ul{
  width:100%;
  margin:0 0 22px;
  padding:18px 0 0;
  border-top:1px solid #dde6f3;
  text-align:left;
}
.card-body li{
  font-size:15px;
  font-weight:700;
  margin:11px 0;
  padding-left:32px;
  position:relative;
  line-height:1.4;
}
.card-body li::before{
  content:"\2713";
  position:absolute;
  left:0;top:50%;
  transform:translateY(-50%);
  width:20px;height:20px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-size:11px;
  line-height:20px;
  text-align:center;
}
.open-btn{
  margin-top:auto;
  width:100%;
  border-radius:9px;
  padding:15px 18px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  color:#fff;
  font-weight:800;
  font-size:15px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}
.open-btn b{font-weight:800}
.engineer{--accent:#0878f7;--accent2:#005be8}
.customer{--accent:#0da85b;--accent2:#048e49}
.admin{--accent:#6b38db;--accent2:#4d1fc4}

/* ===== Feature strip ===== */
.feature-strip{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  background:rgba(255,255,255,.86);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 14px 36px rgba(30,64,130,.1);
  overflow:hidden;
}
.feature{
  min-height:72px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 20px;
}
.feature+.feature{border-top:1px solid var(--border)}
.feature span{
  flex:0 0 auto;
  font-size:24px;
  width:48px;height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf5ff;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Segoe UI",Arial,sans-serif;
  line-height:1;
}
.feature b{font-size:15px;line-height:1.3;font-weight:700}

/* ===== Footer ===== */
footer{
  text-align:center;
  color:#586783;
  font-size:14px;
  margin-top:auto;
  padding-top:6px;
}
footer a{color:var(--blue);font-weight:700}

/* ============================================================
   TABLET  (>=600px)
   ============================================================ */
@media (min-width:600px){
  .portal-shell{padding:24px 26px 26px;gap:22px}
  .brand{font-size:24px;gap:14px}
  .brand-logo{max-height:54px;max-width:200px}
  .tenant-name{font-size:18px}
  .hero h1{font-size:38px;letter-spacing:-.8px}
  .hero-subtitle{font-size:18px}
  .feature-strip{grid-template-columns:repeat(2,1fr)}
  .feature{justify-content:center}
  .feature:nth-child(odd){border-right:1px solid var(--border)}
  .feature+.feature{border-top:1px solid var(--border)}
}

/* ============================================================
   LANDSCAPE TABLET / SMALL DESKTOP  (>=900px)
   ============================================================ */
@media (min-width:900px){
  .portal-shell{padding:26px 40px 24px;gap:20px}
  .brand{font-size:26px}
  .brand-logo{max-height:58px;max-width:220px}
  .trust-pill{display:flex}
  .tenant-name{font-size:20px}
  .hero h1{font-size:44px;letter-spacing:-1.2px}
  .hero-subtitle{font-size:19px}
  .portal-grid{grid-template-columns:repeat(3,1fr);gap:28px}
  .card-top{height:110px}
  .icon-circle{width:108px;height:108px;font-size:50px;bottom:-36px}
  .card-body{padding:62px 26px 24px}
  .card-body h2{font-size:25px}
  .feature-strip{grid-template-columns:repeat(5,1fr)}
  .feature{min-height:84px;justify-content:center;text-align:center}
  .feature:nth-child(odd){border-right:0}
  .feature+.feature{border-top:0;border-left:1px solid var(--border)}
}

/* ============================================================
   DESKTOP  (>=1200px)
   ============================================================ */
@media (min-width:1200px){
  .portal-shell{padding:28px 56px 24px}
  .portal-shell::before{width:420px;height:420px;right:-110px;top:135px}
  .portal-shell::after{width:520px;height:180px;left:-180px;top:300px}
  .brand{font-size:28px}
  .hero h1{font-size:50px;letter-spacing:-1.6px}
  .hero-subtitle{font-size:21px}
  .tenant-name{font-size:22px}
  .portal-grid{gap:34px}
  .card-top{height:115px}
  .icon-circle{width:116px;height:116px;font-size:54px;bottom:-38px}
  .card-body{padding:70px 32px 26px}
  .card-body h2{font-size:28px}
  .feature{min-height:88px}
  .feature span{width:54px;height:54px;font-size:28px}
  .feature b{font-size:16px}
}

/* ============================================================
   LARGE / WIDE SCREENS  (>=1600px)
   ============================================================ */
@media (min-width:1600px){
  .portal-shell{padding:34px 7vw 28px}
  .portal-grid,.feature-strip{max-width:1440px}
  .hero h1{font-size:56px}
}

/* ============================================================
   SHORT DESKTOP (height-constrained widescreen)
   ============================================================ */
@media (min-width:1200px) and (max-height:820px){
  .portal-shell{padding-top:16px;gap:10px}
  .hero h1{font-size:42px}
  .card-top{height:96px}
  .icon-circle{width:98px;height:98px;font-size:46px;bottom:-32px}
  .card-body{padding-top:58px}
  .card-body p{margin-bottom:12px}
  .card-body li{margin:8px 0}
  .feature{min-height:70px}
}

/* ============================================================
   PRINT
   ============================================================ */
@media print{
  body{background:#fff}
  .portal-shell{padding:0;gap:14px;min-height:auto}
  .portal-shell::before,.portal-shell::after{display:none}
  .trust-pill{display:none}
  .portal-grid{grid-template-columns:repeat(3,1fr);gap:14px}
  .portal-card{box-shadow:none;border:1px solid #ccc;break-inside:avoid;page-break-inside:avoid}
  .feature-strip{grid-template-columns:repeat(5,1fr);box-shadow:none}
  .card-top,.open-btn,.icon-circle,.feature span,.card-body li::before{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
/* TrackerPro Portal v2 - mobile-first responsive stylesheet */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('../fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('../fonts/Inter-Bold.woff2') format('woff2');
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:800;
  font-display:swap;
  src:url('../fonts/Inter-ExtraBold.woff2') format('woff2');
}
:root{
  --ink:#07153d;
  --muted:#51607f;
  --blue:#086cf4;
  --green:#0b9b53;
  --purple:#5f2bd8;
  --panel:#ffffff;
  --border:#d8e3f5;
  --shadow:0 18px 45px rgba(30,64,130,.16);
}

*,*::before,*::after{box-sizing:border-box}
html{
  height:100%;
  -webkit-text-size-adjust:100%;
  -moz-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  min-height:100%;
  margin:0;
  font-family:Inter,"Segoe UI","Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:linear-gradient(135deg,#f8fbff 0%,#eef7ff 50%,#f8fbff 100%);
  -webkit-font-smoothing:antialiased;
  word-spacing:normal;
  letter-spacing:normal;
}
img{max-width:100%}
a{text-decoration:none;color:inherit}
ul{list-style:none}

/* ===== Layout shell ===== */
.portal-shell{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px 16px 22px;
}
.portal-shell::before,
.portal-shell::after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(8,108,244,.08);
  z-index:0;
  pointer-events:none;
}
.portal-shell::before{width:280px;height:280px;right:-90px;top:120px}
.portal-shell::after{width:340px;height:140px;left:-130px;top:280px;transform:rotate(18deg)}
.portal-shell > *{position:relative;z-index:1}

/* ===== Brand header ===== */
.brand-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  font-size:20px;
  font-weight:800;
  letter-spacing:-.3px;
}
.brand-logo{
  height:auto;
  max-height:46px;
  width:auto;
  max-width:170px;
  object-fit:contain;
  display:block;
}
.trust-pill{
  display:none;
  gap:18px;
  align-items:center;
  padding:12px 22px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.62);
  font-weight:700;
  color:#142968;
  box-shadow:0 8px 26px rgba(54,92,150,.08);
}
.trust-pill span+span::before{content:"\2022";opacity:.4;margin-right:18px}

.license-message{text-align:center;color:#d83a3a;font-weight:700}

/* ===== Hero ===== */
.hero{text-align:center}
.tenant-name{
  margin:0 0 6px;
  color:var(--blue);
  font-size:15px;
  font-weight:800;
  letter-spacing:.3px;
}
.hero h1{
  margin:0;
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.4px;
}
.hero h1 span{color:var(--blue)}
.title-line{
  width:56px;height:4px;
  background:var(--blue);
  border-radius:99px;
  margin:12px auto;
}
.hero-subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
  font-weight:600;
  line-height:1.4;
}

/* ===== Portal cards ===== */
.portal-grid{
  width:100%;
  max-width:1240px;
  margin:6px auto 0;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.portal-card{
  color:inherit;
  background:var(--panel);
  border:2px solid #d3dfef;
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
  display:flex;
  flex-direction:column;
}
.portal-card:hover{
  transform:translateY(-6px);
  box-shadow:0 26px 60px rgba(30,64,130,.24);
  border-color:currentColor;
}
.card-top{
  height:96px;
  position:relative;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}
.card-top::after{
  content:"";
  position:absolute;
  left:-10%;right:-10%;bottom:-26px;
  height:58px;
  background:#fff;
  border-radius:50% 50% 0 0 / 60% 60% 0 0;
  opacity:.96;
}
.icon-circle{
  position:absolute;
  z-index:1;
  left:50%;bottom:-34px;
  transform:translateX(-50%);
  width:98px;height:98px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:46px;
  line-height:1;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Segoe UI",Arial,sans-serif;
  border:1px solid #edf2fb;
  box-shadow:0 12px 24px rgba(30,64,130,.2);
}
.card-body{
  padding:56px 22px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
  text-align:center;
}
.card-body h2{margin:0;font-size:23px;color:var(--accent)}
.card-line{width:50px;height:4px;background:var(--accent);border-radius:99px;margin:12px 0 18px}
.card-body p{
  margin:0 0 18px;
  max-width:300px;
  color:#344262;
  font-size:15px;
  line-height:1.55;
}
.card-body ul{
  width:100%;
  margin:0 0 22px;
  padding:18px 0 0;
  border-top:1px solid #dde6f3;
  text-align:left;
}
.card-body li{
  font-size:15px;
  font-weight:700;
  margin:11px 0;
  padding-left:32px;
  position:relative;
  line-height:1.4;
}
.card-body li::before{
  content:"\2713";
  position:absolute;
  left:0;top:50%;
  transform:translateY(-50%);
  width:20px;height:20px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-size:11px;
  line-height:20px;
  text-align:center;
}
.open-btn{
  margin-top:auto;
  width:100%;
  border-radius:9px;
  padding:15px 18px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  color:#fff;
  font-weight:800;
  font-size:15px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}
.open-btn b{font-weight:800}
.engineer{--accent:#0878f7;--accent2:#005be8}
.customer{--accent:#0da85b;--accent2:#048e49}
.admin{--accent:#6b38db;--accent2:#4d1fc4}

/* ===== Feature strip ===== */
.feature-strip{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  background:rgba(255,255,255,.86);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 14px 36px rgba(30,64,130,.1);
  overflow:hidden;
}
.feature{
  min-height:72px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 20px;
}
.feature+.feature{border-top:1px solid var(--border)}
.feature span{
  flex:0 0 auto;
  font-size:24px;
  width:48px;height:48px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf5ff;
  font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Segoe UI",Arial,sans-serif;
  line-height:1;
}
.feature b{font-size:15px;line-height:1.3;font-weight:700}

/* ===== Footer ===== */
footer{
  text-align:center;
  color:#586783;
  font-size:14px;
  margin-top:auto;
  padding-top:6px;
}
footer a{color:var(--blue);font-weight:700}

/* ============================================================
   TABLET  (>=600px)
   ============================================================ */
@media (min-width:600px){
  .portal-shell{padding:24px 26px 26px;gap:22px}
  .brand{font-size:24px;gap:14px}
  .brand-logo{max-height:54px;max-width:200px}
  .tenant-name{font-size:18px}
  .hero h1{font-size:38px;letter-spacing:-.8px}
  .hero-subtitle{font-size:18px}
  .feature-strip{grid-template-columns:repeat(2,1fr)}
  .feature{justify-content:center}
  .feature:nth-child(odd){border-right:1px solid var(--border)}
  .feature+.feature{border-top:1px solid var(--border)}
}

/* ============================================================
   LANDSCAPE TABLET / SMALL DESKTOP  (>=900px)
   ============================================================ */
@media (min-width:900px){
  .portal-shell{padding:26px 40px 24px;gap:20px}
  .brand{font-size:26px}
  .brand-logo{max-height:58px;max-width:220px}
  .trust-pill{display:flex}
  .tenant-name{font-size:20px}
  .hero h1{font-size:44px;letter-spacing:-1.2px}
  .hero-subtitle{font-size:19px}
  .portal-grid{grid-template-columns:repeat(3,1fr);gap:28px}
  .card-top{height:110px}
  .icon-circle{width:108px;height:108px;font-size:50px;bottom:-36px}
  .card-body{padding:62px 26px 24px}
  .card-body h2{font-size:25px}
  .feature-strip{grid-template-columns:repeat(5,1fr)}
  .feature{min-height:84px;justify-content:center;text-align:center}
  .feature:nth-child(odd){border-right:0}
  .feature+.feature{border-top:0;border-left:1px solid var(--border)}
}

/* ============================================================
   DESKTOP  (>=1200px)
   ============================================================ */
@media (min-width:1200px){
  .portal-shell{padding:28px 56px 24px}
  .portal-shell::before{width:420px;height:420px;right:-110px;top:135px}
  .portal-shell::after{width:520px;height:180px;left:-180px;top:300px}
  .brand{font-size:28px}
  .hero h1{font-size:50px;letter-spacing:-1.6px}
  .hero-subtitle{font-size:21px}
  .tenant-name{font-size:22px}
  .portal-grid{gap:34px}
  .card-top{height:115px}
  .icon-circle{width:116px;height:116px;font-size:54px;bottom:-38px}
  .card-body{padding:70px 32px 26px}
  .card-body h2{font-size:28px}
  .feature{min-height:88px}
  .feature span{width:54px;height:54px;font-size:28px}
  .feature b{font-size:16px}
}

/* ============================================================
   LARGE / WIDE SCREENS  (>=1600px)
   ============================================================ */
@media (min-width:1600px){
  .portal-shell{padding:34px 7vw 28px}
  .portal-grid,.feature-strip{max-width:1440px}
  .hero h1{font-size:56px}
}

/* ============================================================
   SHORT DESKTOP (height-constrained widescreen)
   ============================================================ */
@media (min-width:1200px) and (max-height:820px){
  .portal-shell{padding-top:16px;gap:10px}
  .hero h1{font-size:42px}
  .card-top{height:96px}
  .icon-circle{width:98px;height:98px;font-size:46px;bottom:-32px}
  .card-body{padding-top:58px}
  .card-body p{margin-bottom:12px}
  .card-body li{margin:8px 0}
  .feature{min-height:70px}
}

/* ============================================================
   PRINT
   ============================================================ */
@media print{
  body{background:#fff}
  .portal-shell{padding:0;gap:14px;min-height:auto}
  .portal-shell::before,.portal-shell::after{display:none}
  .trust-pill{display:none}
  .portal-grid{grid-template-columns:repeat(3,1fr);gap:14px}
  .portal-card{box-shadow:none;border:1px solid #ccc;break-inside:avoid;page-break-inside:avoid}
  .feature-strip{grid-template-columns:repeat(5,1fr);box-shadow:none}
  .card-top,.open-btn,.icon-circle,.feature span,.card-body li::before{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
