/* Poly Sync Studio website: page layout on top of the GaTi UI components. Only GaTi variables, no raw colours. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg-base); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
:where(h1, h2, h3) { text-wrap: balance; }
:where([id]) { scroll-margin-top: calc(var(--site-nav-height) + var(--space-4)); }
.num, .gati-plan-amount { font-variant-numeric: tabular-nums; }
:where(a, button, summary):focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-width); }

/* Skip link: hidden until focused. */
.skip-link { position: absolute; left: var(--space-4); top: calc(-1 * var(--control-lg)); z-index: var(--z-tooltip); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text-primary); border: var(--hairline) solid var(--border-strong); }
.skip-link:focus { top: var(--space-2); }

/* Sticky navigation (GaTi SiteNav) */
.gati-sitenav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-sticky); }

/* Sections */
.section-title { font-family: var(--font-serif); font-size: var(--type-display-size); line-height: var(--type-display-line); font-weight: var(--type-display-weight); letter-spacing: var(--type-display-tracking); margin: 0 0 var(--space-6); max-width: 22ch; }
.section-lead { font-size: var(--type-lead-size); line-height: var(--type-lead-line); max-width: var(--prose-max); margin: calc(-1 * var(--space-2)) 0 var(--space-8); }

/* Screenshots in the GaTi window frame */
.shot { margin: 0; min-width: 0; }
.shot img { width: 100%; }
.shot figcaption { margin-top: var(--space-2); }
.shot--hero { align-self: stretch; margin-top: var(--space-4); }

/* How it works: three numbered steps */
.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-6); }
.how-steps li { counter-increment: step; }
.how-steps li::before { content: counter(step); width: var(--control-lg); height: var(--control-lg); border-radius: var(--radius-pill); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--type-label-size); background: var(--bg-elevated); border: var(--hairline) solid var(--border-strong); }
.how-steps h3, .two-up h3 { margin: var(--space-3) 0 var(--space-2); font-family: var(--font-serif); font-size: var(--type-heading-size); line-height: var(--type-heading-line); font-weight: var(--type-heading-weight); }
.how-steps p { margin: 0; color: var(--text-muted); }
@container page (min-width: 640px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }

/* Results: the three outcomes beside the details window */
.results { display: grid; gap: var(--space-8); align-items: start; }
.result-list { display: grid; gap: var(--space-4); margin: 0; }
.result-list > div { padding: var(--space-4); border: var(--hairline) solid var(--border-subtle); border-radius: var(--radius-md); background: var(--accent-soft); }
.result-list dt { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.result-list dt::before { content: ""; width: var(--dot-md); height: var(--dot-md); border-radius: var(--radius-pill); background: var(--accent); }
.result-list dd { margin: var(--space-1) 0 0; color: var(--text-muted); }
@container page (min-width: 1024px) { .results { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }

/* Limits and requirements */
.two-up { display: grid; gap: var(--space-8); }
.two-up h3 { margin-top: 0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--hairline) solid var(--border-subtle); }
.rows li { padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--border-subtle); }
@container page (min-width: 640px) { .two-up { grid-template-columns: 1fr 1fr; } }

.pricing { max-width: calc(var(--prose-max) / 2 + var(--space-16)); margin-inline: auto; }
.pricing-note { text-align: center; margin-top: var(--space-3); }

.faq { max-width: var(--prose-max); }

.closing { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing .section-title { margin-inline: auto; }

/* Footer */
.foot-note { font-size: var(--type-caption-size); line-height: var(--type-caption-line); color: var(--text-muted); max-width: var(--prose-max); margin: var(--space-6) 0 0; }
.gati-foot-legal { align-items: center; }
.gati-foot-group li a { display: inline-flex; align-items: center; min-height: var(--hit-pointer); }

/* The hero's parts rise in once on load, only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in { from { opacity: 0; translate: 0 var(--space-2); } }
  .gati-hero > * { animation: rise-in var(--dur-slow) var(--ease-emphasis) backwards; }
  .gati-hero > :nth-child(2) { animation-delay: calc(2 * var(--dur-stagger)); }
  .gati-hero > :nth-child(3) { animation-delay: calc(4 * var(--dur-stagger)); }
  .gati-hero > :nth-child(4) { animation-delay: calc(6 * var(--dur-stagger)); }
  .gati-hero > :nth-child(5) { animation-delay: calc(8 * var(--dur-stagger)); }
  .gati-hero > :nth-child(6) { animation-delay: calc(10 * var(--dur-stagger)); }
}
