/* Vikzaro Expenses: additions on top of styles.css (shared with vikzaro.com).
   Sample report, four-step row, demo form and the product tour. */

:root {
  --ok: #4cc38a;
  --ok-tint: rgba(76, 195, 138, 0.14);
  --wait: #f0b44c;
  --wait-tint: rgba(240, 180, 76, 0.14);
  --tour-bg: rgba(59, 168, 253, 0.32);
  --tour-text: #f3f7fd;
}

:root[data-theme="light"] {
  --ok: #1b7a43;
  --ok-tint: #e3f4ea;
  --wait: #8a5a00;
  --wait-tint: #fff3d6;
  --tour-bg: #c8dcfe;
  --tour-text: #003b99;
}

.brand-product {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-strong);
}

.brand-product .brand-name {
  font-weight: 600;
  font-size: 1.02rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line-soft);
}

/* ----- Sample report (hero) ------------------------------------------- */
.sample {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 0.9rem;
}

.sample-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sample-head > div {
  min-width: 0;
}

.sample-head h2 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.sample-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill.wait { background: var(--wait-tint); color: var(--wait); }
.pill.ok { background: var(--ok-tint); color: var(--ok); }

.sample table {
  width: 100%;
  border-collapse: collapse;
}

.sample td {
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.sample td small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.sample td.amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sample .total td {
  font-weight: 700;
  color: var(--text-strong);
  border-bottom: 0;
}

.approvals {
  padding: 0.9rem 1.25rem 1.1rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
}

.approvals div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.approvals span:first-child {
  min-width: 0;
}

.approvals small {
  color: var(--muted);
}

.sample-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

/* ----- Four steps instead of five ---------------------------------------- */
.steps.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .steps.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .steps.four {
    grid-template-columns: 1fr;
  }
  .sample td,
  .sample-head,
  .approvals {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

/* ----- Rules box under the steps --------------------------------------- */
.rules {
  margin-top: 1.4rem;
}

.rules ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

/* ----- Demo form: two fields per row on wide screens ------------------- */
.contact-form .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.contact-form .pair > * {
  min-width: 0;
}

@media (max-width: 620px) {
  .contact-form .pair {
    grid-template-columns: 1fr;
  }
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.2rem 0 1rem;
}

.consent input {
  margin-top: 0.2rem;
}

/* =========================================================================
   Product tour (/tour/)
   ========================================================================= */
.tour-hero {
  padding-bottom: 2rem;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link::before {
  content: "← ";
}

.back-link:hover {
  color: var(--text-strong);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.toc-chip {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  background: var(--surface);
}

.toc-chip:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* text + screenshots side by side */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.4rem;
  align-items: start;
}

.split.reverse .split-text {
  order: 2;
}

.split-fig {
  display: grid;
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .split.reverse .split-text {
    order: 0;
  }
}

.tour-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.7rem;
  color: var(--text);
  line-height: 1.6;
}

.tour-list.compact {
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 1.4rem;
  max-width: 62rem;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.shot figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 1.2rem;
  justify-content: start;
}

.shot.phone img {
  border-radius: 22px;
  border: 6px solid var(--surface-3);
}

.pdf-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.shot.paper img {
  border-radius: 4px;
}

.muted-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.split-text .btn {
  margin-top: 1.4rem;
}

.qa-group {
  margin: 2rem 0 0.8rem;
  font-size: 1.1rem;
}

.qa-group:first-of-type {
  margin-top: 0;
}

/* diagrams: drawn with the page tokens, scroll sideways on small screens */
.diagram {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.diagram svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.dg-box {
  fill: var(--surface-2);
  stroke: var(--line-soft);
  stroke-width: 1.5;
}

.dg-box.dg-accent {
  fill: var(--accent-tint);
  stroke: var(--accent);
}

.dg-box.dg-ok {
  fill: var(--ok-tint);
  stroke: var(--ok);
}

.dg-box.dg-bad {
  fill: var(--wait-tint);
  stroke: var(--wait);
}

.dg-box.dg-dim {
  fill: var(--bg-soft);
  stroke: var(--line);
  stroke-dasharray: 5 4;
}

.dg-t {
  fill: var(--text);
  font-family: inherit;
  font-size: 17px;
}

.dg-t.dg-strong {
  font-weight: 600;
  fill: var(--text-strong);
}

.dg-t.dg-small {
  font-size: 14px;
  fill: var(--muted);
}

.dg-arrow {
  stroke: var(--muted);
  stroke-width: 1.6;
}

.dg-head {
  fill: var(--muted);
}

.dg-hidden {
  display: none;
}

/* zoomable screenshots */
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
}

.lightbox {
  width: auto;
  max-width: 96vw;
  overflow: auto;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.lightbox::backdrop {
  background: rgba(5, 9, 14, 0.78);
}

.lightbox img {
  display: block;
  width: auto;
  max-width: min(96vw, 1600px);
  height: auto;
  cursor: zoom-out;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 1.3rem;
  line-height: 1;
  background: var(--surface);
}

.lightbox form {
  margin: 0;
}

.tour-link {
  margin-top: 1.6rem;
}

.demo-signin {
  margin-top: 1.2rem;
  color: var(--muted);
}

.demo-signin a {
  color: var(--accent-ink);
  font-weight: 600;
}

/* "See the product tour": coloured, clearly visible next to the primary button */
.btn-tour {
  background: var(--tour-bg);
  color: var(--tour-text);
  border: 1px solid var(--accent);
}

.btn-tour:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Cloudflare Turnstile widget above the submit button */
.turnstile {
  margin: 0.25rem 0 1rem;
  min-height: 65px;
}

/* ----- Presentation video (same as archive.vikzaro.com) ------------- */
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

.video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border: 0;
  background: rgba(10, 7, 4, 0.28);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease;
}

.video-play:hover,
.video-play:focus-visible {
  background: rgba(10, 7, 4, 0.12);
}

.video-play:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -3px;
}

.video-play-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: transform 0.18s ease;
}

.video-play-icon::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 26px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--accent-contrast);
}

.video-play:hover .video-play-icon {
  transform: scale(1.06);
}

.video-play-label {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 7, 4, 0.72);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .video-play-icon { width: 64px; height: 64px; }
  .video-play-icon::after { left: 26px; top: 20px; border-width: 12px 0 12px 20px; }
}

