/* Merrit Connect — shared styles
   Author: generated for Merrit Capital Corporation
   Notes: mobile-first, accessible, fast (system fonts)
*/

:root{
  --green: #0b6f4a;
  --green2:#0a8456;
  --lime:  #b9d632;

  --bg:    #f6f8f7;
  --card:  rgba(255,255,255,0.86);
  --card2: rgba(255,255,255,0.72);
  --stroke:rgba(16,33,28,0.10);

  --text:  #0f1f1a;
  --muted: rgba(16,33,28,0.72);
  --muted2:rgba(16,33,28,0.55);

  --shadow:  0 22px 70px rgba(9, 25, 20, 0.12);
  --shadow2: 0 10px 26px rgba(9, 25, 20, 0.10);

  --r: 26px;
  --r2: 18px;
  --focus: rgba(11,111,74,0.22);

  --accent: linear-gradient(135deg, var(--green2), var(--lime));
  --accentSoft: rgba(11,111,74,0.10);
  --accentSoft2: rgba(185,214,50,0.12);

  --max: 1060px;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #06110d;
    --card: rgba(255,255,255,0.07);
    --card2: rgba(255,255,255,0.05);
    --stroke: rgba(255,255,255,0.14);

    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.72);
    --muted2: rgba(255,255,255,0.56);

    --shadow: 0 26px 90px rgba(0,0,0,0.55);
    --shadow2: 0 12px 30px rgba(0,0,0,0.38);

    --focus: rgba(185,214,50,0.18);
    --accentSoft: rgba(185,214,50,0.10);
  }
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 850px at 12% 8%, rgba(11,111,74,0.18), transparent 55%),
    radial-gradient(1100px 900px at 92% 4%, rgba(185,214,50,0.18), transparent 58%),
    radial-gradient(900px 700px at 50% 105%, rgba(0,0,0,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.0)),
    var(--bg);
  padding: 28px 16px;
  display:flex;
  justify-content:center;
}

a{ color: inherit; }
small{ font-size: 12.5px; }

.wrap{ width: min(var(--max), 100%); }

.shell{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.topbar{
  padding: 22px 22px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--stroke);
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 260px;
}
.brand .mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accentSoft);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.78);
  user-select:none;
}
@media (prefers-color-scheme: dark){
  .brand .mark{ color: rgba(0,0,0,0.82); }
}

.brand .kicker{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 2px;
}
.brand .title{
  margin:0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}
.brand .subtitle{
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  text-decoration:none;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.pill strong{ color: var(--text); font-weight: 800; letter-spacing: .01em; }

.pill .dot{
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accentSoft2);
}

.content{
  padding: 22px;
  display:grid;
  gap: 18px;
}

.hero{
  border-radius: var(--r2);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(11,111,74,0.18), transparent 60%),
    radial-gradient(900px 300px at 90% 0%, rgba(185,214,50,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  padding: 20px 18px;
}

.hero h1{
  margin:0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}
.hero p{
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14.5px;
  max-width: 70ch;
}

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

.btn{
  -webkit-tap-highlight-color: transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow2);
  text-decoration:none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }
.btn.primary{
  background: var(--accent);
  color: rgba(0,0,0,0.82);
  border-color: rgba(255,255,255,0.12);
}
.btn.secondary{
  background: rgba(255,255,255,0.04);
}
.btn.ghost{
  background: transparent;
  box-shadow: none;
}
.btn .icon{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn .icon svg{ width: 18px; height: 18px; display:block; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border-radius: var(--r2);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow2);
  padding: 16px 16px;
}

.sectionTitle{
  margin:0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}

.kpiGrid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.kpi{
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  padding: 12px 12px;
  min-height: 72px;
}
.kpi .big{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 15px;
}
.kpi .small{
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.tags{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 13px;
}
.tag .dot{
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accentSoft);
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.list li{ margin: 6px 0; }

.actionGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 720px){
  .actionGrid{ grid-template-columns: 1fr; }
}

.actionBtn{
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow2);
  text-decoration:none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.actionBtn:hover{ transform: translateY(-1px); }
.actionBtn:active{ transform: translateY(0px); }
.actionBtn.primary{
  background: var(--accent);
  border-color: rgba(255,255,255,0.12);
  color: rgba(0,0,0,0.82);
}
.actionBtn .left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.actionBtn .ico{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.actionBtn.primary .ico{
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.25);
}
.actionBtn .ico svg{ width: 20px; height: 20px; display:block; }
.actionBtn .txt{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}
.actionBtn .txt strong{
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actionBtn .txt span{
  font-size: 12.5px;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actionBtn.primary .txt span{ color: rgba(0,0,0,0.64); }
.actionBtn .arrow{
  font-size: 18px;
  color: rgba(255,255,255,0.65);
}
.actionBtn.primary .arrow{ color: rgba(0,0,0,0.58); }

.profileHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.profile{
  display:flex;
  gap: 14px;
  align-items:center;
}
.avatar{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent);
  color: rgba(0,0,0,0.82);
  font-weight: 900;
  letter-spacing: 0.02em;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 0 0 7px var(--accentSoft);
  user-select:none;
}
.profile h2{
  margin:0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.profile .role{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.profile .role strong{ color: var(--text); }

.socialRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.socialBtn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  text-decoration:none;
  color: var(--muted);
  font-size: 13px;
}
.socialBtn:hover{ border-color: rgba(11,111,74,0.35); }
.socialBtn img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display:block;
}

.fineprint{
  padding: 18px 22px 22px;
  border-top: 1px solid var(--stroke);
  color: var(--muted2);
  font-size: 12.5px;
  line-height: 1.55;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.notice{
  border-radius: 16px;
  border: 1px dashed rgba(11,111,74,0.35);
  background: rgba(11,111,74,0.06);
  padding: 12px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.82);
  color: rgba(255,255,255,0.95);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  max-width: calc(100% - 24px);
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce){
  .btn, .actionBtn{ transition: none; }
  .btn:hover, .actionBtn:hover{ transform: none; }
  .toast{ transition: none; }
}

button.actionBtn{
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: 1px solid var(--stroke);
}
