/* ==========================================================================
   Claude Feature Tab 01 — "Built-In AI, Working for You"
   Art layer matched 1:1 to Figma node 8512-1003 (Bottle POS).
   - ONE periwinkle gradient lives on the container card (.__frame).
   - Real exported app mockup wired as an <img> (no simulated gray bars).
   - Agreed v1 motion: scroll-in reveal, staggered sparkle fade,
     subtle AI-card gradient drift, hover-reveal bottom CTA bar.
   ========================================================================== */

.claude-feature-tab-01 {
  /* Card art layer is brand-aware: the same composition adapts to the active
     theme palette while preserving the Figma gradient/motion structure. */
  /* THEME CONTRACT (cross-brand deploy): every brand value below derives from SR
     theme tokens (defined per brand in css/base-overrides.css), so the module
     re-skins to each focus brand automatically. Fallbacks = SR defaults, in case a
     non-SR theme omits a token. NOTE: the heading uses --primary (brand-colored, per
     Figma); brands with a pale/low-saturation primary should verify heading legibility. */
  --cft-card-1: var(--white, #fff);
  --cft-card-2: var(--light, #f8f9fa);
  --cft-card-3: color-mix(in srgb, var(--primary, #0c63ff) 8%, var(--light, #f8f9fa));
  --cft-card-4: color-mix(in srgb, var(--primary, #0c63ff) 24%, var(--light, #f8f9fa));
  --cft-card-5: color-mix(in srgb, var(--primary, #0c63ff) 64%, var(--light, #f8f9fa));
  --cft-card-6: var(--primary, #0c63ff);
  --cft-glow: var(--primary, #0c63ff);
  --cft-dot: color-mix(in srgb, var(--white, #fff) 42%, transparent);
  --cft-ink: var(--body_color, #87909e);
  --cft-accent: var(--primary, #0c63ff);
  --cft-accent-soft: color-mix(in srgb, var(--primary, #0c63ff) 28%, var(--white, #fff));
  --cft-dark: var(--dark, #343a40);
  --cft-light-text: var(--white, #fff);
  --cft-muted-text: color-mix(in srgb, var(--white, #fff) 84%, var(--primary, #0c63ff));
  /* Dark UI shell (tab column, tabs, reveal bar, mobile container, shadows) is a
     FIXED near-black constant so the dark-rail design holds on EVERY brand regardless
     of that brand's published --secondary. Verified live, secondary ranges wildly:
     near-black on Bottle/ITR/Markt/eTailPet, CREAM (#f6e7d7) on Jewel360, MINT
     (#1cb699) on ThriftCart. The brand re-skins via --primary (heading, active-tab
     accent, sparkle, gradient, card bottom) — only the chrome rail stays constant. */
  --cft-shell-rgb: 17, 18, 26;
  /* Brand mood background (the gradient card) + heading ink. 'brand' default below
     derives from the theme palette; [data-cft-bg] presets and the Custom Background
     field override --cft-frame-bg; [data-cft-theme] sets --cft-heading-color. */
  --cft-frame-bg:
    radial-gradient(120% 78% at 82% 122%, var(--cft-glow) 0%, rgba(var(--primary_rgb), 0) 56%),
    radial-gradient(90% 60% at 12% 116%, rgba(var(--primary_rgb), 0.28) 0%, rgba(var(--primary_rgb), 0) 60%),
    linear-gradient(168deg, var(--cft-card-1) 0%, var(--cft-card-2) 40%, var(--cft-card-3) 62%, var(--cft-card-4) 80%, var(--cft-card-5) 93%, var(--cft-card-6) 100%);
  --cft-heading-color: var(--heading, var(--headings_color, #2c3149));
  --cft-radius: clamp(1.5rem, 3.6vw, 3.125rem); /* 50px */
  position: relative;
  overflow: hidden;
}

.claude-feature-tab-01 > .container,
.claude-feature-tab-01 > .container-fluid,
.claude-feature-tab-01 > .container-small,
.claude-feature-tab-01 > .container-large {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   The gradient card (container) — the single source of the blue wash
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--cft-radius);
  padding: clamp(2rem, 4.5vw, 3.75rem) clamp(1.5rem, 4.5vw, 3.75rem) 50px; /* Ryan: 50px bottom gap below tab container */
  overflow: hidden;
  isolation: isolate;
  /* Brand mood background — flexible per brand (preset or the Custom Background field). */
  background: var(--cft-frame-bg);
}

/* very subtle dot texture, lower half only — barely-there per Figma render */
.claude-feature-tab-01__frame::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  z-index: 0;
  background-image: radial-gradient(var(--cft-dot) 1px, transparent 1.4px);
  background-size: 1.15rem 1.15rem;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--black, #000) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, var(--black, #000) 45%, transparent 100%);
  opacity: 0.35;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Intro (sparkle + heading + lead + CTAs), centered
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.claude-feature-tab-01__intro {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.claude-feature-tab-01__heading .heading,
.claude-feature-tab-01__heading h1,
.claude-feature-tab-01__heading h2,
.claude-feature-tab-01__heading h3 {
  margin: 0 0 0.85rem;
  color: var(--cft-heading-color);
  font-family: var(--heading_font, inherit);
  /* Font-weight intentionally NOT set — inherit the theme's heading weight via the .heading class that
     macros.heading() stamps (SR themes run a light display serif — e.g. eTailPet is Lora 400). Hardcoding
     700 made the module heading heavier than every other heading on the page (Gina/Ryan flagged 2026-07-01);
     let the theme drive it so it matches per brand. */
  line-height: 1.05;
}

/* --------------------------------------------------------------------------
   Brand mood background presets + light/dark theme (Ai-Overview multi-brand).
   Editor picks a preset (or Custom CSS) + a Light/Dark theme; the dark UI shell
   (Option A) holds in both.
   -------------------------------------------------------------------------- */
.claude-feature-tab-01[data-cft-bg="blue"] {
  --cft-frame-bg: linear-gradient(168deg, #f7f9ff 0%, #e9edff 52%, #c4d1ff 100%);
}
.claude-feature-tab-01[data-cft-bg="bottle"] {
  /* Bottle POS — 2026 Figma (11-1180), gradient matched to the live ~800-890px section height
     (Miles 2026-06-24: the earlier build was too white — periwinkle pushed too low at the real
     section height). Vertical profile sampled column-by-column from the Figma render: WHITE only in
     the top ~20%, periwinkle established by ~32-42%, a saturated PLATEAU through the 52-82% band
     (it does NOT darken monotonically to the bottom), easing slightly at the very bottom. Strong
     RIGHT bias: the left column plateaus soft (~#ABB6FF) while the right hits a deep #576CFF in the
     62-82% band (the saturated focal behind the media). Construction: base linear = the soft LEFT
     column; radial #1 is a PLATEAU glow (held 0-26%) anchored right-of-center at 72% for the deep
     band; radial #2 is the deep-blue core behind the bottom-center media. Hue is a deliberate
     indigo/periwinkle (NOT bottle's --primary #006AC6) — hardcoded + domain-gated in module.html.
     All %-based so the profile holds at any section height and at full-bleed. Verified vs the
     Figma profile to a ~11 mean abs-diff (left col ~0). */
  --cft-frame-bg:
    radial-gradient(98% 52% at 100% 72%, rgba(74, 94, 250, 0.86) 0%, rgba(74, 94, 250, 0.86) 26%, rgba(74, 94, 250, 0) 82%),
    radial-gradient(80% 46% at 62% 96%, rgba(8, 80, 156, 0.42) 0%, rgba(8, 80, 156, 0) 60%),
    linear-gradient(180deg, #f8fbff 0%, #f8fbff 14%, #f2f4ff 22%, #dce2ff 32%, #c1c9ff 42%, #afbaff 52%, #abb6ff 62%, #abb6ff 72%, #a8b4fc 82%, #acb9fb 92%, #b7c3fa 100%);
  /* Light gradient -> keep the brand-aware DARK heading (Figma heading is #2C3149). Do NOT add
     'bottle' to the dark-preset white-heading override below. */
}
.claude-feature-tab-01[data-cft-bg="cream"] {
  /* Jewelry — updated 2026 Figma (45-878): dark charcoal -> deep teal base with a warm gold glow
     rising from the bottom (the Vector 3 bronze layer). Replaces the old cream wash.
     Glow core anchored at y=104% (bottom edge) so the bright gold lands INSIDE the ~820px
     frame — same 820px discipline as the green/thrift reworks (was 122%, core off-screen). */
  --cft-frame-bg:
    radial-gradient(150% 72% at 50% 104%, rgba(94, 69, 36, 0.62) 0%, rgba(94, 69, 36, 0) 56%),
    linear-gradient(180deg, #26221c 0%, #072b35 100%);
  /* Now a dark mood -> force light heading + lead (same treatment as the green preset). */
  --cft-heading-color: #fffffa;
}
.claude-feature-tab-01[data-cft-bg="cream"] .claude-feature-tab-01__lead {
  color: rgba(255, 255, 255, 0.86);
}
/* macros.heading() stamps the h2 with .text-primary, and the SR theme's `.heading.text-primary`
   rule forces color:var(--primary) — which BEATS our var(--cft-heading-color) on the LIVE theme
   (the variable only won in the harness, where that SR rule doesn't exist). So on the DARK presets
   force the heading white directly, with specificity + !important to override .text-primary. */
.claude-feature-tab-01[data-cft-bg="cream"] .claude-feature-tab-01__heading :is(.heading, h1, h2, h3),
.claude-feature-tab-01[data-cft-bg="green"] .claude-feature-tab-01__heading :is(.heading, h1, h2, h3),
.claude-feature-tab-01[data-cft-bg="thrift"] .claude-feature-tab-01__heading :is(.heading, h1, h2, h3),
.claude-feature-tab-01[data-cft-bg="etail"] .claude-feature-tab-01__heading :is(.heading, h1, h2, h3),
.claude-feature-tab-01[data-cft-bg="music"] .claude-feature-tab-01__heading :is(.heading, h1, h2, h3),
.claude-feature-tab-01[data-cft-bg="custom"][data-cft-theme="dark"] .claude-feature-tab-01__heading :is(.heading, h1, h2, h3) {
  color: #fffffa !important;
}
.claude-feature-tab-01[data-cft-bg="green"] {
  /* Grocery / MarktPOS — updated 2026 Figma (46-2382): flat #151a14 base + the pear-mask glow on the
     LEFT — olive-green (#7b9f0f) up top warming to an orange band (#f38314) mid-left, fading to dark.
     Positions anchored left and kept within the element so the orange/olive band stays in view at
     ~820px (the old center-bottom orange pushed the interesting part off-screen). */
  --cft-frame-bg:
    radial-gradient(82% 72% at -4% 8%, rgba(123, 159, 15, 0.5) 0%, rgba(123, 159, 15, 0) 58%),
    radial-gradient(54% 48% at -3% 44%, rgba(243, 131, 20, 0.52) 0%, rgba(243, 131, 20, 0) 56%),
    #151a14;
  /* Green is an intrinsically dark mood -> always light heading + lead, theme-independent,
     so an editor can't strand a dark heading on the dark gradient. */
  --cft-heading-color: #fffffa;
}
.claude-feature-tab-01[data-cft-bg="green"] .claude-feature-tab-01__lead {
  color: rgba(255, 255, 255, 0.86);
}
.claude-feature-tab-01[data-cft-bg="thrift"] {
  /* ThriftCart — Figma 54-1164: near-black base with a navy/green/blue glow rising from the bottom
     corners (the Vector 3 sweep: #00273f -> #006b4d -> #0089ce). Green at the bottom-left, blue at
     the bottom-right, over a near-black base that deepens to navy. */
  /* Positions are kept WITHIN the element (<=100% y) — the frame caps around ~820px, so anything
     near/over 100% lands off-screen. Signature BLUE dominant in the bottom-center-right (behind the
     card), teal-green at the bottom-left, both rising to roughly mid-height, over a near-black base. */
  --cft-frame-bg:
    radial-gradient(92% 78% at 60% 100%, rgba(0, 137, 206, 0.82) 0%, rgba(0, 137, 206, 0) 62%),
    radial-gradient(70% 70% at 6% 98%, rgba(0, 132, 94, 0.85) 0%, rgba(0, 132, 94, 0) 56%),
    radial-gradient(140% 60% at 50% 104%, rgba(0, 42, 66, 0.5) 0%, rgba(0, 42, 66, 0) 56%),
    linear-gradient(180deg, #010101 0%, #021019 100%);
  --cft-heading-color: #fffffa;
}
.claude-feature-tab-01[data-cft-bg="thrift"] .claude-feature-tab-01__lead {
  color: rgba(255, 255, 255, 0.86);
}
.claude-feature-tab-01[data-cft-bg="etail"] {
  /* eTailPet (XBU) — Figma 54-1657: flat DARK TEAL #01313d base (= eTailPet --secondary) with a soft
     teal/aqua glow rising from the bottom — brightest aqua at the bottom-LEFT (~#a4d0d7), teal toward the
     bottom-right (--tertiary #16697a). The orange sparkle + active stripe come from --primary (#eb6f02),
     so no per-preset overrides are needed for those. Glow centers kept ~at the bottom edge so the lit band
     stays in the ~820px frame cap (same discipline as green/thrift). */
  --cft-frame-bg:
    radial-gradient(82% 74% at -2% 103%, rgba(178, 217, 223, 0.95) 0%, rgba(120, 185, 196, 0) 60%),
    radial-gradient(88% 64% at 101% 105%, rgba(30, 120, 138, 0.72) 0%, rgba(22, 105, 122, 0) 56%),
    radial-gradient(165% 52% at 52% 113%, rgba(22, 100, 116, 0.5) 0%, rgba(18, 88, 103, 0) 52%),
    linear-gradient(180deg, #01313d 0%, #02333f 44%, #06414e 100%);
  --cft-heading-color: #fffffa;
}
.claude-feature-tab-01[data-cft-bg="etail"] .claude-feature-tab-01__lead {
  color: rgba(255, 255, 255, 0.86);
}
.claude-feature-tab-01[data-cft-bg="music"] {
  /* MusicShop360 (XBU) — Figma (1-3037): near-black #111111 base with a warm glow. Orange (#d75a22)
     rises up the RIGHT from the bottom corner, amber (#cb831a) blends above it, and a dusty-rose/plum
     (#ad606f, the Vector 3 #974e76 stop over the dark base) glows from the bottom-LEFT. Warm bottom
     glow, dark top. Glow cores anchored <=~101% y and the orange's vertical reach is capped so the top
     stays dark and the lit band lands inside the ~820px frame (same discipline as thrift/etail).
     Swatch-matched to the Figma render at dE 9.5. */
  --cft-frame-bg:
    radial-gradient(116% 106% at 94% 94%, rgba(216, 90, 34, 1) 0%, rgba(216, 90, 34, 0.56) 37%, rgba(216, 90, 34, 0) 61%),
    radial-gradient(66% 76% at 76% 60%, rgba(203, 131, 25, 0.76) 0%, rgba(203, 131, 25, 0) 54%),
    radial-gradient(100% 108% at -6% 99%, rgba(173, 97, 111, 1) 0%, rgba(173, 97, 111, 0.30) 44%, rgba(173, 97, 111, 0) 64%),
    linear-gradient(180deg, #111111 0%, #141011 55%, #191110 100%);
  --cft-heading-color: #fffffa;
}
.claude-feature-tab-01[data-cft-bg="music"] .claude-feature-tab-01__lead {
  color: rgba(255, 255, 255, 0.86);
}
/* Light presets (brand/blue) keep the brand-aware dark heading regardless of the Theme toggle, so
   white text can never be stranded on a light gradient. (green + cream are dark presets that force
   their own light heading above.) The Dark theme applies ONLY to a Custom background. */
.claude-feature-tab-01[data-cft-bg="custom"][data-cft-theme="dark"] {
  --cft-heading-color: #fffffa;
}
.claude-feature-tab-01[data-cft-bg="custom"][data-cft-theme="dark"] .claude-feature-tab-01__lead {
  color: rgba(255, 255, 255, 0.86);
}

.claude-feature-tab-01__lead {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--cft-ink);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.6;
}

.claude-feature-tab-01__lead p:last-child {
  margin-bottom: 0;
}

.claude-feature-tab-01__ctas {
  margin-top: 1.6rem;
}

/* SR theme forces .cta-group justify-content:flex-start (unbeatable even at
   high specificity), so center the group itself via fit-content + margin auto. */
.claude-feature-tab-01 .claude-feature-tab-01__ctas .cta-group {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Sparkle cluster (inline SVG, staggered fade-in)
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__hero-mark {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
}

.claude-feature-tab-01__spark {
  width: clamp(2.75rem, 4vw, 3.5rem);
  height: auto;
  overflow: visible;
  /* currentColor themes the new sparkle mark; --cft-accent (= --primary) suits the light presets. */
  color: var(--cft-accent);
  filter: drop-shadow(0 0.35rem 0.9rem rgba(var(--primary_rgb), 0.28));
}
/* Dark presets: a warm/light sparkle so it stays visible on the dark gradient (matches the Figma
   jewelry gold). Same reason the headings flip light on these presets. */
.claude-feature-tab-01[data-cft-bg="cream"] .claude-feature-tab-01__spark { color: #c9a97a; }
.claude-feature-tab-01[data-cft-bg="green"] .claude-feature-tab-01__spark { color: #f0b46a; }
.claude-feature-tab-01[data-cft-bg="thrift"] .claude-feature-tab-01__spark { color: #14c4cc; }
.claude-feature-tab-01[data-cft-bg="music"] .claude-feature-tab-01__spark { color: #f2914a; }
.claude-feature-tab-01[data-cft-bg="custom"][data-cft-theme="dark"] .claude-feature-tab-01__spark { color: rgba(255, 255, 255, 0.92); }

.claude-feature-tab-01__spark .cft-star {
  transform-box: fill-box;
  transform-origin: center;
}

.claude-feature-tab-01 .cft-flow-stop--soft {
  stop-color: var(--cft-accent-soft);
}
/* eTailPet (Miles 2026-06-26): the soft accent tint washes out to a muted tan on the dark teal — use the
   full brand orange (--cft-accent = --primary #eb6f02) so the flow-line strokes read clearly orange. */
.claude-feature-tab-01[data-cft-bg="etail"] .cft-flow-stop--soft {
  stop-color: var(--cft-accent);
}
/* ...and lift the faded END stops (0.28 was too faint to read as orange over the dark teal — Miles
   couldn't see the color change). The mid stop stays full (inline 1.0), so the animated comet pulse is
   preserved while the whole line now reads clearly orange. */
.claude-feature-tab-01[data-cft-bg="etail"] .cft-flow-stop--soft[offset="0"],
.claude-feature-tab-01[data-cft-bg="etail"] .cft-flow-stop--soft[offset="1"] {
  stop-opacity: 0.7;
}
/* MusicShop360 (Miles 2026-07-13): same dark-preset fix as eTailPet — the washed --cft-accent-soft
   tint reads faint/dull on the near-black base (Miles saw the flow-lines as "black"). The Figma
   (1-3037) colors the flow-lines (Vector 1/2) a deliberate amber #f2b146 — distinct from the deeper
   button/wash orange — so PIN that exact hex (not --primary) and lift the faded end stops so the whole
   line reads clearly amber. The mid stop stays full (inline 1.0) to preserve the animated comet pulse. */
.claude-feature-tab-01[data-cft-bg="music"] .cft-flow-stop--soft {
  stop-color: #f2b146;
}
.claude-feature-tab-01[data-cft-bg="music"] .cft-flow-stop--soft[offset="0"],
.claude-feature-tab-01[data-cft-bg="music"] .cft-flow-stop--soft[offset="1"] {
  stop-opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Experience — transparent layout wrapper (no competing gradient)
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__experience {
  position: relative;
  z-index: 2;
}

/* desktop layout = the rounded "bottom div": tabs | mockup */
.claude-feature-tab-01__desktop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 18.75rem) 1fr;
  width: min(100%, 60rem);
  margin: 0 auto;
  border-radius: clamp(0.9rem, 1.6vw, 1.25rem);
  overflow: hidden;
  box-shadow: 0 1.75rem 3.5rem rgba(var(--cft-shell-rgb), 0.18);
}

/* --------------------------------------------------------------------------
   Tabs column (dark)
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__tabs {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  /* Figma: the tab column ('tabs' frame) has NO fill — the translucent tabs sit directly over
     the frame gradient + dot texture, so it shows through (lighter top -> darker bottom). The
     old opaque 0.92->0.86 column blocked that and read as full-opacity. */
  background: transparent;
}

.claude-feature-tab-01__tab {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-height: 5.5rem;
  padding: 1.1rem 2.4rem 1.1rem 1.25rem; /* extra right padding reserves room for the click-through chevron */
  text-align: left;
  color: var(--cft-muted-text);
  /* INACTIVE = translucent so the brand frame gradient bleeds through (Figma 0.8 -> 0.75). The hover/active
     states LIFT lighter for distinctness — Miles 2026-06-25: reverted from the solid-dark "increase contrast"
     version, which was not distinct enough (on dark brands the solid-dark active read the same as inactive). */
  background: linear-gradient(225deg, rgba(var(--cft-shell-rgb), 0.8) 0%, rgba(var(--cft-shell-rgb), 0.75) 100%);
  border: 0;
  border-top: 1px solid rgba(var(--primary_rgb), 0.14);
  cursor: pointer;
  transition: color 180ms ease, background 220ms ease, box-shadow 220ms ease;
}

.claude-feature-tab-01__tab:first-child {
  border-top: 0;
}

/* Click-through cue (Andrew Stern feedback 2026-06-24: on desktop it was not obvious the tabs were
   clickable — only the text subtly changed color). A chevron pointing toward the media panel makes each
   tab READ as selectable at rest, then brightens + nudges on hover/active. Desktop echo of the mobile (+). */
.claude-feature-tab-01__tab::before {
  content: "";
  position: absolute;
  right: 1.05rem;
  top: 50%;
  width: 0.44rem;
  height: 0.44rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  color: #fff;
  opacity: 0.32;
  transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
  pointer-events: none;
}

.claude-feature-tab-01__tab::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 180ms ease, width 180ms ease;
}

/* Hover/active LIGHT UP into a neutral frosted-white LIFT — Miles 2026-06-25: reverted from the solid-dark
   "increase contrast" version (it was not distinct enough — on dark brands the solid-dark active read the
   same as the inactive tabs). The lighter lift pops on every brand. Brand-agnostic (no --cft-accent in the
   panel); only the ::after stripe carries --primary. :hover is gated to fine pointers so it can't STICK on
   touch laptops/tablets that paint the desktop layout (QA blocker fix, retained). */
@media (hover: hover) and (pointer: fine) {
  .claude-feature-tab-01__tab:hover {
    color: var(--cft-light-text);
    background:
      linear-gradient(225deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.11) 100%),
      linear-gradient(225deg, rgba(var(--cft-shell-rgb), 0.9) 0%, rgba(var(--cft-shell-rgb), 0.84) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.16),
      inset 0 0 1.8rem rgba(255, 255, 255, 0.07);
    z-index: 2;
  }
  .claude-feature-tab-01__tab:hover::before {
    color: #fff;
    opacity: 1;
    transform: translateY(-50%) translateX(3px) rotate(45deg);
  }
  .claude-feature-tab-01__tab:hover::after {
    background: var(--cft-accent); /* fallback for engines without color-mix */
    background: color-mix(in srgb, var(--cft-accent) 62%, transparent);
  }
}

/* Keyboard focus = the same lift PLUS a real focus ring. Kept OUTSIDE the hover media query so keyboard
   users get a visible indicator on touch devices too (QA a11y fix, retained). */
.claude-feature-tab-01__tab:focus-visible {
  color: var(--cft-light-text);
  background:
    linear-gradient(225deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.11) 100%),
    linear-gradient(225deg, rgba(var(--cft-shell-rgb), 0.9) 0%, rgba(var(--cft-shell-rgb), 0.84) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 1.8rem rgba(255, 255, 255, 0.07);
  outline: 2px solid var(--cft-light-text);
  outline-offset: -2px;
  z-index: 2;
}
.claude-feature-tab-01__tab:focus-visible::before {
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) translateX(3px) rotate(45deg);
}
.claude-feature-tab-01__tab:focus-visible::after {
  background: var(--cft-accent);
  background: color-mix(in srgb, var(--cft-accent) 62%, transparent);
}

/* ACTIVE = the committed selection: the BRIGHTEST neutral lift + the full-weight --primary stripe (the one
   branded element, per Miles). The extra white sheen makes it the most-lifted tile so the chosen one reads. */
.claude-feature-tab-01__tab.is-active {
  color: var(--cft-light-text);
  background:
    linear-gradient(225deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 55%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(225deg, rgba(var(--cft-shell-rgb), 0.92) 0%, rgba(var(--cft-shell-rgb), 0.86) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 2rem rgba(255, 255, 255, 0.1);
  z-index: 3;
}
.claude-feature-tab-01__tab.is-active::before {
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) translateX(3px) rotate(45deg);
}
.claude-feature-tab-01__tab.is-active::after {
  background: var(--cft-accent);
  width: 4px;
}

/* Windows High Contrast / forced-colors (common on Edge) strips background + box-shadow, so the lift
   vanishes — give the active tab + keyboard focus a system-color outline that survives (QA a11y fix). */
@media (forced-colors: active) {
  .claude-feature-tab-01__tab.is-active { outline: 2px solid Highlight; outline-offset: -2px; }
  .claude-feature-tab-01__tab:focus-visible { outline: 2px solid Highlight; }
}

.claude-feature-tab-01__tab-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.4rem;
  border-radius: 0.25rem;
  padding: 0.18rem 0.55rem;
  background: linear-gradient(310deg, color-mix(in srgb, var(--white, #fff) 10%, transparent), color-mix(in srgb, var(--white, #fff) 20%, transparent));
  color: var(--cft-muted-text);
  font-family: var(--primary_font, inherit);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.claude-feature-tab-01__tab-eyebrow span {
  color: var(--cft-accent-soft);
  font-weight: 700;
}

/* Ryan: real Figma eyebrow icon (3-sparkle AI mark), replacing the placeholder "+".
   currentColor -> accent-soft keeps it the Figma light-blue per active theme. */
.claude-feature-tab-01__tab-eyebrow-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  color: var(--cft-accent-soft);
}

.claude-feature-tab-01__tab-label {
  font-family: var(--primary_font, inherit);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.claude-feature-tab-01__tab-description {
  display: none; /* Figma tabs show eyebrow + label only */
}

/* --------------------------------------------------------------------------
   Mockup media (right) — real exported app image
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__panels {
  position: relative;
  min-width: 0;
  height: 100%;
}

.claude-feature-tab-01__panel {
  position: relative;
  height: 100%;
  /* Flex column so the media STRETCHES to the full panel height (the grid sets that to the taller of
     tabs|media). Long tab labels (e.g. eTailPet's 3-line labels) make the tabs column taller than the
     media's natural aspect box; without this the media stopped at its aspect height and left a dark
     frame gap below it (Miles 2026-06-26: "the image should be filling the container before hover"). */
  display: flex;
  flex-direction: column;
}

.claude-feature-tab-01__panel[hidden] {
  display: none;
}

.claude-feature-tab-01__media {
  position: relative;
  width: 100%;
  /* aspect-ratio is the intrinsic FLOOR (sizes the grid row when the tabs column is short); flex-grow
     then stretches the media to FILL the full panel height when the tabs column is taller (long labels).
     The image (below) covers this box so it always fills edge-to-edge — no dark frame gap before hover,
     and the hover reveal z-indexes over a full image. Mockups are 1280x928 with generous margins, so
     center-cover trims only empty cream, not content (Miles 2026-06-26, reverses the earlier contain). */
  flex: 1 1 auto;
  aspect-ratio: 1280 / 928;
  min-height: clamp(18rem, 26vw, 26rem);
  overflow: hidden;
  background: linear-gradient(45deg, rgba(var(--cft-shell-rgb), 0.9), rgba(var(--cft-shell-rgb), 0.65));
}

/* Media fills the aspect-ratio box; absolute so load/swap can't change reserved height (CLS-safe) */
.claude-feature-tab-01__image,
.claude-feature-tab-01__video,
.claude-feature-tab-01__lottie {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* cover (not contain): the media FILLS the panel edge-to-edge at every viewport so there is never a
     dark frame gap, even when the tabs column is taller than the image aspect (Miles 2026-06-26). The
     hover reveal then z-indexes OVER this full image. Mobile accordion images keep contain (more-specific
     override below) since the accordion box already matches the 1280x928 aspect exactly. */
  object-fit: cover;
  object-position: center;
}

/* Fallback simulated mockup ONLY when no image is provided */
.claude-feature-tab-01__mockup {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgba(var(--primary_rgb), 0.35), rgba(var(--primary_rgb), 0.7));
}

.claude-feature-tab-01__mockup-window {
  position: relative;
  width: min(90%, 40rem);
  min-height: 14rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--white, #fff) 70%, transparent), color-mix(in srgb, var(--white, #fff) 24%, transparent));
  backdrop-filter: blur(10px);
  box-shadow: 1rem 1.5rem 3rem rgba(var(--cft-shell-rgb), 0.18);
}

.claude-feature-tab-01__mockup-card {
  position: absolute;
  right: 8%;
  top: 18%;
  display: grid;
  gap: 0.6rem;
  width: min(60%, 22rem);
  border-radius: 0.9rem;
  padding: 1.25rem;
  color: var(--cft-light-text);
  background: linear-gradient(120deg, rgba(var(--primary_rgb), 0.82), rgba(var(--primary_rgb), 0.62));
  box-shadow: 1rem 1.5rem 3rem rgba(var(--cft-shell-rgb), 0.2);
}

.claude-feature-tab-01__mockup-card strong {
  font-weight: 700;
  line-height: 1.35;
}

.claude-feature-tab-01__mockup-card span {
  color: color-mix(in srgb, var(--white, #fff) 82%, transparent);
  font-size: 0.875rem;
}

.claude-feature-tab-01__mockup-side,
.claude-feature-tab-01__mockup-window span {
  display: none;
}

/* --------------------------------------------------------------------------
   Hover-reveal bottom CTA bar (media panel hover/focus)
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__reveal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem clamp(1.25rem, 3vw, 2rem);
  color: var(--cft-light-text);
  /* Frosted-glass hover popup (backdrop blur). Miles: NO text shadow (Figma has no
     effects); instead darken the tint so light text keeps contrast over the frosted
     bright mockup. Test points: blur 10px / 20px. */
  --cft-reveal-blur: 16px;
  background: linear-gradient(90deg, rgba(var(--cft-shell-rgb), 0.8), rgba(var(--cft-shell-rgb), 0.72));
  backdrop-filter: blur(var(--cft-reveal-blur));
  -webkit-backdrop-filter: blur(var(--cft-reveal-blur));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.claude-feature-tab-01__reveal-text {
  margin: 0; /* drop default <p> margin so the text block centers cleanly to the CTA */
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 34rem;
}

.claude-feature-tab-01__reveal-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--white, #fff) 35%, transparent);
  border-radius: 0.4rem;
  color: var(--cft-light-text);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.claude-feature-tab-01__reveal-cta:hover {
  background: color-mix(in srgb, var(--white, #fff) 12%, transparent);
  border-color: color-mix(in srgb, var(--white, #fff) 60%, transparent);
}

.claude-feature-tab-01__panel:hover .claude-feature-tab-01__reveal,
.claude-feature-tab-01__panel:focus-within .claude-feature-tab-01__reveal,
.claude-feature-tab-01__reveal:hover,
.claude-feature-tab-01__reveal:focus-within {
  transform: translateY(0);
  opacity: 1;
}

/* Harden the hover-reveal against the SR theme. The class name contains
   "reveal", which the live theme's scroll-in animations target by substring
   ([class*="reveal"]) and force to opacity:1 — that overrode the at-rest hide
   on the live page (worked in preview, broke live). Extra-specific + !important
   beats both an SR animation (important author > animation in the cascade) and a
   1-class SR !important rule. Pointer-events keeps the hidden bar from blocking
   the panels underneath. */
.claude-feature-tab-01 .claude-feature-tab-01__reveal {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none;
  /* Miles: vertically center the text block and CTA to each other. Forced because
     the SR theme overrides flex alignment (same class as the .cta-group fix). */
  align-items: center !important;
}

.claude-feature-tab-01 .claude-feature-tab-01__panel:hover .claude-feature-tab-01__reveal,
.claude-feature-tab-01 .claude-feature-tab-01__panel:focus-within .claude-feature-tab-01__reveal,
.claude-feature-tab-01 .claude-feature-tab-01__reveal:hover,
.claude-feature-tab-01 .claude-feature-tab-01__reveal:focus-within {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto;
}

/* Touch / coarse pointer: no :hover event exists, so the slide-out CTA would be
   permanently hidden. Dock it visible (the slide-out is a desktop-pointer enhancement
   only). Beats the at-rest hide above via equal specificity + later source order. */
@media (hover: none) {
  .claude-feature-tab-01 .claude-feature-tab-01__reveal {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Mobile accordion CTA — the slide-out reveal bar lives only in the desktop layout
   (display:none on mobile), so the hover CTA is rendered as a static button inside the
   accordion panel (white-on-dark shell) so phones never lose it. */
.claude-feature-tab-01__mobile-cta {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Mobile accordion (Zendesk-style glass container)
   -------------------------------------------------------------------------- */
.claude-feature-tab-01__mobile {
  display: none;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--cft-shell-rgb), 0.92), rgba(var(--primary_rgb), 0.5));
}

.claude-feature-tab-01__accordion-item {
  border-top: 1px solid rgba(var(--primary_rgb), 0.22);
}

.claude-feature-tab-01__accordion-item:first-child {
  border-top: 0;
}

.claude-feature-tab-01__accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.1rem;
  color: var(--cft-light-text);
  background: transparent;
  border: 0;
  font-family: var(--primary_font, inherit);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.claude-feature-tab-01__accordion-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.claude-feature-tab-01__accordion-icon::before,
.claude-feature-tab-01__accordion-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  border-radius: 999px;
  background: var(--cft-accent-soft);
  transform: translateY(-50%);
}

.claude-feature-tab-01__accordion-icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 160ms ease;
}

.claude-feature-tab-01__accordion-item.is-open .claude-feature-tab-01__accordion-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.claude-feature-tab-01__accordion-panel {
  padding: 0 1.1rem 1.25rem;
}

.claude-feature-tab-01__accordion-panel[hidden] {
  display: none;
}

.claude-feature-tab-01__accordion-media {
  position: relative;
  /* match the uploaded mockup images (1280x928) so they show whole on mobile too */
  aspect-ratio: 1280 / 928;
  border-radius: 0.75rem;
  overflow: hidden;
}

.claude-feature-tab-01__accordion-media .claude-feature-tab-01__image,
.claude-feature-tab-01__accordion-media .claude-feature-tab-01__video,
.claude-feature-tab-01__accordion-media .claude-feature-tab-01__lottie {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.claude-feature-tab-01__accordion-copy {
  margin-top: 0.9rem;
  color: color-mix(in srgb, var(--white, #fff) 82%, transparent);
}

.claude-feature-tab-01__accordion-copy p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Motion — scroll-in reveal + staggered sparkle (static big gradient)
   -------------------------------------------------------------------------- */
.claude-feature-tab-01[data-motion="true"] .claude-feature-tab-01__frame {
  opacity: 0;
  transform: translateY(1.5rem);
  clip-path: inset(0 13% 0 13% round var(--cft-radius));
  transition:
    opacity 600ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 950ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, transform;
}

.claude-feature-tab-01[data-motion="true"].is-in-view .claude-feature-tab-01__frame {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round var(--cft-radius));
}

.claude-feature-tab-01[data-motion="true"] .claude-feature-tab-01__experience {
  transform: scale(0.965);
  transform-origin: center top;
  transition: transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms;
}

.claude-feature-tab-01[data-motion="true"].is-in-view .claude-feature-tab-01__experience {
  transform: none;
}

/* staggered sparkle fade-in (small -> mid -> large) */
.claude-feature-tab-01[data-motion="true"] .claude-feature-tab-01__spark .cft-star {
  opacity: 0;
  transform: scale(0.2);
}

/* Trigger: off the desktop scroll parallax (mobile / reduced-motion / <992px) the sparkle fades
   in as the section enters view. On desktop parallax it instead fires at scroll progress p>=0.40
   (cft-spark-in) — just BEFORE the first stroke draws at 0.55. Both branches share the stagger. */
.claude-feature-tab-01[data-motion="true"].is-in-view:not(.cft-parallax-on) .claude-feature-tab-01__spark .cft-star,
.claude-feature-tab-01[data-motion="true"].cft-parallax-on.cft-spark-in .claude-feature-tab-01__spark .cft-star {
  animation: cft-spark 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.claude-feature-tab-01[data-motion="true"].is-in-view:not(.cft-parallax-on) .claude-feature-tab-01__spark .cft-star--sm,
.claude-feature-tab-01[data-motion="true"].cft-parallax-on.cft-spark-in .claude-feature-tab-01__spark .cft-star--sm { animation-delay: 220ms; }
.claude-feature-tab-01[data-motion="true"].is-in-view:not(.cft-parallax-on) .claude-feature-tab-01__spark .cft-star--mid,
.claude-feature-tab-01[data-motion="true"].cft-parallax-on.cft-spark-in .claude-feature-tab-01__spark .cft-star--mid { animation-delay: 370ms; }
.claude-feature-tab-01[data-motion="true"].is-in-view:not(.cft-parallax-on) .claude-feature-tab-01__spark .cft-star--lg,
.claude-feature-tab-01[data-motion="true"].cft-parallax-on.cft-spark-in .claude-feature-tab-01__spark .cft-star--lg { animation-delay: 520ms; }

@keyframes cft-spark {
  0% { opacity: 0; transform: scale(0.2); }
  55% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}

/* Flow lines: draw in from the left on reveal, then drift continuously.
   Animate `translate` (not `transform`) so it COMBINES with each path's
   positioning transform attribute instead of overriding it. */
/* Staggered draw-in (desktop parallax only). module.js adds .cft-paint-v2 then
   .cft-paint-v1 once the scroll progress crosses each line's threshold; the draw
   itself is a slow, time-based paint (not scroll-coupled) so it reads clearly no
   matter how fast the user scrolls. Lines stay hidden until painted, then settle
   into a small continuous drift. */
.claude-feature-tab-01.cft-parallax-on .cft-flow-1,
.claude-feature-tab-01.cft-parallax-on .cft-flow-2 {
  clip-path: inset(0 100% 0 0);
}

.claude-feature-tab-01.cft-parallax-on.cft-paint-v2 .cft-flow-2 {
  animation:
    cft-draw 3.4s cubic-bezier(0.4, 0, 0.25, 1) forwards,
    cft-flow-b 14s ease-in-out 3.6s infinite;
}

.claude-feature-tab-01.cft-parallax-on.cft-paint-v1 .cft-flow-1 {
  animation:
    cft-draw 3.4s cubic-bezier(0.4, 0, 0.25, 1) 0.6s forwards,
    cft-flow-a 17s ease-in-out 4.2s infinite;
}

@keyframes cft-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Drift only — used when the section is in view but parallax is NOT active
   (tablet handoff / non-scroll-driven contexts). Parallax desktop runs the
   paint rules above instead, so this is scoped to avoid an animation clash. */
.claude-feature-tab-01[data-motion="true"].is-in-view:not(.cft-parallax-on) .cft-flow-1 {
  animation: cft-flow-a 17s ease-in-out 1.7s infinite;
}

.claude-feature-tab-01[data-motion="true"].is-in-view:not(.cft-parallax-on) .cft-flow-2 {
  animation: cft-flow-b 14s ease-in-out 1.7s infinite;
}

/* subtle at-rest oscillation ("just a little bit") */
@keyframes cft-flow-a {
  0%, 100% { translate: 0 0; }
  50% { translate: -4px -3px; }
}

@keyframes cft-flow-b {
  0%, 100% { translate: 0 0; }
  50% { translate: 4px 3px; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .claude-feature-tab-01__desktop {
    grid-template-columns: minmax(11rem, 16rem) 1fr;
  }
}

@media (max-width: 991px) {
  /* tablet: no load-in animation, static full width (per meeting) */
  .claude-feature-tab-01[data-motion="true"] .claude-feature-tab-01__frame,
  .claude-feature-tab-01[data-motion="true"] .claude-feature-tab-01__experience {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .claude-feature-tab-01__desktop {
    grid-template-columns: minmax(11rem, 15rem) 1fr;
  }

  /* Hover reveal: text + nowrap CTA crush side-by-side in the narrow ~370px media column, so STACK
     them vertically — copy on top (full width), CTA beneath, left-aligned (Miles 2026-06-25, eTailPet
     768-991px band). align-items !important beats the SR-hardening align-items:center !important above. */
  .claude-feature-tab-01 .claude-feature-tab-01__reveal {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  /* flow lines static below desktop (no draw-in, no drift) */
  .claude-feature-tab-01__flow {
    opacity: 1;
    clip-path: none;
  }

  .claude-feature-tab-01__flow .cft-flow-1,
  .claude-feature-tab-01__flow .cft-flow-2 {
    animation: none;
  }
}

@media (max-width: 767px) {
  .claude-feature-tab-01__frame {
    border-radius: clamp(1rem, 5vw, 1.75rem);
    padding: clamp(2rem, 9vw, 3rem) 1.25rem 1.25rem;
  }

  .claude-feature-tab-01__desktop {
    display: none;
  }

  .claude-feature-tab-01__mobile {
    display: block;
  }

  /* Small-mobile heading overflow (Ryan 2026-07-16): the intro is a flex child with min-width:auto, so it
     refuses to shrink below its content min-size. A long compound word like "multi-instrumentalist"
     (~324px @36px) then overflows the ~290px frame content box on ≤~390px devices and the text clips
     off-screen (Ryan's Android is 360px CSS). min-width:0 lets the flex item shrink to the frame.
     2026-09-23: hyphens:auto split ordinary words too ("develo- / ped" at 390 and 440 on the Bottle homepage)
     and never held a long word the dictionary cannot split (a 34-letter word grew the heading to 623px).
     overflow-wrap:anywhere breaks a word only when it cannot fit on a line by itself, and counts that break
     when sizing the flex item, so long words stay inside the frame. Where the browser supports
     hyphenate-limit-chars, words of 12+ letters still hyphenate ("multi-instrumen-talist" on MusicShop360) and
     shorter ones never do; elsewhere hyphens:manual (editor soft hyphens only). Mobile-only: desktop/tablet unchanged. */
  .claude-feature-tab-01__intro {
    min-width: 0;
  }
  .claude-feature-tab-01__heading :is(.heading, h1, h2, h3) {
    overflow-wrap: anywhere;
    -webkit-hyphens: manual;
    hyphens: manual;
  }
  @supports (hyphenate-limit-chars: 12 6 4) {
    .claude-feature-tab-01__heading :is(.heading, h1, h2, h3) {
      -webkit-hyphens: auto;
      hyphens: auto;
      hyphenate-limit-chars: 12 6 4;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .claude-feature-tab-01 *,
  .claude-feature-tab-01 *::before,
  .claude-feature-tab-01 *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .claude-feature-tab-01[data-motion="true"] .claude-feature-tab-01__frame,
  .claude-feature-tab-01[data-motion="true"] .claude-feature-tab-01__experience {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* --------------------------------------------------------------------------
   Scroll-linked full-bleed expansion (desktop only, JS-driven via --cft-p).
   The card breaks out of its container and opens to the screen edges as the
   user scrolls the section through the viewport (parallax). The one-shot
   reveal above is overridden here; tablet/mobile + reduced-motion stay static.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .claude-feature-tab-01.cft-parallax-on {
    --cft-p: 0; /* default; JS overrides on the section, frame inherits it */
    --cft-ep: 0; /* frame expansion progress — completes before the vectors paint in */
  }

  .claude-feature-tab-01[data-motion="true"].cft-parallax-on .claude-feature-tab-01__frame {
    --cft-edge: max(24px, calc((100vw - 1180px) / 2));
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    opacity: 1;
    transform: none;
    transition: none;
    clip-path: inset(
      0 calc(var(--cft-edge) * (1 - var(--cft-ep, 0)))
      round calc(var(--cft-radius) * (1 - var(--cft-ep, 0)))
    );
    /* The element's OWN border-radius must also ramp to 0 — a square clip-path does NOT override
       border-radius; the visible corner is their intersection, so a 50px border-radius keeps the
       corners rounded at full bleed even when the clip is inset(0px). */
    border-radius: calc(var(--cft-radius) * (1 - var(--cft-ep, 0)));
    will-change: clip-path, border-radius;
  }
}
