/* ============================================================
   NewUI design system — ported verbatim from NewUI/styles.css.
   This is the foundation every public-page restyle task (7-12) builds
   on; NewUI's class names (.site-header, .hero, .button, .section,
   etc.) are used unprefixed, so they are the ones a public page should
   reach for going forward. The legacy block below (this file's
   original content) still powers pages this plan hasn't restyled yet
   and is left in place rather than deleted - see the two small
   overrides marked "NewUI collision guard" further down, added so the
   still-unstyled homepage/footer don't pick up NewUI's same-named
   rules by accident before their own restyle task lands.
   ============================================================ */
:root{
  --linen:#efece3;
  --indigo:#2f2fe4;
  --klein:#162e93;
  --navy:#1a1953;
  --ink:#080616;
  --white:#ffffff;
  --muted:#66677b;
  --line:#d8d6cf;
  --soft:#f7f5ef;
  --lavender:#e7e6ff;
  --success:#1b9b67;
  --radius:18px;
  --shadow:0 24px 70px rgba(8,6,22,.13);
  --shadow-sm:0 10px 32px rgba(8,6,22,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--linen);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
button{font:inherit}
.site-shell{overflow:hidden;overflow:clip}
.site-header{height:82px;display:flex;align-items:center;gap:32px;padding:0 clamp(22px,4vw,64px);border-bottom:1px solid rgba(8,6,22,.08);background:rgba(239,236,227,.88);backdrop-filter:blur(18px);position:sticky;top:0;z-index:50}
.brand{display:inline-flex;align-items:center;gap:8px;font-size:24px;font-weight:850;letter-spacing:-.06em;white-space:nowrap}
.brand-mark{width:30px;height:30px;color:var(--ink)}
.main-nav{display:flex;align-items:center;justify-content:center;gap:30px;flex:1;font-size:14px;font-weight:650;color:var(--nav-link,#37374a)}
.main-nav a,.main-nav .nav-parent,.text-link{transition:color .2s ease,background .2s ease;color:var(--nav-link,#37374a)}
.text-link{color:inherit}
.main-nav a:hover,.main-nav .nav-parent:hover,.text-link:hover{color:var(--nav-link-hover,var(--indigo))}
.main-nav a[aria-current="page"],.main-nav .nav-parent[aria-current="page"],.text-link[aria-current="page"]{color:var(--nav-link-active,var(--indigo))}
/* Highlighted item: a real button, theme blue with white text by default */
.main-nav a.nav-button,.main-nav a.nav-button:hover,.main-nav a.nav-button[aria-current="page"]{color:var(--nav-btn-text,#fff)}
.main-nav a.nav-button{background:var(--nav-btn-bg,#2f2fe4);padding:9px 20px;border-radius:999px;font-weight:700;line-height:1.2}
.main-nav a.nav-button:hover{background:var(--nav-btn-bg-hover,#2525c4)}
/* Sub-menus */
.nav-item{position:relative;display:flex;align-items:center}
.main-nav .nav-parent{font:inherit;font-weight:inherit;background:none;border:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.nav-caret{width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s ease}
.nav-item.is-open .nav-caret,.nav-item:hover .nav-caret{transform:rotate(225deg) translate(-1px,-1px)}
.nav-sub{position:absolute;top:100%;left:50%;min-width:200px;padding:8px;margin-top:0;display:none;flex-direction:column;gap:2px;background:var(--nav-sub-bg,#fff);border:1px solid rgba(8,6,22,.1);border-radius:14px;box-shadow:0 18px 40px -12px rgba(8,6,22,.25);transform:translateX(-50%);z-index:60}
/* bridge the gap so the menu doesn't close while the pointer crosses it */
.nav-sub::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.nav-item:hover>.nav-sub,.nav-item:focus-within>.nav-sub,.nav-item.is-open>.nav-sub{display:flex}
.main-nav .nav-sub a{display:block;padding:10px 14px;border-radius:9px;color:var(--nav-sub-text,#37374a);white-space:nowrap}
.main-nav .nav-sub a:hover,.main-nav .nav-sub a:focus-visible{background:var(--nav-sub-hover-bg,#f1efe8);color:var(--nav-sub-hover-text,#2f2fe4)}
.main-nav .nav-sub a[aria-current="page"]{color:var(--nav-link-active,var(--indigo))}
.header-actions{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:700}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;padding:13px 18px;font-size:14px;font-weight:800;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.button:hover{transform:translateY(-2px)}
.button-small{padding:10px 15px;border-radius:10px}
.button-dark{background:var(--ink);color:#fff;box-shadow:0 8px 20px rgba(8,6,22,.12)}
.button-primary{background:var(--indigo);color:#fff;box-shadow:0 14px 30px rgba(47,47,228,.24)}
.button-ghost{border:1px solid rgba(8,6,22,.18);background:rgba(255,255,255,.35)}
.button-light{background:#fff;color:var(--ink)}
.button-white{background:#fff;color:var(--ink);box-shadow:0 15px 35px rgba(0,0,0,.18)}
.button-outline-light{border:1px solid rgba(255,255,255,.4);color:#fff}
.nav-toggle,.nav-toggle-button{display:none}

.hero{max-width:1440px;margin:0 auto;padding:82px clamp(24px,5vw,80px) 72px;display:grid;grid-template-columns:minmax(350px,.75fr) minmax(600px,1.25fr);gap:50px;align-items:center;min-height:760px}
.hero-copy{position:relative;z-index:2}
.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:850;color:var(--indigo);margin-bottom:20px}
.eyebrow-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--indigo);margin-right:7px;vertical-align:1px}
.hero h1{font-size:clamp(52px,5.2vw,84px);line-height:.98;letter-spacing:-.07em;margin:0 0 28px;font-weight:850}
.hero h1 span{color:var(--indigo)}
.hero-lead{max-width:650px;font-size:18px;line-height:1.7;color:#515164;margin:0 0 32px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-note{display:flex;align-items:center;gap:9px;margin-top:20px;font-size:12px;color:#777789}
.status-dot{width:8px;height:8px;border-radius:50%;background:#24a66d;box-shadow:0 0 0 4px rgba(36,166,109,.12);display:inline-block}
.hero-visual{position:relative;min-width:0;padding:25px 0 35px}
.visual-glow{position:absolute;width:70%;height:70%;right:4%;top:12%;background:rgba(47,47,228,.25);filter:blur(80px);border-radius:50%}
.browser-frame{position:relative;background:#0c0a1b;border:1px solid rgba(8,6,22,.25);border-radius:18px;box-shadow:var(--shadow);padding:8px;transform:perspective(1600px) rotateY(-4deg) rotateX(1.2deg);transition:transform .5s ease}
.browser-frame:hover{transform:perspective(1600px) rotateY(-1deg) rotateX(0)}
.browser-top{height:30px;display:flex;align-items:center;padding:0 10px;color:#a7a6b5;font-size:9px}
.window-controls{display:flex;gap:5px}.window-controls i{width:7px;height:7px;border-radius:50%;background:#4a4756}.browser-title{position:absolute;left:50%;transform:translateX(-50%);opacity:.65}.browser-spacer{margin-left:auto}
.dashboard-wrap{position:relative;border-radius:10px;overflow:hidden;background:#efebe1}
.dashboard-wrap img{display:block;width:100%;height:auto}
.capture-toast{position:absolute;right:18px;bottom:18px;display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:12px;background:rgba(8,6,22,.91);color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.25);font-size:11px}
.capture-toast strong{display:block}.capture-toast small{display:block;color:#aaa9b9;margin-top:2px}.toast-dot{width:8px;height:8px;border-radius:50%;background:#3bd58e;box-shadow:0 0 0 5px rgba(59,213,142,.12)}
.floating-card{position:absolute;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid rgba(8,6,22,.09);box-shadow:var(--shadow-sm);border-radius:13px;padding:11px 13px;font-size:11px}
.floating-card strong,.floating-card small{display:block}.floating-card small{color:#737386;margin-top:2px}.floating-card-left{left:-26px;bottom:6px}.floating-card-right{right:-22px;top:65px}.mini-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--lavender);color:var(--indigo);font-weight:900}.mini-icon.check{background:#e6f7ef;color:var(--success)}

.trusted-by{border-top:1px solid rgba(8,6,22,.1);background:#f7f5ef;padding:27px 0 24px;overflow:hidden}
.trusted-label{text-align:center;font-size:9px;letter-spacing:.17em;font-weight:850;color:#888796;margin-bottom:18px}

/* Shared seamless marquee: groups sit edge to edge (spacing lives inside each group), so moving one group width loops without a jump */
.marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;width:max-content;animation:marqueeScroll var(--marquee-duration,36s) linear infinite;will-change:transform}
.marquee-group{display:flex;align-items:center;flex-shrink:0;margin:0;padding:0;list-style:none}
@keyframes marqueeScroll{from{transform:translate3d(0,0,0)}to{transform:translate3d(var(--marquee-distance,-50%),0,0)}}
.marquee:hover .marquee-track{animation-play-state:paused}

.logo-track .marquee-group{gap:64px;padding-right:64px}
.customer-logo{display:inline-flex;align-items:center;gap:9px;color:#85838e;white-space:nowrap;opacity:.8;transition:color .2s ease,opacity .2s ease}
.customer-logo svg{width:22px;height:22px;flex-shrink:0}
.customer-logo span{font-size:16px;font-weight:850;letter-spacing:-.045em}
.customer-logo:nth-child(3n) span{font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:800}
.customer-logo:nth-child(4n+2) span{font-weight:700;letter-spacing:-.02em}
.customer-logo:hover{color:var(--navy);opacity:1}

.proof-strip{border-top:1px solid rgba(8,6,22,.1);border-bottom:1px solid rgba(8,6,22,.1);overflow:hidden;background:var(--linen);padding:17px 0;font-size:10px;letter-spacing:.14em;font-weight:850;color:#747487;white-space:nowrap}
.proof-track{animation-direction:reverse}
.proof-track .marquee-group{gap:24px;padding-right:24px}
.proof-track li{display:inline-flex;align-items:center;gap:24px}
.proof-track span{color:var(--navy)}
.proof-track i{font-style:normal;color:var(--indigo);font-size:11px}

.section{max-width:1280px;margin:0 auto;padding:125px clamp(24px,5vw,70px)}
.section-heading h2,.split-heading h2{font-size:clamp(42px,5vw,70px);line-height:1.02;letter-spacing:-.065em;margin:0 0 22px;font-weight:850}
.section-heading p,.split-heading>p{max-width:650px;color:var(--muted);font-size:17px;line-height:1.7;margin:0}
.centered{text-align:center}.centered p{margin-left:auto;margin-right:auto}.centered .eyebrow{margin-bottom:17px}

.problem-section{max-width:1440px}
.feature-carousel{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:18px;margin-top:56px}
.feature-viewport{overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;border-radius:var(--radius);outline:none}
.feature-viewport::-webkit-scrollbar{display:none}
.feature-viewport:focus-visible{box-shadow:0 0 0 3px var(--linen),0 0 0 5px var(--indigo)}
.feature-rail{display:flex;gap:14px}
.feature-rail>.feature-card{flex:0 0 calc((100% - 28px)/3);scroll-snap-align:start}
.carousel-arrow{width:52px;height:52px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid rgba(8,6,22,.16);background:#fff;color:var(--ink);box-shadow:var(--shadow-sm);cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,opacity .2s ease}
.carousel-arrow svg{width:20px;height:20px}
.carousel-arrow:hover:not(:disabled){background:var(--indigo);border-color:var(--indigo);color:#fff}
.carousel-arrow:focus-visible{outline:2px solid var(--indigo);outline-offset:3px}
.carousel-arrow:disabled{opacity:.35;cursor:default;box-shadow:none;background:transparent}
.feature-card{position:relative;min-height:360px;padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.42);display:flex;flex-direction:column}
.feature-card-large{background:var(--ink);color:#fff;border-color:var(--ink)}
.feature-number{position:absolute;right:25px;top:25px;font-size:11px;font-weight:800;opacity:.5}
.feature-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--lavender);color:var(--indigo);font-size:20px;margin-bottom:52px}
.feature-card-large .feature-icon{background:rgba(255,255,255,.1);color:#fff}
.feature-card h3{font-size:26px;line-height:1.1;letter-spacing:-.04em;margin:0 0 12px}.feature-card p{color:#6b6b7d;margin:0;line-height:1.65}.feature-card-large p{color:#b9b8c8}.feature-card a{margin-top:auto;padding-top:26px;font-size:13px;font-weight:800;color:var(--indigo)}.feature-card-large a{color:#fff}

.workflow-section{max-width:1440px;background:#fff;margin-top:20px;border-radius:30px}
.split-heading{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:end}
.workflow{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:25px;margin-top:70px}
.workflow-line{position:absolute;left:30px;right:30px;top:22px;border-top:1px dashed #bcbacb}
.workflow-step{position:relative}.step-badge{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--indigo);color:#fff;font-size:11px;font-weight:850;position:relative;z-index:2;border:6px solid #fff}.workflow-step h3{font-size:18px;margin:20px 0 7px;letter-spacing:-.025em}.workflow-step p{font-size:13px;color:var(--muted);margin:0;line-height:1.65}
.timeline-demo{margin-top:75px;border:1px solid #d7d5ce;border-radius:16px;background:#f7f5ef;overflow:hidden}
.timeline-top{display:flex;justify-content:space-between;padding:17px 20px;font-size:10px;font-weight:850;letter-spacing:.1em;border-bottom:1px solid #dedcd5}.live-label{color:var(--success)}.live-label i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--success);margin-right:5px}
.timeline-row{display:flex;align-items:center;gap:15px;padding:18px 20px;border-bottom:1px solid #e4e2dc}.timeline-row:last-child{border-bottom:0}.timeline-node{width:9px;height:9px;border:2px solid var(--indigo);border-radius:50%;background:#fff}.timeline-content{flex:1}.timeline-content strong{display:block;font-size:13px}.timeline-content small{display:block;color:#7d7c8b;margin-top:3px}.timeline-tag{font-size:9px;letter-spacing:.08em;font-weight:850;color:#7c7a88}.timeline-tag.purple{color:var(--indigo)}.timeline-tag.blue{color:var(--klein)}

.ai-section{max-width:none;background:var(--navy);color:#fff}
.ai-panel{max-width:1140px;margin:auto;display:grid;grid-template-columns:1fr .9fr;gap:80px;align-items:center}.ai-copy .eyebrow{color:#9ea5ff}.ai-copy h2{font-size:clamp(44px,5vw,72px);line-height:1.02;letter-spacing:-.065em;margin:0 0 22px}.ai-copy h2 span{color:#8e91ff}.ai-copy>p{color:#c2c2d3;font-size:17px;line-height:1.7;max-width:600px}.ai-list{display:grid;gap:18px;margin:32px 0}.ai-list>div{display:grid;grid-template-columns:22px 1fr;column-gap:10px}.ai-list span{grid-row:span 2;color:#8e91ff;font-weight:900}.ai-list strong{font-size:14px}.ai-list small{color:#aaaabd;font-size:12px;margin-top:2px}
.ai-console{border:1px solid rgba(255,255,255,.13);border-radius:18px;background:#080616;box-shadow:0 30px 80px rgba(0,0,0,.25);overflow:hidden}.console-head{height:45px;display:flex;align-items:center;gap:6px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.08);font-size:10px;color:#77768b}.console-head>span{width:7px;height:7px;border-radius:50%;background:#373545}.console-head b{margin-left:10px;color:#b8b7c5;font-weight:650}.console-body{padding:25px 26px;min-height:330px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:2}.console-body p{margin:0}.console-body em{color:#8e91ff;font-style:normal}.console-body .muted{color:#747387}.console-body .accent{color:#b6b8ff}.console-body .success{color:#5ad89b}.cursor{width:7px;height:15px;background:#8e91ff;display:inline-block;vertical-align:-3px;animation:blink 1s steps(2) infinite}@keyframes blink{50%{opacity:0}}

.ownership-section{display:grid;grid-template-columns:1fr .8fr;gap:80px;align-items:center}.ownership-copy h2{font-size:clamp(42px,5vw,66px);line-height:1.02;letter-spacing:-.065em;margin:0 0 22px}.ownership-copy p{font-size:17px;line-height:1.75;color:var(--muted);max-width:640px}.ownership-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}.ownership-points span{padding:9px 12px;border:1px solid #d5d3cb;border-radius:999px;background:rgba(255,255,255,.4);font-size:11px;font-weight:750}
.ownership-art{height:450px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid rgba(47,47,228,.22);border-radius:50%}.orbit-1{width:300px;height:300px}.orbit-2{width:450px;height:450px;border-color:rgba(22,46,147,.16)}.core{width:155px;height:155px;border-radius:50%;background:var(--ink);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 25px 70px rgba(8,6,22,.2);position:relative;z-index:2}.core span{font-size:9px;letter-spacing:.15em;color:#9d9cab}.core strong{font-size:29px;letter-spacing:-.05em}.core small{font-size:8px;letter-spacing:.12em;color:#9d9cab}.orbit-label{position:absolute;padding:8px 10px;border:1px solid #d5d3cb;background:var(--linen);border-radius:8px;font-size:9px;letter-spacing:.1em;font-weight:850;z-index:3}.label-one{top:52px;right:50px}.label-two{bottom:50px;left:18px}.label-three{top:50%;right:0}

.deployment-section{max-width:1440px;background:#f7f5ef}.deployment-section .section-heading{margin-bottom:55px}.deployment-board{max-width:1040px;margin:0 auto;background:#fff;border:1px solid #d7d5ce;border-radius:18px;box-shadow:var(--shadow-sm);overflow:hidden}.deploy-header{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid #e1dfd9}.deploy-header div:first-child{display:grid;grid-template-columns:9px auto;column-gap:9px;align-items:center}.deploy-header .status-dot{grid-row:span 2}.deploy-header strong{font-size:14px}.deploy-header small{grid-column:2;color:#7c7b8b;font-size:11px}.environment-badge{padding:7px 9px;border-radius:7px;background:#e9f8f0;color:#16875a;font-size:9px;font-weight:850;letter-spacing:.08em}.deploy-stats{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #e1dfd9}.deploy-stats div{padding:22px 25px;border-right:1px solid #e1dfd9}.deploy-stats div:last-child{border-right:0}.deploy-stats strong{display:block;font-size:26px;letter-spacing:-.04em}.deploy-stats span{color:#7b7a8a;font-size:10px}.deploy-files{padding:7px 25px}.deploy-files div{display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;padding:13px 0;border-bottom:1px solid #eeece7;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.deploy-files div:last-child{border-bottom:0}.file-status{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;font-weight:850}.file-status.added{background:#e7f7ef;color:#16875a}.file-status.modified{background:#e9e9ff;color:var(--indigo)}.file-status.deleted{background:#ffe9e9;color:#c74b4b}.deploy-files b{font-weight:650;color:#888796}.deploy-footer{display:flex;align-items:center;justify-content:space-between;padding:18px 25px;background:#faf9f6;border-top:1px solid #e1dfd9;font-size:11px;color:#777687}.deploy-footer button{border:0;background:var(--indigo);color:#fff;padding:11px 14px;border-radius:9px;font-size:11px;font-weight:800}

.environments-section{display:grid;grid-template-columns:1fr .85fr;gap:100px;align-items:center}.environment-visual{display:flex;flex-direction:column;gap:12px}.env-card{padding:19px;border:1px solid #d5d3cb;border-radius:13px;background:#fff;display:grid;grid-template-columns:34px 1fr auto;grid-template-rows:auto auto;column-gap:12px;box-shadow:0 8px 22px rgba(8,6,22,.04)}.env-card span{grid-row:span 2;display:grid;place-items:center;border-radius:8px;background:#efeee9;font-size:10px;font-weight:850}.env-card b{font-size:12px}.env-card small{font-size:10px;color:#858493}.env-card i{grid-row:span 2;align-self:center;font-size:10px;font-style:normal;color:#777687}.env-dev i{color:var(--success)}.env-connector{height:24px;border-left:1px dashed #b6b4bf;margin-left:17px}.text-arrow{display:inline-block;margin-top:25px;color:var(--indigo);font-size:13px;font-weight:800}

.terminology-section{max-width:1440px}.term-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:55px;border:1px solid #d8d6cf;background:#d8d6cf}.term-grid>div{background:#fff;padding:28px;min-height:170px}.term-grid span{font-size:10px;letter-spacing:.13em;color:var(--indigo);font-weight:850}.term-grid strong{display:block;font-size:18px;line-height:1.3;letter-spacing:-.025em;margin-top:30px}

.whats-new{display:grid;grid-template-columns:1fr .8fr;gap:80px;align-items:center;border-top:1px solid rgba(8,6,22,.1);border-bottom:1px solid rgba(8,6,22,.1)}.whats-new h2{font-size:clamp(40px,4.5vw,62px);line-height:1.03;letter-spacing:-.06em;margin:0}.news-card{background:var(--ink);color:#fff;border-radius:18px;padding:30px}.news-date{font-size:9px;letter-spacing:.13em;color:#8e91ff;font-weight:850}.news-card h3{font-size:24px;letter-spacing:-.04em;margin:45px 0 10px}.news-card p{color:#b7b6c5;font-size:13px;line-height:1.7}.news-card a{display:inline-block;color:#fff;font-size:12px;font-weight:800;margin-top:18px}

.faq-section{max-width:1100px}.faq-grid{margin-top:50px;border-top:1px solid #d4d2cb}.faq-grid details{border-bottom:1px solid #d4d2cb;padding:22px 0}.faq-grid summary{cursor:pointer;list-style:none;font-size:16px;font-weight:800;display:flex;justify-content:space-between;gap:20px}.faq-grid summary::-webkit-details-marker{display:none}.faq-grid summary:after{content:"+";color:var(--indigo);font-size:20px}.faq-grid details[open] summary:after{content:"−"}.faq-grid p{max-width:800px;color:var(--muted);font-size:14px;line-height:1.75;margin:14px 0 2px}

.cta-section{position:relative;max-width:none;text-align:center;background:var(--indigo);color:#fff;overflow:hidden;padding-top:130px;padding-bottom:130px}.cta-glow{position:absolute;width:520px;height:520px;border-radius:50%;background:rgba(255,255,255,.12);filter:blur(80px);left:50%;top:20%;transform:translateX(-50%)}.cta-section>*:not(.cta-glow){position:relative;z-index:2}.cta-section .eyebrow{color:#c6c7ff}.cta-section h2{font-size:clamp(48px,6vw,82px);line-height:.98;letter-spacing:-.07em;margin:0 0 22px}.cta-section p{font-size:17px;color:#d9d9ff;margin:0 auto 32px}.cta-section .hero-actions{justify-content:center}
.download-grid{max-width:1060px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;text-align:left}
.download-card{position:relative;display:flex;flex-direction:column;padding:28px;border:1px solid rgba(255,255,255,.24);border-radius:var(--radius);background:rgba(255,255,255,.08);backdrop-filter:blur(6px);transition:transform .2s ease,background .2s ease}
.download-card:hover{transform:translateY(-3px);background:rgba(255,255,255,.13)}
.os-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:15px;background:#fff;color:var(--indigo);margin-bottom:36px}
.os-icon svg{width:30px;height:30px}
.download-card h3{font-size:26px;line-height:1.1;letter-spacing:-.04em;margin:0 0 8px;color:#fff}
.cta-section .download-card p{font-size:14px;line-height:1.6;color:#d9d9ff;margin:0}
.download-formats{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 28px}
.download-formats span{padding:5px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.26);font-size:11px;font-weight:750;color:#e6e6ff}
.download-formats button.format-chip{appearance:none;cursor:pointer;font:inherit;padding:5px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.26);background:transparent;font-size:11px;font-weight:750;color:#e6e6ff}
.download-formats button.format-chip.is-selected{background:#fff;color:var(--indigo);border-color:#fff}
.download-formats span.format-type{background:#ffd666;border-color:#ffd666;color:#4a3500}
.cta-section .download-card p.download-note{margin:-12px 0 20px;padding:9px 11px;border-radius:9px;background:rgba(255,214,102,.14);border:1px solid rgba(255,214,102,.45);font-size:12px;line-height:1.5;color:#ffe9a8}
.download-card.is-detected .download-formats button.format-chip{border-color:var(--line);color:#4b4b5e}
.download-card.is-detected .download-formats button.format-chip.is-selected{background:var(--indigo);color:#fff;border-color:var(--indigo)}
.cta-section .download-card.is-detected p.download-note{background:#fff8e1;border-color:#f1d27a;color:#6b4e00}
.download-button{margin-top:auto;width:100%;background:#fff;color:var(--ink);box-shadow:0 12px 28px rgba(8,6,22,.18)}
.download-button svg{width:18px;height:18px}
.detected-badge{display:none;position:absolute;top:24px;right:24px;padding:6px 9px;border-radius:7px;background:var(--lavender);color:var(--indigo);font-size:10px;font-weight:850;letter-spacing:.06em}
.download-card.is-detected{background:#fff;border-color:#fff;box-shadow:0 24px 60px rgba(8,6,22,.25)}
.download-card.is-detected .detected-badge{display:block}
.download-card.is-detected .os-icon{background:var(--lavender)}
.download-card.is-detected h3{color:var(--ink)}
.cta-section .download-card.is-detected p{color:var(--muted)}
.download-card.is-detected .download-formats span{border-color:var(--line);color:#4b4b5e}
.download-card.is-detected .download-button{background:var(--indigo);color:#fff;box-shadow:0 14px 30px rgba(47,47,228,.28)}
.download-footer{margin-top:36px;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}

.site-footer{background:var(--ink);color:#fff;padding:70px clamp(24px,5vw,70px) 25px}.site-footer .brand-mark{color:#fff}.footer-brand p{color:#8f8e9f;font-size:12px;margin:13px 0 0}.footer-links{display:grid;grid-template-columns:repeat(5,1fr);gap:30px;max-width:880px;margin:50px 0}.footer-links div{display:flex;flex-direction:column;gap:10px}.footer-links b{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#77768a;margin-bottom:5px}.footer-links a{font-size:12px;color:#c5c4ce}.footer-links a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:20px;display:flex;justify-content:space-between;gap:20px;color:#6f6e80;font-size:10px}

@media(max-width:1100px){
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:70px}.hero-copy{max-width:760px}.hero-visual{margin-top:15px}.main-nav{gap:18px}.feature-rail>.feature-card{flex-basis:calc((100% - 14px)/2)}.download-grid{grid-template-columns:1fr 1fr}.download-card:last-child{grid-column:1/-1}.ai-panel{grid-template-columns:1fr;gap:55px}.ownership-section,.environments-section{grid-template-columns:1fr;gap:55px}.ownership-art{max-width:600px;margin:auto;width:100%}.footer-links{grid-template-columns:repeat(3,1fr)}.term-grid{grid-template-columns:1fr 1fr}.whats-new{grid-template-columns:1fr}
}
@media(max-width:780px){
  .site-header{height:70px;padding:0 20px}.nav-toggle-button{display:flex;margin-left:auto;width:30px;flex-direction:column;gap:5px;cursor:pointer}.nav-toggle-button span{height:2px;width:100%;background:var(--ink);border-radius:2px}.main-nav{display:none;position:absolute;left:0;right:0;top:70px;background:var(--linen);padding:20px;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}.nav-toggle:checked~.main-nav{display:flex}.nav-item{flex-direction:column;align-items:flex-start;gap:6px}.nav-sub{position:static;display:flex;transform:none;min-width:0;padding:0 0 0 14px;background:transparent;border:0;box-shadow:none}.nav-sub::before{display:none}.nav-caret{display:none}.main-nav .nav-sub a{padding:6px 0;color:var(--nav-link,#37374a)}.main-nav .nav-sub a:hover{background:none}.header-actions{display:none}.hero{padding:58px 20px 55px}.hero h1{font-size:clamp(48px,15vw,72px)}.hero-lead{font-size:16px}.browser-frame{transform:none}.floating-card{display:none}.section{padding:85px 20px}.section-heading h2,.split-heading h2{font-size:clamp(39px,11vw,58px)}.split-heading{grid-template-columns:1fr;gap:25px}.feature-carousel{grid-template-columns:1fr 1fr;grid-template-areas:"view view" "prev next";row-gap:22px}.feature-viewport{grid-area:view}.carousel-prev{grid-area:prev;justify-self:end;margin-right:6px}.carousel-next{grid-area:next;justify-self:start;margin-left:6px}.feature-rail>.feature-card{flex-basis:100%;min-height:330px}.download-grid{grid-template-columns:1fr}.download-card:last-child{grid-column:auto}.download-card{padding:24px}.os-icon{margin-bottom:26px}.logo-track .marquee-group{gap:44px;padding-right:44px}.workflow{grid-template-columns:1fr 1fr;gap:30px}.workflow-line{display:none}.deploy-stats{grid-template-columns:1fr 1fr}.deploy-stats div:nth-child(2){border-right:0}.deploy-stats div:nth-child(-n+2){border-bottom:1px solid #e1dfd9}.deploy-footer{align-items:flex-start;gap:15px;flex-direction:column}.term-grid{grid-template-columns:1fr}.term-grid>div{min-height:auto}.footer-links{grid-template-columns:1fr 1fr}.footer-bottom{flex-direction:column}.ownership-art{height:380px}.orbit-1{width:240px;height:240px}.orbit-2{width:340px;height:340px}.label-one{right:20px}.label-three{right:-2px}
}
@media(max-width:480px){
  .hero-actions{align-items:stretch;flex-direction:column}.hero-actions .button{width:100%}.hero-visual{padding-top:10px}.capture-toast{right:8px;bottom:8px}.capture-toast small{display:none}.ai-console{border-radius:13px}.console-body{padding:18px;font-size:10px}.workflow{grid-template-columns:1fr}.timeline-tag{display:none}.deploy-files{padding:7px 14px}.deploy-files div{font-size:9px}.ownership-art{transform:scale(.86);transform-origin:center}.footer-links{grid-template-columns:1fr 1fr}
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{animation:none}
  .marquee{overflow-x:auto;scrollbar-width:none}
  .feature-viewport{scroll-behavior:auto}
  .download-card,.download-card:hover{transition:none;transform:none}
  .browser-frame{transition:none}
}

/* ============================================================
   Legacy site content (pre-restyle) — this file's original rules,
   kept in place for every page Tasks 7-12 haven't rebuilt yet.
   Two selectors above are redefined by NewUI with substantially
   different, non-overlapping properties (.hero → CSS grid,
   .feature-icon → an icon-badge box) that would otherwise leak onto
   the still-unrestyled homepage; both are called out explicitly below
   as "NewUI collision guard" overrides, each removable once the
   restyle task (7) that replaces that markup lands.
   ============================================================ */
/* Found while reskinning the admin panel (Task 13) and traced back to
   this file's very first merge (Task 6): legacy's `html, body { background:
   var(--color-bg); color: var(--color-text); }` below still wins over
   NewUI's own `body{background:var(--linen);color:var(--ink)}` for every
   page, since they're declared with equal specificity and legacy comes
   second in this file. That was a deliberate, correct guard in Task 6
   (protecting the still-unrestyled homepage from NewUI's dark/light
   corruption before Task 7 landed) - but once Tasks 7-12 actually
   rewrote every one of these pages to NewUI's light visual language,
   the same collision became a real bug: several NewUI sections
   (.workflow-step h3/p, .doc-card p, etc.) never set their own text
   color, relying on the page to supply a dark one the way NewUI's body
   rule intended - instead they inherit legacy's light (--color-text),
   rendering close to invisible against those sections' own light
   backgrounds. Scoped the fix to the two wrapper classes every Task
   7-12 page actually uses (index.php's <main class="site-shell">; every
   other restyled page's docs-page wrapper) rather than touching the
   shared global body rule itself, which account/login (outside this
   plan's scope, still expects the original dark theme) also depends on.

   Final-review addendum: the first pass above missed `.site-header`
   (the public nav bar from nav.php) - it's a sibling of `.site-shell`/
   `.docs-page`, not a descendant, so it never inherited the fix and
   still rendered the "Revly" wordmark and "Sign In" link in legacy's
   light --color-text against its own near-linen background. Also
   missed: .docs-content explicitly SETS its own color (doesn't
   inherit at all), .testimonial-card/.modal-panel set their own dark
   background with no text color of their own (so they inherited the
   now-correct dark --ink, newly wrong against their OWN dark surface),
   and several now-orphaned legacy rules (.hero, .feature-card,
   .feature-icon, .download-grid/.download-card) were still winning
   over NewUI's real versions of the same selectors by cascade order
   rather than just colliding on inherited color - fixed individually
   at each site below, not solvable by this one rule alone. */
.site-shell, .docs-page { background: var(--linen); color: var(--ink); }
.site-header { color: var(--ink); }
/* ============================================================
   Revly — shared design tokens (mirrors apps/desktop's DESIGN.md)
   ============================================================ */
:root {
  --color-bg: #080616;
  --color-surface: #111035;
  --color-surface-alt: #1A1953;
  --color-surface-high: #182576;
  --color-surface-tertiary: #100f31;
  --color-border: #191f66;
  --color-text: #EFECE3;
  --color-text-muted: #98a0c3;
  --color-primary: #2F2FE4;
  --color-on-primary: #EFECE3;
  --color-primary-soft: #9997e3;
  --color-on-primary-soft: #1A1953;
  --color-success: #36c98f;
  --color-warning: #e6b84c;
  --color-error: #f26d78;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Type scale - a deliberate ~1.25 (major third) ratio off a 16px base,
     not ad-hoc pixel values. Display sizes are fluid (clamp) so they scale
     smoothly with viewport instead of jumping at a breakpoint. */
  --fs-body: 1rem;         /* 16px */
  --fs-body-lg: 1.125rem;  /* 18px */
  --fs-label: 0.8125rem;   /* 13px */
  --fs-h3: 1.4375rem;      /* ~23px */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);   /* ~28-44px */
  --fs-hero: clamp(2.5rem, 1.8rem + 3vw, 4rem);        /* ~40-64px */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: var(--fs-label);
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(47,47,228,0.4), 0 8px 24px -4px rgba(47,47,228,0.55); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(239,236,227,0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-primary-soft); background: rgba(239,236,227,0.06); }
.btn-lg { padding: 14px 30px; font-size: var(--fs-body); }
.btn-block { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--color-border);
  background: rgba(8, 6, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo-mark {
  display: inline-block;
  width: 21px;
  height: 21px;
  background-color: var(--color-text);
  -webkit-mask-image: url('../img/logo-mark.svg');
  mask-image: url('../img/logo-mark.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; color: var(--color-text-muted); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--color-text); }
.nav-links a.current { color: var(--color-text); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn { padding: 8px 16px; font-size: 13px; }
}

/* The legacy .hero/.hero-eyebrow/.hero-headline/.hero-sub/.hero-actions
   rules that lived here were deleted in the Task 13 final-review fix
   pass: Task 7 rebuilt the homepage's hero using NewUI's own .hero
   structure (same class name), so these rules were no longer styling
   anything they were written for - they were instead actively
   corrupting NewUI's real .hero rule above via cascade order (forcing
   display:block onto NewUI's 2-column grid, center-aligning text
   NewUI positions left, clipping NewUI's intentionally-overflowing
   floating-card decorations via overflow:hidden). NewUI's own .hero
   rule (earlier in this file) is what actually styles the homepage now. */

/* ── App mock (real-UI recreation) ──────────────────────────
   Built from the actual Sidebar.tsx/Header.tsx/Timeline.tsx markup and
   design tokens in apps/desktop (kb/UI/DESIGN.md) - real sidebar nav,
   real header, real Timeline row/checkpoint-card treatment - not a
   generic fake-window mockup. See public/partials/app-mock.php. */
.app-mock {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 32px;
  border-radius: 20px;
  border: 1px solid rgba(239,236,227,0.1);
  background: rgba(16,14,38,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 32px 80px -12px rgba(0,0,0,0.55), inset 0 1px 0 rgba(239,236,227,0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;
}
.app-mock-shell { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
.app-mock-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.app-mock-logo { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; }
.app-mock-logo .mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--color-primary); color: var(--color-on-primary);
  display: flex; align-items: center; justify-content: center;
}
.app-mock-logo .mark svg { width: 16px; height: 16px; fill: currentColor; }
.app-mock-logo .name { font-size: 14px; font-weight: 800; color: var(--color-text); line-height: 1.15; }
.app-mock-logo .tag { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; color: var(--color-primary-soft); text-transform: uppercase; }
.app-mock-navlabel { font-size: 9px; font-weight: 700; letter-spacing: 0.07em; color: var(--color-text-muted); text-transform: uppercase; padding: 12px 8px 6px; }
.app-mock-nav { display: flex; flex-direction: column; gap: 2px; }
.app-mock-navitem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12px; color: var(--color-text-muted); }
.app-mock-navitem svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; }
.app-mock-navitem.active { background: var(--color-surface-high); color: var(--color-primary-soft); font-weight: 700; }
.app-mock-proj { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 11.5px; color: var(--color-text-muted); }
.app-mock-proj .sq { width: 6px; height: 6px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.app-mock-main { display: flex; flex-direction: column; min-width: 0; }
.app-mock-header { height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--color-border); }
.app-mock-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--color-border); background: var(--color-surface-alt); border-radius: 8px; padding: 6px 10px; color: var(--color-text-muted); font-size: 11.5px; width: 220px; }
.app-mock-search svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; }
.app-mock-search .kbd { margin-left: auto; font-size: 10px; opacity: 0.7; }
.app-mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.app-mock-body { padding: 14px; flex: 1; }
.app-mock-panel { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.app-mock-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: var(--color-surface-tertiary); border-bottom: 1px solid var(--color-border); }
.app-mock-panel-head h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--color-text); }
.app-mock-panel-head .link { font-size: 11px; color: var(--color-primary-soft); }
.app-mock-panel-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.app-mock-status { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--color-text-muted); padding: 8px 14px 10px; }
.app-mock-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); animation: app-mock-pulse 1.8s ease-in-out infinite; }
.app-mock-editing { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-text-muted); padding: 0 14px 8px; font-family: 'JetBrains Mono', monospace; }
.app-mock-editing .cursor { display: inline-block; width: 6px; height: 12px; background: var(--color-primary-soft); animation: app-mock-blink 1s step-end infinite; }

/* Timeline rows */
.tl-row { display: flex; align-items: center; gap: 8px; }
.tl-node { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tl-node .ring { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--color-border); background: var(--color-bg); }
.tl-node.is-checkpoint { width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 0 10px rgba(47,47,228,0.4); }
.tl-node.is-checkpoint svg { width: 12px; height: 12px; fill: none; stroke: currentColor; }
.tl-row-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.tl-row-body:hover { background: var(--color-surface-high); }
.tl-msg { font-size: 12px; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--color-text-muted); flex-shrink: 0; }
.tl-actions { display: none; align-items: center; gap: 1px; flex-shrink: 0; }
.tl-row-body:hover .tl-actions { display: flex; }
.tl-actions button { border: none; background: none; padding: 4px; border-radius: 6px; color: var(--color-text-muted); display: flex; cursor: default; }
.tl-actions button svg { width: 11px; height: 11px; fill: none; stroke: currentColor; }
.tl-actions button:hover { background: var(--color-surface-high); color: var(--color-primary-soft); }

.tl-checkpoint { display: flex; align-items: flex-start; gap: 8px; }
.tl-checkpoint-card { flex: 1; border: 1px solid var(--color-border); background: var(--color-surface-tertiary); border-radius: 8px; padding: 8px 10px; transition: border-color 0.2s; }
.tl-checkpoint-card:hover { border-color: var(--color-primary); }
.tl-checkpoint-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-checkpoint-title { font-size: 12px; font-weight: 700; color: var(--color-text); }

.tl-enter { animation: tl-slide-in 0.5s ease-out; }
@keyframes tl-slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes app-mock-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes app-mock-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

@media (max-width: 640px) {
  .app-mock-shell { grid-template-columns: 1fr; }
  .app-mock-sidebar { display: none; }
}

/* ── App mock showcase: sidebar nav items double as tabs ────
   revly_app_mock_showcase_html() - Timeline/Releases/Deployments/AI
   Sessions each get a real key-action animation on activation. */
.app-mock-navitem.is-tab { cursor: pointer; }
.mock-view { display: none; }
.mock-view.active { display: block; }

.rel-row, .dep-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.rel-row:hover, .dep-row:hover { background: var(--color-surface-high); }
.rel-version { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--color-text); }
.rel-row .tl-time, .dep-row .tl-time { margin-left: auto; }
.rel-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-surface-high);
  color: var(--color-text-muted);
  transition: background 0.4s ease, color 0.4s ease;
}
.rel-pill.status-review { background: rgba(47,47,228,0.15); color: var(--color-primary-soft); }
.rel-pill.status-approved { background: rgba(230,184,76,0.15); color: var(--color-warning); }
.rel-pill.status-deployed { background: rgba(54,201,143,0.15); color: var(--color-success); }

.dep-env { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--color-surface-high); color: var(--color-text-muted); }
.dep-status { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--color-text-muted); fill: none; }
.dep-status.is-running { stroke: var(--color-primary-soft); animation: dep-spin 1s linear infinite; }
.dep-status.is-success { stroke: var(--color-success); }
@keyframes dep-spin { to { transform: rotate(360deg); } }

.ai-pending { text-align: center; padding: 20px; border: 1px dashed var(--color-warning); border-radius: 8px; background: rgba(230,184,76,0.06); transition: opacity 0.3s ease; }
.ai-pending.hidden { display: none; }
.ai-pending-label { margin: 0 0 6px; font-size: 11px; color: var(--color-text-muted); }
.ai-pending-code { margin: 0 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: var(--color-primary-soft); letter-spacing: 0.04em; }
.ai-pending-actions { display: flex; gap: 8px; justify-content: center; }
.ai-btn-ghost, .ai-btn-primary { font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 6px; }
.ai-btn-ghost { border: 1px solid var(--color-border); color: var(--color-text-muted); }
.ai-btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.ai-connected { display: none; align-items: flex-start; gap: 8px; }
.ai-connected.visible { display: flex; }
.ai-scopes { margin: 4px 0 0; font-size: 11px; color: var(--color-text-muted); }

/* ── Feature cards: bold, no icons, horizontally scrollable ─ */
.features { padding: 64px 0; border-top: 1px solid var(--color-border); }
.features-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.features-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.features-head p { color: var(--color-text-muted); font-size: 16px; margin: 0; }
.feature-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 24px 20px;
  margin: 0 -24px;
}
.feature-scroll::-webkit-scrollbar { height: 6px; }
.feature-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
/* Shared hover treatment for every card-based section (features,
   testimonials, updates, download) - one consistent interaction language
   instead of some cards being static and others reacting. */
.feature-card, .testimonial-card, .post-card, .download-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover, .testimonial-card:hover, .post-card:hover, .download-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* The legacy .feature-card/.feature-icon rules that lived here were
   deleted in the Task 13 final-review fix pass: Task 7 rebuilt the
   homepage's feature cards using NewUI's own .feature-card/.feature-icon
   (same class names), and these legacy rules were actively corrupting
   them via cascade order (a dark background winning over NewUI's light
   one, with card titles then inheriting dark --ink text - illegible;
   a 42px icon-badge box shrunk to a bare 28px glyph). NewUI's own
   rules (earlier in this file) are what actually style the homepage
   now. `.feature-card .index` (an old sub-element class) was also
   removed - the new markup uses NewUI's own `.feature-number` instead. */

.feature-scroll-wrap { position: relative; }
.feature-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.feature-nav:hover { border-color: var(--color-primary); color: var(--color-primary-soft); }
.feature-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.feature-nav.prev { left: -8px; }
.feature-nav.next { right: -8px; }
@media (max-width: 640px) { .feature-nav { display: none; } }

/* ── FAQ accordion ───────────────────────────────────────── */
.faq-accordion { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  font-family: inherit;
}
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--color-text-muted); stroke-width: 2; transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); stroke: var(--color-primary-soft); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 4px 20px; font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* ── Changelog accordion (reuses .faq-item/.faq-question/.faq-answer's
   toggle mechanics and animation - see footer.php's FAQ accordion script,
   which drives any .faq-item on any page) ───────────────────────────── */
.changelog-question-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.changelog-date { font-size: 12px; font-weight: 700; color: var(--color-primary-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.changelog-title { font-size: 16px; font-weight: 700; color: var(--color-text); }
.changelog-summary { font-size: 14px; color: var(--color-text-muted); margin: 0 0 14px; }
.changelog-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.changelog-items li { display: flex; gap: 10px; align-items: baseline; }
.changelog-time { flex-shrink: 0; font-family: monospace; font-size: 12px; color: var(--color-text-muted); min-width: 48px; }

/* ── Scroll-triggered reveal (ease in + rise) ───────────────
   Applied via [data-reveal]; footer.php's IntersectionObserver adds
   .revealed the first time the element enters the viewport. */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── Testimonials: single-slide carousel, auto-advances right to left ── */
.testimonial-card { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.testimonial-card .quote { font-size: 18px; line-height: 1.6; margin: 0 0 20px; }
.testimonial-card .author { font-size: 14px; font-weight: 700; }
.testimonial-card .role { font-size: 13px; color: var(--color-text-muted); }
.testimonial-card .testimonial-stars { font-size: 20px; letter-spacing: 3px; color: var(--color-primary, #6366f1); margin: 0 0 12px; }
.testimonial-card .testimonial-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: block; }
.testimonial-slider { position: relative; max-width: 720px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-slide { flex: 0 0 100%; min-width: 0; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testimonial-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 4px; background: var(--color-border); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.testimonial-dot.active { width: 22px; background: var(--color-primary); }

/* ── Logo marquee ────────────────────────────────────────── */
.logo-marquee { overflow: hidden; position: relative; padding: 8px 0; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track { display: flex; gap: 56px; align-items: center; width: max-content; animation: logo-scroll 30s linear infinite; }
.logo-track img { height: 28px; max-width: 120px; object-fit: contain; opacity: 0.7; filter: grayscale(1) brightness(1.8); }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Updates / blog cards ────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card .date { font-size: 12px; color: var(--color-text-muted); font-family: monospace; }
.post-card h3 { font-size: 17px; font-weight: 700; margin: 0; }
.post-card p { font-size: 14px; color: var(--color-text-muted); margin: 0; flex: 1; }
.post-card .read-more { font-size: 13px; font-weight: 700; color: var(--color-primary-soft); }

/* The legacy .download-grid/.download-card/.download-icon/.download-note
   rules that lived here were deleted in the Task 13 final-review fix
   pass: Task 7 rebuilt the homepage's download section using NewUI's
   own .download-grid/.download-card (same class names, declared
   earlier in this file as part of NewUI's .cta-section), and this
   legacy duplicate was winning the dark-surface background over
   NewUI's intended translucent-on-indigo card style via cascade order.
   `.download-icon`/`.download-note` are unused now (the new markup
   uses NewUI's own `.os-icon` and an inline note instead). */

/* ── Modal (download lead-capture) ──────────────────────────
   Hidden via visibility (not display:none) so the "open" class
   transition can animate opacity/scale instead of popping instantly. */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-panel { transform: translateY(0); }
.modal-panel h3 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.modal-sub { color: var(--color-text-muted); font-size: 14px; margin: 0 0 20px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface-high);
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--color-text); }

/* The legacy .cta-band rule that lived here was deleted during this
   page review: it was orphaned from index.php (Task 7 dropped this
   section entirely) but still collided with NewUI's own .cta-band
   (newui-pages.css), now used by changelog.php/mcp.php - its margin/
   border/border-radius (none of which NewUI's version sets) were
   surviving the cascade and turning NewUI's intended full-bleed,
   borderless indigo band into a rounded, bordered, inset box with
   extra margin. NewUI's own rule (loaded after style.css on both
   pages) is what actually styles this now. */

/* ── Footer ──────────────────────────────────────────────── */
/* Brand on the left, link columns on the right, copyright bar full width underneath. */
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  column-gap: clamp(32px, 6vw, 90px);
  align-items: start;
  background: var(--ink);
  color: #fff;
  padding: 64px clamp(24px, 5vw, 70px) 28px;
  font-size: 13px;
}
.site-footer a:hover { color: #fff; }
.site-footer .footer-links { margin: 0; max-width: none; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.site-footer .footer-links div { min-width: 0; }
.site-footer .footer-links a { overflow-wrap: anywhere; }
.site-footer .footer-bottom { grid-column: 1 / -1; margin-top: 48px; flex-wrap: wrap; }
.site-footer .footer-bottom span { color: #8a8999; font-size: 12px; }
@media (max-width: 900px) {
  .site-footer { grid-template-columns: 1fr; row-gap: 32px; padding-top: 48px; }
  .site-footer .footer-bottom { margin-top: 12px; }
}

/* ── Flash messages ──────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}
.flash.error { background: rgba(242, 109, 120, 0.12); color: var(--color-error); border: 1px solid rgba(242,109,120,0.3); }
.flash.success { background: rgba(54, 201, 143, 0.12); color: var(--color-success); border: 1px solid rgba(54,201,143,0.3); }
.flash.info { background: rgba(47, 47, 228, 0.12); color: var(--color-primary-soft); border: 1px solid rgba(47,47,228,0.3); }

/* ── Auth pages (login/register) ────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.auth-logo { text-align: center; font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin: 0 0 6px; }
.auth-sub { font-size: 14px; color: var(--color-text-muted); text-align: center; margin: 0 0 28px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--color-text-muted); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.form-control:focus { border-color: var(--color-primary); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--color-text-muted); }
.auth-footer a { color: var(--color-primary-soft); font-weight: 700; }

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-alt);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.oauth-btn:hover { border-color: var(--color-primary); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.divider span { font-size: 12px; color: var(--color-text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

@media (max-width: 640px) {
  .hero-headline { font-size: 36px; }
  .nav-links { display: none; }
}

/* ── Developer docs ──────────────────────────────────────── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.docs-sidebar { position: sticky; top: 96px; }
.docs-group { margin-bottom: 24px; }
.docs-group h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin: 0 0 8px; }
.docs-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-group a { display: block; padding: 6px 10px; border-radius: var(--radius-md); font-size: 14px; color: var(--color-text-muted); }
.docs-group a:hover { color: var(--color-text); background: var(--color-surface); }
.docs-group a.active { color: var(--color-primary-soft); background: var(--color-surface); font-weight: 600; }
/* Final-review fix: this whole block used to set an explicit light
   --color-text on .docs-content itself (not inherited - so the
   .site-shell/.docs-page ambient-color fix above couldn't reach it),
   the same hex as NewUI's --linen background it now sits on. code/pre/
   docs-diagram's dark --color-surface* backgrounds were designed for a
   dark page too, so they're swapped for a light, de-emphasized tint
   instead of the dark surfaces this light page no longer has. */
.docs-content { font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 720px; }
.docs-content h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.docs-content h2 { font-size: 21px; font-weight: 700; margin: 40px 0 14px; }
.docs-content h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.docs-content p { margin: 0 0 16px; }
.docs-content ul, .docs-content ol { margin: 0 0 16px; padding-left: 22px; }
.docs-content li { margin-bottom: 6px; }
.docs-content code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; background: var(--soft); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }
.docs-content pre { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin: 0 0 20px; }
.docs-content pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.6; }
.docs-content blockquote { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid #e6b84c; background: rgba(230,184,76,0.08); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 14px; }
.docs-diagram { margin: 8px 0 28px; padding: 20px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.docs-diagram svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.docs-excerpt { color: var(--muted); font-size: 16px; margin: 0 0 32px; }

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
}

/* ============================================================
   Cross-page alignment/spacing review - docs.php, mcp.php,
   changelog.php, donate.php, legal.php don't have NewUI's exact
   per-page content (real CMS pages instead of NewUI's single curated
   article, no search box, no sponsor tiers, etc. - see each task's own
   ledger rulings), so a few of NewUI's layout rules assume content
   these pages don't have. Fixed here rather than in newui-docs.css/
   newui-pages.css, which stay byte-identical ports of NewUI's own
   files. ============================================================ */

/* docs.php: .docs-hero is a 2-column grid (copy + a search box per
   NewUI's own single-page architecture-spec design) - this page has no
   search box (a real multi-page CMS doesn't have NewUI's per-section
   anchors to search), so the lone .docs-hero-copy child only filled
   the first column, leaving an empty gap where the second column
   would be. */
.docs-page .docs-hero { grid-template-columns: 1fr; }

/* docs.php: real docs pages are grouped into several categories, each
   rendering its own .sidebar-title + .docs-index pair (NewUI's
   original has exactly one of each, for its single fixed section
   list) - .sidebar-title only has margin-bottom, so repeated pairs ran
   together with no gap between categories. */
.docs-sidebar .sidebar-title { margin-top: 24px; }
.docs-sidebar .sidebar-title:first-child { margin-top: 0; }

/* Brand mark colors, as requested: the icon mark is indigo, the "Revly"
   wordmark text is ink - instead of both inheriting the same
   currentColor. Applies everywhere .brand is used (public nav, admin
   nav, footer-brand) except .site-footer, which already keeps both
   white against its own dark background for contrast - kept that
   existing override rather than making the logo illegible there. */
.brand-mark { color: #2F2FE4; }
.brand span { color: #080616; }
.site-footer .brand-mark, .site-footer .brand span { color: #fff; }

/* Donate page's "Other ways to help" grid: NewUI's own version assumes a
   public GitHub repo (star/issues/contributing) that doesn't exist for
   Revly, so only 2 of its 4 cards carry over as real destinations.
   .help-grid's base rule is a hardcoded repeat(4,1fr) - this caps it at
   2 fixed-width columns instead of stretching 2 cards across 4 slots. */
.help-grid-compact { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
@media (max-width: 560px) {
  .help-grid-compact { grid-template-columns: 1fr; }
}

/* Custom (uploaded/linked) logo from Settings > Site branding */
.brand-logo{width:auto;max-width:240px;object-fit:contain;display:block}
.site-footer .brand-logo{max-width:260px}

/* Custom pages (Admin > Page Content) */
.cp-block{padding:64px clamp(20px,5vw,70px)}
.cp-inner{max-width:900px;margin:0 auto}
.cp-inner h1{font-size:clamp(34px,5vw,56px);letter-spacing:-.04em;line-height:1.05;margin:0 0 20px}
.cp-inner h2{font-size:clamp(26px,3.4vw,38px);letter-spacing:-.03em;margin:0 0 16px}
.cp-body{font-size:16px;line-height:1.75;color:var(--ink)}
.cp-body img,.cp-body svg,.cp-body video{max-width:100%;height:auto}
.cp-body table{border-collapse:collapse;width:100%;margin:18px 0}
.cp-body th,.cp-body td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.cp-body a{color:var(--indigo);text-decoration:underline}
.cp-tinted{background:rgba(8,6,22,.045)}
.cp-dark{background:var(--ink);color:#fff}
.cp-dark .cp-body,.cp-dark h1,.cp-dark h2{color:#fff}
.cp-dark .cp-body a{color:#b9b9ff}

/* Account portal top nav (the list had no styles, so it rendered as bullets) */
.admin-nav-links{display:flex;align-items:center;gap:22px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.admin-nav-links a{font-size:14px;font-weight:600;color:var(--color-text-muted);transition:color .15s ease}
.admin-nav-links a:hover,.admin-nav-links a.active{color:var(--color-text)}

/* Download cards: only platforms that are switched on and have a published build are rendered, so there may be 1, 2 or 3.
   Fixed-width tracks centred as a group keep one or two cards looking intentional instead of stranded to the left. */
.download-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; }
.download-card:last-child { grid-column: auto; }
@media (max-width: 560px) { .download-grid { grid-template-columns: 1fr; } }

.lang-switch{margin:0 0 0 8px;display:inline-block}.lang-switch select{appearance:none;font:inherit;font-size:13px;font-weight:600;padding:7px 28px 7px 11px;border-radius:999px;border:1px solid var(--line,#d8d8e6);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2366677b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;color:var(--ink,#0b0b1f);cursor:pointer}
[dir=rtl] .lang-switch{margin:0 8px 0 0}[dir=rtl] .lang-switch select{padding:7px 11px 7px 28px;background-position:left 10px center}

/* Newsletter sign-up in the footer */
.news-form{margin-top:22px;max-width:340px}
.news-form label{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#c6c7d6;margin-bottom:8px}
.news-row{display:flex;gap:8px}
.news-row input{flex:1;min-width:0;padding:11px 13px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:14px}
.news-row input::placeholder{color:#9d9cab}
.news-row button{padding:11px 16px;border-radius:10px;border:0;background:#fff;color:#080616;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.news-row button:disabled{opacity:.6;cursor:default}
.news-form small{display:block;margin-top:8px;font-size:12px;line-height:1.5;color:#9d9cab}
.news-msg{margin:8px 0 0;font-size:13px;line-height:1.5}
.news-msg.ok{color:#7be0b0}.news-msg.err{color:#ffb3b3}

/* ── App mock, light mode: the same panels in the desktop app's own light palette (src/theme/tokens.ts LIGHT_PALETTE) ──
   Used by the docs "Installing & Your First Project" page; the native window frame, Getting started card, Deployments / AI Sessions
   rows, branch chip and help button follow the real Sidebar / Header. */
.app-mock.app-light {
  --color-text: #080616; --color-text-muted: #5a587e; --color-primary-soft: #2a2ad0; --color-primary: #2F2FE4; --color-on-primary: #EFECE3;
  --color-surface: #EFECE3; --color-surface-high: #d5d5d9; --color-surface-alt: #fcfbf8; --color-surface-tertiary: #fcfbf8;
  --color-border: #c4c6d3; --color-bg: #fcfbf8; --color-success: #12724f;
  background: #EFECE3; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid #c4c6d3; border-radius: 12px; position: relative;
  box-shadow: 0 24px 60px -18px rgba(8,6,22,0.28), 0 2px 6px rgba(8,6,22,0.08);
}
.app-mock.app-light::before { content: ""; display: block; height: 28px; border-bottom: 1px solid #c4c6d3; background: #e4e3df;
  background-image: radial-gradient(circle at 14px 14px, #ee6a5f 5px, transparent 6px), radial-gradient(circle at 34px 14px, #f5bd4f 5px, transparent 6px), radial-gradient(circle at 54px 14px, #61c554 5px, transparent 6px); }
.app-mock.app-light .app-mock-sidebar { background: #EFECE3; }
.app-mock.app-light .app-mock-main { background: #EFECE3; }
.app-mock.app-light .app-mock-search { background: #fcfbf8; }
.app-mock.app-light .app-mock-panel { background: #fcfbf8; }
.app-mock.app-light .app-mock-panel-body { background: #fcfbf8; }
.app-mock.app-light .tl-checkpoint-card { background: #f8f7f2; }
.app-mock.app-light .tl-node .ring { background: #fcfbf8; }
.app-mock.app-light .tl-node.is-checkpoint { box-shadow: 0 0 0 3px rgba(47,47,228,0.14); }
.app-mock.app-light .app-mock-logo .mark { background: #2F2FE4; color: #EFECE3; }
.app-mock.app-light .app-mock-header { background: #EFECE3; }
.app-mock.app-light .app-mock-tools { display: flex; align-items: center; gap: 8px; }
.app-mock.app-light .app-mock-branch { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c4c6d3; background: #fcfbf8; border-radius: 8px; padding: 4px 8px; font-size: 11px; color: #080616; }
.app-mock.app-light .app-mock-branch i { width: 6px; height: 6px; border-radius: 50%; background: #12724f; display: inline-block; }
.app-mock.app-light .app-mock-help { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #5a587e; border: 1px solid #c4c6d3; }
.app-mock-gs { margin: 12px 4px 0; border: 1px solid var(--color-border); background: var(--color-surface-alt, #fcfbf8); border-radius: 8px; padding: 8px 9px; }
.app-mock-gs .row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--color-text); }
.app-mock-gs .row small { font-size: 10px; font-weight: 400; color: var(--color-text-muted); }
.app-mock-gs .bar { height: 5px; border-radius: 99px; background: #dbdbdc; margin-top: 6px; overflow: hidden; }
.app-mock-gs .bar span { display: block; height: 100%; width: 41%; background: #2F2FE4; border-radius: 99px; }
.app-mock-gs .lvl { margin-top: 5px; font-size: 10px; color: var(--color-text-muted); }
.app-mock.app-light .app-mock-search { white-space: nowrap; width: auto; min-width: 230px; overflow: hidden; }
.app-mock.app-light .app-mock-header { gap: 12px; }

/* The built-in logo: logo.svg (the Revly icon in the brand blue, the wordmark in ink) in the header; the white version (kb/UI/Logo_white.svg) in the dark footer. */
.brand-wordmark{display:block;height:48px;width:auto}
.site-footer .brand-badge{display:inline-flex;align-items:center}
.site-footer .brand-wordmark{height:44px}

/* ── Product news band: sits above the footer (between the last section, e.g. Download, and the footer) ── */
.news-band{background:var(--ink);color:#fff;padding:44px clamp(24px,5vw,70px);border-bottom:1px solid rgba(255,255,255,.1)}
.news-band-inner{max-width:1440px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 48px}
.news-band-copy{flex:1 1 320px;min-width:0}
.news-band-copy h2{margin:0;font-size:22px;color:#fff}
.news-band-copy p{margin:6px 0 0;font-size:14px;line-height:1.5;color:#9d9cab;max-width:520px}
.news-band .news-form{margin:0;flex:1 1 360px;max-width:460px}
.news-band .news-msg{margin:8px 0 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
