/* Integrations, night slider, control panel, phone, FAQ. */

/* logo marquee */
.mq { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 100%; overflow: hidden; margin-top: 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-row { display: flex; gap: 14px; width: max-content; animation: marq 70s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 80s; }
.mq:hover .mq-row { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.tile { width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 24%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.tile svg { width: 56%; height: 56%; }
.mq-note { margin-top: 26px; font-size: 14px; color: var(--k-fg-2); text-align: center; }

/* legacy software demo */
.legacy { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(72px, 10vw, 120px); }
.legacy .title { color: var(--k-fg); }
.legacy p { margin: 16px 0 24px; color: var(--k-fg-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; }
.lg-stage { position: relative; display: grid; border-radius: 26px; background: linear-gradient(160deg, #0b5e5e, #052f2f); padding: clamp(18px, 3vw, 34px); min-height: clamp(330px, 34vw, 400px); align-items: center; overflow: hidden; }
.lg-stage.api { background: radial-gradient(80% 80% at 50% 50%, #18243e, #0b0d14); }
.lg-mode { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.lg-mode[hidden] { display: block !important; opacity: 0; visibility: hidden; transform: scale(.97); }
.lg-win { position: relative; }
.play .lg-win .ptr { animation: ptrPath 8s var(--ease) infinite; }
@keyframes ptrPath { 0% { left: 92%; top: 96%; } 12%, 16% { left: 40%; top: 24%; } 28%, 32% { left: 86%; top: 24%; } 44%, 48% { left: 46%; top: 55%; } 62%, 80% { left: 82%; top: 90%; } 100% { left: 92%; top: 96%; } }
.lg-win .typed { display: inline-block; }
.play .lg-win .typed { animation: typeLoop 8s steps(9, end) infinite; }
@keyframes typeLoop { 0%, 14% { clip-path: inset(0 100% 0 0); } 26%, 100% { clip-path: inset(0 0 0 0); } }
.play .lg-win .hit { animation: hitLoop 8s infinite; }
@keyframes hitLoop { 0%, 46% { background: transparent; color: #000; } 47%, 100% { background: #000080; color: #fff; } }
.play .lg-win .dim { animation: dimLoop 8s infinite; }
@keyframes dimLoop { 0%, 31% { opacity: 1; } 32%, 100% { opacity: .35; } }
.lg-win .prog i { width: 100%; }
.play .lg-win .prog i { animation: progLoop 8s infinite; }
@keyframes progLoop { 0%, 63% { width: 0; } 78%, 100% { width: 100%; } }
.lg-win .dlg { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(300px, 80%); }
.play .lg-win .dlg { animation: dlgLoop 8s infinite; }
@keyframes dlgLoop { 0%, 79% { opacity: 0; visibility: hidden; } 81%, 97% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
.flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; color: #f5f5f7; }
.node { width: clamp(72px, 9vw, 96px); aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.node.aios { background: #000; color: #fff; font-weight: 700; letter-spacing: -.04em; font-size: clamp(16px, 2vw, 20px); box-shadow: 0 0 0 2px rgba(255, 255, 255, .1), 0 0 40px rgba(120, 90, 255, .6); }
.node svg { width: 56%; }
.wire { position: relative; height: 2px; margin-inline: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .35)); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #64d2ff; box-shadow: 0 0 12px #64d2ff; animation: pkt 1.8s linear infinite; }
.wire i:nth-child(2) { animation-delay: .6s; } .wire i:nth-child(3) { animation-delay: 1.2s; }
@keyframes pkt { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.flow-res { grid-column: 1 / -1; justify-self: center; margin-top: 30px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.flow-res small { color: #86868b; }

/* night slider */
.sky { position: relative; overflow: hidden; margin-top: 52px; border-radius: 32px; min-height: clamp(560px, 52vw, 640px); background: linear-gradient(180deg, var(--s1, #050816), var(--s2, #1a2350)); color: #fff; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr minmax(0, 380px); grid-template-rows: 1fr auto; gap: 28px; transition: background .6s ease; }
.sky .stars { opacity: var(--st, 1); transition: opacity .6s ease; }
.orb { position: absolute; width: 90px; height: 90px; border-radius: 50%; left: var(--ox, 70%); top: var(--oy, 18%); background: var(--oc, #f4f1e6); box-shadow: 0 0 80px 20px var(--og, rgba(244, 241, 230, .35)); transform: translate(-50%, -50%); transition: left .4s ease, top .4s ease, background .6s, box-shadow .6s; }
.sky-time { position: relative; z-index: 1; align-self: start; }
.sky-time .t { font-size: clamp(72px, 11vw, 140px); font-weight: 600; letter-spacing: -.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.sky-time .p { margin-top: 8px; font-size: clamp(19px, 2vw, 24px); font-weight: 600; opacity: .85; }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.who span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 500; }
.who i { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; }
.who .on i { background: #30d158; box-shadow: 0 0 10px #30d158; }
.feed { position: relative; align-self: end; border-radius: 24px; padding: 18px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.feed h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; opacity: .75; letter-spacing: .02em; text-transform: uppercase; }
.fev { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; line-height: 1.3; animation: anIn .5s var(--ease) both; }
.fev .tile { width: 36px; box-shadow: none; border-radius: 9px; }
.fev time { margin-left: auto; opacity: .7; font-variant-numeric: tabular-nums; font-size: 13px; }
.feed .cnt { margin-top: 10px; font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }
.sky-ctl { grid-column: 1 / -1; position: relative; }
.sky-ctl .range { --fill: #fff; height: 4px; background: linear-gradient(90deg, #fff var(--p, 13%), rgba(255, 255, 255, .28) var(--p, 13%)); }
.ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; text-align: center; }
.stat .n { display: block; font-size: clamp(56px, 8vw, 96px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { display: block; margin-top: 10px; font-size: clamp(15px, 1.5vw, 19px); color: var(--fg-2); font-weight: 500; }

/* control panel */
.ctrl { display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px; margin-top: 56px; align-items: start; }
.ctrl .app { box-shadow: 0 24px 70px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .05); }
.set-h { margin: 1.2em 0 .5em .9em; color: #6e6e73; font-size: .8em; text-transform: uppercase; letter-spacing: .04em; }
.set-row .range { margin-top: .7em; }
.seg.mini { background: #e3e3e8; }
.seg.mini button { padding: .35em .8em; font-size: .85em; color: #1d1d1f; }
.seg.mini .thumb { background: #fff; }
.pause { width: 100%; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: #ff3b30; font-weight: 600; }
.pv { display: grid; grid-template-columns: 2.4em 1fr; gap: .2em .9em; align-items: center; padding: .9em 0; border-top: 1px solid #ececf0; }
.pv svg { width: 2.4em; height: 2.4em; grid-row: span 2; }
.pv b { font-weight: 600; }
.pv .pl { justify-self: start; transition: background .3s, color .3s; }
.paused-banner { display: none; margin-top: 1em; padding: .8em 1em; border-radius: .9em; background: #fff1f0; color: #c4251c; font-weight: 600; }
.is-paused .paused-banner { display: block; }
.log { margin-top: 1.4em; }
.log .lr { display: flex; gap: .8em; padding: .45em 0; font-size: .9em; color: #48484d; font-variant-numeric: tabular-nums; }
.log time { color: #8e8e93; width: 3.2em; flex: none; }

/* phone lock screen */
.phone-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.iphone { position: relative; width: min(340px, 84vw); aspect-ratio: 9 / 19.3; margin-inline: auto; padding: 11px; border-radius: 58px; background: #1d1d1f; box-shadow: 0 0 0 2px #3a3a3c, 0 50px 120px rgba(0, 0, 0, .55); }
.scr { position: relative; height: 100%; border-radius: 47px; overflow: hidden; background: radial-gradient(80% 50% at 20% 20%, #5b3cc4 0%, transparent 70%), radial-gradient(70% 50% at 90% 60%, #d1416a 0%, transparent 70%), radial-gradient(80% 60% at 30% 100%, #0a84ff 0%, transparent 70%), #120c24; color: #fff; }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 34%; height: 30px; border-radius: 20px; background: #000; z-index: 3; }
.sbar { display: flex; justify-content: space-between; padding: 16px 30px 0; font-size: 14px; font-weight: 600; }
.lock-d { margin-top: 30px; text-align: center; font-size: 17px; font-weight: 500; opacity: .9; }
.lock-t { text-align: center; font-size: 84px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stack { position: absolute; left: 10px; right: 10px; bottom: 26px; display: grid; gap: 8px; font-size: 14px; }
.stack .noti { cursor: pointer; transition: transform .4s var(--ease); text-align: left; border: 0; font: inherit; width: 100%; }
.stack .noti:active { transform: scale(.98); }
.noti .more-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.noti .more-a > div { overflow: hidden; }
.noti.open .more-a { grid-template-rows: 1fr; }
.noti .acts button { padding: .7em; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .92); font-weight: 600; color: #0071e3; cursor: pointer; }
.noti.done { background: rgba(229, 246, 236, .92); }
.noti .okline { display: none; margin-top: .35em; color: #13703b; font-weight: 600; }
.noti.done .okline { display: block; }
.noti.done .body, .noti.done .more-a { display: none; }
.noti.new { animation: anIn .5s var(--ease) both; }
.replay { margin-top: 26px; text-align: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 30px; line-height: .8; transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; max-width: 760px; color: var(--fg-2); font-size: 17px; line-height: 1.5; }

@media (max-width: 833px) {
  .legacy, .ctrl, .phone-wrap { grid-template-columns: 1fr; }
  .phone-wrap .copy { text-align: center; order: -1; }
  .sky { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .feed { align-self: stretch; }
  .hl-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .stats { gap: 8px; margin-top: 48px; }
  .stat .n { font-size: clamp(40px, 12vw, 56px); }
  .stat .l { font-size: 13px; line-height: 1.3; }
  .orb { width: 64px; height: 64px; }
}
