/* ============================================================
   VelvetCSV — Brand overlay on the Gobvantage system
   Only product-specific extensions live here.
   ============================================================ */

/* Brand lockup — VelvetCSV wordmark */
.brand-lockup .wordmark--velvet {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 19px;
  color: var(--ink);
  line-height: 1;
}
.brand-lockup .wordmark--velvet .csv {
  color: var(--slate);
  font-weight: 700;
}

/* --------------------------------------------------------------
   Hero — before → after CSV cards in place of spec sheet
   -------------------------------------------------------------- */
.csv-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 1100px) {
  .csv-flow { grid-template-columns: 1fr; gap: 18px; }
  .csv-flow__arrow { transform: rotate(90deg); justify-self: center; }
}

.csv-card {
  background: #fff;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(75,97,113,0.06),
    0 24px 60px -20px rgba(42, 52, 57, 0.18),
    0 8px 24px -12px rgba(42, 52, 57, 0.10);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  position: relative;
}
.csv-card.after {
  outline: 1px solid rgba(46, 107, 79, 0.20);
}
.csv-card.before::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  pointer-events: none;
  z-index: -1;
}

.csv-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.csv-card__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #d9e0e5;
  display: inline-block;
}
.csv-card__dot + .csv-card__dot { margin-left: -2px; }
.csv-card__name {
  margin-left: 6px;
  font-weight: 600;
  color: var(--ink);
}
.csv-card__name .ext { color: var(--slate); font-weight: 500; }
.csv-card__tag {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
}
.csv-card__tag.warn { background: rgba(240, 193, 75, 0.18); color: #8a6a14; }
.csv-card__tag.ok   { background: rgba(46, 107, 79, 0.16); color: #2e6b4f; display: inline-flex; align-items: center; gap: 5px; }
.csv-card__tag.ok::before {
  content: "";
  width: 6px; height: 6px; background: #2e9a6c; display: inline-block;
}

.csv-card__body { padding: 4px 12px 12px; }
.csv-card__row {
  display: grid;
  grid-template-columns: 78px 1fr 70px;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
}
.csv-card__row:last-child { border-bottom: none; }
.csv-card__row.head {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 8px;
  margin-bottom: 2px;
}
.csv-card__row .amt {
  text-align: right;
  color: var(--ink);
  font-weight: 600;
}
.csv-card__row .amt.neg { color: var(--error); }
.csv-card.before .csv-card__row span {
  text-overflow: ellipsis;
  overflow: hidden;
}
/* "messy" before — desaturate, columnar grid */
.csv-card.before {
  transform: rotate(-1.2deg);
  transform-origin: center;
}
.csv-card.after {
  transform: rotate(0.8deg);
  transform-origin: center;
}
.csv-card.before .csv-card__row span:nth-child(2) {
  color: var(--ink-2);
}
.csv-card.after .csv-card__row span:nth-child(2) {
  color: var(--ink);
  font-weight: 600;
}

.csv-flow__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(42, 52, 57, 0.18);
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------
   How it works — three-step demo
   -------------------------------------------------------------- */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .steps-strip { grid-template-columns: 1fr; } }

.step-cell {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-cell:last-child { border-right: none; }
@media (max-width: 820px) {
  .step-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .step-cell:last-child { border-bottom: none; }
}

.step-cell__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate);
  font-weight: 700;
}
.step-cell h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.step-cell p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

/* Demo screen — the live preview row */
.demo-screen {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.demo-screen__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-variant);
}
.demo-screen__chrome .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d9e0e5;
}
.demo-screen__chrome .url {
  margin-left: 8px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.demo-screen__progress {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.demo-screen__progress .pip {
  width: 22px; height: 3px;
  background: var(--rule-strong);
}
.demo-screen__progress .pip.on {
  background: var(--ink);
}

.demo-stage {
  position: relative;
  min-height: 320px;
  padding: 40px 28px;
}
.demo-stage > .scene {
  position: absolute;
  inset: 40px 28px;
  opacity: 0;
  transition: opacity 400ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-stage > .scene.on { opacity: 1; }

/* Scene 1 — dropzone */
.dz {
  width: 100%;
  max-width: 480px;
  border: 1.5px dashed var(--rule-strong);
  border-radius: 4px;
  padding: 36px 24px;
  text-align: center;
  background: var(--surface-container-low);
  position: relative;
}
.dz.is-drag {
  border-color: var(--ink);
  background: #fff;
}
.dz__file {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 14px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dz__file::before {
  content: "";
  width: 8px; height: 10px;
  background: #c8d4dc;
  display: inline-block;
}
.dz__icon {
  width: 36px; height: 36px;
  margin: 4px auto 14px;
  color: var(--slate);
}
.dz__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.dz__sub {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Scene 2 — verify mapper */
.verify {
  width: 100%;
  max-width: 540px;
}
.verify__detect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-container);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.verify__detect::before { content: "✓"; font-size: 13px; }
.verify__head {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 700;
}
.verify__row {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}
.verify__row:last-child { border-bottom: none; }
.verify__chip {
  background: var(--surface-container-low);
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.verify__chip.warn {
  background: rgba(240, 193, 75, 0.18);
  border-color: rgba(240, 193, 75, 0.4);
  color: #8a6a14;
}
.verify__arrow {
  color: var(--slate);
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
}
.verify__field {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.verify__field.muted { color: var(--on-surface-variant); font-weight: 500; font-style: italic; }

/* Scene 3 — download */
.dl {
  text-align: center;
}
.dl__file {
  width: 200px;
  height: 110px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 0 auto 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 24px -10px rgba(42, 52, 57, 0.18);
}
.dl__file .bar {
  height: 6px;
  background: var(--surface-container-highest);
  border-radius: 2px;
}
.dl__file .bar.dark { background: var(--rule-strong); }
.dl__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.dl__btn {
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dl__btn::before {
  content: "↓";
  font-size: 16px;
  font-weight: 700;
}

/* --------------------------------------------------------------
   Pricing rebuild — industrial cards
   -------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }

.price-cell {
  padding: 38px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
}
.price-cell:last-child { border-right: none; }
@media (max-width: 820px) {
  .price-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .price-cell:last-child { border-bottom: none; }
}
.price-cell.featured {
  background: var(--ink);
  color: #fff;
}
.price-cell__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.price-cell__tag .dot { width: 6px; height: 6px; background: var(--slate); display: inline-block; }
.price-cell.featured .price-cell__tag { color: #b8c8d2; }
.price-cell.featured .price-cell__tag .dot { background: #6ee7a8; }

.price-cell__plan {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1;
}
.price-cell.featured .price-cell__plan { color: #fff; }

.price-cell__price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-top: 14px;
  line-height: 1;
}
.price-cell__price .per {
  font-size: 16px;
  font-weight: 500;
  color: var(--on-surface-variant);
  letter-spacing: 0;
  margin-left: 4px;
}
.price-cell.featured .price-cell__price { color: #fff; }
.price-cell.featured .price-cell__price .per { color: #b8c8d2; }

.price-cell__alt {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--on-surface-variant);
  margin-top: 10px;
}
.price-cell.featured .price-cell__alt { color: #b8c8d2; }

/* Limited-time badge — sits next to the $49 lifetime mention */
.ltd-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  margin-left: 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff7a45 0%, #f04438 100%);
  color: #fff;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  animation: ltd-pulse 2.2s ease-in-out infinite;
  box-shadow: 0 2px 8px -2px rgba(240, 68, 56, 0.55);
}
.price-cell.featured .ltd-badge {
  background: linear-gradient(135deg, #ff9966 0%, #ff5e3a 100%);
  color: #fff;
  box-shadow: 0 2px 10px -2px rgba(255, 122, 69, 0.6);
}
@keyframes ltd-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}
@media (prefers-reduced-motion: reduce) {
  .ltd-badge { animation: none; }
}

.price-cell__list {
  list-style: none;
  padding: 26px 0 28px;
  margin: 22px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-cell.featured .price-cell__list { border-top-color: rgba(255,255,255,0.12); }
.price-cell__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.price-cell.featured .price-cell__list li { color: #d4dee4; }
.price-cell__list li::before {
  content: "→";
  color: var(--slate);
  font-weight: 700;
  flex-shrink: 0;
}
.price-cell.featured .price-cell__list li::before { color: #6ee7a8; }

.price-cell__cta {
  margin-top: auto;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.compare th {
  background: var(--surface-container-low);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.compare th:not(:first-child), .compare td:not(:first-child) {
  text-align: center;
  width: 18%;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--ink-2); font-weight: 500; }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no  { color: var(--on-surface-variant); font-family: var(--font-mono); font-size: 12px; }

/* --------------------------------------------------------------
   App-page nav (when used inside the converter)
   -------------------------------------------------------------- */
.app-shell {
  min-height: 100vh;
  background: var(--background);
}
