@font-face {
  font-family: DM Sans;
  src: url("assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.feature-page, .feature-page * { box-sizing: border-box; }
.feature-page {
  --feature-atmosphere-mask: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent);
  margin: 0;
  overflow-x: clip;
  color: var(--showcase-ink);
  background: var(--showcase-paper);
  font: 400 1rem/1.6 "DM Sans", system-ui, sans-serif;
}
/* Atmospheric layers can span sections vertically; their horizontal extent
   ends at the content canvas, leaving chapter stickiness and controls intact. */
.feature-page > main { overflow-x: clip; }
.feature-page a { color: inherit; }
.feature-page :is(a, button, summary):focus-visible { outline: 2px solid var(--showcase-accent); outline-offset: 4px; }
.feature-page h2, .feature-page h3, .feature-page p { text-wrap: pretty; }
.feature-page h2, .feature-page h3 { line-height: 1.1; letter-spacing: -.045em; }
.feature-page [id] { scroll-margin-block-start: 2rem; }
.feature-skip { position: fixed; z-index: 50; inset: .6rem auto auto 1rem; padding: .55rem 1rem; background: white; border-radius: .5rem; transform: translateY(-150%); }
.feature-skip:focus { transform: translateY(0); }
.feature-header { position: relative; z-index: 5; }
.feature-header-inner { min-height: 5.8rem; display: flex; align-items: center; gap: clamp(1rem, 4.4vw, 4rem); }
.feature-brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 650; letter-spacing: -.055em; font-size: 1.65rem; white-space: nowrap; }
.feature-brand img { display: block; width: 2rem; height: 2rem; }
.feature-header nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.feature-header nav a, .feature-header summary, .feature-sign-in { text-decoration: none; font-size: .9rem; font-weight: 650; }
.feature-header nav a:hover, .feature-header summary:hover, .feature-sign-in:hover { color: var(--showcase-accent); }
.feature-sign-in { margin-left: auto; white-space: nowrap; }
.feature-header .showcase-menu-links a { padding: .37rem .6rem; border-radius: .45rem; }
.feature-header .showcase-menu-links a:is(:hover,[aria-current]) { background: #f1e9fa; }
.feature-header details:not([open]) .showcase-menu-links { display: none; }

.feature-page [data-tint="violet"] { --feature-wash: #e7d8fc; --feature-wash-soft: #fbecdf; --feature-callout: #e9dff4; }
.feature-page [data-tint="blue"] { --feature-wash: #d5dbf6; --feature-wash-soft: #f8deeb; --feature-callout: #e2e7f4; }
.feature-page [data-tint="mint"] { --feature-wash: #c9ead9; --feature-wash-soft: #f4e9c9; --feature-callout: #e4efe8; }
.feature-page [data-tint="rose"] { --feature-wash: #f4d4df; --feature-wash-soft: #e9ddfa; --feature-callout: #f6e6eb; }
.feature-page [data-tint="gold"] { --feature-wash: #f6ddb5; --feature-wash-soft: #f7dce1; --feature-callout: #f9ecd9; }
.feature-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(41rem, 76vw);
  padding: clamp(1.35rem, 5.2vw, 5rem);
}
.feature-hero::before,
.feature-chapter-layout::before,
.feature-directory-grid::before,
.feature-screenshot::before,
.feature-close::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  mask-image: var(--feature-atmosphere-mask);
  mask-composite: intersect;
}
.feature-hero::before {
  inset: -4rem -4% -8rem;
  background:
    radial-gradient(ellipse at 74% 34%, var(--feature-wash), transparent 67%),
    radial-gradient(ellipse at 35% 30%, var(--feature-wash-soft), transparent 62%),
    radial-gradient(ellipse at 56% 63%, var(--feature-callout), transparent 62%);
}
.tour-ready .feature-hero::before { transform: translate3d(calc((var(--tour-progress, 0) - .5) * 8%), calc(var(--tour-progress, 0) * 1.65rem), 0); }
.tour-ready .feature-hero .feature-visual .tcs-window { transform: translate3d(0, calc((.5 - var(--tour-progress, 0)) * 13px), 0); }
.feature-hero-copy { animation: feature-arrive 650ms cubic-bezier(.2,.75,.3,1) both; }
.feature-page .showcase-kicker { margin: 0 0 .88rem; }
.feature-hero h1 { font-size: clamp(2.65rem, 5.4vw, 5.1rem); overflow-wrap: anywhere; }
.feature-description { margin: clamp(1rem, 2vw, 1.4rem) 0 0; max-width: 35ch; font-size: clamp(1.04rem, 1.5vw, 1.25rem); color: var(--showcase-muted); line-height: 1.55; }
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.25rem; margin-top: 1.65rem; }
.feature-button, .feature-text-link { display: inline-flex; align-items: center; gap: .6em; line-height: 1.25; font-weight: 700; font-size: .91rem; text-decoration: none; }
.feature-button { min-height: 47px; padding: .8rem 1rem; border-radius: 3rem; background: var(--showcase-accent); color: #fff !important; transition: transform 180ms ease, background 180ms ease; }
.feature-button:hover { background: var(--showcase-accent); transform: translateY(-2px); }
.feature-page .feature-text-link { color: var(--showcase-accent); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .23em; }
.feature-text-link:hover { color: var(--showcase-accent); }
.feature-visual { min-width: 0; animation: feature-arrive 850ms 100ms cubic-bezier(.2,.75,.3,1) both; }
.feature-visual .tc-product-scene:empty { display: none; }
@keyframes feature-arrive { from { opacity: .25; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }

.feature-story { padding: clamp(2.6rem, 6vw, 6rem) 0; }
.feature-story-head { margin-bottom: clamp(1.75rem, 4vw, 3.8rem); }
.feature-story h2, .feature-support h2 { margin: 0; font-size: clamp(2.15rem, 4.8vw, 4.25rem); font-weight: 550; max-width: 14ch; }
.feature-chapter-layout { position: relative; isolation: isolate; }
.feature-chapter-layout::before {
  inset: -12rem -7% -8rem;
  background:
    radial-gradient(ellipse at 47% 40%, transparent 52%, color-mix(in srgb, var(--showcase-accent) 18%, transparent) 52.1%, transparent 52.25%),
    radial-gradient(ellipse at 27% 29%, var(--feature-wash-soft), transparent 58%),
    radial-gradient(ellipse at 71% 59%, var(--feature-wash), transparent 62%);
  opacity: .58;
}
.tour-ready .feature-chapter-layout::before {
  transform: translate3d(calc((var(--tour-progress, 0) - .5) * 12%), calc((var(--tour-progress, 0) - .5) * 4.5rem), 0);
}
.feature-chapter-layout[data-feature-enhanced] { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: clamp(1.35rem, 4vw, 4.5rem); }
.feature-stage {
  position: relative;
  min-width: 0;
  z-index: 2;
  isolation: isolate;
  padding: clamp(.7rem, 2vw, 1.8rem);
}
.feature-stage[hidden] { display: none; }
.feature-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14%;
  pointer-events: none;
  mask-image: var(--feature-atmosphere-mask);
  mask-composite: intersect;
  background: radial-gradient(ellipse at 29% 47%, var(--feature-wash) 8%, transparent 67%), radial-gradient(ellipse at 80% 54%, var(--feature-wash-soft), transparent 62%);
}
.feature-chapter-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.feature-chapter-nav a { border-radius: 2rem; padding: .46rem .68rem; font-size: clamp(.74rem, 1.15vw, .88rem); line-height: 1.2; text-decoration: none; font-weight: 680; }
.feature-chapter-nav a[aria-current] { background: var(--showcase-accent); color: #fff; }
.feature-chapter-nav a:not([aria-current]):hover { background: #fffc; color: var(--showcase-accent); }
.feature-stage-progress { display: block; background: #51436822; height: 2px; margin: .65rem .1rem .85rem; border-radius: 1rem; overflow: hidden; }
.feature-stage-progress > span { display: block; background: #7761a4; height: 100%; transform: scaleX(.08); transform-origin: left; }
.feature-stage-window { transform-origin: 51% 55%; position: relative; }
.feature-stage .tcs-pane { min-height: min(18.75rem, 33svh); max-height: min(18.75rem, 33svh); overflow: auto; overscroll-behavior: contain; }
.feature-stage-caption { display: flex; justify-content: space-between; gap: .6rem; align-items: start; margin-top: .8rem; color: var(--showcase-muted); font-size: .84rem; line-height: 1.35; }
.feature-stage-caption p { margin: 0; max-width: 44ch; color: var(--showcase-ink); }
.feature-stage-caption button, .feature-motion-toggle { font: inherit; color: var(--showcase-accent); background: none; border: 0; padding: .12rem 0; text-decoration: underline; text-underline-offset: .17em; white-space: nowrap; cursor: pointer; }
.feature-motion-toggle { margin-top: .6rem; font-size: .88rem; }
.feature-stage-caption button[hidden], html:not(.tour-ready) .feature-stage-caption button { display: none; }
.feature-stage-caption button[aria-pressed="true"] { text-decoration: none; }
.feature-story-steps { display: grid; gap: .7rem; }
.feature-step { position: relative; isolation: isolate; padding: clamp(1.3rem, 3vw, 2.4rem); }
.feature-step::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--feature-wash) 52%, var(--showcase-paper)) 22%, transparent 90%);
  mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
  opacity: 0;
}
.feature-step:focus-visible { outline: 2px solid var(--showcase-accent); outline-offset: 3px; }
.feature-chapter-step[data-feature-active]::before { opacity: 1; }
.feature-chapter-layout:not([data-feature-enhanced]) .feature-story-steps { max-width: 54rem; }
.tour-ready .feature-chapter-layout[data-feature-enhanced] .feature-stage { position: sticky; top: clamp(.65rem, 5.8vh, 3.75rem); }
.tour-ready .feature-chapter-layout[data-feature-enhanced] .feature-chapter-step {
  display: grid;
  align-items: center;
  min-height: clamp(14rem, 49svh, 28rem);
}
.tour-ready .feature-step::before { transition: opacity 420ms ease; }
.tour-ready .feature-stage::before { transform: translate3d(calc((var(--tour-progress, 0) - .5) * 20%), calc((.5 - var(--tour-progress, 0)) * 13%), 0); }
.tour-ready .feature-stage-window { transform: translate3d(0, calc((.5 - var(--tour-progress, 0)) * 8px), 0) scale(calc(.975 + var(--tour-progress, 0) * .025)); }
.tour-ready .feature-stage-progress > span { transform: scaleX(calc(.08 + var(--tour-progress, 0) * .92)); }

/* Keep the sample actions inside the illustrated product, above the full tab content. */
.feature-page .tc-product-scene { --feature-action-progress: .52; }
.tcs-product-motion {
  --motion-ink: #6746a0;
  --motion-paper: #ebe2f5;
  --motion-lift: 0px;
  --motion-turn: 0deg;
  --motion-arch: min(var(--feature-action-progress), calc(1 - var(--feature-action-progress)));
  position: relative;
  isolation: isolate;
  height: clamp(37px, 8cqw, 53px);
  margin-top: 8px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--motion-paper);
  pointer-events: none;
}
.tcs-motion-path {
  position: absolute;
  inset: 50% 8% auto;
  height: 2px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--motion-ink) 30%, transparent);
}
.tcs-motion-path::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--motion-ink);
  transform: scaleX(var(--feature-action-progress));
  transform-origin: left center;
}
.tcs-motion-marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(8% + var(--feature-action-progress) * 84%);
  display: grid;
  place-items: center;
  width: clamp(23px, 4.7cqw, 35px);
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--motion-ink);
  color: #fffdf7;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--motion-ink) 28%, transparent);
  font: 680 clamp(15px, 3.8cqw, 24px)/1 system-ui, sans-serif;
  transform: translate3d(-50%, calc(-50% - var(--motion-arch) * var(--motion-lift)), 0) rotate(calc((var(--feature-action-progress) - .5) * var(--motion-turn)));
}

[data-product-motion="meetings"] { --motion-ink: #704693; --motion-paper: #efe5f3; }
.tcs-motion-wave { position: absolute; inset: 9% 8%; display: flex; align-items: center; gap: clamp(1px, .38cqw, 4px); }
.tcs-motion-wave i { flex: 1; min-width: 1px; border-radius: 4px; background: #b092d3; }
.tcs-motion-wave i:nth-child(4n+1) { background: #c87c86; }
[data-product-motion="meetings"] .tcs-motion-marker { width: 2px; height: 82%; aspect-ratio: auto; border-radius: 3px; }
[data-product-motion="meetings"] .tcs-motion-marker::before {
  content: "";
  position: absolute;
  inset: 1px -3px auto;
  height: 6px;
  background: var(--motion-ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

[data-product-motion="sales"] { --motion-ink: #754633; --motion-paper: #f4e5d5; --motion-lift: 11px; --motion-turn: 49deg; }
[data-product-motion="sales"] .tcs-motion-path {
  top: 34%;
  height: 39%;
  transform: skewX(-16deg);
  background: repeating-radial-gradient(ellipse at 20% 13%, transparent 0 27%, #ab7d5e64 29% 33%, transparent 35% 41%);
  mask-image: linear-gradient(90deg, #000 0 calc(var(--feature-action-progress) * 100%), #0004 0 100%);
}
[data-product-motion="sales"] .tcs-motion-path::before { display: none; }
[data-product-motion="sales"] .tcs-motion-marker { border-radius: 6px 8px 7px 50%; }

[data-product-motion="projects"] { --motion-ink: #386451; --motion-paper: #e4efe7; --motion-lift: 8px; }
[data-product-motion="projects"] .tcs-motion-path {
  top: 25%;
  height: 50%;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #53716346 0 1px, transparent 1px 16.66%), linear-gradient(#9bbca44a, #9bbca449);
}
[data-product-motion="projects"] .tcs-motion-path::before { top: 42%; bottom: auto; height: 3px; }

[data-product-motion="studio"] { --motion-ink: #8c443b; --motion-paper: #f3dfd9; --motion-lift: 30px; --motion-turn: 48deg; }
[data-product-motion="studio"] .tcs-motion-path { top: 35%; height: 48%; background: repeating-linear-gradient(132deg, #c97e6861 0 4px, #f7eae2 4px 11px); }
[data-product-motion="studio"] .tcs-motion-path::before { opacity: .45; background: repeating-linear-gradient(132deg, #b96650 0 4px, #dda895 4px 11px); }
[data-product-motion="studio"] .tcs-motion-marker { border-radius: 50% 50% 50% 4px; font-size: 11px; }

[data-product-motion="canvas"] { --motion-ink: #705a30; --motion-paper: #f1ead3; }
[data-product-motion="canvas"] .tcs-motion-path { top: 49%; height: 3px; }
[data-product-motion="canvas"]::before, [data-product-motion="canvas"]::after {
  content: "";
  position: absolute;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border: 2px solid #867043;
  border-radius: 3px;
  background: #fff9e7;
}
[data-product-motion="canvas"]::before { left: 8%; }
[data-product-motion="canvas"]::after { right: 8%; }
[data-product-motion="canvas"] .tcs-motion-marker { width: 19px; border-radius: 50%; font-size: 11px; }

[data-product-motion="forms"] { --motion-ink: #534493; --motion-paper: #e9e5f4; --motion-lift: 15px; --motion-turn: -30deg; }
[data-product-motion="forms"] .tcs-motion-path { top: 31%; height: 39%; background: repeating-linear-gradient(90deg, #806cb759 0 1px, transparent 1px 19%), repeating-linear-gradient(0deg, #806cb759 0 1px, #fbf6ff 1px 7px); }
[data-product-motion="forms"] .tcs-motion-path::before { opacity: .38; }

[data-product-motion="collaborators"] { --motion-ink: #81523a; --motion-paper: #f5e6d9; --motion-lift: 27px; --motion-turn: 52deg; }
[data-product-motion="collaborators"] .tcs-motion-path { border: 1px dashed #9f7254; background: transparent; height: 0; }
[data-product-motion="collaborators"] .tcs-motion-path::before { height: 2px; }
[data-product-motion="collaborators"] .tcs-motion-path::after {
  content: "";
  position: absolute;
  inset: -8px 0 auto auto;
  width: 16px;
  height: 16px;
  border: 2px solid #b88061;
  border-top-color: transparent;
  border-radius: 4px;
}

[data-product-motion="teamspaces"] { --motion-ink: #3d645e; --motion-paper: #e4eee9; --motion-lift: 6px; }
[data-product-motion="teamspaces"] .tcs-motion-path { top: 22%; height: 55%; background: radial-gradient(circle at 6% 50%, #8fb1a2 0 7px, transparent 7.5px), radial-gradient(circle at 51% 50%, #a984bb 0 7px, transparent 7.5px), radial-gradient(circle at 93% 50%, #c38c70 0 7px, transparent 7.5px), linear-gradient(transparent 48%, #82a497 49% 54%, transparent 55%); }
[data-product-motion="teamspaces"] .tcs-motion-path::before { opacity: .24; }
[data-product-motion="teamspaces"] .tcs-motion-marker { border-radius: 50%; border: 2px solid #fffcf6; outline: 1px solid #628f84; font-size: 11px; }

[data-product-motion="integrations"] { --motion-ink: #5e4f9d; --motion-paper: #eae6f6; --motion-turn: 28deg; }
[data-product-motion="integrations"] .tcs-motion-path { height: 3px; background: repeating-linear-gradient(90deg, #806cb7 0 6px, transparent 6px 12px); }
[data-product-motion="integrations"] .tcs-motion-marker { transform: translate3d(-50%, -50%, 0) rotate(calc((var(--feature-action-progress) - .5) * 160deg)); }

[data-product-motion="desktop"] { --motion-ink: #753e4b; --motion-paper: #eddde1; --motion-lift: 18px; }
[data-product-motion="desktop"] .tcs-motion-path { top: 29%; height: 42%; background: repeating-linear-gradient(90deg, #a5687947 0 1px, transparent 1px 6px); mask-image: linear-gradient(180deg, transparent, #000 43%, #000 57%, transparent); }
[data-product-motion="desktop"] .tcs-motion-path::before { opacity: .32; }
[data-product-motion="desktop"] .tcs-motion-marker { border-radius: 99px; }
[data-product-motion="desktop"] .tcs-motion-marker::before {
  content: "";
  width: 24%;
  height: 46%;
  border-radius: 99px;
  background: #fff0e4;
  box-shadow: 0 0 0 2px #753e4b, 0 0 0 3px #fff0e4;
}

@media (prefers-reduced-motion: no-preference) {
  .tour-ready .feature-page .tc-product-scene { --feature-action-progress: clamp(0, calc((var(--tour-progress, 0) - .13) * 1.35), 1); }
  .tour-ready .feature-page .tcs-voice,
  .tour-ready .feature-page .tcs-timeline { position: relative; }
  .tour-ready .feature-page :is(.tcs-voice, .tcs-timeline)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(2% + var(--feature-action-progress) * 96%);
    border-left: 2px solid #704693;
    pointer-events: none;
  }
  .tour-ready .feature-page .tcs-timeline::after { left: calc(37% + var(--feature-action-progress) * 60%); border-color: #476f5d; }
  .tour-ready .feature-page .tcs-proof-pointer { transform: translate3d(calc((1 - var(--feature-action-progress)) * 34px), calc((var(--feature-action-progress) - 1) * 47px), 0) rotate(calc((1 - var(--feature-action-progress)) * 30deg)); }
  .tour-ready .feature-page .cb-map-edges g:not(.cb-return) .cb-wire-draw {
    animation: none;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--feature-action-progress));
  }
  .tour-ready .feature-page .tcs-dropzone > span { transform: translateY(calc((.5 - var(--feature-action-progress)) * 12px)); }
}

.feature-step h3, .feature-detail-grid h3 { margin: 0; font-size: clamp(1.24rem, 2.1vw, 1.8rem); font-weight: 650; }
.feature-step p, .feature-detail-grid p { margin: .55rem 0 0; color: var(--showcase-muted); max-width: 62ch; }
.feature-screenshot { position: relative; isolation: isolate; margin-block: 0 clamp(2rem, 7vw, 6.75rem); padding: clamp(.65rem, 3vw, 2.8rem); }
.feature-screenshot::before { inset: -17% -7% -13%; background: radial-gradient(ellipse at 50% 47%, #e9ddf2, transparent 75%); }
.feature-screenshot .tc-product-scene { max-width: 61rem; margin-inline: auto; }
.feature-screenshot figcaption, .feature-dashboard figcaption { text-align: center; margin-top: clamp(.7rem, 2vw, 1.45rem); color: var(--showcase-muted); font-size: .88rem; }
.feature-dashboard { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.feature-dashboard figure { margin: 0; min-width: 0; }
.feature-dashboard p { color: var(--showcase-muted); }
.feature-dashboard tarca-canvas-dashboard { display: block; }
@media (max-width: 850px) { .feature-dashboard { grid-template-columns: 1fr; } }
.feature-support { padding-block: clamp(1.3rem, 4vw, 4.25rem); }
.feature-support h2 { max-width: none; }
.feature-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: clamp(1.25rem, 4vw, 3rem); margin: 1.65rem 0 0; }
.feature-detail-grid article { border-top: 1px solid var(--showcase-line); padding-top: 1.15rem; }
.feature-extra { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.55rem; }
.feature-downloads { margin-top: 1.25rem; }
.feature-downloads > a { margin-top: 1.65rem; }
.feature-related { padding: clamp(2.4rem, 6vw, 6rem) 0; }
.feature-related h2 { font-size: clamp(1.5rem, 3vw, 2.65rem); margin: 0 0 1rem; }
.feature-related-list { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; }
.feature-related-list a { display: flex; padding: .85rem 1rem; border: 1px solid var(--showcase-line); border-radius: 2rem; background: #fffdfa; text-decoration: none; }
.feature-related-list a:hover { border-color: var(--showcase-accent); }
.feature-close { position: relative; isolation: isolate; margin-top: clamp(2rem, 6vw, 6rem); text-align: center; padding: clamp(2rem, 8vw, 6.8rem) clamp(1rem, 4vw, 3rem); }
.feature-close::before {
  inset: -54% -8% -46%;
  background: radial-gradient(ellipse at 69% 43%, #dfd2f4, transparent 62%), radial-gradient(ellipse at 32% 62%, #fce0d1, transparent 58%);
}
.tour-ready .feature-close::before { transform: translate3d(calc((var(--tour-reading, 0) - .8) * 13%), 0, 0); }
.feature-related + .feature-close { margin-top: 0; }
.feature-close h2 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 550; margin: 0; }
.feature-close .feature-actions { justify-content: center; }

.feature-directory { padding-block: clamp(1.5rem, 4.8vw, 5rem) 0; }
.feature-directory .showcase-heading { max-width: 16ch; }
.feature-directory-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .85rem; padding-top: clamp(2rem, 5vw, 5rem); }
.feature-directory-grid::before {
  inset: -8rem -8% -9rem;
  background: radial-gradient(ellipse at 27% 42%, #eddcf0, transparent 53%), radial-gradient(ellipse at 71% 49%, #f8e9d9, transparent 57%);
}
.tour-ready .feature-directory-grid::before { transform: translate3d(calc((var(--tour-progress, 0) - .5) * 14%), calc((var(--tour-progress, 0) - .5) * 3.5rem), 0); }
.feature-directory-card { border-top: 1px solid var(--showcase-line); min-height: 11rem; padding: clamp(1.1rem, 2.5vw, 1.8rem); background: radial-gradient(ellipse at 47% 40%, color-mix(in srgb, var(--feature-callout) 55%, transparent), transparent 74%); }
.tour-ready .feature-directory-card { background: radial-gradient(ellipse at calc(18% + var(--tour-progress, 0) * 67%) 35%, color-mix(in srgb, var(--feature-wash) 42%, transparent), transparent 79%); }
.tour-ready .feature-directory-card:nth-child(even) { background-position: calc(var(--tour-progress, 0) * 10px) 0; }
.feature-directory-card h2 { margin: 0; }
.feature-directory-card a { text-decoration: none; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.feature-directory-card p { color: var(--showcase-muted); margin: .6rem 0 0; font-size: .94rem; }
.feature-footer { display: grid; grid-template-columns: minmax(10rem, .75fr) minmax(0, 1.6fr) minmax(0, .65fr); gap: 2rem; padding-block: clamp(2rem, 5vw, 5rem); }
.feature-footer p { margin: .4rem 0 0; color: var(--showcase-muted); max-width: 21ch; }
.feature-footer nav { display: grid; gap: .4rem 1rem; align-content: start; }
.feature-footer-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-footer nav a { font-size: .88rem; text-decoration: none; }
.feature-footer nav a:hover { color: var(--showcase-accent); text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 850px) {
  .feature-header .showcase-menu-links { position: absolute; inset: calc(100% + .7rem) auto auto 50%; transform: translateX(-41%); width: min(29rem, calc(100vw - 2.25rem)); }
  .feature-hero { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature-hero h1 { max-width: 15ch; }
  .feature-chapter-layout[data-feature-enhanced] { grid-template-columns: 1fr; gap: .85rem; }
  .tour-ready .feature-stage::after {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -.5rem -.25rem -1.65rem;
    border-radius: 0 0 1.2rem 1.2rem;
    /* A fixed lower stop keeps the full caption and its shadow opaque at any height. */
    background: linear-gradient(180deg, var(--showcase-paper),
      color-mix(in srgb, var(--showcase-paper) 92%, var(--feature-wash)) calc(100% - .8rem), transparent);
    pointer-events: none;
  }
  .feature-stage .tcs-pane { min-height: min(12rem, 24svh); max-height: min(12rem, 24svh); }
  .tour-ready .feature-chapter-layout[data-feature-enhanced] .feature-stage { top: .5rem; }
  .tour-ready .feature-chapter-layout[data-feature-enhanced] .feature-chapter-step { min-height: clamp(12rem, 40svh, 20rem); scroll-margin-block-start: min(27rem, 63svh); }
}
@media (max-width: 550px) {
  .feature-header-inner { min-height: 4.2rem; gap: .85rem; }
  .feature-header nav { gap: .75rem; }
  .feature-header nav a, .feature-header summary, .feature-sign-in { font-size: .85rem; }
  .feature-brand { gap: .2rem; font-size: 1.35rem; }
  .feature-brand img { width: 1.6rem; height: 1.6rem; }
  .feature-nav-demo { display: none; }
  .feature-footer { grid-template-columns: 1fr; }
  .feature-footer nav:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 550px) {
  .tour-ready .feature-chapter-layout[data-feature-enhanced] .feature-stage { position: relative; top: auto; }
  .tour-ready .feature-stage::after { content: none; }
  .tour-ready .feature-chapter-layout[data-feature-enhanced] .feature-chapter-step { scroll-margin-block-start: 1rem; }
}
@media (min-width: 851px) {
  .feature-hero[data-layout="wide"] { grid-template-columns: minmax(0, 1fr); gap: 2.65rem; }
  .feature-hero[data-layout="wide"] .feature-hero-copy { display: grid; grid-template-columns: 1.2fr minmax(0, .72fr); align-items: end; column-gap: clamp(1.6rem, 4vw, 4.6rem); }
  .feature-hero[data-layout="wide"] .showcase-kicker { grid-column: 1 / -1; }
  .feature-hero[data-layout="wide"] h1 { grid-row: span 2; }
  .feature-hero[data-layout="wide"] .feature-description { margin-block: 0; }
  .feature-hero[data-layout="wide"] .feature-actions { align-self: start; margin-top: 1.05rem; }
  .feature-hero[data-layout="reverse"] { grid-template-columns: minmax(0, 1fr) minmax(0, .76fr); }
  .feature-hero[data-layout="reverse"] .feature-hero-copy { grid-column: 2; grid-row: 1; }
  .feature-hero[data-layout="reverse"] .feature-visual { grid-column: 1; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-hero-copy, .feature-visual { animation: none; }
  .feature-button { transition: none; }
  .feature-button:hover { transform: none; }
}
.tour-reduced .feature-hero-copy, .tour-reduced .feature-visual { animation: none; }
.tour-reduced .feature-button { transition: none; }
.tour-reduced .feature-button:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .feature-page .tc-product-scene { --feature-action-progress: 1; }
}
.tour-reduced .feature-page .tc-product-scene { --feature-action-progress: 1; }
