/* ==========================================================================
   Vadose — Shared Components
   "Mild Console" web treatment. Requires tokens.css (loaded first).
   Every value here references a token — no raw colors or shadows inline.

   Components: .v-panel · .v-tile · .v-faceplate · .v-knob · .v-btn · .v-hero
   App builds reuse these at FULL depth by swapping --raised for the deeper
   app shadows; the markup stays identical.
   ========================================================================== */

/* ---- Base ---------------------------------------------------------------- */
.v-root {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ==========================================================================
   PANEL — the primary raised surface (cards, sections, faceplate base).
   Soft dual shadow + a 1px top-edge highlight catching the light.
   ========================================================================== */
.v-panel {
  background: var(--panel);
  border-radius: var(--r-xl);
  box-shadow: var(--raised-lg), inset 0 1px 0 var(--edge);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}
/* The signature top-edge highlight line */
.v-panel::after,
.v-tile::after,
.v-faceplate::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge), transparent);
}

/* ==========================================================================
   TILE — flat-faced feature card sitting on physical depth.
   Flat text, no rivets. The everyday building block for the site grid.
   ========================================================================== */
.v-tile {
  background: var(--tile);
  border-radius: var(--r-lg);
  box-shadow: var(--raised), inset 0 1px 0 var(--edge);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
}
.v-tile__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.v-tile__sub {
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  margin: 3px 0 9px;
  color: var(--accent);
}
.v-tile__body {
  font-size: var(--fs-sm);
  color: var(--ink2);
  line-height: 1.5;
}
/* Free / Paid line semantics — drive accent off the modifier */
.v-tile--free { --accent: var(--free); }
.v-tile--paid { --accent: var(--paid); }
.v-tile--free .v-tile__sub { color: var(--free); }
.v-tile--paid .v-tile__sub { color: var(--paid); }

/* Status footer (LED + label) */
.v-tile__status {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--hair);
  font-size: var(--fs-eyebrow);
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Elevated SQUARE icon chip — gets the 1px ring so it doesn't wash into the
   surface. Round controls (knobs) deliberately do NOT get the ring. */
.v-icon-chip {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--panel-hi);
  box-shadow: var(--raised), 0 0 0 1px var(--ring);
}
.v-icon-chip svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; }

/* Ribbon tag (Free / Paid / Soon) */
.v-ribbon {
  font-size: 9.5px;
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  box-shadow: var(--inset);
  color: var(--accent);
}

/* ==========================================================================
   FACEPLATE — instrument panel for app screenshots / live-control demos.
   Same as a panel but tuned for the knob + bars layout.
   ========================================================================== */
.v-faceplate {
  background: var(--panel);
  border-radius: var(--r-xl);
  box-shadow: var(--raised-lg), inset 0 1px 0 var(--edge);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.v-faceplate__header {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Small glowing status LED — reused by faceplate, kicker, tile status */
.v-led {
  width: 6px;
  height: 6px;
  border-radius: var(--r-round);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ==========================================================================
   KNOB — the one tactile flourish kept on the web. Conic accent ring +
   soft glow, masked to a ring. No 1px ring (round control).
   ========================================================================== */
.v-knob {
  width: 86px;
  height: 86px;
  border-radius: var(--r-round);
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  background: radial-gradient(circle at 38% 30%, var(--panel-hi), var(--tile) 72%);
  box-shadow: var(--raised-lg), inset 0 1px 1px var(--edge), inset 0 -3px 6px var(--sh-d);
}
.v-knob::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: var(--r-round);
  background: conic-gradient(from 130deg, var(--accent) 0 70%, transparent 70%);
  filter: drop-shadow(0 0 7px var(--accent-soft));
  -webkit-mask: radial-gradient(circle, transparent 47px, #000 48px);
  mask: radial-gradient(circle, transparent 47px, #000 48px);
}
.v-knob__tick {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--ink2);
  transform: translateX(-50%);
}
.v-knob__face {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: .05em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-soft);
}

/* Inset bar / meter (focus, expose, etc.) */
.v-bar-track {
  height: 7px;
  border-radius: 5px;
  background: var(--tile);
  box-shadow: var(--inset);
  overflow: hidden;
}
.v-bar-track > i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

/* ==========================================================================
   BUTTON
   --primary: filled accent · --ghost: hairline outline
   ========================================================================== */
.v-btn {
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--r-md);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.v-btn--primary {
  background: var(--accent);
  color: var(--btn-ink);
  box-shadow: var(--raised);
}
.v-btn--ghost {
  background: transparent;
  color: var(--ink2);
  box-shadow: inset 0 0 0 1px var(--hair);
}

/* ==========================================================================
   KICKER — pill eyebrow chip with LED (hero / section intros)
   ========================================================================== */
.v-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--panel);
  box-shadow: var(--raised);
}

/* ==========================================================================
   HERO — two-column intro (copy + faceplate)
   ========================================================================== */
.v-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--sp-8);
  align-items: center;
}
.v-hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-semibold);
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--ink);
}
.v-hero__title .accent {
  background: linear-gradient(115deg, var(--gold),
              color-mix(in srgb, var(--gold) 60%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v-hero__body {
  color: var(--ink2);
  font-size: var(--fs-body);
  margin: 16px 0 22px;
  max-width: 42ch;
}

@media (max-width: 760px) {
  .v-hero { grid-template-columns: 1fr; }
}
