/* Homepage sections. System tokens live in rivioo.css. */

/* hero */
.hero{position:relative;overflow:hidden;padding-block:56px 0}
@media(min-width:768px){.hero{padding-top:88px}}
.hero .container{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px}
.hero h1{font-size:clamp(38px,6.4vw,76px);letter-spacing:-.03em;line-height:1.05;max-width:16ch}
.hero .lede{font-size:clamp(16px,1.5vw,20px);max-width:62ch;font-weight:500;line-height:1.5}
.hero .ctas{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.hero .proof{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}
.hero .proof .stars svg{width:14px;height:14px;fill:var(--brand)}
.hero .glow{top:220px}
.mockup-wrap{position:relative;z-index:1;width:100%;margin-top:24px;perspective:1600px}
.mockup-wrap .mockup-frame{transform:rotateX(6deg);transform-origin:top center;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.mockup-wrap:hover .mockup-frame{transform:rotateX(2deg)}
@media(prefers-reduced-motion:reduce){.mockup-wrap .mockup-frame{transform:none}}
.mockup-wrap .mockup{aspect-ratio:16/9.2;max-height:720px}
.hero .fade{position:absolute;left:0;right:0;bottom:0;height:220px;background:linear-gradient(180deg,transparent,var(--bg));pointer-events:none;z-index:2}

/* static app preview inside the hero mockup */
.preview{display:grid;grid-template-columns:232px 1fr;height:100%;font-size:13px}
.preview .app-main{display:grid;grid-template-rows:auto 1fr;min-width:0}
.preview .app-body{display:grid;grid-template-columns:340px 1fr;min-height:0}
.preview .app-form{border-right:1px solid var(--border);padding:18px;display:flex;flex-direction:column;gap:14px}
.preview .f-label{font-size:12px;color:var(--muted);font-weight:500}
.preview .f-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:var(--glass);border:1px solid var(--border-3);border-radius:var(--r-sm);padding:2px}
.preview .f-seg span{height:28px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:4px;color:var(--muted);font-size:12px}
.preview .f-seg span.on{background:var(--glass-h);color:var(--fg)}
.preview .f-seg svg{width:12px;height:12px}
.preview .f-inp{height:34px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--bg);display:flex;align-items:center;gap:8px;padding:0 10px;color:var(--fg)}
.preview .f-inp svg{width:14px;height:14px;color:var(--muted-2)}
.preview .f-inp .chev{margin-left:auto}
.preview .f-app{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--glass)}
.preview .f-app .ic{width:32px;height:32px;border-radius:8px;background:#1DB954;display:grid;place-items:center;flex:none}
.preview .f-app .ic svg{width:18px;height:18px}
.preview .f-app b{display:block;font-weight:500;font-size:13px}
.preview .f-app small{color:var(--muted);font-size:12px}
.preview .f-row{display:flex;justify-content:space-between;font-size:12.5px;color:var(--muted)}
.preview .f-row b{font-weight:500}
.preview .f-tot{display:flex;justify-content:space-between;align-items:baseline;padding-top:12px;border-top:1px solid var(--border)}
.preview .f-tot b{font-size:20px;letter-spacing:-.02em}
.preview .f-tot small{color:var(--muted);font-size:12px}
.preview .app-form .btn{height:36px;font-size:13px}
.preview .app-res{padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0}
.preview .res-head{display:flex;align-items:center;gap:10px}
.preview .res-head .file{font-family:var(--mono);font-size:12px;color:var(--fg)}
.preview .res-head .n{margin-left:auto;font-size:12px;color:var(--muted)}
.preview .prog{height:4px;border-radius:2px;background:var(--glass-h);overflow:hidden}
.preview .prog i{display:block;height:100%;width:72%;background:var(--brand);border-radius:2px;transform-origin:left;animation:prog 1.8s cubic-bezier(.2,.7,.2,1) .4s both}
@keyframes prog{from{transform:scaleX(.35)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.preview .prog i{animation:none}}
.preview .table{font-size:12.5px;table-layout:fixed}
.preview .table th{padding:8px 12px;font-size:11.5px}
.preview .table td{padding:9px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.preview{grid-template-columns:1fr}.preview .app-side{display:none}.preview .app-body{grid-template-columns:1fr}.preview .app-form{display:none}}

/* export tool section: sits inside the hero fade, so less top air */
.tool-section{padding-top:56px;padding-bottom:64px}
.tool-section .sec-head{margin-bottom:28px}
.logos-section{padding-block:40px}
@media(min-width:768px){.tool-section{padding-top:80px;padding-bottom:96px}.logos-section{padding-block:24px 56px}}

/* logos: open row with staggered blur-fade entrance */
.logos{display:flex;flex-direction:column;align-items:center;gap:36px;text-align:center}
.logos h2{font-size:14px;font-weight:500;color:var(--muted);letter-spacing:0}
.logos .row{display:grid;grid-template-columns:repeat(5,1fr);gap:28px 24px;width:100%;max-width:960px}
@media(max-width:900px){.logos .row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.logos .row{grid-template-columns:repeat(2,1fr)}}
.logos .it{display:flex;align-items:center;justify-content:center;height:40px}
.logos .it svg,.logos .it img{height:var(--h,22px);width:auto;max-width:120px;overflow:visible;opacity:.5;filter:grayscale(1) invert(var(--logo-invert));transition:opacity .25s}
.logos .it:hover svg,.logos .it:hover img{opacity:.95}
@media(max-width:600px){.logos .it svg,.logos .it img{height:calc(var(--h,22px) * .85)}}

/* feature grid */
.items{display:flex;flex-direction:column;gap:48px;align-items:center}
.items h2{font-size:clamp(28px,3.6vw,44px);text-align:center;max-width:22ch}
.items .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:40px 32px;width:100%;max-width:1100px}
@media(min-width:900px){.items .grid{grid-template-columns:repeat(4,1fr)}}
.item{display:flex;flex-direction:column;gap:8px}
.item .lucide,.item>svg{width:20px;height:20px;stroke-width:1.5;color:var(--fg)}
.item h3{font-size:14px;font-weight:600;letter-spacing:0;margin-top:6px}
.item p{font-size:14px;line-height:1.5}

/* bento */
.bento{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.bento .tile{grid-column:span 12;min-height:340px}
@media(min-width:900px){.bento .w5{grid-column:span 5}.bento .w7{grid-column:span 7}}
.tile .vis{margin-top:auto;position:relative}
.pipe{position:relative;height:150px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;margin-top:24px}
.pipe::before{content:"";position:absolute;left:36px;right:36px;top:50%;height:1px;background:linear-gradient(90deg,transparent,var(--border-2) 20%,var(--border-2) 80%,transparent)}
.pipe .beam{position:absolute;left:36px;top:50%;height:1px;width:60px;background:linear-gradient(90deg,transparent,var(--brand),transparent);animation:beam 2.8s linear infinite}
@keyframes beam{from{transform:translateX(0)}to{transform:translateX(900%)}}
@media(prefers-reduced-motion:reduce){.pipe .beam{display:none}}
.node{position:relative;width:64px;height:64px;border-radius:50%;background:var(--card-2);border:1px solid var(--border-2);display:grid;place-items:center;box-shadow:0 0 0 8px var(--bg),0 0 0 9px var(--border-3)}
.node svg,.node img{width:26px;height:26px}
.node.mid{width:76px;height:76px;background:radial-gradient(circle at 50% 30%,var(--brand-soft),var(--card-2) 70%);border-color:color-mix(in srgb,var(--brand) 40%,var(--border-2))}
.node.mid img{width:28px;height:28px;filter:brightness(0) invert(var(--logo-invert))}
.node small{position:absolute;top:100%;margin-top:14px;font-size:12px;color:var(--muted);white-space:nowrap;left:50%;transform:translateX(-50%)}
@media(max-width:600px){.pipe{padding:0}.node{width:48px;height:48px}.node.mid{width:56px;height:56px}.node svg,.node img{width:20px;height:20px}.node small{display:none}}
.vig-code{margin:24px -32px -32px;border-top:1px solid var(--border);border-left:1px solid var(--border);border-radius:var(--r-md) 0 0 0;background:var(--bg);padding:14px 16px 24px;font-family:var(--mono);font-size:12px;line-height:1.7;color:var(--muted);overflow:hidden;white-space:nowrap}
.vig-code pre{margin:0;padding:0;border:0;border-radius:0;background:none;font:inherit;line-height:inherit;color:var(--fg);overflow:hidden}
.vig-code .tabs{display:flex;gap:14px;font-family:var(--font);font-size:12px;margin-bottom:10px;color:var(--muted-2)}
.vig-code .tabs b{color:var(--fg);font-weight:500}
.vig-list{margin-top:20px;border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden;background:var(--bg)}
.vig-list div{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--border-3);font-size:13px;color:var(--fg)}
.vig-list div:last-child{border-bottom:0}
.vig-list .cc{font-family:var(--mono);font-size:11.5px;color:var(--muted);width:26px}
.vig-list .n{margin-left:auto;font-family:var(--mono);font-size:11.5px;color:var(--muted-2)}
.vig-list div.hi{background:var(--glass)}
.vig-rec{margin-top:20px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg);padding:14px 16px;display:flex;flex-direction:column;gap:8px;font-size:13px}
.vig-rec div{display:flex;justify-content:space-between;color:var(--muted)}
.vig-rec b{font-weight:500;color:var(--fg);font-family:var(--mono);font-size:12.5px}
.vig-rec .tot{border-top:1px solid var(--border);padding-top:8px;color:var(--fg)}
.vig-rec .tot b{color:var(--ok)}

/* pricing */
.cols{display:grid;grid-template-columns:1fr;gap:24px;width:100%;max-width:1100px;margin:0 auto}
@media(min-width:900px){.cols{grid-template-columns:repeat(3,1fr)}}
.col{position:relative;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--card);padding:28px;display:flex;flex-direction:column;gap:20px;overflow:hidden}
.col.brand{border-color:color-mix(in srgb,var(--brand) 35%,var(--border))}
.col.brand::before{content:"";position:absolute;left:0;right:0;top:0;height:200px;background:radial-gradient(ellipse at 50% 0%,var(--brand-soft),transparent 70%);pointer-events:none}
.col>*{position:relative}
.col .nm{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15px;color:var(--fg)}
.col .nm .lucide{color:var(--muted)}
.col .desc{font-size:14px;line-height:1.5;min-height:42px}
.col .price{display:flex;align-items:baseline;gap:10px}
.col .price .cur{font-size:22px;color:var(--muted);font-weight:500}
.col .price .n{font-size:56px;font-weight:700;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums;color:var(--fg)}
.col .price .per{font-size:14px;color:var(--muted);line-height:1.35}
.col .note{font-size:13px;line-height:1.5}
.col ul{list-style:none;display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--fg)}
.col li{display:flex;gap:10px;align-items:flex-start}
.col li .lucide{margin-top:2px;color:var(--muted)}
.col li b{font-weight:500}
.sl{display:flex;flex-direction:column;gap:10px}
.sl input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:28px;background:transparent;cursor:pointer;margin:0}
.sl input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--glass-h)}
.sl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--fg);margin-top:-7px;border:0;box-shadow:0 0 0 4px var(--bg),0 0 0 5px var(--border-2)}
.sl input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--glass-h)}
.sl input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--fg);border:0}
.sl .ticks{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--muted-2)}

/* faq (existing script contract: .faq-item/.faq-question/.faq-icon/.faq-answer.active) */
.faq{display:grid;grid-template-columns:1fr;gap:32px;max-width:1100px;margin:0 auto}
@media(min-width:900px){.faq{grid-template-columns:1fr 2fr;gap:64px}}
.faq h2{font-size:clamp(28px,3.6vw,44px)}
.faq .ask{margin-top:12px;font-size:15px}
.faq .ask a{color:var(--brand-fg)}
.faq-container{display:flex;flex-direction:column}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item.faq-hidden{display:none}
.faq-question{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;cursor:pointer}
.faq-question h3{font-size:16px;font-weight:500;letter-spacing:0;line-height:1.4}
.faq-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:var(--muted);font-size:18px;line-height:1;flex:none;transition:transform .2s}
.faq-item.active .faq-icon{transform:rotate(45deg)}
.faq-answer{display:none;padding:0 0 20px}
.faq-answer.active{display:block}
.faq-answer p{font-size:15px;line-height:1.6;max-width:64ch}
.faq-answer a{color:var(--brand-fg)}
.faq-show-more-btn{margin-top:16px;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--glass);color:var(--fg);font-size:13px;font-weight:500;cursor:pointer}
.faq-show-more-btn:hover{background:var(--glass-h)}
.faq-show-more-btn .lucide{transition:transform .2s}
.faq-show-more-btn.expanded .lucide{transform:rotate(180deg)}

/* cta */
.cta{position:relative;overflow:hidden;text-align:center;display:flex;flex-direction:column;align-items:center;gap:24px;padding-block:96px}
.cta .container{display:flex;flex-direction:column;align-items:center;gap:24px;position:relative;z-index:1}
.cta h2{font-size:clamp(30px,4.2vw,52px)}
.cta .glow{bottom:-260px;animation:none;opacity:1}
