/* A clear, stable app screen before the visitor starts the real recording. */
body.site-page .hero-showcase-demo {
  --showcase-tone: #CEDCC4;
  --showcase-accent: #2E4232;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  gap: 8px;
  padding: 0 6px;
}
body.site-page .hero-phone-stage {
  position: relative;
  isolation: isolate;
  width: min(270px, 75%);
  /* Preserve the real recording and native phone proportions. */
  aspect-ratio: 278 / 609;
  margin-top: 0;
}
body.site-page .hero-phone-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7% -28px 7%;
  border-radius: 47% 53% 40% 60%;
  filter: blur(24px);
  background: var(--showcase-tone);
  opacity: .75;
  transition: background-color .4s;
  pointer-events: none;
}
body.site-page .hero-recording-panel {
  position: absolute;
  inset: 0;
  border: 6px solid #2E4232;
  border-radius: 32px;
  overflow: hidden;
  background: #141A16;
  box-shadow: 0 24px 50px -28px #18282060;
}
body.site-page .hero-recording-panel video,
body.site-page .hero-recording-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.site-page .hero-recording-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #141A16;
}
body.site-page .hero-recording-cover[hidden] { display: none; }
body.site-page .hero-native-panel { position: absolute; inset: 0; }
body.site-page .hero-current-blocker { width: 100%; }
body.site-page .hero-current-blocker[hidden] { display: none; }
body.site-page .hero-phone-stage:has(.hero-current-blocker:not([hidden])) { aspect-ratio: auto; }
body.site-page .hero-native-panel .native-app { width: 100%; max-width: none; }

body.site-page .hero-showcase-controls { width: 100%; display: flex; justify-content: center; }
body.site-page .hero-showcase-controls [data-hero-play] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 20px;
  border: 1px solid #2E4232;
  border-radius: 100px;
  background: #2E4232;
  color: #F7F2E9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color .2s, transform .2s;
}
body.site-page .hero-showcase-controls [data-hero-play]:hover { background: #1D3022; }
body.site-page .hero-showcase-controls svg { width: 17px; height: 17px; flex-shrink: 0; fill: currentColor; }
body.site-page .hero-more-features { width: 100%; min-width: 0; }
body.site-page .hero-more-features > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  list-style: none;
  color: #2E4232;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  border-radius: 12px;
}
body.site-page .hero-more-features > summary::-webkit-details-marker { display: none; }
body.site-page .hero-more-features > summary::after { content: "+"; font-size: 19px; line-height: 1; }
body.site-page .hero-more-features[open] > summary::after { content: "−"; }
body.site-page .hero-more-features > summary:hover { background: #F7F2E9B3; }
body.site-page .hero-more-features > summary:focus-visible { outline: 2px solid #2E4232; outline-offset: 3px; }
body.site-page .hero-feature-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 5px;
  padding: 6px;
  border: 1px solid #2E423226;
  border-radius: 18px;
  background: #F7F2E9E6;
}
body.site-page .hero-feature-choices button {
  min-height: 44px;
  min-width: 0;
  padding: 8px 5px;
  border-radius: 12px;
  background: transparent;
  color: #2E4232;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color .2s, color .2s;
}
body.site-page .hero-feature-choices [data-hero-feature="facts"],
body.site-page .hero-feature-choices [data-hero-feature="quotes"] { color: #79361F; }
body.site-page .hero-feature-choices [data-hero-feature="brain"] { color: #284A63; }
body.site-page .hero-feature-choices button[aria-pressed="true"] { background: var(--showcase-accent); color: #F7F2E9; }
body.site-page .hero-feature-choices button:hover:not([aria-pressed="true"]) { background: #EDE6DA; }
body.site-page .hero-full-demo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  font-size: 14px;
  color: #2E4232;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.site-page .hero-showcase-caption { width: 100%; text-align: center; color: #2E4232; }
body.site-page .hero-showcase-caption > p { font-size: 14px; line-height: 1.5; margin: 0; min-height: 21px; }
body.site-page .hero-showcase-note { text-align: center; font-size: 12px; line-height: 1.5; color: #465447; max-width: 340px; }
body.site-page .hero-showcase-note a { text-decoration: underline; }
body.site-page .hero-showcase-notice { font-size: 14px; line-height: 1.6; background: #EDE6DA; color: #1B211C; padding: 12px; border-radius: 12px; }
body.site-page .hero-showcase-demo[data-feature="facts"],
body.site-page .hero-showcase-demo[data-feature="quotes"] { --showcase-tone: #E8B79A; --showcase-accent: #79361F; }
body.site-page .hero-showcase-demo[data-feature="brain"] { --showcase-tone: #C7D9E8; --showcase-accent: #284A63; }
body.site-page .hero-showcase-demo[data-feature="feeds"] { --showcase-tone: #EDE6DA; }

body.site-page .hero-supported { margin-top: 24px; }
body.site-page .hero-supported > p { color: var(--sl-muted); font-size: 13px; line-height: 1.5; }
body.site-page .hero-supported-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
body.site-page .hero-supported-apps a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #2E423226;
  border-radius: 12px;
  background: #F7F2E9D9;
}
body.site-page .hero-supported-apps a:hover { background: #E6ECDD; border-color: #2E423266; }
body.site-page .hero-supported-apps img { width: 26px; height: 26px; object-fit: contain; }

/* Keep the Home calculator immediately visible when its section is reached. */
html.motion-ready body.site-page[data-page="home"] #your-time > .time-layout > [data-scroll-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
body.site-page[data-page="home"] .page-cta-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
body.site-page[data-page="home"] .page-cta-actions .button-outline { display: inline-flex; color: var(--feature-cream); border-color: var(--feature-cream); }
body.site-page[data-page="home"] .page-cta-actions .button-outline:hover { background: var(--feature-cream); color: var(--feature-forest); }
@media (max-width: 850px) {
  body.site-page .hero-phone-stage { width: min(255px, 75%); }
  body.site-page .hero-showcase-controls { order: -1; }
  body.site-page[data-page="home"] .hero.hero-showcase .hero-actions { flex-direction: row; justify-content: flex-start; gap: 12px; margin-top: 18px; }
  body.site-page[data-page="home"] .hero.hero-showcase .hero-actions .button { align-self: auto; }
  body.site-page[data-page="home"] .hero.hero-showcase .hero-footnote { margin-top: 12px; }
  body.site-page[data-page="home"] .hero.hero-showcase .hero-time-link { margin-top: 12px; }
  body.site-page .hero-supported { margin-top: 18px; }
  body.site-page[data-page="home"] .page-cta-actions { justify-content: flex-start; }
}
@media (max-width: 460px) {
  body.site-page .hero-atmosphere { inset-inline: -18px; }
  body.site-page .hero-showcase-demo { padding: 0; }
  body.site-page .hero-feature-choices { gap: 3px; padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  body.site-page .hero-phone-stage::before,
  body.site-page .hero-feature-choices button,
  body.site-page .hero-showcase-controls [data-hero-play] { transition: none; }
}
