/* The gallery and stage are invisible layout wrappers, directly on the hero. */
.theme-apple .hero-inner { padding-block: 42px 30px; }
.product-showcase {
  width: 100%;
  max-width: 1080px;
  margin: 26px auto 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.coverflow-stage {
  position: relative;
  height: 378px;
  perspective: 1100px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  /* A transparent plane must not intercept clicks on cards behind z=0. */
  pointer-events: none;
  background: none;
  border: 0;
  box-shadow: none;
}
.product-card {
  --preview-bg: #eaf1fc;
  --preview-accent: #0066cc;
  position: absolute;
  top: 10px;
  left: 50%;
  width: 280px;
  height: 350px;
  margin-left: -140px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px #142c5014, 0 2px 5px #142c5009;
  backface-visibility: hidden;
  will-change: transform;
  text-align: left;
  pointer-events: auto;
}
.product-card--mint { --preview-bg: #e7f2ee; --preview-accent: #367f6d; }
.product-card--violet { --preview-bg: #f0ecfa; --preview-accent: #7c61ac; }
.product-card--sky { --preview-bg: #e7f2f7; --preview-accent: #32758f; }
.product-card--sand { --preview-bg: #f6efe6; --preview-accent: #9b794a; }
.product-preview {
  height: 188px;
  padding: 18px 22px 0;
  background: var(--preview-bg);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  color: #29303a;
}
.product-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-window {
  min-height: 188px;
  padding: 14px 16px;
  border-radius: 10px 10px 0 0;
  background: #ffffffed;
  box-shadow: 0 5px 16px #25334909;
}
.preview-header { display: flex; align-items: center; gap: 5px; font-size: 6px; font-weight: 650; letter-spacing: .12em; color: #767e89; }
.preview-star { color: var(--preview-accent); font-size: 16px; line-height: 1; }
.preview-menu { margin-left: auto; font-size: 15px; line-height: .5; letter-spacing: .08em; }
.preview-label { display: block; margin-top: 16px; font-size: 7px; color: #747c86; letter-spacing: .08em; }
.preview-title { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.04em; }
.preview-items { margin-top: 11px; }
.preview-item { display: flex; gap: 7px; align-items: center; min-height: 29px; border-bottom: 1px solid #e6eaf0; font-size: 8px; }
.preview-mark { display: grid; place-items: center; color: var(--preview-accent); width: 12px; height: 12px; border-radius: 50%; border: 1px solid #cbd5e2; font-size: 7px; flex-shrink: 0; }
.product-preview--plan .preview-item:first-child .preview-mark { background: var(--preview-accent); color: #fff; border: 0; }
.product-preview--notes .preview-item { margin-top: 5px; min-height: 25px; padding-inline: 7px; background: #f5f2fa; border: 0; border-radius: 4px; }
.product-preview--notes .preview-mark { border: 0; }
.product-preview--workspace .preview-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.product-preview--workspace .preview-item { min-height: 42px; flex-direction: column; justify-content: center; gap: 3px; background: #eff5f8; border: 0; border-radius: 5px; }
.product-preview--workspace .preview-item:last-child { grid-column: 1 / -1; min-height: 27px; flex-direction: row; }
.preview-timer { width: 93px; height: 93px; border: 4px solid #d9eae3; border-top-color: var(--preview-accent); border-right-color: var(--preview-accent); border-radius: 50%; margin: 11px auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.preview-timer strong { font-size: 21px; font-weight: 500; letter-spacing: -.05em; }
.preview-timer span { font-size: 7px; color: #747c86; }
.preview-orbit { display: grid; place-items: center; height: 65px; width: 65px; margin: 13px auto 6px; border: 1px solid #e4d8c5; border-radius: 50%; color: var(--preview-accent); font-size: 34px; box-shadow: 0 0 0 8px #faf6ef; }
.preview-next-caption { display: block; text-align: center; color: #747c86; font-size: 7px; }
.product-details { padding: 16px 20px 18px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 9px; }
.product-number { color: #6e6e73; letter-spacing: .07em; }
.product-status { color: #626975; }
.product-details h3 { font-size: 21px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.product-description { font-size: 11px; line-height: 1.65; margin-top: 7px; min-height: 37px; }
.product-action { display: inline-block; font-size: 11px; line-height: 1.6; color: var(--accent); margin-top: 7px; }
.product-action--pending { color: #6e6e73; font-size: 10px; }
.product-select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.product-select[hidden] { display: none; }
.product-showcase:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.product-showcase button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.coverflow-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.coverflow-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--accent); font: inherit; font-size: 21px; cursor: pointer; transition: background .2s; }
.coverflow-arrow:hover { background: #0066cc09; }
.coverflow-dots { display: flex; align-items: center; }
.coverflow-dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.coverflow-dot::after { content: ''; width: 5px; height: 5px; border-radius: 10px; background: #a3abb8; transition: width .2s, background .2s; }
.coverflow-dot[aria-pressed="true"]::after { width: 18px; background: var(--accent); }
.coverflow-caption { text-align: center; font-size: 10px; color: #6e6e73; margin-top: 7px; line-height: 1.6; }
.coverflow-fallback { text-align: center; color: #6e6e73; font-size: 12px; padding: 30px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .coverflow-stage { perspective: 900px; }
}
@media (max-width: 650px) {
  .theme-apple .hero-inner { padding-block: 28px 25px; }
  .product-showcase { margin-top: 23px; }
  .coverflow-stage { width: calc(100% + 40px); margin-left: -20px; height: 346px; perspective: 720px; }
  .product-card { width: 236px; height: 324px; margin-left: -118px; border-radius: 15px; }
  .product-preview { height: 167px; padding: 15px 17px 0; border-radius: 15px 15px 0 0; }
  .preview-window { padding: 12px 13px; }
  .preview-title { font-size: 13px; }
  .preview-label { margin-top: 12px; }
  .preview-item { min-height: 26px; font-size: 7px; }
  .preview-timer { width: 79px; height: 79px; margin-top: 9px; }
  .preview-timer strong { font-size: 18px; }
  .preview-orbit { width: 54px; height: 54px; margin-top: 11px; font-size: 29px; }
  .product-details { padding: 14px 16px 16px; }
  .product-details h3 { font-size: 19px; }
  .product-meta { font-size: 8px; margin-bottom: 9px; }
  .product-description { font-size: 11px; min-height: 37px; }
  .coverflow-controls { margin-top: 4px; gap: 14px; }
  .coverflow-caption { font-size: 9px; margin-top: 7px; }
}
@media (max-width: 360px) {
  .coverflow-stage { width: calc(100% + 32px); margin-left: -16px; }
  .product-card { width: 216px; margin-left: -108px; }
  .product-details h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { will-change: auto; }
  .coverflow-arrow, .coverflow-dot::after, .theme-apple .button { transition: none; }
  .theme-apple .button:hover { transform: none; }
}

/* Only ToDoCat: reference layout; the company site and other cards are unchanged. */
.product-card--todocat {
  --todocat-card: #fff;
  --todocat-card-ink: #1d1d1f;
  --todocat-copy: #6e6e73;
  --todocat-link: #0066cc;
  --todocat-preview: linear-gradient(135deg, #edf8ff, #eaf2fc 65%, #f3f8ff);
  --todocat-panel: #fff;
  --todocat-ink: #27384d;
  --todocat-muted: #8292a5;
  --todocat-faint: #a0aab8;
  --todocat-agenda: #f0f7fc;
  --todocat-track: #edf3f9;
  --todocat-badge: #e7f1ff;
  --todocat-badge-ink: #0066cc;
  background: var(--todocat-card);
  color: var(--todocat-card-ink);
}
.product-card--todocat .product-preview { margin: 8px 8px 0; height: 194px; border-radius: 13px; }
.product-card--todocat .product-preview--todocat { position: relative; padding: 0; background: var(--todocat-preview); }
.product-card--todocat .todocat-calendar { position: absolute; top: 13px; left: 13px; width: 200px; height: 169px; padding: 11px 12px; background: var(--todocat-panel); border-radius: 12px; box-shadow: 0 7px 18px #327bb113; color: var(--todocat-ink); }
.product-card--todocat .todocat-month { display: flex; align-items: center; justify-content: space-between; gap: 5px; height: 17px; }
.product-card--todocat .todocat-month strong { font-size: 12px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.product-card--todocat .todocat-month-arrows { color: #239df4; font-size: 18px; line-height: 1; letter-spacing: 3px; }
.product-card--todocat .todocat-weekdays, .product-card--todocat .todocat-dates { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.product-card--todocat .todocat-weekdays { margin-top: 8px; color: var(--todocat-faint); font-size: 6px; line-height: 9px; }
.product-card--todocat .todocat-dates { margin-top: 3px; row-gap: 1px; }
.product-card--todocat .todocat-date { position: relative; display: grid; place-items: center; height: 16px; padding-bottom: 3px; font-size: 7px; font-variant-numeric: tabular-nums; line-height: 1; }
.product-card--todocat .todocat-date.is-other-month { color: var(--todocat-faint); }
.product-card--todocat .todocat-date.has-task::after { content: ''; position: absolute; bottom: 1px; left: calc(50% - 1px); height: 2px; width: 2px; border-radius: 50%; background: #57cdaa; }
.product-card--todocat .todocat-date.is-selected { color: #fff; background: #299ff4; border-radius: 5px; }
.product-card--todocat .todocat-date.is-selected::after { background: #fff; }
.product-card--todocat .todocat-agenda { display: flex; align-items: center; gap: 5px; height: 23px; margin-top: 5px; padding: 4px 6px; border-radius: 6px; background: var(--todocat-agenda); }
.product-card--todocat .todocat-agenda-marker { height: 15px; width: 3px; border-radius: 3px; background: #58cead; flex-shrink: 0; }
.product-card--todocat .todocat-agenda-copy { min-width: 0; }
.product-card--todocat .todocat-agenda-copy strong { display: block; font-size: 7px; font-weight: 600; line-height: 1.35; }
.product-card--todocat .todocat-agenda-copy span { display: block; font-size: 5.5px; line-height: 1.4; color: var(--todocat-muted); white-space: nowrap; }
.product-card--todocat .todocat-widget { position: absolute; right: 2px; bottom: 2px; width: 94px; height: 98px; padding: 8px; border-radius: 15px; background: var(--todocat-panel); box-shadow: 0 6px 20px #2964881c, 0 1px 3px #29648808; color: var(--todocat-ink); }
.product-card--todocat .todocat-widget-brand { display: flex; align-items: center; gap: 5px; }
.product-card--todocat .todocat-icon { display: block; width: 16px; height: 16px; border-radius: 5px; object-fit: contain; }
.product-card--todocat .todocat-widget-brand strong { font-size: 9px; font-weight: 650; letter-spacing: -.03em; }
.product-card--todocat .todocat-goal-ring { display: grid; place-items: center; width: 48px; height: 48px; margin: 5px auto 0; border-radius: 50%; background: conic-gradient(from -45deg, #65d6b0 0 75%, var(--todocat-track) 75% 100%); position: relative; }
.product-card--todocat .todocat-goal-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--todocat-panel); }
.product-card--todocat .todocat-goal-ring strong { position: relative; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.product-card--todocat .todocat-goal-label { display: block; margin-top: 3px; text-align: center; color: var(--todocat-muted); font-size: 7px; line-height: 1.2; white-space: nowrap; }
.product-card--todocat .product-details { padding: 10px 16px 12px; }
.product-card--todocat .product-meta { justify-content: flex-start; margin-bottom: 8px; }
.product-card--todocat .product-category { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--todocat-badge); color: var(--todocat-badge-ink); font-size: 9px; font-weight: 600; line-height: 1.5; }
.product-card--todocat .todocat-product-brand { display: flex; align-items: flex-start; gap: 10px; }
.product-card--todocat .todocat-product-icon { display: block; width: 54px; height: 54px; border-radius: 13px; object-fit: contain; flex-shrink: 0; }
.product-card--todocat .todocat-product-copy { min-width: 0; }
.product-card--todocat h3 { font-size: 23px; font-weight: 700; line-height: 1.1; }
.product-card--todocat .product-description { font-size: 11px; line-height: 1.5; margin-top: 4px; min-height: 0; }
.product-card--todocat .product-action { margin-top: 9px; padding-block: 4px; font-weight: 550; }
.product-card--todocat h3 { color: var(--todocat-card-ink); }
.product-card--todocat .product-description { color: var(--todocat-copy); }
.product-card--todocat .product-action { color: var(--todocat-link); }
@media (max-width: 650px) {
  .product-card--todocat .product-preview--todocat { padding: 0; }
  .product-card--todocat .product-preview { margin: 7px 7px 0; height: 175px; border-radius: 11px; }
  .product-card--todocat .todocat-calendar { top: 11px; left: 11px; width: 173px; height: 152px; padding: 10px; }
  .product-card--todocat .todocat-month { height: 15px; }
  .product-card--todocat .todocat-month strong { font-size: 10px; }
  .product-card--todocat .todocat-month-arrows { font-size: 15px; }
  .product-card--todocat .todocat-weekdays { margin-top: 6px; }
  .product-card--todocat .todocat-date { height: 14px; font-size: 6px; }
  .product-card--todocat .todocat-agenda { margin-top: 4px; height: 22px; }
  .product-card--todocat .todocat-widget { width: 81px; height: 88px; right: 2px; bottom: 2px; padding: 7px; border-radius: 13px; }
  .product-card--todocat .todocat-widget-brand { gap: 4px; }
  .product-card--todocat .todocat-icon { width: 14px; height: 14px; border-radius: 4px; }
  .product-card--todocat .todocat-widget-brand strong { font-size: 8px; }
  .product-card--todocat .todocat-goal-ring { width: 42px; height: 42px; margin-top: 4px; }
  .product-card--todocat .todocat-goal-ring::before { inset: 4px; }
  .product-card--todocat .todocat-goal-ring strong { font-size: 12px; }
  .product-card--todocat .todocat-goal-label { font-size: 6px; margin-top: 3px; }
  .product-card--todocat .product-details { padding: 10px 14px 12px; }
  .product-card--todocat .todocat-product-icon { width: 46px; height: 46px; border-radius: 11px; }
  .product-card--todocat h3 { font-size: 21px; }
  .product-card--todocat .product-description { font-size: 10.5px; line-height: 1.45; }
  .product-card--todocat .product-action { font-size: 10px; margin-top: 7px; }
}
@media (max-width: 360px) {
  .product-card--todocat .todocat-calendar { width: 157px; }
}
