/* Theme v5: Chrome surfaces, mega-menus, the sitemap footer, the stat carousel, the expert
   block, the sticky sub-nav and shared motion. Loaded on every page after styles.css. */

/* Chrome surfaces */
canvas[data-chrome] { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.1s ease; }
canvas[data-chrome].on { opacity: 1; }
canvas[data-chrome].no-gl { opacity: 1; background: linear-gradient(120deg, #1e2bb8, #2f6bff 45%, #22b8ff 70%, #7b5cff 88%, #ff5fa2); }
canvas[data-chrome="wash"].no-gl { background: radial-gradient(60% 80% at 0% 100%, rgba(47, 107, 255, .55), transparent 70%); }

/* nav: buttons that open mega-menus */
.links { align-items: center; }
.dd { position: static; }
.dd-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0; border: 0; background: none; font: 500 15px var(--font); color: var(--ink); cursor: pointer; }
.dd-btn:hover, .dd.open .dd-btn, .dd-btn.active { color: var(--accent); }
.caret { width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dd.open .caret { transform: translateY(1px) rotate(225deg); }
.mm { position: absolute; left: 0; right: 0; top: 100%; padding-top: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.dd.open .mm { opacity: 1; visibility: visible; transform: none; }
.mm-in { max-width: 1064px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 300px; gap: 8px 40px; padding: 30px 32px; background: #fff; border-radius: 14px;
  box-shadow: 0 50px 100px -20px rgba(20, 45, 110, .25), 0 30px 60px -30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(10, 37, 64, .05); }
.mm-col { display: grid; align-content: start; gap: 2px; }
.mm-h { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mm-col a { padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--ink); } .mm-col a:hover { color: var(--accent); }
.mm-big { display: grid !important; gap: 2px; padding: 8px 0 !important; } .mm-big span { font-size: 13.5px; font-weight: 400; color: var(--slate); }
.mm-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 200px; padding: 22px; border-radius: 10px; background: #f6f9fc; isolation: isolate; }
.mm-feature canvas { z-index: -1; } .mm-feature b { font-size: 16px; color: var(--ink); } .mm-feature span { font-size: 14px; color: var(--slate); max-width: 26ch; }
.mm-feature em { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--accent); }
.btn-ghost .chev { margin-left: 2px; }

/* sitemap footer (light, dashed columns) */
.foot { background: #f6f9fc; color: var(--slate); padding: 72px 0 40px; font-size: 14.5px; border-top: 1px solid var(--line); }
.foot .logo { color: var(--ink); }
.foot-map { display: grid; grid-template-columns: repeat(4, 1fr); }
.foot-map > div { display: grid; align-content: start; gap: 4px; padding: 0 24px 40px; border-left: 1px dashed rgba(10, 37, 64, .14); }
.foot-map b { margin-bottom: 10px; color: var(--ink); font-weight: 600; }
.foot-map a { padding: 3px 0; } .foot-map a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 28px 24px 0; border-top: 1px dashed rgba(10, 37, 64, .14); }
.foot-bottom p { max-width: 64ch; margin-top: 12px; font-size: 13.5px; }

/* sticky sub-nav with progress */
.subnav { position: sticky; top: 72px; z-index: 30; margin-top: 72px; background: rgba(246, 249, 252, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.subnav .tabbar { padding: 16px 28px; } .subnav a { position: relative; color: var(--ink); } .subnav a.on { color: var(--accent); }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.subnav a.on::after { transform: scaleX(1); }
.subnav .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, #2f6bff, #22b8ff, #7b5cff); transform-origin: 0 50%; transform: scaleX(0); }
.subnav + .page-hero { padding-top: 72px; }

/* hover depth on cards */
.card, .plan, .principle, .uc { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.card:hover, .principle:hover, .uc:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -24px rgba(20, 45, 110, .28); }
.expand { position: absolute; top: 24px; right: 24px; z-index: 3; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #f1f5fb; color: var(--accent); transition: background .2s, color .2s; }
.expand svg { width: 14px; height: 14px; } .card:hover .expand, .expand:hover { background: var(--accent); color: #fff; }

/* big-number carousel on a Chrome wave */
.carousel { position: relative; overflow: hidden; height: 640px; background: linear-gradient(180deg, #eef1fb, #f7f8fd); }
.carousel canvas { top: 34%; height: 66%; }
.slides { position: relative; z-index: 1; height: 100%; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 104px; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .7s, transform .7s; }
.slide.on { opacity: 1; transform: none; }
.slide b { font-size: clamp(88px, 13vw, 176px); line-height: 1; font-weight: 600; letter-spacing: -0.05em; background: linear-gradient(90deg, #1e2bb8, #2f6bff 45%, #22b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide p { margin-top: 18px; max-width: 30ch; font-size: 21px; color: var(--ink); } .slide p strong { font-weight: 600; }
.dots-nav { position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 8px; }
.dots-nav button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .45); cursor: pointer; }
.dots-nav button[aria-current="true"] { background: #fff; }

/* talk-to-an-expert block */
.expert-sec { background: #f6f9fc; padding: 96px 0; }
.expert { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.expert h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.expert p { margin: 12px 0 22px; font-size: 18px; max-width: 42ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; font-size: 15.5px; color: var(--ink); }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #e8f0ff; color: var(--accent); font-size: 11px; font-weight: 700; }

/* use cases */
.uc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.uc { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; isolation: isolate; }
.uc canvas { z-index: -1; opacity: .9; } .uc canvas.on { opacity: .30; }
.uc h3 { font-size: 22px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; } .uc .pain { margin-top: 10px; font-size: 16px; max-width: 46ch; }
.uc ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink); }
.uc li { display: flex; gap: 10px; } .uc li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.uc .tag { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* contact form */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.cform label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.cform .full { grid-column: 1 / -1; }
.cform input, .cform select, .cform textarea { width: 100%; padding: 12px 14px; border: 1px solid #d7dfea; border-radius: 8px; background: #fff; font: 15px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cform textarea { min-height: 120px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.next-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: n; }
.next-steps li { position: relative; padding-left: 44px; counter-increment: n; font-size: 16px; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8f0ff; color: var(--accent); font-weight: 700; font-size: 13px; }
.next-steps b { display: block; color: var(--ink); }

@media (max-width: 960px) {
  .mm { display: none; }
  .foot-map { grid-template-columns: 1fr 1fr; } .foot-map > div { padding: 0 16px 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; padding: 24px 16px 0; }
  .expert, .uc-grid, .cform { grid-template-columns: 1fr; } .ticks { grid-template-columns: 1fr; }
  .carousel { height: 520px; } .slide { padding-top: 72px; } .slide p { font-size: 18px; padding: 0 20px; }
  .subnav .tabbar { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) { .card, .plan, .principle, .uc, .slide, .mm { transition: none; } }

/* v6: floating glass nav (all pages) */
.nav { inset: 12px 16px auto 16px; transition: inset .25s, background-color .25s, box-shadow .25s; }
.nav-in { max-width: 1180px; height: 60px; padding: 0 10px 0 22px; border-radius: 16px; background: rgba(255, 255, 255, .62); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  box-shadow: 0 0 0 1px rgba(10, 37, 64, .06), 0 8px 30px -12px rgba(20, 45, 110, .18); }
.nav.stuck { background: none; box-shadow: none; backdrop-filter: none; }
.nav.stuck .nav-in { background: rgba(255, 255, 255, .86); box-shadow: 0 0 0 1px rgba(10, 37, 64, .08), 0 12px 34px -14px rgba(20, 45, 110, .25); }
.nav.menu-open { background: none; } .nav .menu { margin: 8px auto 0; max-width: 1180px; border-radius: 16px; box-shadow: var(--shadow); }
.signin { font-size: 15px; font-weight: 500; color: var(--ink); padding: 0 12px; } .signin:hover { color: var(--accent); }
.mm { padding-top: 14px; } .mm-in { max-width: 1180px; }
.subnav { top: 84px; margin-top: 84px; }

/* v6: the river hero */
.river-hero { padding: 168px 0 0; background: radial-gradient(70% 50% at 50% 0%, #eef4ff, #fff 70%); }
.river { top: 34% !important; height: 70% !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hero-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 37, 64, .08), 0 6px 16px -8px rgba(20, 45, 110, .2); font-size: 14px; color: var(--slate); transition: box-shadow .2s; }
.badge b { color: var(--ink); font-weight: 600; } .badge:hover { box-shadow: 0 0 0 1px rgba(47, 107, 255, .35), 0 6px 16px -8px rgba(20, 45, 110, .25); }
.dotp { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #2f6bff, #22b8ff); box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.river-hero .display { margin-top: 26px; max-width: 15ch; font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -0.05em; }
.river-hero .sub { margin: 24px auto 0; max-width: 54ch; font-size: 20px; }
.river-hero .hero-cta { justify-content: center; margin-top: 34px; }
.triage.wide { position: relative; z-index: 1; max-width: 960px; margin: 76px auto 0; padding-bottom: 120px; }
.triage.wide .t-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0 28px; padding: 22px 24px; background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .6), 0 50px 100px -30px rgba(20, 45, 110, .45); }
.triage.wide .t-head { grid-column: 1 / -1; padding: 0 0 16px; border-bottom: 1px solid rgba(10, 37, 64, .06); margin-bottom: 16px; }
.t-cap { margin-bottom: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.triage.wide .sorted { margin: 0; padding: 0; } .triage.wide .sorted small { max-width: 300px; }
.triage.wide .t-foot { margin-top: 16px; padding: 14px 0 0; border-top: 1px dashed rgba(10, 37, 64, .1); }
.triage.wide .toast { right: 28px; bottom: 96px; }
.triage.wide .t-left, .triage.wide .t-right { min-width: 0; } .reading { overflow-wrap: anywhere; }
.sorted li > div { min-width: 0; } .triage.wide .sorted small { max-width: none; }

@media (max-width: 960px) {
  .nav { inset: 8px 8px auto 8px; } .nav-in { padding: 0 6px 0 16px; height: 56px; }
  .nav-cta .btn-primary { display: none; } .signin { display: none; }
  .subnav { top: 72px; margin-top: 72px; }
  .river-hero { padding-top: 128px; } .river { top: 46% !important; height: 46% !important; }
  .triage.wide { margin-top: 48px; padding-bottom: 72px; } .triage.wide .t-card { grid-template-columns: 1fr; }
  .river-hero .sub { font-size: 17px; }
  .badge { white-space: nowrap; font-size: 13px; } .m-hide, .triage.wide .t-sub { display: none; }
  .triage.wide .t-card { padding: 18px; } .triage.wide .t-right { margin-top: 18px; }
}
.pill { border-radius: 999px; }



/* v10: text left, card right, river rising beneath */
.rise-hero { padding: 84px 0 0; background: radial-gradient(60% 60% at 80% 40%, #eef4ff, #fff 70%); }
.rise { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%); mask-image: linear-gradient(90deg, transparent, #000 10%); }
.rise-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 104px; padding-bottom: 168px; }
.kicker { font-size: 15px; color: var(--slate); } .kicker b { color: var(--accent); font-weight: 600; }
.rise-copy .display { margin-top: 18px; max-width: 11ch; font-size: clamp(42px, 5.2vw, 74px); line-height: 1.0; letter-spacing: -0.05em; }
.rise-copy .tone { color: var(--accent); }
.rise-copy .sub { margin-top: 24px; max-width: 44ch; }
.triage.tilt { perspective: 1600px; }
.triage.tilt .t-card { transform: rotateY(-9deg) rotateX(3deg); transform-origin: 0 50%; background: rgba(255, 255, 255, .80);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .6), -30px 60px 100px -30px rgba(20, 45, 110, .45); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.triage.tilt:hover .t-card { transform: rotateY(-4deg) rotateX(1deg); }
.triage.tilt .toast { left: -40px; right: auto; bottom: -58px; }
@media (max-width: 960px) {
  .rise-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 96px; }
  .triage.tilt .t-card { transform: none; } .rise { top: 45% !important; height: 55% !important; -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) { .triage.tilt .t-card { transition: none; } }

/* v11: full-width river, adaptive copy */
.flow-hero { padding: 84px 0 0; background: #fff; }
.flow { z-index: 0; }
.chrome-adapt { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.flow-hero .rise-grid { padding-bottom: 150px; }
.flow-hero .rise-copy .display { max-width: 12ch; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; color: var(--ink); }
.flow-hero .kicker { font-size: 15px; font-weight: 500; color: var(--ink); } .flow-hero .kicker b { color: inherit; }
.flow-hero .sub { font-size: 20px; line-height: 1.55; max-width: 40ch; color: var(--slate); }
.flow-hero .triage.tilt .t-card { background: rgba(255, 255, 255, .84); }

/* v12: type, buttons, composition */
.flow-hero { padding-top: 72px; }
.flow-hero .rise-grid { padding-top: 64px; padding-bottom: 72px; }
.flow-hero .rise-copy { position: relative; }
.flow-hero .rise-copy .display { margin-top: 16px; max-width: 13ch; font-size: clamp(46px, 6vw, 86px); line-height: 1.03; letter-spacing: -0.048em; font-weight: 500; color: #0a2540; }
.flow-hero .kicker { font-size: 15px; font-weight: 500; color: #425466; } .flow-hero .kicker b { color: #0a2540; font-weight: 600; }
.flow-hero .sub { margin-top: 26px; font-size: 20px; line-height: 1.55; max-width: 42ch; color: #425466; }
.flow-hero .lead-ink { color: #0a2540; font-weight: 500; }
.flow-hero .hero-cta { margin-top: 34px; gap: 12px; }
.btn-glow { position: relative; color: #fff; background: linear-gradient(180deg, #4a82ff, #2f6bff 55%, #2558e6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(10, 37, 64, .2), 0 8px 24px -8px rgba(47, 107, 255, .7); transition: transform .15s, box-shadow .25s, filter .2s; }
.btn-glow:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(10, 37, 64, .2), 0 14px 34px -8px rgba(47, 107, 255, .85); transform: translateY(-1px); }
.btn-glow:active { transform: translateY(1px); filter: brightness(.96); }
.btn-frost { color: #0a2540; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(10, 37, 64, .10), 0 6px 18px -10px rgba(10, 37, 64, .35); transition: background .2s, transform .15s; }
.btn-frost:hover { background: rgba(255, 255, 255, .92); transform: translateY(-1px); } .btn-frost:active { transform: translateY(1px); }
@media (max-width: 960px) { .flow-hero .rise-grid { padding-top: 40px; } .flow-hero .sub { font-size: 18px; } }

/* v14: the canvas paints the hero copy; the HTML text stays selectable and accessible underneath */
.adapt-on .ad, .adapt-on .ad * { color: transparent !important; }
.adapt-on .ad::selection, .adapt-on .ad *::selection { color: #0a2540; }

/* v15: Stripe's dual-layer hero type. One stacking context: ink copy, then the Chrome, then the hard-light copy, then the controls */
.flow-hero { isolation: isolate; }
.flow-hero canvas.flow { z-index: 1; }
.flow-hero .rise-grid { z-index: auto; }
.copy-stack { position: relative; }
.copy-bg { position: relative; z-index: 0; }
.copy-fg { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: hard-light; }
.copy-fg, .copy-fg * { color: rgba(18, 14, 110, .66) !important; }
.flow-hero .hero-cta, .flow-hero .triage { position: relative; z-index: 3; }

/* v15: bento cards as scenes (Stripe-style) */
.card h3 { font-size: 26px; line-height: 1.18; letter-spacing: -0.025em; padding-right: 56px; }
.scene { min-height: 420px; background: #fff; }
.scene .card-band { top: 0 !important; height: 100% !important; }
.scene .mock { left: 10% !important; right: 10% !important; bottom: 30px !important; box-shadow: 0 30px 60px -18px rgba(20, 40, 120, .35), 0 0 0 1px rgba(10, 37, 64, .04); }
.scene .more { margin-top: 10px; }
@media (max-width: 960px) { .scene .mock { left: auto !important; right: auto !important; } .scene .card-band { top: 40% !important; height: 60% !important; } }

/* v16: a light reactive layer above the hard-light copy, only over the river's dark shades */
.flow-hero .chrome-adapt { z-index: 3; }
.flow-hero .hero-cta, .flow-hero .triage { z-index: 4; }

.ad-bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.ad-w { white-space: nowrap; }   /* keeps each word's baseline probe on the word's own line; a stranded probe painted the tint one line too high */

/* v19: the river through the product grid */
.bento-sec { position: relative; overflow: hidden; isolation: isolate; }
.bento-river { z-index: -1; top: 6% !important; height: 94% !important; }
.bento-sec .card { background: rgba(255, 255, 255, .70); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-color: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 50px -30px rgba(20, 45, 110, .35); }
.bento-sec .mock, .bento-sec .browser, .bento-sec .float-card { background: #fff; }
.bento-sec .lede { position: relative; }

/* v19: tilt plus sheen */
.tilt-on { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; will-change: transform; }
.tilt-on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), rgba(124, 196, 255, .10) 40%, transparent 65%); mix-blend-mode: soft-light; }
.tilt-on:hover::after { opacity: 1; }
.panel.tilt-on, .plan.tilt-on, .principle.tilt-on, .step.tilt-on { position: relative; }

/* v19: staggered rows */
.st .row, .st .m-rows li, .st .b-list li, .st .tpath li, .st .a-row, .st .feature { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.st .st-in { opacity: 1 !important; transform: none !important; }
.st .bars i.st-in { transform: scaleY(1) !important; }

/* v19: expand dialog */
.xp { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--slate);
  box-shadow: 0 60px 120px -30px rgba(10, 30, 90, .45); overflow: auto; }
.xp::backdrop { background: rgba(6, 21, 54, .45); backdrop-filter: blur(6px); }
.xp[open] { animation: xpIn .35s cubic-bezier(.2, .8, .2, 1); } @keyframes xpIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.xp-in { position: relative; padding: 44px 48px 48px; }
.xp-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1f5fb; color: var(--ink); font-size: 22px; cursor: pointer; }
.xp-close:hover { background: #e3ebf8; }
.xp h2 { font-size: clamp(28px, 3vw, 38px); color: var(--ink); font-weight: 500; letter-spacing: -0.03em; padding-right: 48px; }
.xp-lede { margin-top: 14px; font-size: 18px; max-width: 60ch; }
.xp-mock { position: relative !important; inset: auto !important; width: auto !important; margin: 28px 0 !important; transform: none !important; }
.xp-facts { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.xp-facts li { padding: 16px; border-radius: 12px; background: #f6f9fc; color: var(--ink); font-size: 15px; font-weight: 500; }
html.xp-open { overflow: hidden; }
@media (max-width: 700px) { .xp-in { padding: 36px 22px 28px; } .xp-facts { grid-template-columns: 1fr; } }
.xp-mock { padding: 22px !important; }

/* v20: contained Chrome sweeps and device mockups */
.v20 .card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }
.v20 .sweep { z-index: -1; top: 0 !important; height: 100% !important; }
.v20 .c-wide { min-height: 640px; } .v20 .c-narrow { min-height: 640px; } .v20 .c-full { min-height: 560px; }
.scene-1 { position: absolute; left: 32px; right: 0; bottom: 0; height: 430px; }
.phone { position: absolute; left: 0; bottom: 28px; width: 212px; height: 404px; padding: 10px; border-radius: 34px; background: #0e1424;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 70px -24px rgba(10, 25, 80, .55); z-index: 2; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 3px; background: #1d2538; }
.ph-screen { height: 100%; padding: 34px 16px 16px; border-radius: 26px; background: #fff; font-size: 12px; display: flex; flex-direction: column; }
.ph-app { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.ph-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #2f6bff, #22b8ff); }
.ph-title { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.ph-ticket { margin-top: 4px; color: var(--slate); }
.ph-fix { margin-top: 14px; padding: 10px; border-radius: 10px; background: #f3f7ff; } .ph-fix b { display: block; color: var(--ink); font-size: 13px; } .ph-fix span { color: var(--muted); }
.ph-checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; color: var(--ink); }
.ph-checks li::before { content: "✓"; margin-right: 6px; color: #16a34a; font-weight: 700; }
.ph-btns { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-btns span { padding: 9px 0; border-radius: 9px; text-align: center; font-weight: 600; }
.ph-no { background: #f1f4f9; color: var(--slate); } .ph-yes { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(47, 107, 255, .7); }
.win { position: absolute; left: 180px; right: -40px; top: 0; bottom: 0; border-radius: 12px 0 0 0; background: #fff; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(10, 25, 80, .45), 0 0 0 1px rgba(10, 37, 64, .05); }
.win-body { padding: 24px 64px 24px 56px; font-size: 13.5px; }
.win .m-rows li { grid-template-columns: 1fr 140px 40px; }
.scene-2 { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 12px; }
.mini-sw, .chart-card { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 24px 50px -22px rgba(10, 25, 80, .4), 0 0 0 1px rgba(10, 37, 64, .04); }
.mini-sw .a-row { margin: 6px 0; font-size: 13.5px; }
.cc-k { font-size: 12.5px; color: var(--muted); font-weight: 500; } .cc-v { margin-top: 4px; font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.cc-v small { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 5px; height: 130px; margin-top: 12px; }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #8fb4ff, #2f6bff); transform-origin: bottom; }
.bars i.ok { background: linear-gradient(180deg, #5be3c9, #12a97a); }
.bar-line { position: absolute; left: 0; right: 0; bottom: 95%; border-top: 1.5px dashed #12a97a; }
.bar-line em { position: absolute; right: 0; bottom: 4px; font-style: normal; font-size: 11px; font-weight: 600; color: #0f7a5a; background: #fff; padding: 0 4px; }
.st .bars i { transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.laptop { position: absolute; right: 48px; top: 104px; width: 62%; }
.lid { padding: 10px 10px 14px; border-radius: 16px 16px 4px 4px; background: #0e1424; box-shadow: 0 40px 80px -30px rgba(10, 25, 80, .55); }
.lid .browser { position: static !important; width: 100% !important; border-radius: 6px; box-shadow: none; }
.base { height: 14px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #d9dee8, #aeb6c6); box-shadow: 0 20px 30px -18px rgba(10, 25, 80, .5); }
.base::before { content: ""; display: block; width: 18%; height: 5px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #9aa3b5; }
@media (max-width: 960px) {
  .v20 .c-wide, .v20 .c-narrow, .v20 .c-full { min-height: 0; }
  .scene-1, .scene-2 { position: relative; left: auto; right: auto; bottom: auto; height: auto; margin-top: 24px; display: grid; gap: 16px; }
  .phone { position: relative; bottom: auto; margin: 0 auto; } .win { position: relative; left: auto; right: auto; border-radius: 12px; }
  .win-body { padding: 18px; } .win .m-rows li { grid-template-columns: 1fr 70px 36px; }
  .laptop { position: relative; right: auto; top: auto; width: 100%; margin-top: 24px; }
}

/* v21: no empty space */
.seam { position: relative; height: 130px; margin: -70px 0 0; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.seam canvas { opacity: .9; }
.bento-sec.v20 { padding-top: 24px; }
.journey { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 150px; }
.j-sweep { z-index: -1; top: 34% !important; height: 66% !important; }
.path { position: relative; }
.path::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px; background: linear-gradient(90deg, #2f6bff, #22b8ff, #7b5cff); z-index: 0; }
.path .step { position: relative; z-index: 1; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(20, 45, 110, .4); }
.path .step .n { background: linear-gradient(135deg, #2f6bff, #22b8ff); color: #fff; box-shadow: 0 0 0 6px #fff; }
.sv { margin: 6px 0 18px; padding: 12px; border-radius: 10px; background: #f6f9fc; display: grid; gap: 8px; font-size: 12.5px; }
.sv-k { font-weight: 600; color: var(--muted); } .sv-n { color: var(--ink); font-weight: 500; }
.sv-bar, .sv-meter { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: #e6ebf3; } .sv-bar i, .sv-meter i { display: block; }
.sv-meter i { background: linear-gradient(90deg, #12a97a, #5be3c9); border-radius: 4px; }
.sv-chip { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.sv-chip.ok { background: #e3f6e9; color: #0f6b34; box-shadow: none; }
.sv-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; animation: pulse 2s infinite; }
@media (max-width: 960px) { .path::before { display: none; } .seam { height: 100px; margin: -20px 0 -60px; } }

.journey .fine { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 8px rgba(10, 30, 90, .4); }

/* v22: our river motif, restrained */
.v20 .strand { z-index: -1; top: auto !important; bottom: 0; height: 58% !important; opacity: .55; }
.journey { padding-bottom: 132px; }
.path::before { display: none; }
.j-river { position: absolute !important; left: -8% !important; width: 116% !important; top: auto !important; bottom: -150px; height: 300px !important; z-index: 0; opacity: .7; }
.path .step { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.journey .fine { color: var(--muted); text-shadow: none; }
.ph-chrome { height: 190px !important; opacity: .55; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; padding: 0 16px; }
.faq-i { border-top: 1px solid var(--line); position: relative; }
.faq-i:last-child, .faq-i:nth-last-child(2) { border-bottom: 1px solid var(--line); }
.faq-i summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; cursor: pointer; font-size: 17.5px; font-weight: 500; color: var(--ink); }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary:hover { color: var(--accent); }
.pm { position: relative; flex: none; width: 14px; height: 14px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: var(--accent); transition: transform .25s; }
.pm::after { transform: rotate(90deg); } .faq-i[open] .pm::after { transform: rotate(0); }
.faq-i[open]::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: linear-gradient(90deg, #2f6bff, #22b8ff); }
.faq-i p { padding: 0 32px 24px 0; font-size: 16px; animation: faqIn .3s ease; } @keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; padding: 0; } .faq-i:nth-last-child(2) { border-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .faq-i p { animation: none; } }
.j-river, .v20 .strand, .ph-chrome { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
