/*
  Shared pieces of the five tool pages (public/marketing/tools.js renders the markup):
  the media slot under each header, the screenshots further down, and the tool tour.
  Self-contained colors and sizes, so the same markup reads the same on the light feature
  pages, the React /smartimport page and the dark SmartSite page.
*/
.tool-media, .tool-shots, .tool-tour {
  --tool-ink: #0f172a; --tool-muted: #475569; --tool-faint: #526174; --tool-line: #e2e8f0;
  --tool-panel: #f8fafc; --tool-navy: #10223e; --tool-focus: #1d4ed8;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Media slot: a 16:9 player or the screenshots, sized so it ends inside the first screen. */
.tool-media { display: grid; gap: 12px; margin: 0; }
.tool-player { position: relative; overflow: hidden; border: 1px solid #1e293b; border-radius: 14px; background: #000; box-shadow: 0 24px 60px rgb(15 23 42 / 18%); }
/* About 40% smaller than the full column (Andrew, 2026-10-20), centered under the page header, with a big
   play button in the middle until it plays. */
.tool-media-video { width: 100%; max-width: 680px; margin-inline: auto; }
.tool-play { all: unset; box-sizing: border-box; position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; background: #ea580c; color: #fff; cursor: pointer;
  box-shadow: 0 0 0 10px rgb(234 88 12 / 24%), 0 14px 34px rgb(0 0 0 / 38%); transition: transform .15s ease, background-color .15s ease; }
.tool-play svg { width: 40px; height: 40px; margin-left: 5px; }
.tool-play:hover { background: #c2410c; transform: scale(1.06); }
.tool-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.tool-play[hidden], .tool-player.is-playing .tool-play { display: none; }
@media (max-width: 520px) { .tool-play { width: 68px; height: 68px; box-shadow: 0 0 0 7px rgb(234 88 12 / 24%), 0 10px 24px rgb(0 0 0 / 38%); } .tool-play svg { width: 30px; height: 30px; margin-left: 4px; } }
@media (prefers-reduced-motion: reduce) { .tool-play { transition: none; } .tool-play:hover { transform: none; } }
.tool-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.tool-player video::cue { font-size: clamp(14px, 1.3vw, 19px); color: #fff; background-color: rgb(15 23 42 / 90%); }
.tool-media-note { margin: 0; color: var(--tool-faint); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.tool-media-two { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
.tool-media-two .tool-media-note { grid-column: 1 / -1; }
@media (min-width: 760px) { .tool-media-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tool-shot { display: grid; gap: 10px; margin: 0; min-width: 0; }
.tool-shot-frame { overflow: hidden; border: 1px solid var(--tool-line); border-radius: 14px; background: #f3f4f6; box-shadow: 0 16px 40px rgb(15 23 42 / 10%); }
.tool-shot-frame img { display: block; width: 100%; max-width: 100%; height: auto; }
.tool-shot-narrow .tool-shot-frame { justify-self: center; width: min(100%, 460px); }
.tool-shot-narrow figcaption { justify-self: center; width: min(100%, 460px); }
.tool-shot figcaption { margin: 0; color: var(--tool-muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; max-width: 75ch; }
.tool-shot figcaption b { color: var(--tool-ink); }

.tool-shots-list { display: grid; gap: 24px; margin-top: 22px; }
.tool-shots .tool-media-note { margin-top: 14px; }
/* Two narrow screenshots (SmartQuote's form and card) sit side by side, as they did under the header. */
@media (min-width: 760px) { .tool-shots-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Tool tour: Previous / Next tool and the other four. */
.tool-tour { margin: 56px 0 0; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--tool-line); border-radius: 18px; background: var(--tool-panel); color: var(--tool-ink); }
.tool-tour-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.tool-tour h2 { margin: 0; color: var(--tool-ink); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.tool-tour-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-tour-step { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--tool-ink); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.tool-tour-step small { display: block; color: var(--tool-faint); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tool-tour-step svg { width: 20px; height: 20px; flex: none; }
.tool-tour-step:hover { border-color: #94a3b8; background: #f1f5f9; }
.tool-tour-step-next { border-color: var(--tool-navy); background: var(--tool-navy); color: #fff; }
.tool-tour-step-next small { color: #cbd5e1; }
.tool-tour-step-next:hover { border-color: #1e3a66; background: #1e3a66; }
.tool-tour-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .tool-tour-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tool-tour-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tool-tour-cards li { display: flex; min-width: 0; }
.tool-tour-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 4px; align-content: start; width: 100%; padding: 16px; border: 1px solid var(--tool-line); border-radius: 14px; background: #fff; color: var(--tool-ink); text-decoration: none; }
.tool-tour-card:hover { border-color: #94a3b8; box-shadow: 0 10px 24px rgb(15 23 42 / 8%); }
.tool-tour-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; }
/* Product tiles from the brand icon set: they carry their own squircle and colour. */
.tool-tour-icon svg { width: 40px; height: 40px; }
.tool-tour-arrow-prev { transform: rotate(180deg); }
.tool-tour-name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.tool-tour-line { color: var(--tool-muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.tool-tour :is(a):focus-visible, .tool-media :is(a, video):focus-visible { outline: 3px solid var(--tool-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .tool-tour-step, .tool-tour-card { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
  .tool-tour-card:hover { transform: translateY(-2px); }
}
@media (max-width: 520px) {
  .tool-tour { margin-top: 40px; }
  .tool-tour-steps { width: 100%; }
  .tool-tour-step { flex: 1 1 0; min-width: 0; justify-content: space-between; }
  .tool-tour-card { padding: 14px; }
}
