/* ==========================================================================
   W2W Agency, design system
   Palette, type and textures from W2W_Brand_Guidelines
   ========================================================================== */

:root {
  --bg-a: #1a1240;
  --bg-b: #2c1a52;
  --bg-c: #201048;
  --panel: #241850;
  --panel-alt: #2d1c63;
  --line: #4a3a86;
  --gold: #c9a24b;
  --gold-bright: #f0cf78;
  --cream: #f1ecf9;
  --muted: #a79bd1;

  --ok: #7bd8a9;
  --warn: #f0cf78;
  --bad: #f28f8f;
  --info: #8fb6f2;

  --radius: 14px;
  --radius-sm: 9px;
  --max: 1180px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", "Courier New", monospace;

  --shadow: 0 18px 50px -20px rgba(6, 2, 24, 0.85);
  --grad: linear-gradient(160deg, #1a1240 0%, #2c1a52 55%, #201048 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grad);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* soft light behind the hero */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(46% 60% at 22% 30%, rgba(201, 162, 75, 0.16), transparent 70%),
    radial-gradient(40% 55% at 78% 12%, rgba(123, 47, 143, 0.28), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

img, svg { max-width: 100%; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--cream); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  display: block;
}

.lead { font-size: clamp(1.02rem, 1.5vw, 1.19rem); color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }
.small { font-size: 0.85rem; }
.dim { color: var(--muted); }
.gold { color: var(--gold-bright); }
.center { text-align: center; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--tight { padding: clamp(44px, 5vw, 72px) 0; }
.section--line { border-top: 1px solid rgba(74, 58, 134, 0.5); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-bright);
}
.btn--solid {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #201048;
}
.btn--solid:hover { background: #ffe19a; color: #201048; box-shadow: 0 12px 28px -12px rgba(240, 207, 120, 0.7); }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(201, 162, 75, 0.08); }
.btn--sm { padding: 0.55em 1em; font-size: 0.82rem; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(22, 14, 50, 0.82);
  border-bottom: 1px solid rgba(74, 58, 134, 0.45);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand img { width: 34px; height: 34px; }
.brand__name { font-family: var(--display); font-size: 1.06rem; letter-spacing: 0.02em; line-height: 1; }
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 4px;
}
.nav__links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav__links a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); border-bottom-color: var(--gold); }
.nav__links a.btn { border-bottom-color: transparent; }
.nav__links a.btn--solid { color: #201048; }
.nav__links a.btn--solid:hover { color: #201048; }
.nav__links a.btn--ghost { color: var(--gold-bright); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 8px; padding: 7px 10px; cursor: pointer; }

@media (max-width: 900px) {
  .nav__toggle { display: block; margin-left: auto; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(22, 14, 50, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 8px 0; font-size: 0.95rem; width: 100%; }
  .nav__links .btn { margin-top: 8px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em { color: var(--gold-bright); font-style: italic; }
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 54ch; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(74, 58, 134, 0.55);
}
.hero__proof span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.hero__proof span b { color: var(--gold-bright); font-weight: 700; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* hero product preview card */
.preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(45, 28, 99, 0.55);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dot--live { background: var(--ok); box-shadow: 0 0 0 3px rgba(123, 216, 169, 0.15); }
.preview__url { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); margin-left: 8px; }
.preview__body { padding: 18px; }
.preview__label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi {
  background: rgba(26, 18, 64, 0.6);
  border: 1px solid rgba(74, 58, 134, 0.7);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.kpi__n { font-family: var(--display); font-size: 1.18rem; color: var(--gold-bright); line-height: 1.1; }
.kpi__l { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }
.mini-rows { display: grid; gap: 7px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(26, 18, 64, 0.45);
  border: 1px solid rgba(74, 58, 134, 0.4);
}
.mini-row__name { flex: 1; }
.mini-row__pill { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--gold-bright); }
.mini-row .avatar { width: 22px; height: 22px; font-size: 0.6rem; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card--hover:hover { transform: translateY(-3px); border-color: rgba(201, 162, 75, 0.55); }
.card--featured {
  background: var(--panel-alt);
  box-shadow: inset 0 2px 0 var(--gold);
}
.card__num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--gold-bright);
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card__cta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-top: 18px; display: inline-block; }

/* ---------- flow diagram ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
  counter-reset: step;
}
.flow__step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}
.flow__step::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
  z-index: 2;
}
.flow__step:last-child::after { content: ""; }
.flow__step h4 { margin-bottom: 6px; color: var(--cream); }
.flow__step p { font-size: 0.83rem; color: var(--muted); margin: 0; }
.flow__tag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 10px; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step::after { display: none; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--featured { background: var(--panel-alt); box-shadow: inset 0 2px 0 var(--gold); border-color: rgba(201, 162, 75, 0.5); }
.plan__name { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.plan__price { font-family: var(--display); font-size: 2.1rem; color: var(--gold-bright); line-height: 1; }
.plan__price span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted); display: block; margin-top: 8px; text-transform: uppercase; }
.plan__for { font-size: 0.87rem; color: var(--muted); margin: 14px 0 18px; min-height: 3.4em; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; font-size: 0.87rem; }
.plan li { padding-left: 20px; position: relative; color: var(--cream); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-size: 0.78rem; }
.plan li.off { color: var(--muted); opacity: 0.65; }
.plan li.off::before { content: "×"; color: var(--line); }
.plan .btn { margin-top: auto; }

/* ---------- stats / impact ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-left: 2px solid var(--gold); padding-left: 18px; }
.stat__n { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--gold-bright); line-height: 1; }
.stat__l { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ---------- callout ---------- */
.callout {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: inset 0 2px 0 var(--gold);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 820px) { .callout { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--cream);
  background: rgba(26, 18, 64, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: rgba(167, 155, 209, 0.6); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.14);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(74, 58, 134, 0.5); padding: 56px 0 34px; margin-top: 40px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.87rem; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--cream); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(74, 58, 134, 0.4);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   App shell (CRM, bookkeeping, dashboard)
   ========================================================================== */

.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; position: relative; z-index: 1; }

.app__side {
  background: rgba(19, 12, 45, 0.92);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.app__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--cream); }
.app__brand img { width: 30px; height: 30px; }
.app__brand .brand__name { font-size: 0.98rem; }
.app__group { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(167, 155, 209, 0.7); padding: 14px 10px 6px; }
.app__nav { display: grid; gap: 2px; }
.app__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.app__link:hover { background: rgba(74, 58, 134, 0.28); color: var(--cream); }
.app__link.is-active { background: rgba(201, 162, 75, 0.13); border-color: rgba(201, 162, 75, 0.4); color: var(--gold-bright); }
.app__link .badge { margin-left: auto; }
.app__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(74, 58, 134, 0.4); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--muted); line-height: 1.8; }

.app__main { min-width: 0; display: flex; flex-direction: column; }
.app__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(74, 58, 134, 0.45);
  background: rgba(26, 18, 64, 0.55);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.app__title { font-family: var(--display); font-size: 1.16rem; margin: 0; }
.app__title span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; display: block; margin-top: 4px; }
.app__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app__body { padding: 26px; display: grid; gap: 20px; align-content: start; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app__side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; gap: 4px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app__brand, .app__group, .app__foot { display: none; }
  .app__nav { grid-auto-flow: column; }
  .app__link { white-space: nowrap; }
  .app__body { padding: 16px; }
  .app__top { padding: 12px 16px; }
}

/* panels & tables */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(45, 28, 99, 0.4); }
.panel__head h3 { margin: 0; font-size: 1rem; }
.panel__head .mono { color: var(--muted); margin-left: auto; }
.panel__body { padding: 18px; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 18, 64, 0.5);
  white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid rgba(74, 58, 134, 0.32); vertical-align: middle; }
.table tbody tr:hover { background: rgba(74, 58, 134, 0.14); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table__empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.cell-strong { color: var(--cream); font-weight: 600; }
.cell-sub { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.badge--new { color: var(--info); border-color: rgba(143, 182, 242, 0.45); background: rgba(143, 182, 242, 0.1); }
.badge--contacted { color: var(--gold-bright); border-color: rgba(240, 207, 120, 0.45); background: rgba(240, 207, 120, 0.1); }
.badge--proposal { color: #d7b6f5; border-color: rgba(215, 182, 245, 0.45); background: rgba(215, 182, 245, 0.1); }
.badge--won, .badge--paid { color: var(--ok); border-color: rgba(123, 216, 169, 0.45); background: rgba(123, 216, 169, 0.12); }
.badge--lost, .badge--overdue { color: var(--bad); border-color: rgba(242, 143, 143, 0.45); background: rgba(242, 143, 143, 0.1); }
.badge--sent { color: var(--info); border-color: rgba(143, 182, 242, 0.45); background: rgba(143, 182, 242, 0.1); }
.badge--draft { color: var(--muted); }
.badge--captured { color: var(--gold-bright); border-color: rgba(240, 207, 120, 0.45); }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(201, 162, 75, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.66rem;
  flex: none;
}
.row-flex { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--body);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.icon-btn--bad:hover { border-color: var(--bad); color: var(--bad); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(26, 18, 64, 0.35); }
.toolbar input[type="search"] { max-width: 260px; padding: 8px 12px; font-size: 0.85rem; }
.toolbar select { max-width: 170px; padding: 8px 12px; font-size: 0.85rem; }
.toolbar .spacer { flex: 1; }

/* KPI cards in app */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1080px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpicard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.kpicard::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--gold); opacity: 0.7; }
.kpicard__l { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.kpicard__n { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--gold-bright); line-height: 1.15; margin-top: 8px; }
.kpicard__s { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.kpicard--ok::after { background: var(--ok); }
.kpicard--bad::after { background: var(--bad); }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: rgba(26, 18, 64, 0.5); border: 1px solid rgba(74, 58, 134, 0.6); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 260px; }
.kcol__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(74, 58, 134, 0.6); }
.kcol__name { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.kcol__sum { margin-left: auto; font-family: var(--mono); font-size: 0.62rem; color: var(--gold-bright); }
.kcol__body { padding: 10px; display: grid; gap: 8px; align-content: start; flex: 1; }
.kcol.is-over { border-color: var(--gold); background: rgba(201, 162, 75, 0.08); }
.kcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  cursor: grab;
  font-size: 0.82rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.kcard:hover { border-color: rgba(201, 162, 75, 0.55); }
.kcard.is-dragging { opacity: 0.45; transform: rotate(-1deg); }
.kcard__name { font-weight: 600; color: var(--cream); }
.kcard__co { font-size: 0.74rem; color: var(--muted); }
.kcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.kcard__val { font-family: var(--mono); font-size: 0.68rem; color: var(--gold-bright); margin-left: auto; }
.kcol__empty { padding: 16px 8px; text-align: center; font-size: 0.74rem; color: rgba(167, 155, 209, 0.6); }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 26, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 18px;
  z-index: 200;
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__box {
  width: 100%;
  max-width: 520px;
  background: #201545;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: pop 0.18s ease;
}
.modal__box--wide { max-width: 660px; }
@keyframes pop { from { transform: translateY(8px) scale(0.99); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head h3 { margin: 0; font-size: 1.05rem; }
.modal__close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--cream); }
.modal__body { padding: 20px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--line); background: rgba(26, 18, 64, 0.4); }

/* toast */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; }
.toast {
  background: #2b1d61;
  border: 1px solid var(--gold);
  color: var(--cream);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* charts */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 180px;
  padding-top: 8px;
  border-bottom: 1px solid rgba(74, 58, 134, 0.55);
}
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; text-align: center; }
.bar__pair { display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.bar__seg { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar__seg--in { background: linear-gradient(180deg, #f0cf78, #c9a24b); }
.bar__seg--out { background: linear-gradient(180deg, #6d4fb0, #4a3a86); }
.bar__label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--muted); }
.legend { display: flex; gap: 18px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }

/* progress list (reports) */
.rep { display: grid; gap: 12px; }
.rep__row { display: grid; grid-template-columns: 130px 1fr 76px; gap: 12px; align-items: center; font-size: 0.84rem; }
.rep__bar { height: 7px; background: rgba(74, 58, 134, 0.5); border-radius: 999px; overflow: hidden; }
.rep__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 999px; }
.rep__val { text-align: right; font-family: var(--mono); font-size: 0.7rem; color: var(--gold-bright); }
@media (max-width: 560px) { .rep__row { grid-template-columns: 96px 1fr 66px; font-size: 0.78rem; } }

/* integrations strip */
.integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .integrations { grid-template-columns: 1fr; } }
.integration { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: rgba(26, 18, 64, 0.45); border: 1px solid var(--line); border-radius: var(--radius); }
.integration__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-top: 7px; flex: none; box-shadow: 0 0 0 3px rgba(123, 216, 169, 0.14); }
.integration h4 { margin: 0 0 3px; font-size: 0.92rem; }
.integration p { margin: 0; font-size: 0.79rem; color: var(--muted); }

/* note */
.note {
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 75, 0.07);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.note b { color: var(--cream); font-weight: 600; }

.hero-app__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid rgba(201, 162, 75, 0.45); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.hero-app__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(123, 216, 169, 0.16); }

/* ==========================================================================
   Demo affordances, a visitor must always know this is a sandbox
   ========================================================================== */

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 162, 75, 0.45);
  background: rgba(201, 162, 75, 0.08);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.demo-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(240, 207, 120, 0.18);
}
@media (max-width: 720px) { .demo-pill { display: none; } }

/* guided tour */
.tour { display: grid; gap: 0; }
.tour__head { display: flex; align-items: center; gap: 12px; }
.tour__head h3 { margin: 0; }
.tour__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}
.tour__bar { height: 4px; background: rgba(74, 58, 134, 0.5); border-radius: 999px; overflow: hidden; margin: 14px 0 6px; }
.tour__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 999px; transition: width 0.4s ease; }
.tour__steps { display: grid; gap: 2px; margin-top: 10px; }
.tour__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.87rem;
  border: 1px solid transparent;
}
.tour__step:hover { background: rgba(74, 58, 134, 0.18); color: var(--cream); border-color: rgba(74, 58, 134, 0.45); }
.tour__step.is-done { color: rgba(167, 155, 209, 0.7); }
.tour__step.is-done .tour__label { text-decoration: line-through; text-decoration-color: rgba(201, 162, 75, 0.6); }
.tour__tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  flex: none;
  margin-top: 2px;
}
.tour__step.is-done .tour__tick { border-color: var(--gold); background: var(--gold); color: #201048; }
.tour__label { flex: 1; }
.tour__go { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); white-space: nowrap; }

/* two-door access page */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }
.door { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.door--open { box-shadow: inset 0 2px 0 var(--gold); background: var(--panel-alt); }
.door__tag { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
.door h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.door ul { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 9px; font-size: 0.9rem; }
.door li { padding-left: 20px; position: relative; color: var(--cream); }
.door li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-size: 0.78rem; }
.door .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Plans & margin, guardrails dashboard (app surface, dark)
   ========================================================================== */

.guard {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(74, 58, 134, 0.35);
}
.guard:last-child { border-bottom: 0; }

.guard__dot {
  width: 9px; height: 9px; border-radius: 50%;
  margin-top: 6px;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(167, 155, 209, 0.12);
}
.guard--ok .guard__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(123, 216, 169, 0.14); }
.guard--bad .guard__dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(242, 143, 143, 0.16); }

.guard__title {
  font-size: 0.92rem;
  color: var(--cream);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.guard__value {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.guard--ok .guard__value { color: var(--ok); border-color: rgba(123, 216, 169, 0.4); }
.guard--bad .guard__value { color: var(--bad); border-color: rgba(242, 143, 143, 0.4); }

.guard__detail {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 3px;
  max-width: 78ch;
}

.guard__target {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } .guard { grid-template-columns: 10px 1fr; } .guard__target { grid-column: 2; padding-top: 0; } }

.mixrow { margin-bottom: 16px; }
.mixrow__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--cream);
  margin-bottom: 6px;
}
.mixrow__top .mono { font-size: 0.72rem; color: var(--muted); }

.plan-select {
  background: rgba(26, 18, 64, 0.75);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  font-family: var(--body);
  font-size: 0.8rem;
}
.plan-select:focus { outline: 2px solid rgba(201, 162, 75, 0.5); }

.table .ok { color: var(--ok); }
.table .bad { color: var(--bad); }
.table .warn { color: var(--warn); }

/* the invoice form's discount warning */
.plan-warning {
  display: none;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--warn);
  border-left: 2px solid var(--warn);
  padding: 6px 0 6px 12px;
  margin: 0 0 14px;
}
.plan-warning.is-on { display: block; }

/* A nav CTA that points at the current page still has to look like a button:
   the .is-active rule outranks .btn--solid, so the label went ink-on-ink. */
.nav__links a.btn.is-active,
.nav__links a.btn.is-active:hover { color: #201048; border-bottom-color: transparent; }
.nav__links a.btn--ghost.is-active,
.nav__links a.btn--ghost.is-active:hover { color: var(--gold-bright); }

/* ==========================================================================
   Quotes, follow-ups, roles, VAT: screens added when the apps had to match
   the capability table on the pricing page.
   ========================================================================== */

/* who's signed in, and the way out of a page */
.app__user {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
}
.app__user:hover { color: var(--cream); border-color: var(--gold); }

.lock {
  max-width: 640px;
  margin: 8vh auto;
  text-align: center;
  padding: 0 24px;
}
.lock__icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.lock h2 { font-family: var(--display); font-size: 1.6rem; margin: 0 0 12px; color: var(--cream); }

/* follow-up tasks */
.tasklist { display: grid; gap: 8px; }
.task {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(74, 58, 134, 0.55);
  border-radius: 12px;
  background: rgba(26, 18, 64, 0.45);
}
.task--overdue { border-left: 2px solid var(--bad); }
.task--today { border-left: 2px solid var(--gold); }
.task--done { opacity: 0.5; }
.task__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  margin-top: 1px;
}
.task__check:hover { border-color: var(--ok); color: var(--ok); }
.task__title { color: var(--cream); font-size: 0.9rem; font-weight: 600; }
.task__detail { color: var(--muted); font-size: 0.79rem; line-height: 1.5; margin-top: 2px; }
.task__meta { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.task__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* automation rules */
.rule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(74, 58, 134, 0.35);
}
.rule:last-child { border-bottom: 0; }
.rule__title { color: var(--cream); font-size: 0.9rem; font-weight: 600; }
.rule__detail { color: var(--muted); font-size: 0.79rem; line-height: 1.55; margin-top: 2px; max-width: 70ch; }
.rule__state { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.rule__state--off { color: var(--muted); }
.rule .switch {
  border: 1px solid var(--line);
  background: rgba(26, 18, 64, 0.6);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.rule .switch[aria-pressed="true"] { color: #201048; background: var(--gold-bright); border-color: var(--gold-bright); }

/* quotes */
.quote-number { font-family: var(--mono); font-size: 0.78rem; color: var(--gold-bright); }
.badge--accepted { color: var(--ok); border-color: rgba(123, 216, 169, 0.45); background: rgba(123, 216, 169, 0.12); }
.badge--declined { color: var(--bad); border-color: rgba(242, 143, 143, 0.45); background: rgba(242, 143, 143, 0.1); }
.badge--invoiced { color: var(--info); border-color: rgba(143, 182, 242, 0.45); background: rgba(143, 182, 242, 0.1); }
.quote-total { font-family: var(--display); font-size: 1.15rem; color: var(--gold-bright); }

/* VAT return */
.vatbox {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(74, 58, 134, 0.45);
}
.vatbox:last-child { border-bottom: 0; }
.vatbox__n { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.vatbox__l { font-size: 0.88rem; color: var(--cream); }
.vatbox__v { font-family: var(--mono); font-size: 0.95rem; color: var(--cream); }
.vatbox--total { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 6px; padding-top: 14px; }
.vatbox--total .vatbox__v { color: var(--gold-bright); font-size: 1.15rem; }

/* printable invoice */
.invoice-sheet {
  background: #fff;
  color: #1a1240;
  max-width: 820px;
  margin: 40px auto;
  padding: 48px 52px;
  border-radius: 6px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  line-height: 1.55;
}
.invoice-sheet h1 { font-family: var(--display); font-size: 2rem; margin: 0 0 4px; color: #1a1240; }
.invoice-sheet .muted { color: #6e6291; }
.invoice-sheet table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.invoice-sheet th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6e6291; border-bottom: 1px solid #ddd0bd; padding: 8px 6px; }
.invoice-sheet td { padding: 10px 6px; border-bottom: 1px solid #eee5d8; }
.invoice-sheet td.num, .invoice-sheet th.num { text-align: right; }
.invoice-sheet .totals { margin-left: auto; width: 300px; }
.invoice-sheet .totals td { border: 0; padding: 6px 0; }
.invoice-sheet .grand { font-family: var(--display); font-size: 1.4rem; color: #1a1240; }
.invoice-sheet .sheet-foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid #eee5d8; font-size: 0.78rem; color: #6e6291; }

@media print {
  body.print-page { background: #fff !important; }
  body.print-page::before { display: none !important; }
  .invoice-sheet { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  .print-bar { display: none !important; }
}

/* the VAT return should print as a return, not as an app */
@media print {
  body::before { display: none !important; }
  .app__side, .app__top, .demo-pill, .app__user, .btn, .icon-btn, [data-print] { display: none !important; }
  .app { display: block !important; }
  .app__main { margin: 0 !important; }
  .app__body { padding: 0 !important; }
  body { background: #fff !important; color: #1a1240 !important; }
  .panel { border-color: #ccc !important; box-shadow: none !important; background: #fff !important; }
  .panel__head, .panel__body { background: #fff !important; }
  .panel__head h3, .table, .table td, .table th, .vatbox__l, .vatbox__v, .kpicard__n, .cell-strong { color: #1a1240 !important; }
  .dim, .small.dim, .mono { color: #555 !important; }
  .badge { border-color: #999 !important; color: #333 !important; }
  .kpis { display: flex !important; gap: 12px !important; }
}

/* add-on app rows in the plans modal */
.approw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 58, 134, 0.55);
  border-radius: 12px;
  background: rgba(26, 18, 64, 0.45);
  margin-bottom: 8px;
}
.approw__band {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 8px;
  white-space: nowrap;
}

/* ==========================================================================
   Mobile app shell: buyers open demos on phones, so the top bar has to wrap
   instead of squeezing three actions into a column beside the title.
   ========================================================================== */
@media (max-width: 720px) {
  .app__top {
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-start;
  }
  .app__title { flex: 1 1 100%; font-size: 1.35rem; }
  .app__title span { display: block; margin-top: 2px; }
  .app__user { order: 3; }
  .app__actions {
    order: 4;
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .app__actions .btn { flex: 0 0 auto; }
  .demo-pill { order: 2; }
  .app__side { position: sticky; top: 0; z-index: 40; }
  .app__side::-webkit-scrollbar { display: none; }
  .app__side { scrollbar-width: none; }
  .app__link.is-active { background: rgba(201, 162, 75, 0.14); }
  .panel__head { flex-wrap: wrap; gap: 8px 12px; }
  .panel__head .mono { margin-left: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpicard__n { font-size: 1.35rem; }
}

@media (max-width: 460px) {
  .kpis { grid-template-columns: 1fr; }
  .app__body { padding: 14px 12px; }
  .panel__body { padding: 14px; }
}

/* avoid one-word wraps in buttons and status chips */
.icon-btn, .btn { white-space: nowrap; }
.panel__head .mono { white-space: nowrap; }

/* Grid and table children default to min-width:auto, so a wide table inside a
   grid column pushes the whole page sideways on a phone. This is the fix. */
.grid > *, .split > *, .flow > *, .plans > * { min-width: 0; }
.panel, .table-wrap, .card { min-width: 0; }

/* decorative sparkles sit outside the hero by a couple of percent: on a phone
   that is a horizontal scrollbar, so they go. */
@media (max-width: 900px) { .sparkle { display: none; } }
