/* ==========================================================================
   Animated product scenes (home + products pages). Minimal, flat, one accent colour.
   Built from HTML/CSS only. The base markup is the finished state; product-scenes.js
   plays it once by toggling .is-sN classes / data-step.
   ========================================================================== */

@property --ws-n {
    syntax: '<integer>';
    inherits: false;
    initial-value: 42;
}

.ww-scene {
    --o: var(--accent, #FF4C00);
    --ink: #1F1F1F;
    --mute: #8A8A8A;
    --line: rgba(31, 31, 31, 0.10);
    --soft: rgba(31, 31, 31, 0.06);
    --ok: #12A150;
    --ease: cubic-bezier(.22, 1, .36, 1);

    position: relative;
    width: 100%;
    max-width: 560px;
    min-height: 400px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    container-type: inline-size;
}

.ww-scene b { font-weight: 600; }
.ww-scene b, .ww-scene em, .ww-scene i, .ww-scene u { font-style: normal; text-decoration: none; }
.ww-scene h4, .ww-scene h5 { margin: 0; font-family: inherit; }
.ww-scene h5 { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--mute); margin-bottom: 8px; }

/* skeleton bars */
.wb-title i, .wb-sec p i, .wb-out p i, .wc-copy p i, .wc-nav span i {
    display: block; height: 6px; border-radius: 6px; background: var(--soft);
}

/* =========================  SearchPilot  ========================= */
.ww-scene--search { --h: 54px; display: flex; flex-direction: column; gap: 18px; }

.ws-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ws-kw { font-weight: 600; }
.ws-loc { color: var(--mute); }
.ws-loc::before { content: "in"; margin-right: 8px; }
.ws-swap { position: relative; display: inline-block; min-width: 76px; height: 18px; vertical-align: bottom; }
.ws-swap b { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 600; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s var(--ease); }
.ws-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.ws-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ws-ping 1.8s infinite; }
@keyframes ws-ping { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .4); } 70%, 100% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); } }

.ww-scene--search[data-step="1"] .l1,
.ww-scene--search[data-step="2"] .l2,
.ww-scene--search[data-step="3"] .l3 { opacity: 1; transform: none; }

.ws-serp { position: relative; display: flex; gap: 14px; }
.ws-nums { flex: none; width: 14px; }
.ws-nums span { display: flex; align-items: center; height: calc(var(--h) - 8px); margin-bottom: 8px; font-size: 12px; color: #B4B4B4; }

.ws-rows { position: relative; flex: 1; min-width: 0; height: calc(var(--h) * 5); }
.ws-row {
    position: absolute; left: 0; right: 0; top: 0; height: calc(var(--h) - 8px);
    display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #6B6B6B;
    transform: translateY(calc(var(--slot) * var(--h)));
    transition: transform .9s cubic-bezier(.65, 0, .25, 1);
}
.ws-row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-tag { font-size: 11px; font-weight: 600; color: var(--o); }
.ws-you { border-color: var(--o); color: var(--ink); background: #FFF8F4; z-index: 2; }
.ws-you b { font-weight: 600; }

.ws-a { --slot: 0; } .ws-b { --slot: 1; } .ws-c { --slot: 2; } .ws-d { --slot: 4; } .ws-you { --slot: 3; }
.ww-scene--search[data-step="2"] .ws-you { --slot: 1; }
.ww-scene--search[data-step="2"] .ws-b { --slot: 2; }
.ww-scene--search[data-step="2"] .ws-c { --slot: 3; }
.ww-scene--search[data-step="3"] .ws-you { --slot: 0; }
.ww-scene--search[data-step="3"] .ws-a { --slot: 1; }
.ww-scene--search[data-step="3"] .ws-b { --slot: 2; }
.ww-scene--search[data-step="3"] .ws-c { --slot: 3; }

.ws-scan { position: absolute; left: 28px; right: 0; top: 0; height: 1px; opacity: 0; pointer-events: none; z-index: 3; background: var(--o); }
.ww-scene--search[data-step="1"] .ws-scan { animation: ws-scan-1 .9s ease-out; }
.ww-scene--search[data-step="2"] .ws-scan { animation: ws-scan-2 .9s ease-out; }
.ww-scene--search[data-step="3"] .ws-scan { animation: ws-scan-3 .9s ease-out; }
@keyframes ws-scan-1 { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(calc(var(--h) * 5)); } }
@keyframes ws-scan-2 { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(calc(var(--h) * 5)); } }
@keyframes ws-scan-3 { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(calc(var(--h) * 5)); } }

.ws-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.ws-foot-l { color: var(--mute); }
.ws-rank { position: relative; width: 44px; height: 34px; text-align: right; }
.ws-rank b { position: absolute; right: 0; top: 0; font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -.03em; color: var(--o); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s var(--ease); }
.ws-rank b::before { content: "#"; font-size: 18px; color: var(--mute); margin-right: 1px; }
.ww-scene--search[data-step="1"] .r1, .ww-scene--search[data-step="2"] .r2, .ww-scene--search[data-step="3"] .r3 { opacity: 1; transform: none; }

/* =========================  BlogPilot  ========================= */
.ww-scene--blog { display: flex; flex-direction: column; gap: 18px; }

.wb-steps { position: relative; display: flex; justify-content: space-between; padding-bottom: 12px; }
.wb-chip { font-size: 12.5px; color: #B4B4B4; transition: color .4s ease; }
.wb-track { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.wb-track i { display: block; height: 2px; margin-top: -.5px; width: 0; background: var(--o); transition: width .9s var(--ease); }
.ww-scene--blog[data-step="1"] .wb-track i { width: 10%; }
.ww-scene--blog[data-step="2"] .wb-track i { width: 30%; }
.ww-scene--blog[data-step="3"] .wb-track i { width: 52%; }
.ww-scene--blog[data-step="4"] .wb-track i { width: 76%; }
.ww-scene--blog[data-step="5"] .wb-track i { width: 100%; }
.ww-scene--blog.is-s2 .c1, .ww-scene--blog.is-s3 .c2, .ww-scene--blog.is-s4 .c3, .ww-scene--blog.is-s5 .c4 { color: var(--mute); }
.ww-scene--blog[data-step="1"] .c1, .ww-scene--blog[data-step="2"] .c2, .ww-scene--blog[data-step="3"] .c3,
.ww-scene--blog[data-step="4"] .c4, .ww-scene--blog[data-step="5"] .c5 { color: var(--ink); font-weight: 600; }

.wb-stage { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; flex: 1; align-items: start; }
.wb-doc { padding-right: 22px; border-right: 1px solid var(--line); min-height: 250px; }
.wb-title { display: grid; gap: 8px; margin-bottom: 14px; }
.wb-title i { height: 10px; background: var(--ink); opacity: .88; transform-origin: left; }
.wb-title i:last-child { width: 60%; }
.wb-cover { height: 58px; border-radius: 8px; margin-bottom: 14px; background: #FFEDE4; }
.wb-sec { margin-bottom: 12px; }
.wb-sec b { display: block; width: 40%; height: 7px; border-radius: 6px; background: var(--o); margin-bottom: 8px; transform-origin: left; }
.wb-sec p { margin: 0; display: grid; gap: 6px; }
.wb-sec p i { transform-origin: left; }
.wb-sec p i:last-child { width: 68%; }

.wb-side { display: grid; gap: 20px; }
.wb-pill { display: inline-block; margin: 0 4px 6px 0; padding: 3px 9px; border-radius: 50px; font-size: 11.5px; border: 1px solid var(--line); color: var(--ink); }
.wb-out p { margin: 0 0 8px; }
.wb-out p:last-child { margin: 0; }
.wb-out p i { width: 100%; }
.wb-out p:nth-of-type(2) i { width: 78%; }
.wb-out p:nth-of-type(3) i { width: 60%; }
.wb-score { display: flex; align-items: center; gap: 12px; }
.wb-score h5 { margin: 0; font-size: 12.5px; color: var(--ink); }
.wb-ring { --ws-n: 96; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; counter-reset: wsn var(--ws-n);
    background: radial-gradient(closest-side, #fff 80%, transparent 82%), conic-gradient(var(--ink) calc(var(--ws-n) * 1%), var(--soft) 0);
    transition: --ws-n 1.5s var(--ease); }
.wb-num::after { content: counter(wsn); font-size: 16px; font-weight: 600; }

.wb-toast { position: absolute; left: 22px; bottom: 22px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 50px;
    background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 12.5px; transition: opacity .5s ease, transform .6s var(--ease); }
.wb-toast u { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.ww-scene--blog:not(.is-s1) .wb-kw,
.ww-scene--blog:not(.is-s2) .wb-out,
.ww-scene--blog:not(.is-s4) .wb-score { opacity: 0; transform: translateY(8px); }
.ww-scene--blog:not(.is-s2) .wb-title i,
.ww-scene--blog:not(.is-s3) .wb-sec b,
.ww-scene--blog:not(.is-s3) .wb-sec p i { transform: scaleX(0); }
.ww-scene--blog:not(.is-s3) .wb-cover { opacity: 0; }
.ww-scene--blog:not(.is-s5) .wb-toast { opacity: 0; transform: translateY(10px); }
.ww-scene--blog:not(.is-s4) .wb-ring { --ws-n: 42; }
.wb-kw, .wb-out, .wb-score, .wb-cover { transition: opacity .5s ease, transform .6s var(--ease); }
.wb-title i, .wb-sec b, .wb-sec p i { transition: transform .8s var(--ease); }
.wb-sec p i:nth-child(2) { transition-delay: .12s; }
.wb-sec p i:nth-child(3) { transition-delay: .24s; }
.wb-sec.s2 b, .wb-sec.s2 p i { transition-delay: .35s; }
.wb-title i:last-child { transition-delay: .15s; }

/* =========================  ConvertPilot  ========================= */
.ww-scene--convert { display: flex; flex-direction: column; gap: 14px; }

.wc-prompt { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 6px 0 16px; border-radius: 50px; border: 1px solid var(--line); }
.wc-type-wrap { flex: 1; min-width: 0; overflow: hidden; }
.wc-type { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; vertical-align: bottom; font-weight: 500; border-right: 1.5px solid transparent; }
.wc-build { flex: none; height: 30px; padding: 0 16px; border-radius: 50px; display: inline-flex; align-items: center; font-weight: 600; color: #fff; background: var(--ink); transition: transform .3s var(--ease); }
.ww-scene--convert.is-s1:not(.is-s2) .wc-type { border-right-color: var(--o); }
.ww-scene--convert[data-step="2"] .wc-build { transform: scale(.93); background: var(--o); }
.ww-scene--convert.is-s1 .wc-type { animation: wc-type 1.8s steps(40) both; }
@keyframes wc-type { from { max-width: 0; } to { max-width: 100%; } }

.wc-browser { flex: 1; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; transition: opacity .6s ease, transform .7s var(--ease); }
.wc-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--mute); }
.wc-live { display: inline-flex; align-items: center; gap: 6px; transition: opacity .4s ease; }
.wc-live u { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.wc-page { padding: 18px 18px 22px; display: grid; gap: 22px; }
.wc-nav { display: flex; align-items: center; justify-content: space-between; transition: opacity .5s ease; }
.wc-nav b { width: 48px; height: 8px; border-radius: 5px; background: var(--ink); }
.wc-nav span { display: flex; gap: 8px; } .wc-nav span i { width: 28px; }
.wc-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: center; }
.wc-copy h4 { font-size: 22px; line-height: 1.12; font-weight: 600; letter-spacing: -.03em; margin-bottom: 12px; transition: opacity .5s ease, transform .6s var(--ease); }
.wc-copy p { margin: 0 0 14px; display: grid; gap: 6px; transition: opacity .5s ease .1s; }
.wc-copy p i:last-child { width: 66%; }
.wc-cta { display: inline-block; padding: 8px 15px; border-radius: 50px; background: var(--o); color: #fff; font-weight: 600; font-size: 12px; transition: opacity .5s ease .2s, transform .6s var(--ease) .2s; }
.wc-form { display: grid; gap: 8px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); transition: opacity .6s ease, transform .7s var(--ease); }
.wc-form span { height: 26px; border-radius: 6px; border: 1px solid var(--line); }
.wc-form b { height: 28px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 500; }

.wc-track { font-size: 12px; color: var(--mute); transition: opacity .5s ease; }

.wc-lead { position: absolute; right: 22px; bottom: 54px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(31, 31, 31, .08); transition: opacity .5s ease, transform .6s var(--ease); }
.wc-lead u { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.wc-lead b { display: block; font-size: 13px; }
.wc-lead em { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }

.ww-scene--convert:not(.is-s2) .wc-browser { opacity: 0; transform: translateY(12px); }
.ww-scene--convert:not(.is-s2) .wc-nav,
.ww-scene--convert:not(.is-s3) .wc-copy h4,
.ww-scene--convert:not(.is-s3) .wc-copy p,
.ww-scene--convert:not(.is-s3) .wc-cta { opacity: 0; transform: translateY(8px); }
.ww-scene--convert:not(.is-s4) .wc-form { opacity: 0; transform: translateY(10px); }
.ww-scene--convert:not(.is-s5) .wc-live,
.ww-scene--convert:not(.is-s5) .wc-track { opacity: 0; }
.ww-scene--convert:not(.is-s6) .wc-lead { opacity: 0; transform: translateY(12px); }

@container (max-width: 440px) {
    .ww-scene { font-size: 12px; padding: 16px; }
    .wb-stage { grid-template-columns: 1fr; gap: 16px; }
    .wb-doc { padding-right: 0; border-right: 0; min-height: 0; }
    .wb-side { grid-template-columns: 1fr 1fr; gap: 14px; }
    .wb-score { grid-column: 1 / -1; }
    .wc-hero { grid-template-columns: 1fr; }
    .wc-form { display: none; }
    .wc-copy h4 { font-size: 19px; }
    .wb-toast { left: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ww-scene *, .ww-scene *::before, .ww-scene *::after { animation: none !important; transition: none !important; }
}

/* hero demo on the BlogPilot and SearchPilot pages: the scene, larger, in place of the dashboard image */
.ww-hero-demo { width: 100%; max-width: 1060px; border-radius: 22px; background: #fff; box-shadow: 0 24px 56px -22px rgba(31, 31, 31, .35); text-align: left; }
.ww-hero-demo .ww-scene { max-width: none; width: 100%; min-height: 0; border: 0; border-radius: 22px; padding: 26px 30px; zoom: 1.12; }
.ww-hero-demo .ww-scene--search .ws-row { --h: 54px; }
@media (max-width: 767px) { .ww-hero-demo .ww-scene { zoom: 1; padding: 18px; } }

/* product logos (home + products pages) */
.product-name-tag { margin: 14px 0 16px; }
.product-logo { display: block; height: 38px; width: auto; max-width: 100%; }
.product-logo--lg { height: 46px; }
.pane-title:has(.product-logo) { line-height: 1; }
/* ==========================  Product list (rows)  ========================== */
.pc-section { padding: 90px 0 100px; background: #fff; }
.pc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pc-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #FF4C00); margin-bottom: 14px; }
.pc-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.pc-title { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; margin: 0; color: #1F1F1F; }
.pc-head p { margin: 0; color: #6B6B6B; line-height: 1.6; }
.pc-list { border-top: 1px solid rgba(31, 31, 31, .14); }
.pc-row { display: grid; grid-template-columns: .9fr 1.25fr; gap: 60px; align-items: center; padding: 56px 0; border-bottom: 1px solid rgba(31, 31, 31, .14); }
.pc-n { display: block; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: #9A9A9A; margin-bottom: 22px; }
.pc-logo { display: block; height: 28px; width: auto; margin-bottom: 22px; }
.pc-row:nth-child(2) .pc-logo { height: 25px; }
.pc-info h3 { font-size: clamp(20px, 2.5vw, 28px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 0 0 12px; color: #1F1F1F; }
.pc-info > p { margin: 0; color: #6B6B6B; line-height: 1.6; }
.pc-ticks { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 11px; }
.pc-ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 15px; color: #1F1F1F; }
.pc-ticks i { color: var(--accent, #FF4C00); font-size: 12px; }
.pc-acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pc-more { color: #1F1F1F; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(31, 31, 31, .3); padding-bottom: 2px; }
.pc-more:hover { border-bottom-color: #1F1F1F; }
.pc-stage { background: #F3F1EC; border-radius: 26px; padding: 44px 40px; }
@media (max-width: 900px) {
    .pc-section { padding: 60px 0; }
    .pc-head, .pc-row { grid-template-columns: 1fr; gap: 28px; }
    .pc-row { padding: 40px 0; }
    .pc-stage { padding: 18px; border-radius: 20px; }
}

.glow-violet { background: radial-gradient(circle, rgba(255, 76, 0, 0.22) 0%, rgba(139, 92, 246, 0.16) 40%, rgba(139, 92, 246, 0.04) 68%, transparent 80%); top: 50%; right: -10%; transform: translateY(-50%); }
.pc-info > .pc-soon { margin-bottom: 22px; }

/* Home "Our products" only: Vercel / Cloudflare style type hierarchy
   (one family, light-medium weights, tight tracking, dim secondary text). */
.pc-section .pc-head .section-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; margin: 0; color: #1F1F1F; }
.pc-section .pc-head p { font-size: 16px; line-height: 1.5; letter-spacing: -.01em; color: #6B6B6B; }
.pc-section .pc-logo { margin-bottom: 28px; }
.pc-section .pc-info h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; margin: 0 0 16px; }
.pc-section .pc-info > p { font-size: 15px; line-height: 1.6; letter-spacing: -.005em; max-width: 44ch; color: #6B6B6B; }
.pc-section .pc-ticks { margin: 26px 0 32px; gap: 10px; }
.pc-section .pc-ticks li { font-size: 14px; font-weight: 400; color: #4A4A4A; }
.pc-section .pc-info > .pc-soon { margin-bottom: 24px; }

/* Products page: same type hierarchy as the home "Our products" section. */
.products-suite-page .pc-logo { margin-bottom: 28px; }
.products-suite-page .pc-info h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; margin: 0 0 16px; }
.products-suite-page .pc-info > p { font-size: 15px; line-height: 1.6; letter-spacing: -.005em; max-width: 44ch; color: #6B6B6B; }
.products-suite-page .pc-ticks { margin: 26px 0 32px; gap: 10px; }
.products-suite-page .pc-ticks li { font-size: 14px; font-weight: 400; color: #4A4A4A; }
.products-suite-page .pc-info > .pc-soon { margin-bottom: 24px; }
.products-suite-page .pc-list { border-top: 0; }
.products-suite-page .pc-row:last-child { border-bottom: 0; padding-bottom: 0; }
