/* Product tour: homepage and Websites. */
.tour { background: var(--charcoal); color: var(--white); padding-block: 80px; }
.tour a { color: var(--soft-blue); }
.tour__grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; }
.tour__intro { display: flex; flex-direction: column; gap: 24px; }
.tour__lede { color: var(--rule); }
.tour__tabs { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tour__tab {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; border-radius: 8px; text-align: left;
  background: transparent; border: 1px solid var(--warm-grey); color: var(--white);
  transition: background .25s ease, border-color .25s ease;
}
.tour__tab:hover { border-color: var(--soft-blue); }
.tour__tab[aria-selected="true"] { background: var(--charcoal-deep); border-color: var(--soft-blue); }
.tour__num { font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--soft-blue); padding-top: 3px; }
.tour__tabtext { display: flex; flex-direction: column; gap: 4px; }
.tour__tabtitle { font-size: 18px; font-weight: 600; }
.tour__tabsub { font-size: 14px; color: var(--rule); }
.tour .tour__cta { align-self: flex-start; margin-top: 8px; color: var(--blue); }

.tour__stage { background: var(--charcoal-deep); border-radius: 12px; padding: 40px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tour__panel { display: flex; flex-direction: column; gap: 20px; animation: bs-fadeup .45s var(--ease) both; }
.tour__panel[hidden] { display: none; }
.tour__panel:focus-visible { outline: 2px solid var(--soft-blue); outline-offset: 6px; border-radius: 4px; }
.tour__panelhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tour__panelhead-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tour__path { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.tour__run { border: 0; padding: 14px 24px; }
.tour__card { background: var(--white); color: var(--charcoal); border-radius: 12px; box-shadow: 0 8px 24px rgba(35, 67, 126, .10); }
.tour__checks { padding: 8px 24px; }
.tour__check { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); font-size: 16px; font-weight: 500; }
.tour__check:last-child { border-bottom: 0; }
.tour__status { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.badge { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; background: var(--neutral); color: var(--warm-grey); white-space: nowrap; }
.badge[data-kind="pass"] { background: var(--rule-light); color: var(--blue); }
.badge[data-kind="block"] { background: var(--error); color: var(--white); white-space: normal; }
.tour__fix { background: transparent; color: var(--blue); border: 1px solid var(--blue); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.tour__note { margin: 0; font-size: 15px; color: var(--rule); }

.tour__toggle { display: inline-flex; align-self: flex-start; background: var(--charcoal); border-radius: 999px; padding: 4px; }
.tour__toggle button { border: 0; border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 600; background: transparent; color: var(--white); }
.tour__toggle button[aria-pressed="true"] { background: var(--white); color: var(--blue); }
.tour__result { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.tour__result[hidden] { display: none; }
.tour__meta { font-size: 14px; color: var(--warm-grey); }
.tour__serp-title { font-size: 22px; font-weight: 600; color: var(--blue); }
.tour__serp-copy { font-size: 16px; line-height: 1.6; }
.tour__ai-copy { font-size: 17px; line-height: 1.6; }
.tour__ai-copy mark { background: var(--rule-light); color: inherit; border-radius: 4px; padding: 0 4px; }
.tour__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 13px; font-weight: 600; background: var(--neutral); border-radius: 999px; padding: 4px 12px; color: var(--blue); }
.chip--start { align-self: flex-start; }

.tour__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tour__step { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; background: var(--white); border-radius: 8px; padding: 20px; border: 2px solid var(--white); }
.tour__step[aria-pressed="true"] { border-color: var(--bright-blue); }
.tour__stepnum { font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--teal); }
.tour__steptitle { font-size: 20px; font-weight: 600; color: var(--blue); }
.tour__stephint { font-size: 14px; color: var(--warm-grey); }
.tour__detail { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.tour__detail-title { font-size: 20px; font-weight: 600; color: var(--blue); }
.tour__detail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tour__detail-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.tour__detail-list li::before {
  content: ""; flex-shrink: 0; width: 28px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'%3E%3Cline x1='0' y1='4' x2='24' y2='4' stroke='%232d799a' stroke-width='2'/%3E%3Ccircle cx='24' cy='4' r='4' fill='%232d799a'/%3E%3C/svg%3E") no-repeat;
}

.tour__sync { display: flex; align-items: center; padding: 40px; }
.tour__sync-box { width: 220px; flex-shrink: 0; background: var(--neutral); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tour__sync-box--site { background: var(--blue); color: var(--white); }
.tour__sync-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.tour__sync-box--site .tour__sync-label { color: var(--soft-blue); }
.tour__sync-title { font-size: 18px; font-weight: 600; color: var(--blue); }
.tour__sync-box--site .tour__sync-title { color: var(--white); }
.tour__sync-line { position: relative; flex-grow: 1; height: 40px; margin: 0 16px; overflow: hidden; }
.tour__sync-line > span:first-child { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--rule); }
.tour__packet { position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 999px; background: var(--bright-blue); animation: tour-sync 2.2s linear infinite; }
.tour__packet--2 { background: var(--teal); animation-delay: 1.1s; }
@keyframes tour-sync { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.tour__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tour__facts > div { border: 1px solid var(--warm-grey); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tour__fact-title { font-size: 18px; font-weight: 600; }
.tour__fact-copy { font-size: 14px; color: var(--rule); }
.tour__caption { margin: auto 0 0; font-size: 13px; color: var(--rule); }

@media (max-width: 1200px) {
  .tour__grid { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; }
  .tour__sync-box { width: 170px; }
}
@media (max-width: 960px) {
  .tour__grid { grid-template-columns: minmax(0, 1fr); }
  .tour__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tour { padding-block: 56px; }
  .tour__stage { padding: 20px; margin-inline: calc(var(--gutter) * -1 + 8px); }
  /* Tabs become a swipeable row on phones. */
  .tour__tabs { display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; scrollbar-width: none; }
  .tour__tabs::-webkit-scrollbar { display: none; }
  .tour__tab { flex: 0 0 72%; scroll-snap-align: start; }
  .tour__tabsub { display: none; }
  .tour__checks { padding: 4px 16px; }
  .tour__check { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tour__result, .tour__detail { padding: 20px; }
  .tour__steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tour__step { flex-direction: row; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .tour__stephint { margin-left: auto; }
  .tour__sync { flex-direction: column; align-items: stretch; padding: 20px; }
  .tour__sync-box { width: auto; }
  .tour__sync-line { height: 48px; margin: 4px 0; }
  .tour__sync-line > span:first-child { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tour__packet { left: calc(50% - 5px); top: 0; animation-name: tour-sync-v; }
  .tour__facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@keyframes tour-sync-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tour__packet { animation: none; opacity: 1; } .tour__packet--2 { display: none; } }
