/* ============================================================
   VANDRIX STOCKS — design tokens & base
   Light insurance-configurator aesthetic, fintech grid product.
   Fonts loaded via <link> in the HTML head.
   ============================================================ */

:root {
  /* Ink / text */
  --ink:        #0f1b2e;
  --ink-2:      #16243c;
  --ink-soft:   #525c6e;
  --ink-faint:  #8a93a4;

  /* Surfaces & lines */
  --bg:         #f3f6fb;
  --bg-2:       #eef2f8;
  --card:       #ffffff;
  --panel:      #f7f9fd;
  --line:       #e4e9f1;
  --line-soft:  #eef2f8;

  /* Navy (header / dark buttons) */
  --navy:       #0f1f38;
  --navy-2:     #0b1730;
  --navy-deep:  #081127;

  /* Green — primary signal accent */
  --green:        #21c08a;   /* teal-green accent */
  --green-bright: #2ed8a0;
  --green-deep:   #14946a;
  --green-tint:   #e7f8f0;
  --green-strong: #2bb673;   /* solid grade green */

  /* Grade ramp */
  --grade-green:  #2fc27e;
  --grade-yellow: #f5cb4d;
  --grade-orange: #f0993e;
  --grade-red:    #ef6f6f;

  /* Blue (interaction, per style guide) */
  --blue:       #1b4fc8;
  --blue-bright:#2f6bf0;
  --blue-tint:  #ecf2fe;

  /* Gold — premium accent (logo) */
  --gold:       #c4a049;
  --gold-deep:  #a8862f;
  --gold-tint:  #f6efdb;

  /* Radii */
  --r-card:   16px;
  --r-pill:   999px;
  --r-chip:   8px;
  --r-badge:  6px;

  /* Shadows */
  --shadow:      0 1px 2px rgba(16,28,54,.04), 0 8px 24px rgba(16,28,54,.06);
  --shadow-lift: 0 2px 6px rgba(16,28,54,.06), 0 18px 48px rgba(16,28,54,.12);
  --shadow-pop:  0 4px 12px rgba(16,28,54,.08), 0 24px 64px rgba(16,28,54,.18);

  /* Fonts */
  --display: "Chakra Petch", system-ui, sans-serif;   /* squared tech */
  --sans:    "Hanken Grotesk", system-ui, sans-serif;  /* nav / body reading */
  --mono:    "Spline Sans Mono", ui-monospace, Menlo, monospace; /* numbers */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input  { font-family: inherit; }

::selection { background: var(--green-tint); color: var(--green-deep); }

/* numbers everywhere */
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* scrollbars (quiet) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d4dbe6; border-radius: 999px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---- App shell ---------------------------------------------------------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }

.appbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, #0c1933 0%, #0a1428 100%);
  color: #fff;
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px; height: 64px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 8px 30px rgba(8,17,39,.28);
}
.appbar .brand { display: flex; align-items: center; gap: 11px; }
.appbar .brand img { height: 30px; width: auto; display: block; }
.appbar .brand .wm {
  font-family: var(--sans); font-weight: 800; letter-spacing: .14em;
  font-size: 18px; color: #fff;
}
.appbar .brand .chip {
  height: 34px; width: 34px; border-radius: 9px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.appbar .brand .chip img { height: 26px; width: 26px; }

/* nav uses style-guide font (Hanken Grotesk) */
.appnav { display: flex; align-items: center; gap: 4px; font-family: var(--sans); }
.appnav button {
  font-family: var(--sans);
  color: #aeb9cc; font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 9px; letter-spacing: .01em;
  transition: color .15s, background .15s;
}
.appnav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.appnav button.active { color: #fff; background: rgba(46,216,160,.16); }

.appbar .spacer { flex: 1; }

.appbar .globalsearch {
  font-family: var(--sans);
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; padding: 8px 13px; width: 270px;
  color: #c7d0de;
}
.appbar .globalsearch input {
  background: none; border: none; outline: none; color: #fff;
  font-size: 13.5px; width: 100%; font-family: var(--sans);
}
.appbar .globalsearch input::placeholder { color: #7c879b; }

.appbar .acct {
  font-family: var(--sans);
  display: flex; align-items: center; gap: 9px; cursor: pointer;
}
.appbar .acct .ava {
  height: 34px; width: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #2ed8a0, #14946a);
  display: grid; place-items: center; color: #06281d; font-weight: 800;
  font-family: var(--sans); font-size: 13px;
}
.appbar .acct .nm { font-size: 13px; font-weight: 600; color: #dbe3ef; }
.appbar .acct .sub { font-size: 10.5px; color: #7c879b; font-family: var(--mono); }

/* page wrap */
.page { flex: 1; padding: 26px 28px 64px; max-width: 1320px; width: 100%; margin: 0 auto; }

/* breadcrumb */
.crumbs {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-faint); display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; text-transform: uppercase;
}
.crumbs button { font-family: var(--mono); color: var(--ink-soft); font-size: 11.5px; letter-spacing: .04em; }
.crumbs button:hover { color: var(--green-deep); }
.crumbs .sep { color: #c2cad6; }

/* generic card */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
}

/* generic pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-pill); padding: 7px 15px;
  font-weight: 600; font-size: 13px;
}
.pill-green { background: var(--green); color: #053826; }
.pill-navy  { background: var(--navy); color: #fff; }
.pill-ghost { background: var(--bg-2); color: var(--ink-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 11px 20px; font-weight: 600; font-size: 14px;
  letter-spacing: .005em; transition: transform .12s, box-shadow .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-green { background: var(--green); color: #053826; box-shadow: 0 6px 18px rgba(33,192,138,.28); }
.btn-green:hover { background: var(--green-bright); }
.btn-ghost { background: var(--bg-2); color: var(--ink-soft); }
.btn-ghost:hover { background: #e4eaf3; color: var(--ink); }
.btn-disabled { background: var(--bg-2); color: var(--ink-faint); cursor: default; }
.btn-disabled:active { transform: none; }

/* score bar */
.scorebar { height: 8px; border-radius: 999px; background: #e4eaf3; overflow: hidden; }
.scorebar > i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-bright)); }

/* grade badge */
.grade {
  display: inline-grid; place-items: center; font-family: var(--mono);
  font-weight: 600; border-radius: var(--r-badge); color: #fff;
  letter-spacing: .01em;
}

/* tiny uppercase label */
.lab {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint);
}

/* section heading (display font) */
.h-sec { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

/* fade/slide in */
@keyframes vx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vx-fade { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: vx-rise .34s cubic-bezier(.22,.7,.3,1) both; }
.fade { animation: vx-fade .3s ease both; }

/* quantity stepper buttons */
.qbtn {
  width: 46px; height: 100%; min-height: 48px; font-size: 22px; font-weight: 500;
  color: var(--ink-soft); background: var(--panel); transition: background .14s, color .14s;
}
.qbtn:hover { background: var(--bg-2); color: var(--ink); }

/* expandable row anatomy connectors */
.anat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(7, 1fr);
}
