/* V38: a deliberate page entrance, visible scroll reveals, and tighter public-page rhythm. */
:root {
  --oshi-motion-enter: 680ms;
  --oshi-motion-ease: cubic-bezier(.22, 1, .36, 1);
}

html.motion-ready [data-v35-reveal],
html.motion-ready [data-reveal] {
  transition-property: opacity, transform;
  transition-duration: 640ms;
  transition-timing-function: var(--oshi-motion-ease);
}
html.motion-ready [data-v35-reveal]:not(.is-visible),
html.motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: none;
  clip-path: none;
}
html.motion-ready [data-v35-reveal="heading"]:not(.is-visible) { transform: translate3d(0, 22px, 0); }
html.motion-ready [data-v35-reveal="left"]:not(.is-visible) { transform: translate3d(-18px, 10px, 0); }
html.motion-ready [data-v35-reveal="right"]:not(.is-visible) { transform: translate3d(18px, 10px, 0); }
html.motion-ready [data-v35-reveal].is-visible,
html.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
html.motion-ready [data-v35-reveal="stagger"] > *,
html.motion-ready [data-reveal="stagger"] > * {
  transition: opacity 520ms var(--oshi-motion-ease), transform 580ms var(--oshi-motion-ease);
}
html.motion-ready [data-v35-reveal="stagger"]:not(.is-visible) > *,
html.motion-ready [data-reveal="stagger"]:not(.is-visible) > * {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
html.motion-ready [data-v35-reveal="stagger"] > *:nth-child(2),
html.motion-ready [data-reveal="stagger"] > *:nth-child(2) { transition-delay: 75ms; }
html.motion-ready [data-v35-reveal="stagger"] > *:nth-child(3),
html.motion-ready [data-reveal="stagger"] > *:nth-child(3) { transition-delay: 150ms; }
html.motion-ready [data-v35-reveal="stagger"] > *:nth-child(4),
html.motion-ready [data-reveal="stagger"] > *:nth-child(4) { transition-delay: 225ms; }
html.motion-ready [data-v35-reveal="stagger"] > *:nth-child(n+5),
html.motion-ready [data-reveal="stagger"] > *:nth-child(n+5) { transition-delay: 260ms; }

@keyframes v38-header-enter {
  from { opacity: 0; transform: translate3d(0, -12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes v38-hero-enter {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes v38-title-enter {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}
@keyframes v38-preview-enter {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes v38-reduced-enter {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes v38-reduced-header {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* The header moves with the page, so it leaves the viewport naturally as visitors scroll. */
.global-header.v35-site-header { animation: v38-header-enter 680ms var(--oshi-motion-ease) both; }
.account-header { animation: v38-header-enter 620ms var(--oshi-motion-ease) both; }

/* Home: the title resolves first, then its explanation, action, and product preview. */
.v36-page-home .v36-eyebrow[data-v35-load] { animation: v38-hero-enter 620ms 90ms var(--oshi-motion-ease) both; }
.v36-page-home .v35-hero [data-v35-load="title"] { animation: v38-title-enter 900ms 190ms var(--oshi-motion-ease) both; }
.v36-page-home .v35-hero [data-v35-load="lead"] { animation: v38-hero-enter 700ms 390ms var(--oshi-motion-ease) both; }
.v36-page-home .v35-hero [data-v35-load="actions"] { animation: v38-hero-enter 680ms 520ms var(--oshi-motion-ease) both; }
.v36-page-home .v35-product-preview[data-v35-load="preview"] { animation: v38-preview-enter 940ms 680ms var(--oshi-motion-ease) both; }

/* Updates: align the title with the feed and bring the first release into view sooner. */
.changelog-page .changelog-main {
  width: min(1224px, calc(100% - 2 * var(--oshi-gutter, 28px)));
  padding: clamp(30px, 4vw, 56px) 0 72px;
}
.changelog-page .changelog-intro {
  width: 100%;
  max-width: none;
  margin: 0;
}
.changelog-page .changelog-heading {
  width: min(900px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 0 0 18px;
  text-align: center;
}
.changelog-page .changelog-kicker {
  display: block;
  margin: 0 0 8px;
  color: #b8c7f2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}
.changelog-page .changelog-heading h1 {
  max-width: none;
  margin: 0 auto 12px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.065em;
}
.changelog-page .changelog-lead {
  max-width: 760px;
  margin: 0 auto;
  color: #bec6d8;
  font-size: 16px;
  line-height: 1.58;
  text-align: center;
}
.changelog-page .changelog-heading h1 { animation: v38-title-enter 820ms 180ms var(--oshi-motion-ease) both; }
.changelog-page .changelog-kicker { animation: v38-hero-enter 560ms 80ms var(--oshi-motion-ease) both; }
.changelog-page .changelog-lead { animation: v38-hero-enter 650ms 340ms var(--oshi-motion-ease) both; }
.changelog-page .changelog-feed {
  width: min(100%, 960px);
  max-width: none;
  margin: 8px auto 0;
}
.changelog-page .changelog-feed-head {
  min-height: 38px;
  padding: 8px 0 10px;
  animation: v38-hero-enter 620ms 480ms var(--oshi-motion-ease) both;
}
.changelog-page .changelog-feed-head h2 { font-size: 20px; }
.changelog-page .changelog-filters {
  justify-content: center;
  gap: 8px;
  margin: 10px 0 20px;
}
.changelog-page .changelog-filters button {
  min-height: 38px;
  padding-inline: 13px;
  animation: v38-hero-enter 500ms 560ms var(--oshi-motion-ease) both;
}
.changelog-page .changelog-filters button:nth-child(2) { animation-delay: 615ms; }
.changelog-page .changelog-filters button:nth-child(3) { animation-delay: 670ms; }
.changelog-page .changelog-filters button:nth-child(4) { animation-delay: 725ms; }
.changelog-page .changelog-filters button:nth-child(5) { animation-delay: 780ms; }
.changelog-page .changelog-filters button:nth-child(6) { animation-delay: 835ms; }
.changelog-page .changelog-list { gap: 12px; }
.changelog-page .changelog-entry { margin-left: 20px; }
.changelog-page .changelog-card { padding: clamp(17px, 2.2vw, 23px); }
.changelog-page .changelog-time { padding-bottom: 7px; }

/* Keep the homepage rhythm intentional while removing the oversized gaps. */
.v36-page-home .v35-intro-section { padding-block: clamp(94px, 9vw, 132px); }
.v36-page-home .v35-section-heading {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.v36-page-home .v35-section-heading h2 { max-width: 16ch; }
.v36-page-home .v35-section-heading p { margin-inline: auto; }
.v36-page-home .v35-feature-columns { margin-top: 58px; gap: 30px; }
.v36-page-home .v35-config-section { padding-block: clamp(86px, 8vw, 116px); gap: clamp(32px, 5vw, 72px); }
.v36-page-home .v35-account-section { padding-block: clamp(72px, 7vw, 104px); }
.v36-page-home .v35-support-section { padding-block: clamp(92px, 8vw, 122px); }
.v36-page-home .v35-support-heading {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  justify-items: center;
  gap: 17px;
  margin-bottom: 34px;
  text-align: center;
}
.v36-page-home .v35-support-heading h2 { max-width: 14ch; }
.v36-page-home .v35-support-heading p { margin-inline: auto; }
.v36-page-home .v35-closing { padding-block: clamp(78px, 7vw, 108px); }

/* Brave and other browsers may inherit reduced motion from the OS. Keep the sequence,
   shorten travel and duration, and keep scroll reveals reversible instead of erasing them. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .global-header.v35-site-header,
  .account-header { animation: v38-reduced-header 480ms ease-out both !important; animation-delay: 0s !important; }
  .v36-page-home .v36-eyebrow[data-v35-load],
  .v36-page-home .v35-hero [data-v35-load="title"],
  .v36-page-home .v35-hero [data-v35-load="lead"],
  .v36-page-home .v35-hero [data-v35-load="actions"],
  .v36-page-home .v35-product-preview[data-v35-load="preview"] {
    animation-name: v38-reduced-enter !important;
    animation-duration: 520ms !important;
    animation-timing-function: ease-out !important;
    filter: none !important;
    clip-path: none !important;
  }
  .v36-page-home .v36-eyebrow[data-v35-load] { animation-delay: 60ms !important; }
  .v36-page-home .v35-hero [data-v35-load="title"] { animation-delay: 130ms !important; }
  .v36-page-home .v35-hero [data-v35-load="lead"] { animation-delay: 210ms !important; }
  .v36-page-home .v35-hero [data-v35-load="actions"] { animation-delay: 280ms !important; }
  .v36-page-home .v35-product-preview[data-v35-load="preview"] { animation-delay: 360ms !important; }

  .changelog-page .changelog-kicker,
  .changelog-page .changelog-heading h1,
  .changelog-page .changelog-lead,
  .changelog-page .changelog-feed-head,
  .changelog-page .changelog-filters button {
    animation-name: v38-reduced-enter !important;
    animation-duration: 480ms !important;
    animation-timing-function: ease-out !important;
    filter: none !important;
  }
  .changelog-page .changelog-kicker { animation-delay: 50ms !important; }
  .changelog-page .changelog-heading h1 { animation-delay: 100ms !important; }
  .changelog-page .changelog-lead { animation-delay: 160ms !important; }
  .changelog-page .changelog-feed-head { animation-delay: 220ms !important; }
  .changelog-page .changelog-filters button { animation-delay: 270ms !important; }
  .changelog-page .changelog-filters button:nth-child(2) { animation-delay: 315ms !important; }
  .changelog-page .changelog-filters button:nth-child(3) { animation-delay: 360ms !important; }
  .changelog-page .changelog-filters button:nth-child(4) { animation-delay: 405ms !important; }
  .changelog-page .changelog-filters button:nth-child(5) { animation-delay: 450ms !important; }
  .changelog-page .changelog-filters button:nth-child(6) { animation-delay: 495ms !important; }

  .v38-motion .modules-copy,
  .v38-motion .legal-hub-content,
  .v38-motion .legal-layout,
  .v38-motion .faq-heading,
  .v38-motion .client-preview,
  .v38-motion .faq-list { animation: v38-reduced-enter 500ms ease-out both !important; }
  .v38-motion .client-preview,
  .v38-motion .faq-list { animation-delay: 100ms !important; }

  html.v38-motion.motion-ready [data-v35-reveal]:not(.is-visible),
  html.v38-motion.motion-ready [data-reveal]:not(.is-visible),
  html.v38-motion.motion-ready .changelog-entry:not(.is-visible) {
    opacity: 0 !important;
    transform: translate3d(0, 8px, 0) !important;
    filter: none !important;
    clip-path: none !important;
    transition-property: opacity, transform !important;
    transition-duration: .42s !important;
    transition-delay: 0s !important;
    transition-timing-function: ease-out !important;
    animation: none !important;
  }
  html.v38-motion.motion-ready [data-v35-reveal].is-visible,
  html.v38-motion.motion-ready [data-reveal].is-visible,
  html.v38-motion.motion-ready .changelog-entry.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition-property: opacity, transform !important;
    transition-duration: .42s !important;
    transition-delay: 0s !important;
    transition-timing-function: ease-out !important;
    animation: none !important;
  }
  html.v38-motion.motion-ready [data-v35-reveal="stagger"] > *,
  html.v38-motion.motion-ready [data-reveal="stagger"] > * {
    opacity: 0 !important;
    transform: translate3d(0, 6px, 0) !important;
    transition-property: opacity, transform !important;
    transition-duration: .4s !important;
    transition-delay: 0s !important;
    transition-timing-function: ease-out !important;
  }
  html.v38-motion.motion-ready [data-v35-reveal="stagger"].is-visible > *,
  html.v38-motion.motion-ready [data-reveal="stagger"].is-visible > * {
    opacity: 1 !important;
    transform: none !important;
  }
  html.v38-motion.motion-ready [data-v35-reveal="stagger"].is-visible > *:nth-child(2),
  html.v38-motion.motion-ready [data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 45ms !important; }
  html.v38-motion.motion-ready [data-v35-reveal="stagger"].is-visible > *:nth-child(3),
  html.v38-motion.motion-ready [data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 90ms !important; }
  html.v38-motion.motion-ready [data-v35-reveal="stagger"].is-visible > *:nth-child(n+4),
  html.v38-motion.motion-ready [data-reveal="stagger"].is-visible > *:nth-child(n+4) { transition-delay: 130ms !important; }

  .v36-page-home .v35-intro-section { padding-block: 76px; }
  .v36-page-home .v35-feature-columns { margin-top: 38px; }
  .v36-page-home .v35-config-section,
  .v36-page-home .v35-account-section,
  .v36-page-home .v35-support-section,
  .v36-page-home .v35-closing { padding-block: 74px; }
}

@media (max-width: 760px) {
  .changelog-page .changelog-main { padding: 30px 0 56px; }
  .changelog-page .changelog-heading { padding-bottom: 14px; }
  .changelog-page .changelog-heading h1 { font-size: clamp(42px, 11vw, 60px); }
  .changelog-page .changelog-lead { font-size: 15px; }
  .changelog-page .changelog-feed { margin-top: 4px; }
  .changelog-page .changelog-filters { justify-content: flex-start; margin-bottom: 16px; }
  .changelog-page .changelog-list { gap: 10px; }
  .changelog-page .changelog-entry { margin-left: 18px; }
  .changelog-page .changelog-card { padding: 16px; }
  .v36-page-home .v35-feature-columns { margin-top: 42px; }
  .v36-page-home .v35-section-heading,
  .v36-page-home .v35-support-heading { text-align: left; }
}
