/* Homepage layout (index.php). Loaded after the page's inline styles, which it refines:
   two-column hero with the product composite, the interactive tour straight after it,
   screenshot-led "How it works" and feature rows, evener grids and a tidier footer. */

/* ── Section rhythm ── */
.section{padding:96px 0}
@media(max-width:767px){.section{padding:64px 0}}
.section-title{text-wrap:balance}
.section-subtitle{text-wrap:pretty}

/* ── Hero ── */
.hero--split{padding:132px 0 56px;background:radial-gradient(900px 520px at 85% 10%,rgba(18,180,255,.12),transparent 70%),linear-gradient(#f7fafc,#fff)}
body.has-promo-bar .hero--split{padding-top:172px}
.hero-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:center}
.hero--split h1{font-size:clamp(2.2rem,3.6vw,3.15rem);text-wrap:balance}
.hero--split .lead{max-width:540px;margin-bottom:28px}
.hero--split .hero-btns{gap:12px}
.hero-watch{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-weight:600;font-size:.95rem;color:var(--text)}
.hero-watch i{font-size:1.4rem;color:var(--brand)}
.hero-watch:hover{color:var(--brand-dark)}
.hero--split .hero-checks{display:flex;flex-wrap:wrap;gap:6px 18px;margin:22px 0 0;font-size:.88rem;font-weight:600;color:var(--text-light)}
.hero--split .hero-checks i{color:var(--green);margin-right:4px}
.hero-art{position:relative}
.hero-art img{display:block;width:118%;max-width:none;margin-left:-4%;height:auto;cursor:zoom-in;filter:drop-shadow(0 30px 50px rgba(15,23,42,.14))}
.hero--split .hero-foot{max-width:none;margin:40px 0 0;padding-top:24px;border-top:1px solid rgba(15,23,42,.06);display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;text-align:left}
.hero--split .hero-intent{margin:0}
.hero--split .hero-price-note{margin:0;justify-content:flex-start}
.hero--split .hero-badge{padding:0;border:0;background:none;box-shadow:none}
.hero--split .hero-badge img{display:block;width:64px;height:64px}
@media(max-width:991px){
  .hero-split{grid-template-columns:1fr;gap:28px;text-align:center}
  .hero--split .hero-kicker,.hero--split .hero-btns,.hero--split .hero-checks{justify-content:center}
  .hero--split .lead{margin-left:auto;margin-right:auto}
  .hero-art img{width:100%;margin:0}
  .hero--split .hero-foot{justify-content:center;text-align:center}
  .hero--split .hero-intent,.hero--split .hero-price-note{justify-content:center}
}
@media(max-width:768px){body.has-promo-bar .hero--split{padding-top:104px}}
@media(max-width:575px){
  .hero--split,body.has-promo-bar .hero--split{padding:92px 0 36px}
  .hero--split .hero-kicker{margin-bottom:12px}
  .hero--split h1{margin-bottom:14px}
  .hero--split .lead{font-size:1rem;margin-bottom:20px}
  .hero-watch{margin-top:14px}
  .hero--split .hero-checks{margin-top:14px;font-size:.82rem}
  .tour-section .section-subtitle{display:none}
  .tour-section .text-center{margin-bottom:18px!important}
  .tour-section{padding-top:48px}
  .hero--split .hero-btns .btn{flex:1 1 100%;justify-content:center}
  .hero-art{margin:0 -12px}
  .hero--split .hero-foot{margin-top:28px;flex-direction:column}
  .hero--split .hero-price-note span:not(:last-child)::after{display:none}
}

/* ── Interactive tour, straight after the hero ── */
.tour-section{background:linear-gradient(#fff,#f5f9fc)}

/* ── How it works: cards with real screens ── */
.how-section{background:#fff}
.how-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:48px}
.how-card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:stretch;background:#fff;border:1px solid rgba(15,23,42,.07);border-radius:20px;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:transform .25s,box-shadow .25s}
.how-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(15,23,42,.25)}
.how-img{position:relative;min-height:220px;background:#f1f5f9;border-right:1px solid rgba(15,23,42,.06);overflow:hidden}
.how-img img{position:absolute;inset:0}
.how-img img{display:block;width:100%;height:100%;object-fit:cover;object-position:top left}
.how-body{padding:24px 24px 26px;position:relative;align-self:center}
.how-body .step-num{width:34px;height:34px;font-size:.9rem;border-radius:10px;display:inline-grid;place-items:center;font-weight:800;margin-bottom:12px}
.how-body h3{font-size:1.15rem;font-weight:800;margin:0 0 8px}
.how-body p{font-size:.94rem;color:var(--text-light);line-height:1.65;margin:0}
@media(max-width:991px){.how-cards{grid-template-columns:1fr;max-width:640px;margin-left:auto;margin-right:auto}}
@media(max-width:575px){.how-cards{gap:16px}.how-card{grid-template-columns:1fr}.how-img{aspect-ratio:16/9;min-height:0;border-right:0;border-bottom:1px solid rgba(15,23,42,.06)}.how-body{padding:16px 18px 20px}}

/* ── Video ── */
.video-section{background:var(--bg-dark);color:#fff}
.video-section .section-title{color:#fff}
.video-section .section-subtitle{color:#94a3b8}
.video-stage{max-width:1000px;margin:40px auto 0}

/* ── Feature rows with screenshots ── */
.features-section{background:#f8fafc}
.feature-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:72px;align-items:center;margin-top:72px}
.feature-row--flip .feature-copy{order:2}
.feature-copy .section-label{margin-bottom:14px}
.feature-copy h3{font-size:clamp(1.6rem,2.8vw,2.2rem);font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0 0 14px;text-wrap:balance}
.feature-copy p{font-size:1.02rem;color:var(--text-light);line-height:1.7;margin:0 0 20px}
.feature-points{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.feature-points li{display:flex;align-items:center;gap:12px;font-weight:600;font-size:.95rem}
.feature-points i{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center;background:var(--brand-glow);color:var(--brand-dark)}
.screen-tv{background:#0b0d12;border-radius:16px;padding:10px;box-shadow:0 30px 60px -24px rgba(15,23,42,.45)}
.screen-tv img{display:block;width:100%;border-radius:6px}
.screen-browser{position:relative;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 30px 60px -24px rgba(15,23,42,.35),0 0 0 1px rgba(15,23,42,.06)}
.screen-browser .sb-bar{display:flex;gap:6px;align-items:center;height:30px;padding:0 12px;background:#eef2f6;border-bottom:1px solid rgba(15,23,42,.06)}
.screen-browser .sb-bar i{width:10px;height:10px;border-radius:50%;background:#d4d9df}
.screen-browser .sb-bar i:nth-child(1){background:#ff5f57}.screen-browser .sb-bar i:nth-child(2){background:#febc2e}.screen-browser .sb-bar i:nth-child(3){background:#28c840}
.screen-browser img{display:block;width:100%}
.feature-media--phones{position:relative;display:flex;justify-content:center;padding:10px 0 30px}
.screen-phone{position:relative;width:250px;padding:8px;border-radius:38px;background:#0b0d12;box-shadow:0 30px 60px -20px rgba(15,23,42,.45);z-index:2;transform:rotate(-3deg)}
.screen-phone img{display:block;width:100%;border-radius:30px}
.screen-phone--back{position:absolute;left:50%;top:40px;margin-left:30px;z-index:1;transform:rotate(5deg);opacity:.97}
.feature-media--phones .screen-phone:first-child{margin-right:120px}
.feature-more{text-align:center;font-size:1.5rem;font-weight:800;letter-spacing:-.02em;margin:88px 0 0}
.features-section .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:32px;max-width:980px;margin-left:auto;margin-right:auto}
.features-section .feature-card{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:18px;align-items:start;padding:24px}
.features-section .feature-card .icon{grid-row:span 2;margin:0}
.features-section .feature-card h3{margin:2px 0 6px}
.features-section .feature-card p{margin:0}
@media(max-width:767px){.features-section .feature-grid{grid-template-columns:1fr}}
@media(max-width:991px){
  .feature-row,.feature-row--flip{grid-template-columns:1fr;gap:28px;margin-top:56px;text-align:center}
  .feature-row--flip .feature-copy{order:0}
  .feature-points{justify-items:center}
}
@media(max-width:575px){
  .screen-phone{width:min(230px,58vw);border-radius:34px;padding:7px}
  .screen-phone img{border-radius:27px}
  .feature-media--phones .screen-phone:first-child{margin-right:120px}
  .screen-phone--back{margin-left:-50px}
  .feature-more{margin-top:64px}
}

/* ── Templates: 4 x 2 ── */
.template-showcase{grid-template-columns:repeat(4,minmax(0,1fr))}
.tc-8{background:linear-gradient(135deg,#fdf4ff,#eef2ff)}
@media(max-width:991px){.template-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ── Use cases: rows stay centred, no lone card on the left ── */
.usecase-grid{display:flex!important;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:48px}
.usecase-grid .usecase-card{flex:0 1 calc(25% - 12px)}
@media(max-width:991px){.usecase-grid .usecase-card{flex-basis:calc(33.333% - 11px)}}
@media(max-width:575px){.usecase-grid{gap:10px}.usecase-grid .usecase-card{flex-basis:calc(50% - 5px);padding:18px 10px}}

/* ── FAQ: two columns on wide screens ── */
.faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;max-width:1040px;margin:40px auto 0;align-items:start}
@media(max-width:767px){.faq-grid{grid-template-columns:1fr}}

/* ── Footer ── */
.footer-grid{grid-template-columns:1.6fr repeat(4,minmax(0,1fr))}
.footer-logo{display:block;height:60px;width:auto;padding:8px 12px;background:#fff;border-radius:14px;box-sizing:content-box}
@media(max-width:991px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-brand{grid-column:1/-1}}

/* The floating share button steps aside while the tour is on screen (it covered the tour's arrows) */
.share-fab{transition:opacity .2s}
body.qt-in-view .share-fab{opacity:0;pointer-events:none}
/* ...and so does the sticky phone CTA, so the whole tour fits the screen */
.mobile-cta{transition:transform .25s,opacity .25s}
body.qt-in-view .mobile-cta{transform:translateY(130%);opacity:0;pointer-events:none}

/* Phones: testimonials and plans swipe sideways instead of stacking into a very long page */
.swipe-hint{display:none}
@media(max-width:767px){
  .testimonial-grid,.pricing-grid{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;margin:32px -20px 0;padding:16px 20px 20px;max-width:none;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .testimonial-grid::-webkit-scrollbar,.pricing-grid::-webkit-scrollbar{display:none}
  .testimonial-grid>*,.pricing-grid>.price-card{flex:0 0 84%;scroll-snap-align:center;margin:0}
  .pricing-grid>.price-card.featured{transform:none}
  .swipe-hint{display:flex;align-items:center;justify-content:center;gap:8px;margin:2px 0 8px;font-size:.82rem;font-weight:600;color:var(--text-light)}
}
