/* Pipto site — cool mist page, one blue, the product as the hero. */
:root {
  --mist: #E9EDF3;
  --paper: #F7F9FC;
  --ink: #14161B;
  --slate: #5A6372;
  --line: #D3D9E3;
  --blue: #0A84FF;
  --blue-deep: #0060D1;
  --signal: #30D158;

  --font: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --spring: cubic-bezier(.2, .9, .25, 1.12);
  --ease: cubic-bezier(.22, .8, .26, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.012em; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  height: 3rem; padding: 0 1.35rem;
  border-radius: 999px; border: 0;
  background: var(--blue); color: #fff;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px -8px rgba(10,132,255,.7);
  transition: transform .25s var(--spring), background-color .2s;
}
.btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px #B9C2D0; }
.btn-small { height: 2.4rem; padding: 0 1.05rem; font-size: .95rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem var(--gutter);
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--mist) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(20,22,27,.06);
}
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--slate); font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.brand-mark {
  position: relative; width: 1.6rem; height: 1.6rem; border-radius: .45rem;
  background: linear-gradient(180deg, #409CFF, #0A5CE6);
}
.brand-mark::before {
  content: ""; position: absolute; inset: .36rem .3rem .4rem;
  border: 1.6px solid #fff; border-radius: .18rem;
}
.brand-mark span { position: absolute; right: .42rem; bottom: .5rem; width: .45rem; height: .33rem; background: #fff; border-radius: .08rem; }


/* ---------- hero backdrop ---------- */
.hero-shell { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(3rem, 6vw, 5rem); margin-top: -4.1rem; padding-top: 4.1rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { /* melt into the page below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16rem;
  background: linear-gradient(to bottom, rgba(233,237,243,0), rgba(233,237,243,.7) 55%, var(--mist));
}
.glow { position: absolute; border-radius: 50%; opacity: .9; will-change: transform; }
.g1 { width: 44rem; height: 34rem; left: -10rem; top: -4rem; background: radial-gradient(closest-side, rgba(75,141,255,.95) 0%, rgba(75,141,255,.45) 40%, rgba(75,141,255,.12) 70%, transparent); animation: drift1 22s ease-in-out infinite alternate; }
.g2 { width: 50rem; height: 40rem; right: -10rem; top: 6rem; background: radial-gradient(closest-side, rgba(124,116,255,.9) 0%, rgba(124,116,255,.4) 40%, rgba(124,116,255,.1) 70%, transparent); opacity: .75; animation: drift2 26s ease-in-out infinite alternate; }
.g3 { width: 38rem; height: 26rem; left: 26%; bottom: -4rem; background: radial-gradient(closest-side, rgba(57,201,214,.85) 0%, rgba(57,201,214,.35) 40%, rgba(57,201,214,.08) 70%, transparent); opacity: .6; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(6rem, 3rem) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-5rem, 4rem) scale(1.1); } }

.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30, 50, 110, .26) 1.1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
}

/* Frosted mini-windows drifting behind the hero, like previews floating over a desktop. */
.ghost {
  position: absolute; border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(225,235,255,.3));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 0 0 1px rgba(60,90,160,.08), 0 22px 44px -22px rgba(40,70,140,.55);
  will-change: transform;
  animation: float 18s ease-in-out infinite alternate;
}
.ghost::before { /* title bar */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%;
  border-radius: 12px 12px 0 0; background: rgba(255,255,255,.35);
}
.ghost i { /* content lines */
  position: absolute; left: 10%; right: 22%; top: 34%; height: 8%; border-radius: 6px;
  background: rgba(10,132,255,.22);
  box-shadow: 0 1.6em 0 rgba(20,40,90,.10), 0 3.2em 0 rgba(20,40,90,.08);
}
.w1 { width: 10rem; height: 6.2rem; left: 4%; top: 64%; animation-duration: 21s; }
.w2 { width: 7rem; height: 4.4rem; left: 41%; top: 12%; animation-duration: 17s; animation-delay: -6s; opacity: .8; }
.w3 { width: 12rem; height: 7rem; right: 3%; top: 8%; animation-duration: 24s; animation-delay: -3s; }
.w4 { width: 6rem; height: 3.8rem; left: 30%; top: 80%; animation-duration: 19s; animation-delay: -9s; opacity: .7; }
.w5 { width: 8.5rem; height: 5.2rem; right: 38%; bottom: 6%; animation-duration: 23s; animation-delay: -12s; opacity: .75; }
.w6 { width: 5.5rem; height: 3.4rem; left: 22%; top: 6%; animation-duration: 20s; animation-delay: -4s; opacity: .6; }
.w6 i, .w4 i { background: rgba(48,209,88,.28); }
@keyframes float {
  from { transform: translate(0, 0) rotate(-1.5deg); }
  to   { transform: translate(1.6rem, -1.8rem) rotate(1.5deg); }
}
@media (max-width: 860px) { .w2, .w3, .w5, .w6 { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) 0; }
.hero-copy { max-width: 72rem; margin: 0 auto; }
.lede { margin-top: 1.4rem; max-width: var(--measure); font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--slate); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.fine { margin-top: 1rem; font-size: .92rem; color: var(--slate); }

.stage-wrap { max-width: 72rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.stage-wrap figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; color: var(--slate); font-size: .95rem; }
.replay {
  font: 500 .9rem var(--font); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .4rem .95rem; cursor: pointer;
}
.replay:hover { border-color: #B9C2D0; }

/* The simulated desktop. Everything inside is sized in cqw so it scales as one picture. */
.stage {
  position: relative; container-type: inline-size;
  aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  border-radius: clamp(12px, 1.6vw, 22px);
  box-shadow: 0 0 0 1px rgba(20,22,27,.08), 0 40px 80px -40px rgba(23,38,70,.45), 0 12px 30px -18px rgba(23,38,70,.35);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.wallpaper {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 18% 20%, #9DB8E8 0%, transparent 60%),
    radial-gradient(55% 70% at 85% 80%, #6B86C9 0%, transparent 60%),
    radial-gradient(40% 50% at 70% 15%, #C9D7F2 0%, transparent 70%),
    linear-gradient(160deg, #B7C8E6, #5E78B8);
}
.wallpaper::after { /* taskbar */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.6cqw;
  background: rgba(236,240,247,.86); border-top: 1px solid rgba(255,255,255,.6);
}

.win {
  position: absolute; border-radius: .9cqw; overflow: hidden;
  background: #1D1F24; color: #D5DAE3;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2.2cqw 4cqw -1.2cqw rgba(10,20,45,.55);
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.titlebar {
  display: flex; align-items: center; gap: .7cqw; height: 2.8cqw; padding: 0 1cqw;
  background: #2A2D33; font: 500 1.05cqw var(--font); color: #AEB5C2;
}
.tdot { width: .8cqw; height: .8cqw; border-radius: 50%; background: #8E96A4; }
.tdot.blue { background: var(--blue); }
.tctl { margin-left: auto; width: 5cqw; height: .5cqw; border-radius: 1cqw; background: linear-gradient(90deg, #555b66 0 26%, transparent 26% 37%, #555b66 37% 63%, transparent 63% 74%, #555b66 74%); opacity: .7; }

.term { left: 4%; top: 6%; width: 50%; height: 64%; z-index: 2; }
.log, .pip-log {
  margin: 0; padding: 1cqw 1.2cqw; overflow: hidden;
  font: 400 1.02cqw/1.55 var(--mono); color: #C9D1DE; white-space: pre;
}
.log { height: calc(100% - 2.8cqw); display: flex; flex-direction: column; justify-content: flex-end; }
.log .l, .pip-log .l { display: block; }
.l.dim { color: #7D8696; }
.l.ok { color: #5BE584; }
.l.warn { color: #F5C451; }
.l.hi { color: #fff; }

.editor { left: 28%; top: 13%; width: 66%; height: 72%; z-index: 1; background: #1A1C21; }
.editor.front { z-index: 3; }
.term.back { filter: brightness(.82); }
.code { display: flex; height: calc(100% - 2.8cqw); }
.gutter { width: 3.2cqw; background: #1E2026; border-right: 1px solid #262931; }
.code pre { margin: 0; padding: 1.1cqw 1.4cqw; font: 400 1.05cqw/1.65 var(--mono); color: #C9D1DE; white-space: pre; overflow: hidden; }
.k { color: #7FB4FF; } .s { color: #9BE3A6; } .c { color: #6B7384; } .f { color: #F0C674; }
.caret { display: inline-block; width: .12cqw; height: 1.3cqw; background: #E6E9EF; vertical-align: -.2cqw; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* picker */
.picker { position: absolute; inset: 0; z-index: 6; background: rgba(8,12,22,.42); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.picker.on { opacity: 1; }
.sel {
  position: absolute; border: .2cqw solid var(--blue); border-radius: .7cqw;
  background: rgba(10,132,255,.08); box-shadow: 0 0 0 100cqw rgba(8,12,22,.0);
  opacity: 0;
}
.sel-size {
  position: absolute; right: 0; top: calc(100% + .6cqw);
  font: 600 .95cqw var(--font); color: #fff; background: var(--blue);
  padding: .25cqw .6cqw; border-radius: .5cqw; white-space: nowrap;
}
.picker-tip {
  position: absolute; left: 50%; top: 3%; transform: translateX(-50%);
  font: 500 1.15cqw var(--font); color: #fff; background: rgba(30,30,33,.94);
  padding: .8cqw 1.4cqw; border-radius: 1cqw; box-shadow: 0 .8cqw 2cqw -.6cqw rgba(0,0,0,.5);
}

/* the floating preview */
.pip {
  position: absolute; z-index: 8; left: 0; top: 0; width: 28%; height: 14%;
  border-radius: .9cqw; overflow: hidden; background: #1D1F24;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1.5px rgba(0,0,0,.4), 0 1.8cqw 3.4cqw -1cqw rgba(5,12,30,.6);
  opacity: 0; cursor: grab; will-change: transform;
}
.pip.dragging { cursor: grabbing; }
.pip-log { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; font-size: 1.02cqw; padding: .6cqw 1cqw; }
.pip-dot {
  position: absolute; right: .9cqw; bottom: .9cqw; width: .75cqw; height: .75cqw; border-radius: 50%;
  background: #8E96A4; opacity: 0; transition: background-color .3s, opacity .3s;
}
.pip-dot.on { opacity: 1; }
.pip-dot.live { background: var(--signal); box-shadow: 0 0 0 0 rgba(48,209,88,.6); animation: pulse 1.1s var(--ease) infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 .9cqw rgba(48,209,88,0); } }
.pip-hint {
  position: absolute; left: 50%; top: .7cqw; transform: translateX(-50%);
  font: 500 .95cqw var(--font); color: #fff; background: rgba(28,28,31,.88);
  padding: .3cqw .8cqw; border-radius: .6cqw; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.pip-hint.on { opacity: 1; }
.pip.glow { animation: glow 1.6s var(--ease); }
@keyframes glow {
  20%, 60% { box-shadow: 0 0 0 .25cqw var(--blue), 0 1.8cqw 3.4cqw -1cqw rgba(5,12,30,.6); }
  40%, 80% { box-shadow: 0 0 0 1.5px rgba(0,0,0,.4), 0 1.8cqw 3.4cqw -1cqw rgba(5,12,30,.6); }
}

.keys {
  position: absolute; z-index: 9; left: 50%; bottom: 8%; transform: translate(-50%, 1cqw);
  display: flex; gap: .5cqw; opacity: 0; transition: opacity .25s, transform .35s var(--spring);
}
.keys.on { opacity: 1; transform: translate(-50%, 0); }
.keys kbd {
  font: 600 1.25cqw var(--font); color: var(--ink); background: #fff;
  padding: .55cqw 1cqw; border-radius: .6cqw; box-shadow: 0 .25cqw 0 #B7C1D1, 0 .8cqw 1.6cqw -.6cqw rgba(0,0,0,.35);
}

.toast {
  position: absolute; z-index: 9; right: 2.2%; top: 4%;
  display: flex; gap: 1cqw; align-items: center; width: 27cqw;
  padding: 1.1cqw 1.3cqw; border-radius: 1cqw;
  background: rgba(248,250,253,.94); color: var(--ink); backdrop-filter: blur(10px);
  box-shadow: 0 1.4cqw 3cqw -1cqw rgba(10,20,45,.45);
  opacity: 0; transform: translateX(3cqw); transition: opacity .35s var(--ease), transform .5s var(--spring);
}
.toast.on { opacity: 1; transform: none; }
.toast-icon { flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: .6cqw; background: linear-gradient(180deg, #409CFF, #0A5CE6); }
.toast strong { display: block; font-size: 1.15cqw; font-weight: 600; }
.toast span { display: block; font-size: 1cqw; color: var(--slate); }

.cursor {
  position: absolute; z-index: 10; left: 0; top: 0; width: 1.9cqw; height: 1.9cqw;
  fill: #fff; stroke: #111; stroke-width: 1.4px; filter: drop-shadow(0 .2cqw .3cqw rgba(0,0,0,.35));
  opacity: 0; pointer-events: none; will-change: transform;
}

/* ---------- shared section rhythm ---------- */
.watch, .showcase, .details, .compare, .pricing, .faq, .closer {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-inline: max(var(--gutter), calc((100% - 72rem) / 2));
}

/* ---------- showcase ---------- */
.showcase > h2 { max-width: 18ch; }
.show-row {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(3rem, 7vw, 5.5rem);
}
.show-row.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.show-row.flip .show-copy { order: 2; }
.show-copy h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.12; letter-spacing: -.02em; }
.show-copy p { margin-top: .9rem; color: var(--slate); max-width: 34rem; }
.show-copy .show-use { margin-top: 1.2rem; color: var(--blue-deep); font-weight: 600; font-size: .95rem; }
.show-copy kbd { font-size: .78rem; padding: .16rem .45rem; }

.scene {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 22px);
  background:
    radial-gradient(70% 90% at 15% 15%, #A9C3EE 0%, transparent 60%),
    radial-gradient(60% 80% at 90% 90%, #7D93D0 0%, transparent 60%),
    linear-gradient(155deg, #C3D2EC, #6F86C2);
  box-shadow: 0 0 0 1px rgba(20,22,27,.07), 0 34px 70px -40px rgba(23,38,70,.55);
}
.scene * { animation-play-state: paused; }
.scene.play * { animation-play-state: running; }

.sc-win {
  position: absolute; left: 6%; top: 9%; width: 70%; height: 64%;
  border-radius: 1.4cqw; overflow: hidden; background: #1C1E23;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 3cqw 6cqw -2cqw rgba(10,20,45,.55);
}
.sc-bar { display: flex; align-items: center; gap: 1cqw; height: 4.4cqw; padding: 0 1.6cqw; background: #2A2D33; color: #AEB5C2; font: 500 1.6cqw var(--font); }
.sc-bar span { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #E9A23B; }
.sc-body { position: relative; height: calc(100% - 4.4cqw); padding: 2.4cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.sc-body::before { /* the clip being exported */
  content: ""; height: 14cqw; border-radius: 1cqw;
  background: radial-gradient(40% 70% at 70% 30%, #FFD38A 0%, transparent 70%), linear-gradient(180deg, #F08A5D 0%, #B8476A 55%, #3B2A5A 100%);
  width: 38%; align-self: center;
}
.sc-timeline { display: grid; grid-template-columns: 2fr 1fr 3fr 1.4fr 2fr 1fr; gap: .6cqw; height: 6.4cqw; }
.sc-timeline i { border-radius: .8cqw; background: linear-gradient(180deg, #4B6FD6, #33499B); }
.sc-timeline i:nth-child(2n) { background: linear-gradient(180deg, #2FB3A6, #1E7A72); }
.sc-timeline i:nth-child(3) { background: linear-gradient(180deg, #C66AD8, #7D3F92); }
.sc-progress {
  position: absolute; left: 2.4cqw; right: 2.4cqw; bottom: 2.6cqw; height: 5cqw;
  display: flex; align-items: center; gap: 1.6cqw;
}
.sc-progress::before { content: ""; position: absolute; left: 0; right: 13cqw; height: 1.4cqw; border-radius: 1cqw; background: #3A3F49; }
.sc-progress b { position: relative; height: 1.4cqw; width: 0; border-radius: 1cqw; background: var(--blue); flex: none; animation: fill 7s var(--ease) infinite; }
.sc-progress em { margin-left: auto; font: 500 1.5cqw var(--font); font-style: normal; color: #AEB5C2; }
@keyframes fill { 0% { width: 18cqw; } 100% { width: 42cqw; } }

.sc-select {
  position: absolute; left: 7.4cqw; top: 37cqw; width: 67.5cqw; height: 7cqw;
  border: .3cqw solid var(--blue); border-radius: 1cqw; background: rgba(10,132,255,.1);
  transform-origin: left top; opacity: 0;
  animation: select 7s var(--ease) infinite;
}
.sc-select span {
  position: absolute; right: 0; top: calc(100% + .8cqw); padding: .3cqw .8cqw; border-radius: .7cqw;
  background: var(--blue); color: #fff; font: 600 1.3cqw var(--font);
}
@keyframes select {
  0%, 12% { opacity: 0; transform: scaleX(.05); }
  16% { opacity: 1; transform: scaleX(.05); }
  32% { opacity: 1; transform: scaleX(1); }
  40% { opacity: 1; transform: scaleX(1); }
  46%, 100% { opacity: 0; transform: scaleX(1); }
}

.sc-mini {
  position: absolute; border-radius: 1.2cqw; overflow: hidden; background: #1C1E23;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1.5px rgba(0,0,0,.35), 0 2.6cqw 5cqw -1.6cqw rgba(5,12,30,.6);
}
.sc-mini-bar {
  right: 4%; bottom: 7%; width: 34cqw; height: 7cqw;
  display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.8cqw;
  transform-origin: left top; opacity: 0;
  animation: lift 7s var(--spring) infinite;
}
.sc-mini-bar::before { content: ""; position: absolute; left: 1.8cqw; right: 8.4cqw; height: 1.2cqw; border-radius: 1cqw; background: #3A3F49; }
.sc-mini-bar b { position: relative; height: 1.2cqw; width: 0; border-radius: 1cqw; background: var(--blue); animation: fill-mini 7s var(--ease) infinite; }
.sc-mini-bar em { margin-left: auto; font: 500 1.6cqw var(--mono); font-style: normal; color: #D5DAE3; }
@keyframes fill-mini { 0% { width: 9cqw; } 100% { width: 18cqw; } }
@keyframes lift {
  0%, 40% { opacity: 0; transform: translate(-54.4cqw, -13.6cqw) scale(1.98, 1); }
  44% { opacity: 1; transform: translate(-54.4cqw, -13.6cqw) scale(1.98, 1); }
  62%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* alert scene */
.sc-mini-log {
  left: 8%; top: 22%; width: 52%; padding: 2cqw 2.2cqw 2.4cqw;
  display: flex; flex-direction: column; gap: .5cqw; font: 400 1.7cqw/1.5 var(--mono); color: #C9D1DE;
}
.sc-mini-log .l { white-space: nowrap; opacity: .9; }
.sc-mini-log .l.ok { color: #5BE584; }
.sc-mini-log .l:nth-child(4), .sc-mini-log .l:nth-child(5) { opacity: 0; animation: appear 6s steps(1) infinite; }
.sc-mini-log .l:nth-child(5) { animation-name: appear2; }
@keyframes appear { 0%, 18% { opacity: 0; } 19%, 100% { opacity: 1; } }
@keyframes appear2 { 0%, 26% { opacity: 0; } 27%, 100% { opacity: 1; } }
.sc-dot { position: absolute; right: 1.6cqw; bottom: 1.6cqw; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--signal); animation: dot 6s linear infinite; }
@keyframes dot {
  0%, 30% { background: var(--signal); box-shadow: 0 0 0 0 rgba(48,209,88,.6); }
  15% { box-shadow: 0 0 0 1.4cqw rgba(48,209,88,0); }
  31%, 100% { background: #8E96A4; box-shadow: none; }
}
.sc-toast {
  position: absolute; right: 5%; bottom: 10%; display: flex; gap: 1.6cqw; align-items: center;
  width: 46cqw; padding: 2cqw 2.2cqw; border-radius: 1.6cqw; background: rgba(250,251,253,.97); color: var(--ink);
  box-shadow: 0 2.4cqw 5cqw -1.6cqw rgba(10,20,45,.5);
  opacity: 0; animation: toast 6s var(--spring) infinite;
}
.sc-app { flex: none; width: 4cqw; height: 4cqw; border-radius: 1cqw; background: linear-gradient(180deg, #409CFF, #0A5CE6); }
.sc-toast strong { display: block; font-size: 1.9cqw; font-weight: 600; }
.sc-toast span { display: block; font-size: 1.6cqw; color: var(--slate); }
@keyframes toast {
  0%, 52% { opacity: 0; transform: translateX(6cqw); }
  58%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* ghost scene: real hover */
.sc-doc {
  position: absolute; left: 8%; top: 9%; width: 84%; height: 82%; padding: 5cqw 5.5cqw;
  border-radius: 1.4cqw; background: #FBFCFE; box-shadow: 0 2.4cqw 5cqw -2.4cqw rgba(10,20,45,.45);
  display: flex; flex-direction: column; gap: 2cqw;
}
.sc-doc i { display: block; height: 1.6cqw; border-radius: 1cqw; background: #E1E6EF; width: 92%; }
.sc-btn {
  align-self: flex-start; margin: 1cqw 0; padding: 1.4cqw 3.2cqw; border-radius: 99cqw;
  background: var(--blue); color: #fff; font: 600 1.9cqw var(--font); transition: transform .2s var(--spring), background-color .2s;
}
.sc-mini-chart {
  left: 10%; top: 38%; width: 46%; height: 30%; padding: 2cqw;
  transition: opacity .14s var(--ease), transform .2s var(--ease); cursor: default;
}
.sc-mini-chart svg { width: 100%; height: 100%; }
.sc-mini-chart polyline { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.scene-ghost:hover .sc-mini-chart, .scene-ghost.peek .sc-mini-chart { opacity: 0; transform: scale(.98); }
.scene-ghost:hover .sc-btn, .scene-ghost.peek .sc-btn { transform: scale(1.04); background: var(--blue-deep); }

/* gallery scene */
.sc-sheet {
  position: absolute; inset: 7% 6%; padding: 3cqw; border-radius: 1.8cqw;
  background: rgba(36,37,41,.88); color: #F2F4F8;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 3cqw 6cqw -2cqw rgba(10,20,45,.6);
}
.sc-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sc-sheet-head strong { font-size: 2.6cqw; font-weight: 600; }
.sc-search { width: 22cqw; height: 3.6cqw; border-radius: 1cqw; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; margin-top: 2.6cqw; }
.sc-card { padding: 1.2cqw; border-radius: 1.4cqw; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 .2cqw transparent; animation: pick 8s steps(1) infinite; }
.sc-card:nth-child(2) { animation-delay: -6s; }
.sc-card:nth-child(3) { animation-delay: -4s; }
.sc-card:nth-child(4) { animation-delay: -2s; }
@keyframes pick { 0%, 24.9% { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .25cqw var(--blue); } 25%, 100% { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 .2cqw transparent; } }
.sc-card span { display: block; margin-top: 1cqw; font-size: 1.5cqw; color: #C9CED8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-thumb { height: 14cqw; border-radius: 1cqw; background: #16181C; position: relative; overflow: hidden; }
.t-code { background: repeating-linear-gradient(180deg, transparent 0 1.2cqw, rgba(127,180,255,.55) 1.2cqw 1.9cqw, transparent 1.9cqw 2.6cqw) 2cqw 1.6cqw / 60% 100% no-repeat, #16181C; }
.t-chart::after { content: ""; position: absolute; inset: 2cqw; background: linear-gradient(transparent 60%, rgba(48,209,88,.35)), linear-gradient(160deg, transparent 48%, var(--signal) 49% 51%, transparent 52%); }
.t-chat { background: radial-gradient(circle at 18% 30%, #F0C674 0 1.4cqw, transparent 1.5cqw), linear-gradient(#3B4252, #3B4252) 26% 26% / 50% 1.6cqw no-repeat, radial-gradient(circle at 18% 68%, #7FB4FF 0 1.4cqw, transparent 1.5cqw), linear-gradient(#3B4252, #3B4252) 26% 66% / 40% 1.6cqw no-repeat, #16181C; }
.t-term { background: repeating-linear-gradient(180deg, transparent 0 1.1cqw, rgba(201,209,222,.35) 1.1cqw 1.7cqw, transparent 1.7cqw 2.3cqw) 2cqw 1.4cqw / 70% 70% no-repeat, linear-gradient(#5BE584, #5BE584) 2cqw 85% / 30% .7cqw no-repeat, #16181C; }

/* ---------- details ---------- */
.details-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.details-head p { color: var(--slate); max-width: var(--measure); justify-self: end; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); margin: 2.6rem 0 0; }
.detail-grid > div { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.detail-grid dt { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: 1.08rem; }
.detail-grid dd { margin: .5rem 0 0; color: var(--slate); }
.ic { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: rgba(10,132,255,.1); color: var(--blue); }
.ic svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shortcuts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 3rem; padding: 1.6rem; border-radius: 18px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20,22,27,.05);
}
.shortcuts > div { display: flex; flex-direction: column; gap: .7rem; color: var(--slate); font-size: .95rem; }
.kc { display: flex; gap: .3rem; }
kbd {
  font: 600 .82rem var(--font); color: var(--ink); background: #fff;
  padding: .28rem .55rem; border-radius: 7px; box-shadow: 0 2px 0 #C6CEDA, 0 0 0 1px #DCE2EA;
}

/* ---------- pricing ---------- */
.pricing { text-align: left; }
.pricing-sub { margin-top: 1rem; color: var(--slate); max-width: var(--measure); }
.plans { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.25rem; margin-top: 2.6rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: 22px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20,22,27,.06);
}
.plan h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; }
.tag { font: 600 .78rem var(--font); letter-spacing: 0; color: var(--blue); background: rgba(10,132,255,.1); padding: .25rem .6rem; border-radius: 999px; }
.price span { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; }
.price s { margin-left: .5rem; color: var(--slate); font-size: 1.2rem; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 1.7rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: .55rem;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) scale(.8);
}
.plan .btn { align-self: flex-start; }
.plan-pro { background: #fff; box-shadow: 0 0 0 1.5px var(--blue), 0 30px 60px -38px rgba(10,80,200,.55); }
.plan-note { font-size: .88rem; color: var(--slate); }

/* ---------- faq ---------- */
.faq h2 { margin-bottom: 1.8rem; }
.faq details { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--spring);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--slate); max-width: 62ch; }
.faq details[open] p { animation: open .35s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- footer ---------- */
.footer {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center;
  margin: clamp(5rem, 10vw, 8rem) max(var(--gutter), calc((100% - 72rem) / 2)) 0; padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; gap: .8rem; align-items: center; }
.footer-brand span:not(.brand-mark span) { display: block; color: var(--slate); font-size: .92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer nav a { color: var(--slate); text-decoration: none; font-size: .95rem; }
.footer nav a:hover { color: var(--ink); }
.copy { grid-column: 1 / -1; color: var(--slate); font-size: .85rem; }

/* Wide screens: the demo sits beside the headline so it's visible on load. */
@media (min-width: 1100px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2.5rem, 4vw, 4.5rem);
    align-items: center; max-width: 86rem; margin: 0 auto; padding-top: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero h1 { font-size: clamp(2.6rem, 3.9vw, 3.9rem); }
  .hero-copy { margin: 0; }
  .stage-wrap { margin: 0; }
}

/* ---------- closer ---------- */
.closer-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(150deg, #13254D 0%, #0D1730 55%, #1A1640 100%); color: #fff;
  box-shadow: 0 40px 80px -45px rgba(13,23,48,.8);
}
.closer-glow {
  position: absolute; z-index: -1; width: 70%; height: 140%; right: -15%; top: -40%;
  background: radial-gradient(closest-side, rgba(10,132,255,.55), rgba(10,132,255,.15) 55%, transparent);
}
.closer h2 { max-width: 17ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.closer p { margin-top: 1rem; color: rgba(255,255,255,.72); max-width: 32rem; }
.closer .cta-row { margin-top: 2rem; }
.closer-mini {
  position: absolute; right: clamp(1.5rem, 5vw, 4rem); top: clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: .2rem; padding: .9rem 2.6rem .9rem 1rem;
  border-radius: 12px; background: #1C1E23; font: 400 .82rem/1.5 var(--mono); color: #C9D1DE;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -20px rgba(0,0,0,.7);
  transform: rotate(2deg);
}
.closer-mini .ok { color: #5BE584; }
.closer-mini i { position: absolute; right: .8rem; bottom: .8rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--signal); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.btn-light:hover { background: #EAF2FF; }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .show-row, .show-row.flip { grid-template-columns: 1fr; }
  .show-row.flip .show-copy { order: 0; }
  .details-head { grid-template-columns: 1fr; }
  .details-head p { justify-self: start; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .closer-mini { display: none; }
  .shortcuts { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .stage-wrap figcaption { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
@media (max-width: 480px) {
  .shortcuts { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- legal pages ---------- */
.doc { max-width: 42rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 0; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); max-width: none; }
.doc .updated { margin-top: .6rem; color: var(--slate); font-size: .92rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.doc p { margin-top: .8rem; line-height: 1.65; }
.doc code { font: 500 .9em var(--mono); background: var(--paper); padding: .1em .35em; border-radius: 5px; }
.doc + .footer { margin-top: 4rem; }

/* ---------- thank-you page ---------- */
.thanks { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0; }
.thanks h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18ch; }
.thanks .lede { margin-top: 1rem; }
.thanks .cta-row { margin-top: 1.6rem; }
.thanks-badge {
  display: block; width: 3.4rem; height: 3.4rem; margin-bottom: 1.6rem; border-radius: 1rem;
  background: linear-gradient(180deg, #4ADE80, #22A559); position: relative;
  box-shadow: 0 16px 34px -16px rgba(34,165,89,.8);
}
.thanks-badge::after {
  content: ""; position: absolute; left: 1.05rem; top: .95rem; width: 1.3rem; height: .7rem;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.keybox {
  display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; padding: .7rem .7rem .7rem 1.1rem;
  border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--line);
}
.keybox code { flex: 1; font: 500 1.02rem var(--mono); overflow-wrap: anywhere; user-select: all; }
.steps { margin: 2.4rem 0 0; padding-left: 1.2rem; color: var(--slate); display: grid; gap: .5rem; }
.thanks + .footer { margin-top: 5rem; }

/* ---------- demo film ---------- */
.watch-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: end; }
.watch-head h2 { max-width: 20ch; }
.watch-head p { color: var(--slate); max-width: var(--measure); justify-self: end; }
.watch-film {
  display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 2.4rem; border-radius: 22px;
  background: #0E1014; box-shadow: 0 30px 60px -30px rgba(20,22,27,.45), 0 0 0 1px rgba(20,22,27,.08);
}

/* ---------- compare ---------- */
.compare h2 { max-width: 22ch; }
.compare-wrap { margin-top: 2.4rem; overflow-x: auto; border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px rgba(20,22,27,.06); }
.compare-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .98rem; }
.compare-table th, .compare-table td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font-weight: 600; font-size: .9rem; color: var(--slate); }
.compare-table tbody th { font-weight: 500; }
.compare-table .us { background: rgba(10,132,255,.06); color: var(--ink); font-weight: 600; }
.compare-table thead .us { color: var(--blue-deep); }
.compare-table .y::before, .compare-table .n::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem; border-radius: 50%; vertical-align: .08em; }
.compare-table .y::before { background: var(--signal); }
.compare-table .n { color: var(--slate); }
.compare-table .n::before { background: #C3CAD5; }
.compare-note { margin-top: 1rem; font-size: .9rem; color: var(--slate); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .watch-head { grid-template-columns: 1fr; }
  .watch-head p { justify-self: start; }
}
