/* TVkip product showcase. Native app captures, restrained type, progressive disclosure. */
@font-face {
  font-family: Bungee;
  src: url("assets/fonts/bungee-latin.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.page-home { --maxw: 1280px; }
.product-hero { padding: 48px 0 64px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "copy media" "actions media"; column-gap: 56px; row-gap: 24px; align-items: center; }
.hero-copy { grid-area: copy; align-self: end; container-type: inline-size; }
.hero-actions { grid-area: actions; align-self: start; }
.hero-hook {
  margin: 0 0 18px; color: #f4ecd9;
  font: 400 clamp(19px, 2.1vw, 29px)/1.2 Bungee, Impact, var(--font);
  text-transform: uppercase;
}
.hero-hook strong { color: var(--accent-text); font-weight: inherit; }
.product-hero h1 { font-size: clamp(30px, 9.6cqi, 68px); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 18px; }
:lang(ja) .product-hero h1, :lang(ko) .product-hero h1 { letter-spacing: -.015em; line-height: 1.18; }
.product-hero .lede { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; color: var(--label-2); max-width: 42ch; margin: 0; }
.product-hero .cta-row { justify-content: flex-start; gap: 22px; margin: 0; }
.store-preview { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; padding: 12px 0; }
.store-preview-badge { display: inline-flex; align-items: center; flex: none; border-radius: 6px; cursor: default; }
.store-preview-badge img { display: block; height: 48px; width: auto; }
/* Google's original PNG includes clear space; preserve it and align the visible badges. */
.store-preview-google { margin: -12px -12px -12px -4px; }
.store-preview-google img { height: 72px; }
@media (max-width: 380px) {
  .store-preview-badge img { height: 40px; }
  .store-preview-google { margin: -10px -10px -10px -3px; }
  .store-preview-google img { height: 60px; }
}
.store-preview-badge:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 6px; }
.hero-actions:has(.store-preview) .cta-row > .text-link { flex-basis: 100%; padding: 0; }
.hero-actions:has(.store-preview) .cta-row { row-gap: 4px; }
.hero-promise { margin: 12px 0 0; font-size: 15px; color: var(--label-2); }
.text-link { font-weight: 600; text-decoration: none; padding: 12px 0; }
.hero-visual { grid-area: media; display: grid; justify-items: center; min-width: 0; }
.hero-film { position: relative; isolation: isolate; width: min(360px, 100%, calc((100svh - 160px) * .5625)); margin: 0; }
.hero-film::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -40%;
  background: radial-gradient(ellipse at center, rgb(16 112 90 / .33), transparent 68%);
  pointer-events: none;
}
.hero-film-frame { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 24px; background: #082d26; box-shadow: var(--device-shadow); }
.hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-film-play { position: absolute; inset: auto auto max(60px, 12%) 50%; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; max-width: calc(100% - 32px); padding: 14px 22px; border: 1px solid rgb(255 255 255 / .35); border-radius: 28px; background: #f5f1e7; color: #082d26; font: 600 15px/1.3 var(--font); cursor: pointer; box-shadow: 0 4px 20px rgb(0 0 0 / .16); }
.hero-film-play { width: max-content; }
.hero-film-play svg { flex: none; }
.hero-film-play:hover { background: #fff; }
.hero-film-play[hidden] { display: none; }
/* Let the paper label overlap the film edge without covering any controls. */
.hero-social-badge {
  position: absolute; z-index: 1; inset: 18% auto auto -10px;
  display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 12px);
  padding: 9px 14px 9px 10px; border-radius: 5px; pointer-events: none;
  color: #182c26; background: linear-gradient(160deg, #fff9e9, #ede4cd);
  box-shadow: 0 3px 0 #b5a58b, 0 10px 22px rgb(0 0 0 / .42);
  transform: rotate(-4deg);
}
.hero-film[data-started] .hero-social-badge { visibility: hidden; }
.social-badge-mark {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px;
  color: #182c26; background: #f98d70; border-radius: 50%;
}
.social-badge-mark svg { width: 17px; height: 17px; }
.social-badge-context { display: block; margin-bottom: 2px; font-size: 9px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.hero-social-badge strong { display: block; font-size: 14px; font-weight: 750; line-height: 1.2; }
.product-shot { --shot-width: 370px; display: block; width: min(var(--shot-width), 100%); border: 2px solid #5a5e5c; padding: 8px; background: #111714; border-radius: 56px; box-shadow: 0 30px 70px -22px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .1); position: relative; text-decoration: none; transition: transform .25s ease; }
.product-shot::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 31%; height: 30px; border-radius: 24px; background: #000; pointer-events: none; }
.product-shot:hover { transform: translateY(-4px); }
.product-shot img { display: block; width: 100%; height: auto; border-radius: 46px; }
.image-caption { color: var(--label-2); font-size: 12px; margin: 23px 0 0; text-align: center; max-width: 36em; }
.brand-strip { padding: 42px 0 34px; background: var(--canvas); color: var(--label); border-block: 1px solid var(--hairline); }
.eyebrow { text-align: center; font-size: 13px; font-weight: 600; margin: 0 0 28px; color: var(--label-2); }
.brand-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 28px; align-items: center; list-style: none; max-width: 860px; margin: 0 auto; padding: 0; }
.brand-logos li { min-width: 0; }
.brand-logos a { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--label); text-decoration: none; }
.brand-logos img { filter: brightness(0) invert(1); opacity: .85; display: block; width: 100%; height: 26px; object-fit: contain; }
.brand-logos .logo-samsung { height: 34px; width: 120px; object-fit: cover; }
.brand-logos .logo-sony { height: 30px; width: 112px; object-fit: cover; }
.brand-logos .logo-lg { height: 44px; width: 90px; object-fit: cover; }
.brand-logos .logo-pair { flex-direction: row; gap: 8px; }
.brand-logos .logo-pair b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; color: var(--label); opacity: .9; }
.brand-logos .logo-googletv, .brand-logos .logo-streaming-box { height: 26px; width: 26px; flex: none; }
.brand-logos .logo-android { height: 26px; width: 30px; flex: none; }
.brand-logos .logo-roku { height: 34px; max-width: 86px; object-fit: cover; }
.brand-logos .logo-amazonfiretv { height: 46px; max-width: 82px; }
.brand-logos .logo-vizio, .brand-logos .logo-hisense { max-width: 112px; }
.brand-logos span { font-size: 10px; letter-spacing: .035em; color: var(--label-2); }
.brand-strip a:focus-visible { outline-color: var(--accent-text); }
.trust-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 32px; padding-top: 30px; padding-bottom: 30px; }
.product-seal { display: flex; align-items: center; gap: 14px; }
.product-seal-mark { position: relative; flex: none; width: 104px; color: #d9bd87; }
.product-seal-mark svg { display: block; }
.product-seal-mark img { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); border-radius: 9px; }
.product-seal-title { margin: 0; color: #f4ecd9; font: 700 clamp(19px, 2.1vw, 27px)/1.22 var(--font-display); }
.product-seal-caption { margin: 4px 0 0; color: var(--label-2); font-size: 14px; }
.trust-promises { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.trust-promises li { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; }
.trust-promises span { color: var(--accent-text); }
.product-features { padding: 112px 0; }
.section-heading { margin-bottom: 58px; max-width: 720px; }
.feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 100px; align-items: start; }
main .feature-detail { border-bottom: 1px solid var(--hairline); }
main .feature-detail > summary { font-size: 19px; padding: 20px 0; min-height: 66px; font-weight: 600; }
.feature-detail p { margin: 0 0 24px; color: var(--label-2); font-size: 16px; max-width: 34em; line-height: 1.65; }
.product-gallery { display: grid; justify-items: center; min-width: 0; scroll-margin-top: 120px; }
.gallery-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 5px; margin-bottom: 30px; border-radius: 30px; background: var(--fill); max-width: 100%; }
.gallery-tabs button { appearance: none; border: 0; font: 500 14px/1.3 var(--font); color: var(--label-2); padding: 12px 17px; border-radius: 24px; background: transparent; cursor: pointer; min-height: 44px; }
.gallery-tabs button[aria-selected=true] { color: var(--label); background: var(--surface); box-shadow: 0 2px 8px rgb(0 0 0 / .07); }
.screen-panels { min-width: 0; width: 100%; display: grid; justify-items: center; }
.screen-panel { width: 100%; display: flex; justify-content: center; }
.screen-panel[hidden] { display: none; }
.product-gallery:not([data-enhanced]) .gallery-tabs { display: none; }
.product-gallery:not([data-enhanced]) .screen-panels { display: flex; overflow-x: auto; gap: 32px; scroll-snap-type: x mandatory; }
.product-gallery:not([data-enhanced]) .screen-panel { flex: 0 0 100%; scroll-snap-align: start; }
.compat-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title stills" "lede stills";
  gap: 14px 24px;
  max-width: none;
  margin-bottom: 32px;
}
.compat-intro h2 { grid-area: title; align-self: end; margin: 0; }
.compat-intro .section-lede { grid-area: lede; margin: 0; }
.compat-stills {
  grid-area: stills;
  align-self: center;
  position: relative;
  width: clamp(244px, 27vw, 336px);
  aspect-ratio: 1.8;
  pointer-events: none;
}
.compat-stills img {
  position: absolute;
  display: block;
  object-fit: cover;
  border: 1px solid #635947;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgb(0 0 0 / .5);
}
.compat-still-portrait {
  inset: 3% auto auto 6%;
  width: 48%;
  height: 91%;
  object-position: center 42%;
  transform: rotate(-8deg);
}
.compat-still-remote {
  inset: auto 5% 3% auto;
  width: 49%;
  height: 72%;
  object-position: center 61%;
  transform: rotate(8deg);
}
@media (max-width: 540px) {
  .compat-intro {
    grid-template-areas: "title stills" "lede lede";
    gap: 12px;
  }
  .compat-intro h2 { align-self: center; }
  .compat-stills { width: clamp(134px, 45vw, 198px); }
}
.section-disclosure { border-top: 1px solid var(--hairline); }
main .section-disclosure > summary { padding: 24px 0; min-height: 80px; font-size: 20px; }
.disclosure-content { padding: 10px 0 30px; }
.device-requirements { max-width: 75ch; margin: 0 0 24px; }
.device-requirements p { margin: 0 0 8px; }
.compare-section { background: color-mix(in srgb, var(--fill) 48%, transparent); }
.comparison-cards { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .comparison-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.comparison-card { padding: 20px; border: 1px solid var(--glass-edge); border-radius: 16px; background: var(--surface); }
.comparison-card-tvkip { border-color: rgb(84 221 190 / .45); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.comparison-card h3 { margin: 0 0 12px; font-size: 20px; text-wrap: wrap; }
.comparison-card-tvkip h3 { color: var(--accent-text); }
.comparison-card h3 small { margin-inline-start: 4px; color: var(--label-2); font-weight: 500; font-size: 13px; }
.comparison-card ul { margin: 0; padding-inline-start: 18px; color: var(--label-2); font-size: 15px; }
.comparison-card li + li { margin-top: 6px; }
.comparison-note { font-size: 12px; }
.page-home .plan { padding: 30px; }
.page-home .pricing { align-items: stretch; }
main .plan-includes { width: 100%; border-top: 1px solid var(--hairline); border-bottom: 0; margin-top: 16px; }
main .plan-includes > summary { font-size: 14px; padding: 14px 0 0; min-height: 44px; }
.more-questions > details { margin-left: 22px; }
.section-heading.faq-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin-bottom: 20px;
}
.faq-heading h2 { margin: 0; }
.faq-film-still {
  display: block;
  flex: none;
  width: clamp(142px, 28vw, 312px);
  height: auto;
  aspect-ratio: 7 / 5;
  margin-block: -12px;
  object-fit: cover;
  object-position: center 46%;
  mask-image: radial-gradient(ellipse 68% 75% at 55% 50%, #000 49%, transparent 88%);
}
.page-home #faq .wrap > details p { max-width: 68ch; }
.page-home .footer-notes {
  max-width: none;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.page-home .footer-notes p { max-width: 112ch; }
.page-home .footer-links a { text-decoration: none; }
.page-home .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 900px) {
  .faq-film-still { margin-block: -20px; }
  .page-home .site-footer > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    column-gap: 32px;
  }
  .page-home .footer-langs ul { justify-content: flex-end; }
  .page-home .footer-notes { grid-column: 1 / -1; }
}
.proof-section { padding: 54px 0; }
.proof-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.proof-grid blockquote { margin: 0; padding: 24px 0; border-top: 1px solid var(--hairline); font-size: 22px; }
.proof-grid cite { display: block; margin-top: 18px; font: 13px var(--font); color: var(--label-2); }
.viewer-open { overflow: hidden; }
.image-viewer { width: min(1050px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 1px solid var(--hairline); border-radius: 24px; color: var(--label); background: var(--canvas); overflow-y: auto; }
.image-viewer::backdrop { background: rgb(0 0 0 / .8); }
.viewer-inner { padding: 20px 32px 32px; }
.viewer-close { position: sticky; top: 0; display: block; margin: 0 0 0 auto; appearance: none; border: 1px solid var(--hairline); border-radius: 24px; padding: 12px 18px; background: var(--surface); color: var(--label); font: 600 14px var(--font); cursor: pointer; z-index: 1; }
.viewer-close span { font-size: 20px; padding-left: 10px; }
.viewer-caption { color: var(--label-2); font-size: 14px; margin: 16px 0 24px; }
.viewer-image { display: block; width: 100%; border-radius: 28px; }
@media (max-width: 1000px) {
  .hero-grid { column-gap: 36px; }
  .feature-layout { gap: 50px; }
  .brand-logos { gap: 14px 20px; }
  .feature-list { padding-top: 50px; }
}
@media (max-width: 759px) {
  .product-hero { padding-top: 28px; padding-bottom: 40px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "actions"; gap: 28px; }
  .product-hero h1 { font-size: clamp(30px, 9.6cqi, 52px); }
  .product-hero .lede { font-size: 18px; line-height: 1.5; }
  .product-hero .cta-row { gap: 12px; align-items: center; }
  .product-hero .button { font-size: 15px; padding-inline: 20px; }
  .product-hero .text-link { font-size: 14px; }
  .hero-film { width: min(320px, 100%); }
  .hero-promise { font-size: 14px; }
  .product-shot { padding: 7px; border-radius: 48px; }
  .product-shot img { border-radius: 39px; }
  .product-shot::after { top: 17px; height: 27px; }
  .brand-strip { padding-top: 32px; }
  /* Ten tiles: three per row, the last one centred under the middle column. */
  .brand-logos { gap: 20px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .brand-logos li { grid-column: span 2; }
  .brand-logos li:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
  .brand-logos img { height: 20px; }
  .brand-logos .logo-samsung { width: 100px; height: 28px; }
  .brand-logos .logo-sony { width: 100px; height: 28px; }
  .brand-logos .logo-roku { height: 32px; }
  .brand-logos .logo-lg { height: 40px; }
  .brand-logos .logo-amazonfiretv { height: 36px; }
  .brand-logos .logo-pair { gap: 5px; }
  .brand-logos .logo-pair b { font-size: 13px; }
  .brand-logos .logo-googletv, .brand-logos .logo-android, .brand-logos .logo-streaming-box { height: 18px; width: 20px; }
  .trust-strip { justify-content: flex-start; padding-top: 24px; }
  .trust-promises { gap: 8px 14px; }
  .trust-promises li { font-size: 13px; }
  .product-features { padding: 64px 0; }
  .section-heading { margin-bottom: 32px; }
  .feature-layout { grid-template-columns: 1fr; gap: 46px; }
  .product-gallery { grid-row: 1; }
  .gallery-tabs button { font-size: 13px; padding: 11px 13px; }
  .screen-panel .product-shot { --shot-width: 350px; }
  .image-caption { margin-top: 18px; }
  .page-home .compat caption { display: block; width: 100%; padding-bottom: 22px; }
  .viewer-inner { padding: 12px; }
  .viewer-image { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .product-shot { transition: none; } .product-shot:hover { transform: none; } }

/* The hero opens in time with the three beats of the film hook. */
@media (prefers-reduced-motion: no-preference) {
  .hero-hook > * {
    display: inline-block;
    animation: hook-beat 440ms cubic-bezier(.2, 1.45, .42, 1) backwards;
  }
  .hero-hook > :nth-child(2) { animation-delay: 75ms; }
  .hero-hook > :nth-child(3) { animation-delay: 150ms; }
  .product-hero h1 { animation: headline-enter 760ms var(--panel-ease) 120ms backwards; }
  .product-hero .lede { animation: hero-copy-enter 650ms var(--panel-ease) 230ms backwards; }
  .hero-actions { animation: hero-copy-enter 650ms var(--panel-ease) 310ms backwards; }
  .hero-film { animation: film-enter 900ms cubic-bezier(.18, .92, .3, 1) 65ms backwards; }
  .hero-film::before { animation: projection-enter 1000ms var(--panel-ease) 180ms backwards; }
}
@keyframes hook-beat {
  from { opacity: 0; transform: translateY(12px) scale(.88); }
  to { opacity: 1; transform: none; }
}
@keyframes headline-enter {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(24px); }
  to { opacity: 1; clip-path: inset(-.1em -.1em -.16em -.1em); transform: none; }
}
@keyframes hero-copy-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes film-enter {
  from { opacity: 0; transform: translateY(38px) scale(.94) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
@keyframes projection-enter {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: none; }
}

/* Motion primitives from transitions-dev, with TVkip theme tokens. */
:root { --tabs-dur: 220ms; --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1); --tabs-text-muted: var(--label-2); --tabs-text-active: var(--label); --tabs-bar-bg: var(--fill); --tabs-pill-bg: var(--surface); --panel-open-dur: 300ms; --panel-close-dur: 240ms; --panel-translate-y: 8px; --panel-ease: cubic-bezier(0.22, 1, 0.36, 1); }
/* The bar is just a flex container with padding for the pill
   to sit inside. Tabs sit on z-index: 1, the pill on z-index: 0,
   so labels read above the pill background. */
.t-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 48px;
  background: var(--tabs-bar-bg);
}
.t-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  height: 30px;
  padding: 4px 12px;
  color: var(--tabs-text-muted);
  cursor: pointer;
  border-radius: 48px;
  z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease);
}
.t-tab:not([aria-selected="true"]):hover,
.t-tab[aria-selected="true"] {
  color: var(--tabs-text-active);
}

/* The pill: width + transform are written inline by JS so
   the transition tweens between the previous and next
   measured positions. */
.t-tabs-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 30px;
  width: 0;
  background: var(--tabs-pill-bg);
  border-radius: 48px;
  transform: translateX(0);
  transition:
    transform var(--tabs-dur) var(--tabs-ease),
    width     var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .t-tabs-pill, .t-tab { transition: none !important; }
}

.t-panel-slide {
  transform: translateY(var(--panel-translate-y));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--panel-close-dur) var(--panel-ease),
    opacity   var(--panel-close-dur) var(--panel-ease);
}
.t-panel-slide[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform var(--panel-open-dur) var(--panel-ease),
    opacity   var(--panel-open-dur) var(--panel-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-panel-slide { transition: none !important; }
}

.gallery-tabs.t-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin-bottom: 28px; }
.gallery-tabs .t-tab { height: auto; min-height: 44px; }
.gallery-tabs .t-tabs-pill { top: 0; }
.gallery-tabs .t-tab[aria-selected=true] { background: transparent; box-shadow: none; }
.product-gallery[data-enhanced] .screen-panel { grid-area: 1 / 1; align-self: start; visibility: hidden; }
.product-gallery[data-enhanced] .screen-panel[data-open=true] { visibility: visible; z-index: 1; }
.product-gallery .screen-panel { flex-direction: column; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .product-gallery {
    --demo-travel: clamp(12px, 3vw, 32px);
    --demo-enter-x: var(--demo-travel);
    --demo-exit-x: calc(-1 * var(--demo-travel));
  }
  .product-gallery[data-demo-backward] {
    --demo-enter-x: calc(-1 * var(--demo-travel));
    --demo-exit-x: var(--demo-travel);
  }
  .product-gallery[data-enhanced] .screen-panel[data-entering] {
    animation: demo-screen-enter 520ms var(--panel-ease) both;
  }
  .product-gallery[data-enhanced] .screen-panel[data-leaving] {
    animation: demo-screen-exit 280ms var(--panel-ease) both;
  }
}
@keyframes demo-screen-enter {
  from { opacity: 0; transform: translateX(var(--demo-enter-x)) scale(.965); }
  to { opacity: 1; transform: none; }
}
@keyframes demo-screen-exit {
  from { visibility: visible; opacity: 1; transform: none; }
  to { visibility: hidden; opacity: 0; transform: translateX(var(--demo-exit-x)) scale(.98); }
}
.demo-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-phone:hover { transform: none; }
.demo-screen { position: relative; width: 100%; }
.demo-controls { position: absolute; inset: 0; pointer-events: none; }
.demo-hit, .demo-volume {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
}
.demo-hit {
  width: var(--w); height: var(--h); min-height: 28px;
  padding: 0; border: 0; border-radius: 14px; color: #076d5f;
  background: transparent; cursor: pointer; pointer-events: auto;
}
.demo-hit:focus-visible { outline: 3px solid currentColor; outline-offset: 1px; }
.demo-hit:active, .demo-hit[data-demo-pressed] { background: rgb(5 130 108 / .16); box-shadow: inset 0 0 0 2px rgb(5 130 108 / .48); }
@media (hover: hover) {
  .demo-hit:hover { background: rgb(5 130 108 / .13); box-shadow: inset 0 0 0 2px rgb(5 130 108 / .38); }
}
.demo-hit[data-demo-pressed]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 23px; height: 23px;
  border: 2px solid #087b67; border-radius: 50%; translate: -50% -50%;
  animation: demo-tap 600ms ease-out both; pointer-events: none;
}
@keyframes demo-tap { from { scale: .65; opacity: 1; } to { scale: 2.3; opacity: 0; } }
.demo-hit[data-demo-action=pad] { touch-action: pan-y; cursor: grab; }
.demo-hit[data-demo-action=pad]:active { cursor: grabbing; }
.demo-pad-dot {
  position: absolute; left: var(--pad-x, 50%); top: var(--pad-y, 50%); translate: -50% -50%;
  width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%;
  background: #087b67; box-shadow: 0 0 0 2px #087b67; pointer-events: none;
}
.demo-hit[data-demo-pressed] .demo-pad-dot { animation: demo-swipe 520ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes demo-swipe { from { left: 36%; top: 59%; } }
.demo-volume {
  --x: 12.5%; --y: 79.8%;
  min-width: 10%; text-align: center; padding: 1px 0; border-radius: 5px;
  background: #fafafc; color: #18191b; font-size: clamp(12px, 3vw, 16px); font-weight: 600;
}
.demo-zoom { display: inline-block; padding: 8px; margin: 5px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .demo-hit[data-demo-pressed]::after, .demo-hit[data-demo-pressed] .demo-pad-dot { animation: none; }
}
/* Section entrances build from the heading to the supporting detail. */
.motion-reveal { --panel-open-dur: 620ms; --panel-translate-y: 24px; }
.product-gallery.motion-reveal { --panel-open-dur: 780ms; --panel-translate-y: 36px; }
.pricing .plan:nth-child(2) { transition-delay: 45ms; }
.pricing .plan:nth-child(3) { transition-delay: 90ms; }
@media (prefers-reduced-motion: no-preference) {
  .compat-intro.motion-reveal .compat-stills img { transition: transform 780ms cubic-bezier(.2, 1.15, .34, 1); }
  .compat-intro.motion-reveal .compat-still-remote { transition-delay: 65ms; }
  .compat-intro.motion-reveal[data-open=false] .compat-still-portrait { transform: translate(28%, 10%) rotate(-2deg) scale(.92); }
  .compat-intro.motion-reveal[data-open=false] .compat-still-remote { transform: translate(-24%, -5%) rotate(1deg) scale(.92); }
}
.page-home .button, .brand-logos a, .page-home .plan { transition: transform 220ms var(--panel-ease), border-color 220ms ease, background-color 220ms ease; }
.page-home .plan.motion-reveal { transition: opacity var(--panel-open-dur) var(--panel-ease), transform var(--panel-open-dur) var(--panel-ease), border-color 220ms ease; }
.text-link span { display: inline-block; transition: transform 180ms var(--panel-ease); }
.page-home main summary::after { transition: transform 220ms var(--panel-ease); }
.page-home main details[open] > :not(summary) { animation: detail-enter 220ms var(--panel-ease); }
@keyframes detail-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .page-home .button:hover, .brand-logos a:hover { transform: translateY(-3px); }
  .page-home .plan[data-open=true]:hover { transform: translateY(-4px); border-color: var(--accent-text); }
  .text-link:hover span { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
  .motion-reveal { opacity: 1; transform: none; pointer-events: auto; }
  .page-home .button, .brand-logos a, .page-home .plan, .text-link span, .page-home main summary::after { transition: none !important; }
  .page-home main details[open] > :not(summary) { animation: none; }
}
@media print { .motion-reveal { opacity: 1; transform: none; } }

/* Two identical strips travel exactly one strip width for a seamless loop. */
.brand-carousel .brand-logos[aria-hidden=true] { display: none; }
@keyframes brand-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .brand-carousel.is-ready:not(:focus-within) { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
  .brand-carousel.is-ready:not(:focus-within) .brand-track { display: flex; width: max-content; animation: brand-drift 45s linear infinite; will-change: transform; }
  .brand-carousel.is-ready:not(:focus-within) .brand-logos { display: flex; flex: none; align-items: center; gap: 32px; max-width: none; margin: 0; padding: 8px 32px 8px 0; }
  .brand-carousel.is-ready:not(:focus-within) .brand-logos li { flex: 0 0 140px; width: 140px; }
  .brand-carousel.is-ready:not(:focus-within) .brand-logos[aria-hidden=true] { display: flex; }
  .brand-carousel[data-active=false] .brand-track, .brand-carousel:hover .brand-track { animation-play-state: paused !important; }
}
@media print {
  .brand-carousel.is-ready .brand-track { animation: none; transform: none; width: auto; }
  .brand-carousel.is-ready .brand-logos[aria-hidden=true] { display: none; }
}
