/* Spektaro theme: the app icon's gradient, bright blue settling into violet. */
:root { --c1: #2f8cf6; --c2: #6a4fe0; --pale: #eef0fd; --blue: #3a5fe0; --accent: #1d1d1f; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(160deg, var(--c1), #4d6ff0 55%, var(--c2)); min-height: calc(100svh - var(--nav-h) - var(--sub-h)); padding-top: clamp(48px, 10vh, 104px); display: flex; flex-direction: column; --h: 0; }
.hero-copy { position: relative; z-index: 2; opacity: calc(1 - var(--h) * 1.5); transform: translateY(calc(var(--h) * -36px)); }
.hero .eyebrow { margin-bottom: 12px; opacity: .85; }
.hero h1 { font-size: clamp(2.75rem, min(11vw, 13vh), 6.75rem); line-height: 1.14; }
.hero .sub { margin-top: 18px; font-size: clamp(1.0625rem, 2.2vw, 1.3125rem); opacity: .9; }
.hero-art { position: relative; z-index: 1; width: min(76vw, 44vh, 460px); aspect-ratio: 1.25; margin: auto auto 0; padding-top: 32px; transform: translateY(calc(var(--h) * 60px)); }
.win { position: absolute; border-radius: 9%/13%; background: #fff; }
.win.back { left: 0; top: 10%; width: 74%; aspect-ratio: 1.45; opacity: .55; }
.win.front { right: 0; top: 30%; width: 78%; aspect-ratio: 1.45; box-shadow: 0 30px 70px rgba(40, 30, 140, .3); }
.win .play { position: absolute; left: 50%; top: 44%; width: 22%; aspect-ratio: 1; transform: translate(-40%, -50%); background: var(--blue); clip-path: polygon(14% 4%, 96% 50%, 14% 96%); border-radius: 4px; }
.win.back .play { background: #8aa0f0; }
.win .bar { position: absolute; left: 10%; right: 10%; bottom: 13%; height: 5px; border-radius: 9px; background: #e4e8fb; overflow: hidden; }
.win .bar i { position: absolute; inset: 0; border-radius: 9px; background: var(--blue); transform-origin: left; animation: grow 9s linear infinite; }
.win.back .bar i { background: #8aa0f0; }
@keyframes grow { from { transform: scaleX(.08); } to { transform: scaleX(.92); } }

/* Sync stage: scrolling plays, pauses and seeks both screens together */
.stage { height: 380vh; background: linear-gradient(#fff, var(--pale) 30%, var(--pale) 70%, #fff); }
.stage-in { position: sticky; top: var(--sub-h); height: calc(100svh - var(--sub-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 4vh, 36px); overflow: hidden; }
.stage-title { position: relative; width: 100%; min-height: 2.6em; text-align: center; font-size: clamp(1.5rem, 5vw, 2.75rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.stage-title li { position: absolute; inset: 0; padding-inline: 16px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s var(--ease); }
.stage-title li.on { opacity: 1; transform: none; }
.pair { display: flex; gap: clamp(14px, 4vw, 40px); justify-content: center; width: min(100% - var(--gutter) * 2, 860px); }
.dev { container-type: inline-size; flex: 1; max-width: 400px; margin: 0; }
.scr { overflow: hidden; background: #1d1d1f; }
.pic { position: absolute; inset: 0; background: linear-gradient(#ffb36b, #f27a8a 55%, #8e5ad8); }
.pic .sun { position: absolute; left: 50%; top: calc(18% + var(--p, 0) * 40%); width: 26%; aspect-ratio: 1; margin-left: -13%; border-radius: 50%; background: #ffe9a8; }
.pic .hill { position: absolute; bottom: 0; border-radius: 50% 50% 0 0; }
.pic .hill.a { left: -10%; width: 80%; height: 42%; background: #5a3fa8; }
.pic .hill.b { right: -14%; width: 74%; height: 32%; background: #3d2b80; }
.paused { position: absolute; left: 50%; top: 42%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); opacity: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); transition: opacity .25s ease, transform .35s var(--ease); }
.paused::before, .paused::after { content: ""; position: absolute; top: 30%; bottom: 30%; width: 13%; border-radius: 2px; background: #fff; }
.paused::before { left: 33%; }
.paused::after { right: 33%; }
.dev.stop .paused { opacity: 1; transform: translate(-50%, -50%); }
.ctl { position: absolute; left: 5%; right: 5%; bottom: 6%; display: flex; align-items: center; gap: 3cqw; color: #fff; font-size: 4cqw; font-variant-numeric: tabular-nums; }
.ctl .bar { position: relative; flex: 1; height: 1.4cqw; border-radius: 9px; background: rgba(255, 255, 255, .35); }
.ctl .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 9px; background: #fff; }
.ctl .bar i::after { content: ""; position: absolute; right: -1.6cqw; top: 50%; width: 3.2cqw; aspect-ratio: 1; margin-top: -1.6cqw; border-radius: 50%; background: #fff; }
.dev figcaption { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--muted); }
.note { font-size: .75rem; color: var(--muted); }
@media (max-width: 560px) { .pair { flex-direction: column; align-items: center; width: min(78vw, 36vh * 1.6); } .dev { width: 100%; } .dev figcaption { margin-top: 4px; } }

/* Feature sections */
.feature { text-align: center; }
.feature .lead { max-width: 34em; margin: 18px auto 0; }
.feature .art { margin: clamp(36px, 6vw, 64px) auto 0; }
.pale { background: var(--pale); }

.invite { max-width: 520px; padding: clamp(24px, 5vw, 40px); border-radius: 28px; background: #fff; box-shadow: 0 10px 40px rgba(58, 95, 224, .1); }
.invite .lbl { font-size: .875rem; color: var(--muted); }
.code { display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 12px); margin-top: 12px; }
.code b { display: grid; place-items: center; width: clamp(38px, 10vw, 58px); aspect-ratio: .82; border-radius: 12px; background: var(--pale); color: var(--blue); font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.who { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.who li { padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: .875rem; transition: opacity .6s ease var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .who li { opacity: 0; transform: translateY(10px) scale(.9); }
.js .invite.in .who li { opacity: 1; transform: none; }

.clocks { max-width: 620px; padding: 22px 24px; border-radius: 24px; background: var(--pale); text-align: left; }
.lane { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; align-items: center; min-height: 52px; font-size: .9375rem; }
.lane b { font-weight: 600; }
.track { position: relative; height: 6px; border-radius: 9px; background: #dfe3fa; }
.head { position: absolute; top: 50%; left: 20%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--blue); }
.clocks.in .head { animation: head 6s linear infinite; }
.clocks.in .drift .head { animation: head 6s linear infinite, lag 6s ease-in-out infinite; }
@keyframes head { from { left: 18%; } to { left: 82%; } }
@keyframes lag { 0%, 15% { translate: 0; } 35% { translate: -22px; } 60%, 100% { translate: 0; } }
.gap { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; font-size: .875rem; color: var(--muted); }
.gap em { font-style: normal; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }

.sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.sources li { padding: 20px 18px; border-radius: 22px; background: #fff; text-align: left; box-shadow: 0 8px 30px rgba(58, 95, 224, .08); transition: opacity .9s ease var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .sources li { opacity: 0; transform: translateY(24px); }
.js .sources.in li { opacity: 1; transform: none; }
.sources b { display: block; margin-top: 12px; font-size: 1rem; font-weight: 600; }
.sources span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.ic { display: block; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; }
.ic::after { content: ""; position: absolute; inset: 0; margin: auto; background: #fff; }
.ic.file::after { width: 14px; height: 18px; border-radius: 2px; clip-path: polygon(0 0, 65% 0, 100% 28%, 100% 100%, 0 100%); }
.ic.link::after { width: 18px; height: 8px; border-radius: 9px; background: transparent; border: 2.5px solid #fff; }
.ic.yt::after { width: 12px; height: 13px; margin-left: 13px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ic.tv::after { width: 20px; height: 13px; border-radius: 3px; background: transparent; border: 2.5px solid #fff; }
.ic.live::after { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.ic.sub::after { width: 20px; height: 14px; border-radius: 3px; background: linear-gradient(#fff 0 0) center / 7px 2.5px no-repeat, transparent; border: 2.5px solid #fff; box-shadow: inset 0 0 0 0 #fff; }
@media (max-width: 420px) { .sources { grid-template-columns: 1fr; } }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.ways li { padding: 22px 16px; border-radius: 22px; background: var(--pale); transition: opacity .9s ease var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .ways li { opacity: 0; transform: translateY(24px); }
.js .ways.in li { opacity: 1; transform: none; }
.ways b { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--blue); }
.ways span { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; max-width: 360px; } }

.more h2, .price h2, .faq h2 { margin-bottom: clamp(28px, 5vw, 44px); }
.fold ul { list-style: disc; padding-left: 1.2em; }
.tbd { color: var(--muted); }
.outro { text-align: center; color: #fff; padding-block: clamp(96px, 18vw, 200px); background: linear-gradient(160deg, var(--c1), var(--c2)); }
.fold > div a { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .win .bar i, .clocks.in .head, .clocks.in .drift .head { animation: none; }
  .js .who li, .js .sources li, .js .ways li { opacity: 1; transform: none; transition: none; }
}
