/* === Drivad Styles (Production) ===
   Project: Drivad public prototype site
   Tech: Static HTML + CSS (no JS)
   Notes:
   - Mobile-first and responsive
   - Canada-inspired accents via --canada-red and maple icon/watermark
   - Wireframe mode styles are NOT included in this public build
   Last updated: 2026-03-13
================================================= */

:root{
  --canada-red:#D52B1E;
  --bg:#fcfcfd;
  --text:#14161a;
  --muted:#5a616d;
  --line:#e7e9ee;
  --card:#fbfbfd;
  --shadow: 0 10px 30px rgba(20,22,26,.08);
  --r:18px;

  --brand1:#2c1b5a;
  --brand2: var(--canada-red);

  --ok:#1f8f4a;
  --warn:#b35a00;
  --info:#2b5fd9;
}

*{box-sizing:border-box}
html,body{
  overflow-x: hidden;
height:100%}
body{
  overflow-x: hidden;

  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.4;
}

/* Page container: centered, max width */
.wrap{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

/* Header / top navigation */
.topbar{
  position:sticky;
  top:0;
  background: rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index:10;
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.topbar__right{
  display:flex;
  gap:12px;
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand__logo{
  width:32px;
  height:32px;
  object-fit:contain;
  flex:0 0 auto;
  display:block;
}


.brand__mark{
  width:34px;
  height:34px;
  border-radius:10px;
  background: linear-gradient(135deg, var(--brand1), #3a2a7a);
  position:relative;
}
.brand__mark::after{
  content:"";
  position:absolute;
  inset:9px 8px 9px 8px;
  border-radius:7px;
  background:#fff;
  opacity:.16;
}
.brand__name{
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
}

.page{
  padding:26px 0 40px 0;
}

h1{margin:0 0 6px 0; font-size:28px}
h2{margin:0 0 8px 0; font-size:18px}
h3{margin:0 0 8px 0; font-size:16px}
p{margin:0}
.muted{color:var(--muted)}

.hero{
  padding:10px 0 18px 0;
}

/* Card component: reusable surface */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:16px;
}

.card--click{
  display:block;
  color:inherit;
  text-decoration:none;
  transition: transform .12s ease, border-color .12s ease;
}
.card--click:hover{
  transform: translateY(-2px);
  border-color: #d7dbe7;
}

.card__icon{
  font-size:28px;
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #fff;
  border:1px solid var(--line);
  margin-bottom:10px;
}

.cardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.divider{
  height:1px;
  background: var(--line);
  margin:12px 0;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
  margin: 10px 0 14px 0;
}


/* Responsive grids */
.grid2{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:14px;
  margin: 10px 0 14px 0;
}


.row{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}
.grow{flex:1}

.stat{
  min-width:220px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--r);
  padding:14px;
}
.stat__label{font-size:12px; color:var(--muted)}
.stat__value{font-size:26px; font-weight:800; margin-top:2px}
.stat__hint{font-size:12px}

.chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
}

/* Badges: status chips (verified, pending, etc.) */
.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--line);
  background:#fff;
}
.badge--ok{border-color: rgba(31,143,74,.25); color: var(--ok)}
.badge--warn{border-color: rgba(179,90,0,.25); color: var(--warn)}
.badge--info{border-color: rgba(43,95,217,.25); color: var(--info)}

.link{
  color: var(--info);
  text-decoration:none;
  font-weight:600;
}
.link:hover{text-decoration:underline;color:var(--canada-red);}

/* Buttons: primary uses Canada red gradient */
.btn{
  appearance:none;
  border: 1px solid rgba(213,43,30,.25);
  background: linear-gradient(135deg, var(--canada-red), #ff6b6b);
  color:#fff;
  font-weight:900;
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

.btn:hover{filter: brightness(.98)}
.btn--ghost{
  background:#fff;
  color: var(--canada-navy);
  border: 1px solid var(--line);
  font-weight:800;
}

.btn--sm{
  padding:8px 10px;
  border-radius: 12px;
  font-size:13px;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.label{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:8px;
}

.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.form{display:flex; flex-direction:column; gap:10px}
.field{display:flex; flex-direction:column; gap:6px}
.field__label{font-size:12px; color:var(--muted); font-weight:700}

.input{
  width:100%;
  border:1px solid var(--line);
  border-radius: 14px;
  padding:10px 12px;
  background:#fff;
  color:var(--text);
  font:inherit;
}
.input:focus{
  outline:none;
  border-color: rgba(31,111,255,.35);
  box-shadow: 0 0 0 4px rgba(31,111,255,.08);
}

/* Timeline: stepper for status/progress */
.timeline{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.timeline__item{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.dot{
  width:12px;
  height:12px;
  border-radius:50%;
  margin-top:4px;
  border:2px solid #c6cada;
  background:#fff;
}
.timeline__item.done .dot{
  border-color: rgba(31,143,74,.35);
  background: rgba(31,143,74,.12);
}
.timeline__item.active .dot{
  border-color: rgba(43,95,217,.35);
  background: rgba(43,95,217,.12);
}
.timeline__title{font-weight:800; margin-bottom:2px}

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.listItem{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius: 16px;
  background:#fff;
}
.listItem__title{font-weight:800}
.listItem__side{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
  justify-content:center;
}

.callout{
  margin-top:8px;
  border:1px solid var(--line);
  background:#fff;
  border-radius: 16px;
  padding:12px;
}
.callout__title{font-weight:900; margin-bottom:4px}

.kpiRow{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.kpi{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.kpi__n{font-size:22px; font-weight:900}

.checklist{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:6px;
}
.check{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.check input{width:18px; height:18px}

.pillRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
}

.footer{
  border-top:1px solid var(--line);
  margin-top:18px;
  padding:16px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Breakpoint: tablet and below */
@media (max-width: 980px){
  .grid3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
  margin: 10px 0 14px 0;
}

  .grid2{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:14px;
  margin: 10px 0 14px 0;
}

  .row{flex-direction:column}
  .stat{min-width:unset}
  .twoCol{grid-template-columns:1fr}
  .kpiRow{grid-template-columns:1fr}
}

img{max-width:100%;height:auto;}

/* Week 2 wireframe mode */
body.wireframe *{
  box-shadow:none !important;
  background-image:none !important;
  transition:none !important;
}
body.wireframe{
  color:#111 !important;
  background:#fff !important;
}
body.wireframe .card,
body.wireframe .stat,
body.wireframe .listItem,
body.wireframe .input,
body.wireframe .btn,
body.wireframe .badge,
body.wireframe .chip,
body.wireframe .callout,
body.wireframe .check{
  background:#fff !important;
  border:2px solid #111 !important;
  color:#111 !important;
}
body.wireframe .muted,
body.wireframe .link{
  color:#111 !important;
  opacity:.75 !important;
}
body.wireframe .dot{
  border-color:#111 !important;
  background:#fff !important;
}

.brand__name::after{
  content:"";
  width:16px;
  height:16px;
  display:inline-block;
  margin-left:8px;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%23D52B1E'%20d='M12%202%20l1.2%203.7%203.8-1.4-1.8%203.5%203.9.3-3%202.6%202.6%202.8-3.8-.7-1.9%203.4-1.9-3.4-3.8.7%202.6-2.8-3-2.6%203.9-.3-1.8-3.5%203.8%201.4L12%202z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-size:contain;
  transform: translateY(2px);
}

/* Breakpoint: small phones */
@media (max-width: 480px){
  .wrap{
    width: calc(100% - 24px);
  }
  .topbar__inner{
    gap: 10px;
    padding: 12px 0;
  }
  .topbar__right{
    gap: 10px;
  }
  .brand__name{
    font-size: 16px;
  }
  h1{
    font-size: 24px;
    line-height: 1.15;
  }
  h2{
    font-size: 17px;
  }
  .card{
    padding: 14px;
    border-radius: 16px;
  }
  .btn{
  appearance:none;
  border: 1px solid rgba(213,43,30,.25);
  background: linear-gradient(135deg, var(--canada-red), #ff6b6b);
  color:#fff;
  font-weight:900;
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

  .actions{
    gap: 10px;
  }
  .chip, .badge{
    font-size: 12px;
  }
}

.btn--ghost:hover{ border-color: rgba(213,43,30,.25); }

/* Subtle maple watermark for a Canadian feel (very light) */
.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 -40px auto;
  width:220px;
  height:220px;
  opacity:0.06;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%23D52B1E'%20d='M12%202%20l1.2%203.7%203.8-1.4-1.8%203.5%203.9.3-3%202.6%202.6%202.8-3.8-.7-1.9%203.4-1.9-3.4-3.8.7%202.6-2.8-3-2.6%203.9-.3-1.8-3.5%203.8%201.4L12%202z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-size:contain;
  pointer-events:none;
}
.hero{
  position: relative;
}
