.feature-tour {
  margin-block-start: clamp(3.75rem, 6.5vw, 6.5rem);
  scroll-margin-top: 1.5rem;
}
.feature-tour-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(1.35rem, 2.3vw, 2rem);
}
.feature-tour-head h3 {
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
}
.feature-tour-head p {
  max-width: 32ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
.feature-switcher {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f1f0e9;
}
.feature-switcher button {
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .52rem .3rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #4d5049;
  background: transparent;
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.feature-switcher button:hover { background: #e8e7df; color: var(--accent-ink); }
.feature-switcher button[aria-selected=true] {
  border-color: #dcdcd3;
  background: #fffefa;
  color: var(--accent-ink);
  box-shadow: 0 2px 5px rgb(44 41 30 / .08);
}
.feature-switcher .platform-icon { width: 18px; height: 18px; }
.feature-story {
  display: grid;
  grid-template-columns: minmax(0,.83fr) minmax(0,1.25fr);
  align-items: center;
  gap: clamp(1.7rem, 4vw, 4.2rem);
  min-height: clamp(420px, 34vw, 525px);
  margin-top: 14px;
  padding: clamp(1.5rem, 3.6vw, 3.65rem);
  background-color: #eeeee7;
  background-color: color-mix(in srgb, var(--accent-soft) 19%, #efeee7);
  border: 1px solid #deded4;
  border-radius: 18px;
}
.feature-story-copy { min-width: 0; }
.feature-story-copy > p:first-child {
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-ink);
}
.feature-story-copy > p:first-child::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 2px;
  background: var(--accent);
}
.feature-story-copy h4 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.15rem, 3.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
}
.feature-story-copy > p:last-child {
  margin-top: 1.05rem;
  max-width: 35ch;
  color: #56594f;
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.feature-story .feature-scene { min-width: 0; width: 100%; }
.feature-more { margin-top: clamp(1.8rem, 3vw, 3.25rem); }
.feature-more > h4 { margin: 0 0 .8rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; }
@media (prefers-reduced-motion: no-preference) {
  .feature-story:not([hidden]) .feature-scene { animation: feature-scene-in .26s ease-out; }
  @keyframes feature-scene-in { from { opacity: .65; transform: translateY(4px); } }
}
@media (max-width: 890px) {
  .feature-switcher button { flex-direction: column; gap: .33rem; padding-block: .68rem; font-size: .84rem; }
  .feature-story { grid-template-columns: minmax(0,.64fr) minmax(0,1fr); gap: 1.3rem; padding: 1.35rem; }
}
@media (max-width: 710px) {
  .feature-tour-head { display: block; }
  .feature-tour-head p { margin-top: .7rem; max-width: 40ch; }
  .feature-story { grid-template-columns: minmax(0,1fr); align-content: start; min-height: 0; gap: 1.2rem; }
  .feature-story-copy > p:first-child { margin-bottom: .5rem; font-size: .8rem; }
  .feature-story-copy h4 { font-size: clamp(1.9rem, 5.7vw, 2.45rem); max-width: 24ch; }
  .feature-story-copy > p:last-child { margin-top: .55rem; max-width: 54ch; }
}
@media (max-width: 540px) {
  .feature-switcher { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .feature-switcher button { flex-direction: row; gap: .34rem; font-size: .8rem; min-height: 40px; }
  .feature-switcher .platform-icon { width: 15px; height: 15px; }
  .feature-story { margin-top: .6rem; padding: 1rem; border-radius: 13px; }
}
@media (max-width: 370px) {
  .feature-switcher button { flex-direction: column; padding-block: .45rem; font-size: .78rem; }
  .feature-story { padding: .75rem; }
}

:root[data-theme="dark"] .feature-switcher { background: #1c1f19; }
:root[data-theme="dark"] .feature-switcher button { color: var(--muted); }
:root[data-theme="dark"] .feature-switcher button:hover { color: var(--ink); background: var(--surface); }
:root[data-theme="dark"] .feature-switcher button[aria-selected=true] {
  color: var(--accent-ink);
  background: var(--surface-raised);
  border-color: #50564b;
  box-shadow: 0 2px 4px #0004;
}
:root[data-theme="dark"] .feature-story {
  color: var(--ink);
  background: #20231e;
  border-color: var(--line);
}
:root[data-theme="dark"] .feature-story-copy > p:last-child { color: var(--muted); }
:root[data-theme="dark"] .feature-story-copy > p:first-child::before { background: var(--accent-ink); }
