.feature-tour {
  padding: clamp(52px, 6.2vw, 90px) clamp(24px, 5.56vw, 80px);
  background: var(--hb-paper);
  color: var(--hb-ink);
}

.ft-heading {
  max-width: 760px;
  margin: 0 auto clamp(26px, 3.15vw, 46px);
  text-align: center;
}

.ft-heading h2 {
  font: 500 clamp(35px, 4.5vw, 62px)/1.06 Manrope, Geist, sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.ft-navigation {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto clamp(26px, 3.05vw, 44px);
  padding: 6px;
  border: 1px solid var(--hb-line);
  border-radius: 14px;
  background: var(--hb-white);
}

.ft-tabs {
  display: grid;
  grid-template-columns: repeat(8, auto);
  gap: 3px;
  min-width: 0;
}

.ft-tabs button,
.ft-playback {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px clamp(8px, .9vw, 14px);
  border-radius: 8px;
  color: var(--hb-plum);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color .2s, color .2s;
}

.ft-tabs button svg { width: 17px; height: 17px; flex: none; }
.ft-tabs button:hover, .ft-playback:hover { background: var(--hb-plumTint); }
.ft-tabs button[aria-selected="true"] { background: var(--hb-ink); color: var(--hb-white); }
.ft-tabs button[aria-selected="true"] svg { color: var(--hb-citron); }

.ft-playback {
  flex: 0 0 44px;
  align-self: center;
  padding: 0;
  border: 1px solid var(--hb-line);
}

.ft-playback svg { width: 16px; height: 16px; }
.ft-playback svg:last-child, .ft-playback[data-paused] svg:first-child { display: none; }
.ft-playback[data-paused] svg:last-child { display: block; }
.ft-playback[hidden], .ft-panel[hidden] { display: none; }

.ft-panel {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
}

.ft-panel:focus-visible { outline: 2px solid var(--hb-plum); outline-offset: 5px; }

.ft-copy h3 {
  max-width: 17ch;
  margin: 0 0 clamp(19px, 2.2vw, 30px);
  font: 500 clamp(26px, 3.3vw, 43px)/1.11 Manrope, Geist, sans-serif;
  letter-spacing: -.046em;
  text-wrap: balance;
}

.ft-copy ul { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.ft-copy li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.ft-copy li > svg { width: 19px; height: 19px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--hb-citron); }
.ft-copy li strong { font-size: 16px; font-weight: 600; }
.ft-copy li p { margin-top: 3px; color: var(--hb-muted); font-size: 15px; line-height: 1.5; }

.ft-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 13px;
  padding: 8px 13px;
  border: 1px solid var(--hb-line);
  border-radius: 8px;
  background: var(--hb-white);
  color: var(--hb-plum);
  font-size: 14px;
  font-weight: 500;
}

.ft-link:hover { border-color: var(--hb-plum); }
.ft-link svg { width: 17px; height: 17px; }

.ft-stage {
  --stage-bg: #eae2ef;
  --stage-grid: #6c517518;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 410px;
  padding: clamp(18px, 4.1vw, 62px);
  border-radius: 23px;
  background-color: var(--stage-bg);
  background-image: radial-gradient(var(--stage-grid) 1px, transparent 1px);
  background-position: center;
  background-size: 17px 17px;
}

.ft-stage[data-tone="citron"] { --stage-bg: #edf1ca; --stage-grid: #60672127; }
.ft-stage[data-tone="rose"] { --stage-bg: #f1e4df; --stage-grid: #90615c26; }
.ft-stage[data-tone="plum"] { --stage-bg: #3d3047; --stage-grid: #ddc9e334; }

.ft-preview {
  width: min(100%, 490px);
  overflow: hidden;
  border: 1px solid #67507832;
  border-radius: 14px;
  background: var(--hb-white);
  box-shadow: 0 15px 34px #2c25321c;
  font-size: 14px;
  line-height: 1.36;
  font-variant-numeric: tabular-nums;
}

.feature-tour[data-ready] .ft-preview { animation: ft-appear .26s ease-out; }
@keyframes ft-appear {
  from { transform: translateY(5px); }
  to { transform: translateY(0); }
}

.ft-preview-heading { display: flex; align-items: center; gap: 9px; padding: 13px 17px; border-bottom: 1px solid var(--hb-line); background: var(--hb-paper); }
.ft-preview-heading > svg { width: 17px; height: 17px; color: var(--hb-plum); }
.ft-preview-heading > .ft-tag { margin-left: auto; }
.ft-preview-body { display: grid; padding: 16px; }
.ft-preview [data-tone="lime"] { background: var(--hb-citron); color: var(--hb-ink); }
.ft-preview [data-tone="lilac"] { background: var(--hb-plumTint); color: var(--hb-plum); }
.ft-preview [data-tone="sand"] { background: #f8eedc; color: #6e5222; }

.ft-row, .ft-budget-label, .ft-total, .ft-document-heading, .ft-client, .ft-inset { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ft-row { padding: 11px 2px; border-bottom: 1px solid var(--hb-line); }
.ft-row > div:first-child { min-width: 0; }
.ft-row > div:last-child { flex: none; font-weight: 600; }
.ft-row > div:first-child > span, .ft-document-heading > div > span, .ft-inset div > span, .ft-client div > span { display: block; margin-top: 2px; color: var(--hb-muted); font-size: 12px; }
.ft-tag { display: inline-flex; flex: none; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--hb-paper); color: var(--hb-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.ft-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ft-metrics:first-child { margin-top: 0; }
.ft-metric { min-width: 0; padding: 10px; border-radius: 8px; background: var(--hb-paper); }
.ft-metric span { display: block; color: var(--hb-muted); font-size: 11px; }
.ft-metric strong, .ft-total strong { display: block; margin-top: 3px; font-size: clamp(15px, 2.2vw, 22px); font-weight: 600; line-height: 1.24; letter-spacing: -.035em; }

.ft-preview:is([data-feature="time"], [data-feature="desktop"]) .ft-preview-body { padding: 0; }
.ft-preview[data-feature="desktop"] { background: var(--hb-plumTint); }
.ft-desktop-header, .ft-timer-week-header, .ft-timer-day-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ft-desktop-header { padding: 8px 13px; background: var(--hb-ink); color: var(--hb-white); font-size: 12px; }
.ft-desktop-header > span { color: var(--hb-citron); }
[data-feature="desktop"] .ft-timer { margin: 12px; border: 1px solid var(--hb-line); border-radius: 9px; background: var(--hb-white); }

.ft-timer-week-header { padding: 10px 12px; border-bottom: 1px solid var(--hb-line); font-size: 11px; }
.ft-timer-week-header > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ft-timer-week-header svg { width: 13px; height: 13px; color: var(--hb-plum); }
.ft-timer-week-header > span:last-child { color: var(--hb-muted); }
.ft-timer-week-header strong { color: var(--hb-ink); }
.ft-timer-columns { display: grid; grid-template-columns: minmax(85px, .9fr) minmax(0, 2fr); }
.ft-timer-week { padding: 8px; border-right: 1px solid var(--hb-line); background: var(--hb-paper); }
.ft-timer-day { display: grid; grid-template-columns: 22px minmax(6px, 1fr) 25px; align-items: center; gap: 5px; padding: 3px 4px; font-size: 10px; color: var(--hb-muted); }
.ft-timer-day[data-today] { border-radius: 4px; background: var(--hb-plumTint); color: var(--hb-plum); font-weight: 600; }
.ft-timer-day > span:last-child { text-align: right; }
.ft-timer-day > i { height: 3px; border-radius: 2px; background: var(--hb-line); }
.ft-timer-day b { display: block; height: 100%; border-radius: 2px; background: var(--hb-plum); }
.ft-timer-totals { display: flex; flex-wrap: wrap; gap: 6px 11px; margin-top: 6px; padding: 6px 4px 0; border-top: 1px solid var(--hb-line); }
.ft-timer-totals .ft-metric { padding: 0; }
.ft-timer-totals .ft-metric strong { font-size: 13px; white-space: nowrap; }
.ft-timer-entries { min-width: 0; }
.ft-timer-day-header { padding: 7px 10px; font-size: 11px; }
.ft-timer-day-header div > span { color: var(--hb-muted); }
.ft-timer-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--hb-line); font-size: 11px; }
.ft-timer-entry[data-running] { background: var(--hb-plumTint); }
.ft-timer-entry div > span { display: block; margin-top: 2px; color: var(--hb-muted); font-size: 10px; }
.ft-timer-entry > div:nth-child(2) { text-align: right; white-space: nowrap; }
.ft-timer-play, .ft-timer-add { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hb-paper); color: var(--hb-plum); }
.ft-timer-add { border-radius: 5px; background: var(--hb-plumTint); }
.ft-timer-entry[data-running] .ft-timer-play { background: var(--hb-white); }
.ft-timer-play svg, .ft-timer-add svg { width: 13px; height: 13px; }
.ft-timer-footer { padding: 6px 12px; border-top: 1px solid var(--hb-line); color: var(--hb-plum); font-size: 10px; }

.ft-budget { padding: 11px; border: 1px solid var(--hb-line); border-radius: 9px; }
.ft-budget + .ft-budget { margin-top: 10px; }
.ft-budget .ft-row { padding: 0 0 9px; border: 0; }
.ft-budget-label { color: var(--hb-muted); font-size: 11px; }
.ft-budget-label strong { color: var(--hb-ink); }
.ft-meter { height: 5px; margin-top: 5px; overflow: hidden; border-radius: 5px; background: var(--hb-plumTint); }
.ft-meter i { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: var(--hb-plum); }

.ft-client { justify-content: start; }
.ft-client .ft-tag { margin-left: auto; }
.ft-avatar { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--hb-ink); color: var(--hb-citron); font-size: 12px; }
.ft-client + .ft-metrics { margin-bottom: 4px; }
.ft-document-heading { padding: 2px 2px 9px; border-bottom: 1px solid var(--hb-line); }
.ft-document-heading strong { display: block; margin-top: 2px; font: 600 clamp(16px, 2.2vw, 23px)/1.2 Manrope, Geist, sans-serif; letter-spacing: -.03em; }
.ft-total { padding: 11px 2px 1px; }
.ft-inset { justify-content: start; margin-top: 10px; padding: 9px; border-radius: 7px; background: var(--hb-plumTint); }
.ft-inset svg { flex: none; width: 16px; height: 16px; color: var(--hb-plum); }
.ft-inset strong { font-size: 13px; }

.ft-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ft-chart > div { display: grid; grid-template-rows: 115px auto; justify-items: center; align-items: end; gap: 7px; color: var(--hb-muted); font-size: 10px; }
.ft-chart i { width: min(100%, 29px); height: max(3px, var(--fill)); border-radius: 5px 5px 2px 2px; background: #aa93ba; }
.ft-chart > div:nth-child(3) i { background: var(--hb-plum); }

@media (max-width: 1050px) {
  .ft-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-navigation { width: min(100%, 630px); }
  .ft-tabs { flex: 1; }
}

@media (max-width: 800px) {
  .ft-panel { grid-template-columns: 1fr; gap: 22px; }
  .ft-copy h3 { max-width: 25ch; }
  .ft-stage { grid-row: 1; min-height: 315px; border-radius: 15px; }
}

@media (max-width: 520px) {
  .ft-navigation { gap: 5px; padding: 5px; }
  .ft-tabs { gap: 2px; }
  .ft-tabs button { flex-direction: column; gap: 4px; padding: 5px 2px; min-height: 57px; font-size: 11px; }
  .ft-tabs button svg { width: 15px; height: 15px; }
  .ft-playback { flex-basis: 44px; }
  .ft-preview-heading { padding: 10px 12px; }
  .ft-preview-body { padding: 11px; }
  .ft-preview { font-size: 12px; }
  .ft-copy li p { font-size: 16px; }
  .ft-row > div:first-child > span, .ft-client div > span { font-size: 11px; }
  .ft-stage { min-height: 303px; padding: 12px; }
  .ft-chart { gap: 5px; }
  .ft-timer-week { padding: 5px; }
  .ft-timer-entry { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 4px; padding: 7px 6px; }
  .ft-timer-entry strong { font-size: 10px; }
  .ft-timer-entry div > span { font-size: 9px; }
  .ft-timer-play { width: 18px; height: 18px; }
  [data-feature="desktop"] .ft-timer { margin: 8px; }
}
