/* The painted world behind the page: one landscape that stays with the reader from the hero to
   the end, while the sky turns from morning to night. The sections sit on top of it. */
:root{--ink:#0f2140;--ink-2:#33476a;--ink-3:#5a6d8e;--moon:#eef2fb;--moon-2:#c3cde6;--moon-3:#97a6c8;--night:#0b1534;--night-card:#111c44d6;--link:#4f46e5;--link-night:#b4bfff;--ease-soft:cubic-bezier(.22,.8,.24,1)}
html{background:#dbe6f7}
body{background:transparent;color:var(--ink)}

/* ---------- The world ---------- */
.world{position:fixed;left:0;top:0;width:100%;height:100vh;height:100lvh;z-index:0;overflow:hidden;pointer-events:none;contain:strict}
/* Big gradients are drawn small and scaled up, so they cost almost nothing to keep on screen. */
.sky i,.veil-day,.veil-dusk{position:absolute;left:0;top:0;width:12.5%;height:12.5%;transform:scale(8);transform-origin:0 0;will-change:opacity}
.sky-dawn{background:linear-gradient(#bfd1ef,#d4e0f4 40%,#eee6ec 72%,#f8e4da)}
.sky-day{opacity:0;background:linear-gradient(#a6c1ec,#c6d7f3 50%,#e2eaf8 85%,#ecf0f9)}
.sky-dusk{opacity:0;background:linear-gradient(#8e98cc,#b49ac0 36%,#eba897 68%,#f8c9a2)}
.sky-night{opacity:0;background:linear-gradient(#040a20,#0a1434 45%,#152454 80%,#1f3165)}
.stars{position:absolute;left:50%;top:0;width:max(100%,1600px);height:auto;transform:translateX(-50%);opacity:0;will-change:opacity}
.orb-glow{position:absolute;left:0;top:0;width:760px;height:760px;margin:-380px 0 0 -380px;border-radius:50%;background:radial-gradient(closest-side,#ffc69bb3,#ffcfa866 38%,#ffd9b81f 70%,transparent);will-change:transform,opacity}
.scene{position:absolute;left:50%;bottom:-4vh;width:calc(max(100vw,177.78vh) + 80px);aspect-ratio:16/9;transform:translateX(-50%)}
@media(orientation:portrait){.scene{width:calc(max(100vw,100vh) + 40px);bottom:-2vh}}
.ly{position:absolute;left:0;width:100%;height:auto;max-width:none;will-change:transform;transition:opacity 1.2s ease}
.ly-clouds{top:8%}.ly-far{top:45.6%}.ly-mid{top:38.2%}.ly-lake{top:80.1%}.ly-near{top:55.9%}.ly-front{top:68.4%}.ly-fog{top:88.2%}
.has-world .ly:not(.is-ready){opacity:0}
.veil{position:absolute;inset:0;opacity:0}
.veil-day{background:linear-gradient(#eef3fb00 18%,#eef3fba6 52%,#eef3fbd9 78%,#eef3fbeb)}
.veil-dusk{background:linear-gradient(#f3a98a00 15%,#e9988a38 50%,#a8789e66)}
.veil-night{background:linear-gradient(#0a143300 22%,#0a1433 50%);will-change:opacity}
.scene,.veil{z-index:2}.orb{z-index:3}.orb-low .orb{z-index:1}
.orb{position:absolute;left:0;top:0;width:46px;height:46px;margin:-23px 0 0 -23px;will-change:transform,opacity;transition:opacity .45s ease}
.orb i{position:absolute;inset:0;border-radius:50%;transition:transform .2s ease}
.orb-sun{background:radial-gradient(circle at 64% 30%,#fff3cf 0,#ffc04d 18%,#ff8a14 48%,#f2560a 82%,#e8480a 100%);box-shadow:0 0 0 3px #fffaf2e6,0 0 18px 6px #ffb86a99,0 0 70px 26px #ffa45a40}
.orb-dusk{opacity:0;background:radial-gradient(circle at 60% 34%,#ffe2b8 0,#ff9a5c 30%,#f0603a 70%,#d8432c);box-shadow:0 0 0 3px #ffe9dccc,0 0 26px 10px #ff8a5c99,0 0 110px 44px #ff8a5c4d}
.orb-moon{opacity:0;background:radial-gradient(circle at 34% 62%,#cdd5ea 0 11%,transparent 12%),radial-gradient(circle at 60% 30%,#d6ddef 0 8%,transparent 9%),radial-gradient(circle at 68% 64%,#d2d9ec 0 6%,transparent 7%),radial-gradient(circle at 40% 36%,#ffffff,#eef2fb 50%,#d5ddf0);box-shadow:0 0 0 2px #f4f7ffcc,0 0 22px 6px #c9d6ff66,0 0 90px 30px #8fa8ff33}
/* Over the hero the sun is the pointer, and it shrinks over links and buttons. */
.sun-cursor .landscape-hero,.sun-cursor .site-header{cursor:none}
.sun-cursor .landscape-hero :is(a,button),.sun-cursor .site-header :is(a,button){cursor:pointer}
.sun-on-control .orb-sun{transform:scale(.55)}
main,.site-header,.brand-footer{position:relative;z-index:1}

/* ---------- Hero: the painting itself, nothing on top of it but the words ---------- */
.landscape-hero{margin:0;border:0;border-radius:0;box-shadow:none;background:none;height:100svh;min-height:700px;max-height:none;overflow:visible}
.landscape-hero .centered-brand{top:44%}
.landscape-hero .hero-logo{filter:drop-shadow(0 16px 22px #2f5fb03d)}
.landscape-hero .scene-footer{color:var(--ink);text-shadow:none}
.landscape-hero .scene-scroll{color:var(--ink-2);font-size:13px}
.landscape-hero .scene-toggle{background:#ffffffa6;border-color:#ffffffd9;color:var(--ink-2);font-size:12px;padding:8px 12px}
.landscape-hero .scene-toggle:hover{background:#ffffffd9}
.site-header .nav-cta{background:#ffffffb3}

/* ---------- Type and colour for every section ---------- */
.design-body{background:none}
.section-heading{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px 56px;align-items:end;text-align:left;max-width:none;margin:0 0 56px}
.section-heading h2{font-size:clamp(40px,5vw,72px);line-height:1;letter-spacing:-.045em;font-weight:680;margin:0;color:var(--ink);text-wrap:balance}
.section-heading>p{font-size:18px;line-height:1.6;color:var(--ink-2);margin:0 0 6px;max-width:520px;padding:0}
.feature-copy h2{font-size:clamp(36px,4vw,58px);line-height:1.02;letter-spacing:-.042em;font-weight:680;color:var(--ink);margin:0 0 22px;text-wrap:balance}
.feature-copy p{font-size:18px;line-height:1.65;color:var(--ink-2);max-width:460px}
.feature-copy code{color:#3730a3;background:#ffffffb3}
.feature-points{gap:10px}
.feature-points li{position:relative;display:block;padding-left:20px;font-size:16px;color:var(--ink-2)}
.feature-points li:before{content:'';position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.5}

/* ---------- Tour: the app window is the big thing ---------- */
.walk-section{max-width:1240px;padding-top:150px}
.walk{grid-template-columns:1fr;gap:26px}
.walk-side{order:-1}
.walk-side:before{display:none}
.walk-tools .walk-caption{color:var(--ink-3);font-size:14px}
.walk-stage{border-radius:22px;box-shadow:0 60px 110px -50px #1b2f6e99,0 24px 50px -30px #0f214066,0 0 0 1px #ffffffcc}
.walk-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.walk-step{grid-template-columns:1fr;align-content:start;padding:16px 16px 24px;background:#ffffff59}
.walk-step:hover{background:#ffffffa6}
.walk-step.is-active{background:#fff}
.walk-num{padding:0 0 8px}
.walk-text strong{font-size:16px;line-height:1.3;color:var(--ink-2)}
.walk-step.is-active strong{color:var(--ink)}
.walk-desc{max-height:none;opacity:0;margin-top:6px;font-size:14px;line-height:1.5;color:var(--ink-3)}
.walk-step.is-active .walk-desc{max-height:none;opacity:1}
.walk-progress{left:16px;right:16px;bottom:10px}
@supports (animation-timeline:view()){
 @media(prefers-reduced-motion:no-preference){
  .walk-stage{animation:stage-rise linear both;animation-timeline:view();animation-range:entry 0% cover 40%}
  .feature-visual{animation:drift linear both;animation-timeline:view();animation-range:cover}
 }
}
@keyframes stage-rise{from{transform:perspective(1800px) rotateX(16deg) translateY(50px) scale(.93)}to{transform:none}}
@keyframes drift{from{transform:translateY(46px)}to{transform:translateY(-46px)}}

/* ---------- Feature sections: bigger screens, no panels behind them ---------- */
.feature-rows{padding-bottom:0}
.feature-row{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:72px;padding-top:170px}
.feature-row.is-reverse{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.feature-row .feature-visual,.feature-row:nth-child(n) .feature-visual{background:none;box-shadow:none;padding:0;min-height:0;border-radius:0;overflow:visible}
.feature-visual .shot-frame{border-radius:16px;box-shadow:0 50px 90px -46px #1b2f6e8c,0 0 0 1px #0f21401a}
.feature-visual .shot-frame.is-dialog{box-shadow:none}
.feature-visual .shot-frame.is-dialog img{filter:drop-shadow(0 34px 40px #1b2f6e40) drop-shadow(0 2px 4px #0f21401f)}
.feature-visual .shot-frame.is-tall img{max-height:620px}

/* Menu bar, on a real desktop picture */
.menubar-mock{max-width:640px;border-radius:20px;background:#9fb4dc url(assets/features/menubar-wallpaper.webp) center/cover;box-shadow:0 50px 90px -46px #1b2f6e8c,0 0 0 1px #0f21401a}
.mb-menu{margin:6px 70px 46px auto;transform-origin:88% 0;transition:opacity .45s var(--ease-soft) .25s,transform .55s var(--ease-soft) .25s}
.can-reveal .feature-visual.reveal:not(.is-in) .mb-menu{opacity:0;transform:translateY(-8px) scale(.97)}

/* Quick Connect: the app's search, working with the sample machines */
.qc-wrap{width:100%;max-width:580px}
.qc{border-radius:22px;overflow:hidden;background:#f8fafef5;color:#14213d;box-shadow:0 50px 90px -46px #1b2f6e99,0 0 0 1px #0f21401a;transition:box-shadow .25s}
.qc:focus-within{box-shadow:0 50px 90px -46px #1b2f6e99,0 0 0 1px #0f21401a,0 0 0 4px #818cf880}
.qc-input{display:flex;align-items:center;gap:12px;padding:16px 18px;color:#64748b;border-bottom:1px solid #0f214014;cursor:text}
.qc-input input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px;color:#14213d}
.qc-input input::placeholder{color:#8a97ad}
.qc-esc{font-size:10px;font-weight:700;padding:4px 6px;border-radius:6px;background:#0f21400d}
.qc-results{padding:8px;min-height:260px}
.qc-label{padding:8px 10px 4px;font-size:10.5px;font-weight:700;letter-spacing:1px;color:#64748b}
.qc-list{list-style:none;margin:0;padding:0}
.qc-row{width:100%;display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;text-align:left;color:#64748b;background:transparent;transition:background .15s}
.qc-row:hover,.qc-row.is-current{background:#e0e7ff}
.qc-row:focus-visible{outline:2px solid #6366f1;outline-offset:-2px}
.qc-text{flex:1;min-width:0}
.qc-text b{display:block;font-size:14px;font-weight:620;color:#14213d}
.qc-text small{font-size:12.5px}
.qc-icon{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#4f46e5;background:#e0e7ff}
.qc-row.is-current .qc-icon,.qc-row:hover .qc-icon{background:#fff}
.qc-icon svg{width:17px;height:17px}
.qc-icon .os-mac{fill:currentColor;stroke:none}.qc-icon .os-win{fill:#1e88ff;stroke:none}.qc-icon .os-linux{stroke:none}.qc-icon .os-plus{fill:none;stroke:currentColor;stroke-width:2.2}
.qc-go{width:16px;height:16px;transition:transform .2s,color .2s}
.qc-row.is-current .qc-go,.qc-row:hover .qc-go{color:#4f46e5;transform:translateX(2px)}
.qc-empty{margin:0;padding:10px;font-size:13px;color:#64748b}
.qc-foot{display:flex;gap:16px;padding:10px 18px;font-size:11.5px;color:#64748b;border-top:1px solid #0f214014}
.qc-foot kbd{display:inline-block;min-width:18px;margin-right:3px;padding:1px 5px;border-radius:5px;font:inherit;font-size:11px;text-align:center;background:#fff;box-shadow:0 0 0 1px #0f21401f}
.qc-note{margin:18px 6px 0;min-height:3.2em;font-size:15.5px;line-height:1.55;color:var(--ink-2)}

/* ---------- Dusk: a long breath between day and night ---------- */
.night-rows{padding-top:150vh}
.night-rows .feature-row:first-child{padding-top:0}

/* ---------- Night ---------- */
.is-night{color:var(--moon)}
.is-night h2,.is-night .feature-copy h2,.is-night .section-heading h2{color:#f4f7fd}
.is-night p,.is-night .feature-copy p,.is-night .section-heading>p{color:var(--moon-2)}
.is-night .feature-points li{color:var(--moon-2)}
.is-night .feature-copy code,.is-night code{color:#d4dbff;background:#ffffff14}
.is-night a{color:var(--link-night)}
.is-night .feature-visual .shot-frame.is-dialog img{filter:drop-shadow(0 40px 50px #000000a6) drop-shadow(0 0 1px #ffffff33)}
.night-nav .mini-nav{background:#0d1838d1;border-color:#ffffff1f;box-shadow:0 12px 30px -14px #000c}
.night-nav .mini-brand{color:var(--moon);border-color:#ffffff1f}
.night-nav .mini-links a{color:var(--moon-2)}
.night-nav .mini-links a:hover{background:#ffffff14;color:#fff}
.night-nav .mini-links a[aria-current="true"]{background:#ffffff1a;color:#fff}

/* Appearance at night */
.appearance-row .appearance-panel.icon-stage,.appearance-row .appearance-panel.icon-stage.is-dark{background:#111c44b3;border:1px solid #ffffff1a;box-shadow:none}
.is-night .app-icon-sample>span{color:var(--moon-2)}
.is-night.appearance-row .appearance-status,.is-night .appearance-status{color:var(--link-night)}

/* Privacy: the PortPane pane, lit like a window at night */
.privacy-section{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:72px;align-items:center;padding-top:190px}
.privacy-section .privacy-art{height:auto;display:grid;place-items:center}
.privacy-section .privacy-art img{width:min(380px,86%);height:auto;object-fit:contain;filter:drop-shadow(0 0 70px #5f8dff73) drop-shadow(0 20px 30px #0009)}
.privacy-section .privacy-copy{text-align:left}
.privacy-section .privacy-copy h2{font-size:clamp(40px,5vw,72px);line-height:1;letter-spacing:-.045em;font-weight:680;margin:0 0 24px}
.privacy-section .privacy-copy p{font-size:18px;line-height:1.65;max-width:520px;margin:0}
.privacy-points{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px 26px}
.privacy-points li{position:relative;padding-left:18px;font-size:16px;color:var(--moon-2)}
.privacy-points li:before{content:'';position:absolute;left:2px;top:.6em;width:6px;height:6px;border-radius:50%;background:#8ea6ff}

/* Connections: the port each kind of connection uses, set large */
.ports-section{padding-top:200px}
.ports{list-style:none;margin:0;padding:0;display:grid;gap:clamp(30px,4vw,60px)}
.ports li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);align-items:center}
.port-num{font-size:clamp(96px,15vw,232px);font-weight:200;letter-spacing:-.055em;line-height:.82;text-align:right;font-variant-numeric:tabular-nums;color:#e6ecfb}
.port-copy h3{font-size:clamp(26px,2.6vw,38px);letter-spacing:-.03em;font-weight:650;margin:0 0 10px;color:#f4f7fd}
.port-copy p{font-size:17px;line-height:1.6;margin:0;max-width:420px}
.ports-section .protocol-disclaimer{text-align:left;font-size:13px;color:var(--moon-3);margin:56px 0 0}

/* Setup guides at night */
.setup-section{padding-top:200px}
.is-night .setup-card{background:var(--night-card);border-color:#ffffff14;box-shadow:none}
.is-night .setup-head h3{color:#f4f7fd}
.is-night .setup-head .mini-label{font-size:13px;letter-spacing:0;font-weight:600;color:var(--link-night)}
.is-night .setup-steps li{color:var(--moon-2)}
.is-night .setup-steps b{color:var(--moon)}
.is-night .setup-steps li:before{color:#dfe4ff;background:#ffffff17}
.is-night.setup-section code{color:#d4dbff;background:#ffffff14}
.is-night .setup-links{border-color:#ffffff14}
.is-night .setup-links a{color:var(--link-night)}
.is-night .setup-notes{background:#111c44b3;border-color:#ffffff14}
.is-night .setup-notes p{color:var(--moon-2)}
.is-night .setup-notes b,.is-night .setup-inapp b{color:var(--moon)}
.is-night .setup-inapp{color:var(--moon-3)}

/* Questions at night: cards, no numbers */
.faq-section{padding-top:200px}
.faq-section .section-heading{display:block}
.faq-section .section-heading h2{font-size:clamp(40px,4.6vw,64px)}
.faq-section .section-heading>p{margin-top:20px}
.faq-item summary{grid-template-columns:1fr 30px}
.faq-a p{padding:0 30px 24px 24px}
.is-night .faq-item,.is-night .faq-item.is-closing{background:var(--night-card);border-color:#ffffff14;box-shadow:none}
.is-night .faq-item:hover{border-color:#ffffff2e}
.is-night .faq-item[open]{background:#15214fe6;border-color:#8ea6ff4d;box-shadow:0 24px 50px -26px #000c}
.is-night .faq-item summary{color:var(--moon)}
.is-night .faq-icon,.is-night .faq-item.is-closing .faq-icon{background:#ffffff14}
.is-night .faq-icon:before,.is-night .faq-icon:after,.is-night .faq-item.is-closing .faq-icon:before,.is-night .faq-item.is-closing .faq-icon:after{background:#dfe4ff}
.is-night .faq-item[open] .faq-icon{background:#6366f1}
.is-night .faq-item[open] .faq-icon:before,.is-night .faq-item[open] .faq-icon:after{background:#fff}
.is-night .faq-a p{color:var(--moon-2)}

/* ---------- The close: the whole landscape again, under the moon ---------- */
.finale{min-height:calc(100svh - 120px);display:grid;align-content:start;justify-items:center;text-align:center;padding:20vh 24px 0}
.finale-mark{margin:0;font-size:clamp(76px,13vw,210px);font-weight:750;letter-spacing:-.06em;line-height:.9;color:#f4f7fd}
.finale-line{margin:20px 0 34px;font-size:clamp(20px,2.1vw,30px);letter-spacing:-.02em;color:var(--moon-2)}
.finale-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px 26px}
.finale .finale-primary{display:inline-flex;align-items:center;padding:15px 26px;border-radius:999px;font-size:16px;font-weight:600;color:#0b1534;background:#f4f7fd;transition:transform .2s var(--ease-soft),background .2s}
.finale .finale-primary:hover{background:#fff;transform:translateY(-1px)}
.finale .finale-primary:active{transform:translateY(1px) scale(.98)}
.finale .finale-link{font-size:16px;font-weight:600;color:var(--moon)}
.finale .finale-link:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
.brand-footer.is-night{background:none;color:var(--moon-2)}
.brand-footer.is-night:before{display:none}
.brand-footer.is-night .brand{color:#f4f7fd}
.brand-footer.is-night p,.brand-footer.is-night .footer-divider,.brand-footer.is-night .footer-platforms span{color:var(--moon-2)}
.brand-footer.is-night .footer-signature{color:var(--moon)}
.brand-footer.is-night a:hover{color:#fff}

/* ---------- Smaller screens ---------- */
@media(max-width:1100px){
 .feature-row,.feature-row.is-reverse{gap:48px}
 .walk-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 .section-heading{grid-template-columns:1fr;gap:18px;margin-bottom:40px}
 .walk-steps{display:flex;flex-direction:column;gap:4px}
 .walk-step{grid-template-columns:30px 1fr;padding:16px 18px 20px}
 .walk-num{padding:4px 0 0}
 .walk-desc{max-height:0;opacity:0;margin-top:0}
 .walk-step.is-active .walk-desc{max-height:120px;margin-top:6px}
 .walk-progress{left:60px;right:22px}
 .feature-row,.feature-row.is-reverse{grid-template-columns:1fr;padding-top:120px}
 .privacy-section{grid-template-columns:1fr;gap:36px;padding-top:140px}
 .privacy-section .privacy-art img{width:min(260px,70%)}
 .ports li{grid-template-columns:1fr;gap:10px}
 .port-num{text-align:left}
 .ports-section,.setup-section,.faq-section{padding-top:140px}
 .night-rows{padding-top:150vh}
}
@media(max-width:600px){
 .landscape-hero .centered-brand{top:40%}
 .section-heading h2,.privacy-section .privacy-copy h2{font-size:40px}
 .feature-copy h2{font-size:36px}
 .feature-copy p,.section-heading>p,.privacy-section .privacy-copy p{font-size:17px}
 .walk-section{padding-top:110px}
 .walk-step{grid-template-columns:26px 1fr;padding:14px 16px 18px 12px}
 .walk-progress{left:50px;right:16px}
 .feature-row,.feature-row.is-reverse{padding-top:96px}
 .mb-menu{margin:6px 10px 22px}
 .qc-results{min-height:0}
 .qc-row{padding:10px}
 .port-num{font-size:96px}
 .faq-item summary{grid-template-columns:1fr 28px}
 .faq-a p{padding:0 20px 20px 18px}
 .finale{padding-top:14vh}
}
@media(prefers-reduced-motion:reduce){
 .ly{transition:none}
 .mb-menu{transition:none}
}
/* Small phones: the palette shrinks to the screen instead of widening its row */
.feature-row>*{min-width:0}
.qc-foot{flex-wrap:wrap;row-gap:4px}
.qc-text b,.qc-text small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feature-visual:has(>.qc-wrap){grid-template-columns:minmax(0,1fr)}
@media(max-width:420px){.finale-mark{font-size:19vw}}
