/* Novendra product page. Builds on the shared product-page styles (/brioai/brioai.css).
   Every section shares one content width (1240px section, 48px padding → 1144px). */
:root { --cyan: #06b6d4; --ok: #10b981; --low: #ef4444; --amber: #d97706; }
.small { font-size: .88rem; }

/* framed screenshots and video: light browser chrome */
.frame { position: relative; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); display: block; width: 100%; }
.frame .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .frame .bar i:nth-child(2) { background: #febc2e; } .frame .bar i:nth-child(3) { background: #28c840; }
.frame .bar span { margin-left: 10px; font-weight: 600; }
.frame .bar em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--violet); }
.frame img, .frame video { display: block; width: 100%; height: auto; }

/* hero */
.a-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-top: clamp(40px, 6vw, 72px) !important; }
.a-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1.1rem; text-wrap: balance; }
.a-hero-visual { position: relative; padding: 18px 0 30px; }
.a-hero-visual .frame { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transition: transform .6s var(--ease); }
.a-hero-visual:hover .frame { transform: none; }
.float { position: absolute; display: flex; flex-direction: column; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite; }
.float b { font: 700 1.5rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.float span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.f1 { left: -28px; top: 26%; } .f2 { right: -18px; top: 8%; animation-delay: -1.6s; } .f3 { right: 10%; bottom: 0; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* product tour */
.tour-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.chapters { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.chapters button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font: 500 .95rem var(--font); color: var(--text); position: relative; transition: background .2s; }
.chapters button:hover { background: var(--surface-2); }
.chapters button .ct { font: 600 .78rem var(--mono); color: var(--muted); background: var(--surface-2); padding: 3px 7px; border-radius: 7px; min-width: 44px; text-align: center; }
.chapters button.on { background: rgba(79, 70, 229, .08); }
.chapters button.on .ct { background: var(--violet); color: #fff; }
.chapters button.on b { color: var(--violet); }
.chapters button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.tour-frame { align-self: start; }
.tour-frame video { aspect-ratio: 16 / 9; background: #f4f6fb; }
.tour-progress { height: 4px; background: var(--surface-2); }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s linear; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 0 !important; }
.numbers div { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.numbers div:hover { transform: translateY(-4px); }
.numbers b { display: block; font: 700 clamp(2.2rem, 4vw, 3rem) var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.numbers span { color: var(--muted); font-size: .95rem; }

/* USP explorer */
.usp-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.usp-tabs { display: flex; flex-direction: column; gap: 10px; }
.usp-tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  text-align: left; cursor: pointer; font: inherit; color: var(--text); box-shadow: var(--shadow); transition: border-color .2s, transform .2s var(--ease); }
.usp-tabs button:hover { transform: translateX(4px); }
.usp-tabs button[aria-selected="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12), var(--shadow); }
.usp-tabs button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.usp-tabs .ui { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(79, 70, 229, .07); flex: none; }
.usp-tabs b { display: block; font: 600 1.02rem var(--display); }
.usp-tabs small { color: var(--muted); font-size: .86rem; }
.usp-tabs .pbar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); }
.usp-tabs button[aria-selected="true"] .pbar { animation: fillbar var(--cycle, 6s) linear forwards; }
.usp-tabs.paused button .pbar { animation: none; width: 0; }
@keyframes fillbar { to { width: 100%; } }
.usp-stage { position: relative; min-height: 440px; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: radial-gradient(500px 260px at 90% 0%, rgba(79, 70, 229, .08), transparent 70%), radial-gradient(420px 240px at 0% 100%, rgba(13, 148, 136, .08), transparent 70%), var(--surface); overflow: hidden; }
.scene { position: absolute; inset: 0; padding: 28px 30px; display: flex; flex-direction: column; gap: 18px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.scene.on { opacity: 1; visibility: visible; transform: none; }
.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-head b { font: 700 1.4rem var(--display); }
.sc-head span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.sc-head em { font-style: normal; font: 700 1.2rem var(--display); color: var(--violet); }
.sc-note { margin: auto 0 0; color: var(--muted); font-size: .92rem; }

.portal-cloud { display: flex; flex-wrap: wrap; gap: 12px; align-content: center; justify-content: center; flex: 1; }
.portal-cloud span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border); font-weight: 700; box-shadow: var(--shadow);
  opacity: .25; transform: scale(.94); }
.portal-cloud span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.scene.on .portal-cloud span { animation: lit .5s var(--ease) var(--d) forwards; }
@keyframes lit { to { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--c) 45%, transparent); } }

.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; flex: 1; align-content: center; }
.fit-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: .95rem; }
.fit-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fit-list i { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fit-list u { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); }
.fit-list b { text-align: right; color: var(--teal); }
.fit-list li.low b { color: var(--low); } .fit-list li.low u { background: var(--low); }
.scene.on .fit-list u { animation: grow 1s var(--ease) var(--d) forwards; }
.scene.on .fit-list li.low { animation: dim .5s ease 2.4s forwards; }
@keyframes grow { to { width: var(--w); } }
@keyframes dim { to { opacity: .45; } }

.ats-wrap { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.gauge-box { position: relative; width: 220px; height: 220px; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.g-val { fill: none; stroke: var(--violet); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset .9s var(--ease), stroke .3s; }
.g-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-num b { font: 700 3rem var(--display); line-height: 1; }
.g-num span { color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; }
.kw span { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .88rem; background: #ffe9e9; color: #b91c1c; transition: background .3s, color .3s; }
.kw span.ok { background: #dcf7ec; color: #047857; }

.apply-cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: center; }
.ac { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; transform: translateY(18px); }
.ac span { font-size: 2rem; } .ac b { font: 700 1.15rem var(--display); } .ac small { color: var(--muted); }
.ac.a1 { border-color: rgba(16, 185, 129, .4); }
.scene.on .ac.a1 { animation: rise .6s var(--ease) .2s forwards; } .scene.on .ac.a2 { animation: rise .6s var(--ease) .9s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.stages { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; position: relative; padding: 8px 0; }
.stages i { height: 44px; border-radius: 50%; aspect-ratio: 1; justify-self: center; border: 3px solid rgba(19, 32, 74, .15); background: #fff; }
.scene.on .stages i:nth-child(-n+3) { animation: stage .4s var(--ease) forwards; }
.scene.on .stages i:nth-child(1) { animation-delay: .2s; } .scene.on .stages i:nth-child(2) { animation-delay: .6s; } .scene.on .stages i:nth-child(3) { animation-delay: 1s; }
.scene.on .stages i:nth-child(4) { animation: cur 1.6s ease-in-out 1.4s infinite; }
@keyframes stage { to { background: var(--ok); border-color: var(--ok); } }
@keyframes cur { 0%, 100% { border-color: var(--violet); box-shadow: 0 0 0 0 rgba(79, 70, 229, .3); } 50% { border-color: var(--violet); box-shadow: 0 0 0 8px rgba(79, 70, 229, .12); } }
.secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.secs li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: .95rem; }
.secs small { margin-left: auto; color: var(--muted); font-weight: 500; }
.tk { width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(19, 32, 74, .2); flex: none; }
.scene.on .secs li:nth-child(1) .tk { animation: tick .3s ease 1.2s forwards; } .scene.on .secs li:nth-child(2) .tk { animation: tick .3s ease 1.9s forwards; } .scene.on .secs li:nth-child(3) .tk { animation: tick .3s ease 2.6s forwards; }
@keyframes tick { to { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--ok); } }
.xp { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem; color: var(--muted); margin-top: auto; }
.xp i { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.xp u { display: block; height: 100%; width: 0; background: var(--grad); }
.scene.on .xp u { animation: xpfill 2.6s var(--ease) .6s forwards; }
@keyframes xpfill { to { width: 68%; } }

.s-int { display: grid; grid-template-columns: minmax(0, 1fr) 170px; grid-template-rows: auto 1fr; gap: 18px 24px; }
.s-int .sc-head { grid-column: 1 / -1; }
.chat { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.chat p { margin: 0; padding: 14px 16px; border-radius: 16px; font-size: .98rem; max-width: 92%; opacity: 0; transform: translateY(10px); }
.chat .q { background: #fff; border: 1px solid var(--border); border-top-left-radius: 5px; box-shadow: var(--shadow); }
.chat .a { align-self: flex-end; background: var(--grad); color: #fff; border-top-right-radius: 5px; }
.chat .fb { background: #ecfdf5; border: 1px solid rgba(16, 185, 129, .35); color: #065f46; }
.scene.on .chat .q { animation: rise .5s var(--ease) .2s forwards; } .scene.on .chat .a { animation: rise .5s var(--ease) 1.2s forwards; } .scene.on .chat .fb { animation: rise .5s var(--ease) 2.2s forwards; }
.ready { align-self: center; display: grid; place-items: center; text-align: center; aspect-ratio: 1; border-radius: 50%; border: 10px solid rgba(79, 70, 229, .14); background: #fff; }
.ready b { font: 700 2.6rem var(--display); color: var(--violet); line-height: 1; display: block; }
.ready span { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* screens viewer */
.scr-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.scr-tabs button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; transition: .2s; }
.scr-tabs button:hover { color: var(--text); border-color: var(--violet); }
.scr-tabs button[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.scr-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: center; }
.scr-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .2rem 0 .8rem; }
.scr-text p { color: var(--muted); font-size: 1.04rem; }
.scr-text ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 8px; }
.scr-text li { padding-left: 28px; position: relative; }
.scr-text li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(13, 148, 136, .12); color: var(--teal); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.scr-text .swap { animation: rise .45s var(--ease) both; }
.scr-shot { cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.scr-shot img { transition: opacity .25s, transform .5s var(--ease); }
.scr-shot:hover img { transform: scale(1.015); }
.scr-shot.fade img { opacity: 0; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(19, 32, 74, .55); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); background: #fff; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); }

/* crew */
.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.crew-grid div { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 22px 76px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.crew-grid div:hover { transform: translateY(-4px); border-color: var(--violet); }
.crew-grid span { position: absolute; left: 20px; top: 22px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(79, 70, 229, .08); }
.crew-grid b { display: block; font: 600 1.1rem var(--display); margin-bottom: .3rem; }
.crew-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

/* time saved */
.saver-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(26px, 3.5vw, 44px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.saver-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.2rem; }
.saver-label { display: block; font-weight: 600; margin-bottom: 10px; }
.saver-label b { color: var(--violet); }
#apps { width: 100%; accent-color: var(--violet); height: 28px; }
.saver-note { color: var(--muted); font-size: .88rem; margin: .8rem 0 0; }
.saver-out { text-align: center; padding: 26px; border-radius: 22px; background: linear-gradient(140deg, rgba(79, 70, 229, .08), rgba(13, 148, 136, .08)); }
.saver-out b { display: block; font: 700 clamp(3rem, 6vw, 4.4rem) var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.saver-out span { font-weight: 600; color: var(--text); }
.saver-out em { display: block; font-style: normal; color: var(--muted); margin-top: 6px; }

.steps.four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1080px) {
  .usp-grid { grid-template-columns: 1fr; }
  .usp-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .usp-tabs button { flex: 0 0 260px; scroll-snap-align: start; }
  .usp-tabs button:hover { transform: none; }
  .tour-grid { grid-template-columns: 1fr; }
  .chapters { flex-direction: row; overflow-x: auto; order: 2; padding: 8px; }
  .chapters button { white-space: nowrap; }
  .scr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .a-hero { grid-template-columns: 1fr; }
  .a-hero-visual .frame { transform: none; }
  .f1 { left: 8px; } .f2 { right: 8px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
  .saver-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .crew-grid, .steps.four { grid-template-columns: 1fr; }
  .ats-wrap { grid-template-columns: 1fr; justify-items: center; }
  .gauge-box { width: 170px; height: 170px; }
  .apply-cards { grid-template-columns: 1fr; }
  .s-int { grid-template-columns: 1fr; }
  .ready { display: none; }
  .usp-stage { min-height: 470px; }
  .scene { padding: 22px 18px; }
  .fit-list li { grid-template-columns: minmax(0, 1fr) 44px; } .fit-list i { display: none; }
  .float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .usp-tabs .pbar { animation: none !important; }
  .scene.on * { animation-duration: .01s !important; animation-delay: 0s !important; }
}
