:root {
  --accent: #2f5f9e;
  --accent-light: #4472c4;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); }

/* Header / nav */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  max-width: 1060px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.brand { font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent-light); }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
}
nav a:hover { background: var(--bg); color: var(--ink); }
nav a.active { color: var(--accent); background: #e9effa; }

/* Layout */
main { max-width: 1060px; margin: 0 auto; padding: 28px 24px 44px; }
.hero { text-align: center; padding: 22px 0 14px; }
.hero h1 { font-size: 2.1rem; margin: 0 0 12px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0 auto; }
h1 { font-size: 1.8rem; margin: 0 0 14px; }
h2 { font-size: 1.35rem; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: 0 2px 10px rgba(31,41,55,.05);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { font-size: .93rem; color: var(--muted); margin: 0 0 10px; }
.card a.more { font-size: .9rem; font-weight: 600; text-decoration: none; }

.btn {
  display: inline-block; background: var(--accent-light); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent-light); }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 30px; margin: 20px 0; box-shadow: 0 2px 10px rgba(31,41,55,.05);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tags span {
  background: #e9effa; color: var(--accent); font-size: .82rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.callout {
  border-left: 4px solid var(--accent-light); background: #eef3fb;
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0;
}

/* Forms */
form label { display: block; font-weight: 600; margin: 18px 0 6px; }
form .opts label { display: inline-block; font-weight: 400; margin: 0 16px 0 4px; }
form input[type=text], form input[type=email] {
  width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
}
form .q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 12px 0; }
form .q p { font-weight: 600; margin: 0 0 8px; }

footer {
  border-top: 1px solid var(--line); background: #fff;
  text-align: center; padding: 26px 20px; font-size: .88rem; color: var(--muted);
}
footer a { color: var(--accent); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .header-inner { justify-content: center; }
}

/* Images & embeds */
img { max-width: 100%; height: auto; }
.card img.thumb {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 12px; background: #fff;
}
/* Compact card thumbnails (home page): small, centered, tidy across mixed
   aspect ratios */
.cards.compact img.thumb {
  display: block; width: auto; max-width: 100%; height: 84px;
  object-fit: contain; margin: 0 auto 12px; padding: 4px;
}
.shot {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 18px rgba(31,41,55,.10); margin: 10px 0 6px;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 20px 0; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; text-align: center; }
.embed-wrap {
  position: relative; width: 100%; padding-top: 60%;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(31,41,55,.10); margin: 16px 0;
}
.embed-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Product tour rows (alternating text/screenshot) */
.tour-row {
  display: flex; gap: 26px; align-items: flex-start; margin: 18px 0;
}
.tour-row.rev { flex-direction: row-reverse; }
.tour-row .txt { flex: 1; min-width: 260px; }
.tour-row .txt h3 { font-size: 1.2rem; margin: 0 0 8px; }
/* Arrow connectors: each heading points at its screenshot */
@media (min-width: 761px) {
  .tour-row .txt h3::after {
    content: " \27F6";   /* long rightwards arrow */
    color: var(--accent-light); font-weight: 400; margin-left: 12px;
    font-size: 1.7rem; line-height: 1; vertical-align: -2px;
  }
  .tour-row.rev .txt h3::after { content: none; }
  .tour-row.rev .txt h3::before {
    content: "\27F5 ";   /* long leftwards arrow */
    color: var(--accent-light); font-weight: 400; margin-right: 12px;
    font-size: 1.7rem; line-height: 1; vertical-align: -2px;
  }
}
.tour-row .pic { flex: 1.25; }
/* Portrait screenshots: don't let them dominate the row */
.tour-row .pic.tall img { max-width: 62%; display: block; margin: 0 auto; }
.tour-row .pic img {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 18px rgba(31,41,55,.10); background: #fff;
}
.hero-shot {
  display: block; max-width: 760px; width: 100%; margin: 26px auto 0;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 30px rgba(31,41,55,.14);
}
.standards {
  text-align: center; font-size: .9rem; color: var(--muted);
  max-width: 680px; margin: 14px auto 0;
}
@media (max-width: 760px) {
  .tour-row, .tour-row.rev { flex-direction: column; }
}

/* First two tour screenshots (desktop): smaller, staggered to opposite
   edges, with the lower (sliders) image sliding up into vertical overlap
   beside the setup image -- their horizontal footprints don't intersect,
   so nothing collides. */
@media (min-width: 761px) {
  .tour-row.stack-a .pic img { max-width: 90%; display: block; margin-left: auto; }
  .tour-row.stack-b .pic img {
    max-width: 90%; display: block; margin-right: auto;
    margin-top: -130px; position: relative;
  }
}
