/**
 * DigiReOn 3.0.0 — Pass 2 homepage sections + footer + product cards.
 * Loaded after tokens.css on every page (footer + product cards are used
 * beyond the front page). All values use the Pass 1 tokens.
 */

/* ================= Proof strip ================= */
.proof-strip{border-block:1px solid var(--line);background:#fff;padding:22px 0}
.proof-strip__inner{display:flex;align-items:center;gap:28px;flex-wrap:wrap;justify-content:space-between}
.proof-strip__counts{display:flex;gap:28px;flex-wrap:wrap}
.proof-strip__count{display:flex;flex-direction:column;line-height:1.25}
.proof-strip__count b{font:800 1.35rem var(--ff-head);letter-spacing:-.02em}
.proof-strip__count span{color:var(--ink);font-size:.85rem;font-weight:500}
.proof-strip__support{display:flex;align-items:center;gap:10px;font-weight:600;font-size:.95rem}
.proof-strip__support svg{color:var(--brand);flex:none}
.proof-badges{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.proof-badges__label{color:var(--ink);font-size:.85rem;font-weight:500;margin-right:4px}
.proof-badge{padding:6px 12px;border:1px solid var(--line);border-radius:999px;
  background:var(--soft);font:600 .82rem var(--ff-body);color:var(--ink);white-space:nowrap}
@media (max-width:768px){
  /* The single scroll row cut the first "Works with" badge mid-word at
     the viewport edge with no scroll hint, so it read as broken. On
     mobile the strip wraps into full rows instead: counts, then support,
     then the badges on their own row, wrapping as needed. Nothing is
     clipped and nothing needs a sideways scroll to be read. */
  .proof-strip__inner{flex-wrap:wrap;overflow-x:visible;gap:14px 20px;justify-content:flex-start}
  .proof-strip__counts{flex:1 1 100%;gap:24px}
  .proof-strip__support{flex:none}
  .proof-badges{flex:1 1 100%}
  /* Pass E: in the 82%-wide carousel card the three mini tiles are only
     ~78px each, so thumb + label side by side cuts the label mid-word
     ("Te…"). Stack the label under the thumb instead. */
  .bento-site__cards span{flex-direction:column;align-items:center;gap:6px;
    text-align:center;font-size:.72rem;white-space:normal;line-height:1.25}
}

/* ================= How it works ================= */
.how__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:start}
.how-steps{display:grid;gap:12px}
.how-step{border:1px solid var(--line);border-radius:var(--r);background:#fff;overflow:hidden;
  transition:border-color .2s,box-shadow .2s}
.how-step.is-active{border-color:var(--brand);box-shadow:var(--shadow-sm)}
.how-step__btn{width:100%;display:flex;align-items:center;gap:16px;padding:18px 20px;
  background:none;border:0;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.how-step__num{font:800 1rem var(--ff-head);color:var(--muted-foreground);flex:none}
.how-step.is-active .how-step__num{color:var(--brand)}
.how-step__title{flex:1;font:700 1.08rem var(--ff-head);letter-spacing:-.02em}
.how-step__chev{color:var(--muted-foreground);transition:transform .25s ease;flex:none}
.how-step.is-active .how-step__chev{color:var(--brand);transform:rotate(90deg)}
.how-step__body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}
.how-step.is-active .how-step__body{grid-template-rows:1fr}
.how-step__body-inner{overflow:hidden;min-height:0}
.how-step__body p{color:var(--muted-foreground);margin:0;padding:0 20px 18px 52px}
.how-preview{position:relative}
[data-panel]{display:none}
[data-panel].is-active{display:block;animation:howPanelIn .3s ease-out}
@keyframes howPanelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:900px){
  /* minmax(0,1fr): a bare 1fr keeps the automatic min-content minimum,
     and the carousel track's min-content (all four panels side by side)
     would blow the column out to ~1000px, clipped only by the body's
     overflow-x:clip. With minmax(0,1fr) the column stays 350px wide. */
  .how__grid{grid-template-columns:minmax(0,1fr);gap:28px}
}

/* How preview mockups: small browser-frame UIs, same tokens as the site. */
.pv-browser{background:#fff;border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--shadow);overflow:hidden;height:100%;display:flex;flex-direction:column}
.pv-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--soft)}
.pv-bar i{width:9px;height:9px;border-radius:50%;background:#D5DBEA}
.pv-bar em{flex:1;text-align:center;font-style:normal;font-size:.82rem;color:var(--muted-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-body{padding:16px;display:grid;gap:12px;align-content:start;flex:1;min-height:0}
.pv-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:var(--r-sm);
  padding:9px 12px;color:var(--muted-foreground);font-size:.86rem;background:#fff}
.pv-search svg{color:var(--brand);flex:none}
/* v4.0.0: the chips are a Toggle Group in a 2×2 grid — never a horizontal
   scroll row inside the slide (an inner scroll fights the carousel swipe
   and clips labels). Labels wrap, never clip. */
.pv-chips{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pv-chips span{font-size:.82rem;font-weight:600;color:var(--muted-foreground);border:1px solid var(--border);
  border-radius:999px;padding:6px 10px;background:var(--card);text-align:center;line-height:1.3}
.pv-chips span.is-pressed{background:var(--muted);color:var(--brand-dark);border-color:#D8E2FF}
.pv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pv-tile{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;display:grid;align-content:start}
.pv-tile__thumb{display:block;aspect-ratio:4/3;overflow:hidden}
.pv-tile__thumb img{width:100%;height:100%;object-fit:cover;display:block}
/* Pass C: titles wrap to two lines instead of clipping to "Canva Soci…". */
.pv-tile strong{display:block;font-size:.82rem;font-weight:600;padding:8px 10px 0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pv-tile__price{display:block;font-size:.82rem;font-weight:700;color:var(--brand);padding:2px 10px 9px}
.pv-detail{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px}
.pv-detail__thumb{border-radius:12px;overflow:hidden;border:1px solid var(--line);
  aspect-ratio:4/3;align-self:start}
.pv-detail__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pv-detail__body{display:grid;gap:6px;align-content:start}
.pv-detail__body strong{font:700 1rem var(--ff-head);letter-spacing:-.02em}
.pv-price{color:var(--brand);font-weight:700}
.pv-list{margin:4px 0 0;padding-left:18px;color:var(--muted-foreground);font-size:.86rem;display:grid;gap:3px}
.pv-licence{display:grid;gap:8px}
.pv-opt{display:flex;align-items:center;gap:10px;border:1px solid var(--line);
  border-radius:var(--r-sm);padding:9px 12px;font-size:.88rem;font-weight:500}
.pv-opt.on{border-color:var(--brand);background:var(--soft)}
.pv-dot{width:16px;height:16px;flex:none;border-radius:50%;border:2px solid #C6CEE2;background:#fff;position:relative}
.pv-opt.on .pv-dot{border-color:var(--brand)}
.pv-opt.on .pv-dot::after{content:"";position:absolute;inset:2px;border-radius:50%;background:var(--brand)}
.pv-rows{display:grid;gap:10px}
.pv-row{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:var(--r-sm);padding:10px 12px}
.pv-row__thumb{width:48px;height:48px;flex:none;border-radius:8px;overflow:hidden}
.pv-row__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pv-row div{flex:1;display:grid;gap:1px;min-width:0}
.pv-row strong{font-size:.88rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pv-row__meta{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.pv-row__meta span{color:var(--muted-foreground);font-size:.82rem}
.pv-row__meta b{font-size:.9rem;white-space:nowrap}
.pv-total{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px;font-weight:700}
.pv-pay{display:block;text-align:center;background:var(--ink);color:#fff;font-weight:600;
  border-radius:999px;padding:11px 16px;font-size:.92rem}
.pv-note{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted-foreground);
  font-size:.82rem;text-align:center}
.pv-note svg{color:var(--ok);flex:none}
.pv-done{display:flex;align-items:center;gap:12px}
.pv-done__check{width:40px;height:40px;flex:none;border-radius:50%;background:#E6F7EE;color:#0B7A45;
  display:grid;place-items:center}
.pv-done strong{font:700 1rem var(--ff-head);letter-spacing:-.02em;display:block}
.pv-done span{color:var(--muted-foreground);font-size:.86rem}
.pv-file{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--r-sm);padding:10px 12px}
.pv-file>div{flex:1;display:grid;gap:6px;min-width:0}
.pv-file strong{font-size:.86rem}
.pv-progress{display:block;height:6px;border-radius:3px;background:var(--soft);overflow:hidden}
.pv-progress i{display:block;height:100%;background:var(--ok);border-radius:3px}
.pv-dl{flex:none;background:var(--soft);color:var(--brand-dark);font-size:.82rem;font-weight:700;
  border-radius:999px;padding:7px 12px;white-space:nowrap}

/* ================= Bento: what you can do ================= */
.bento__track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.bento-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:26px;box-shadow:var(--shadow-sm);transition:transform .2s ease,box-shadow .2s ease}
.bento-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.bento-card h3{font-size:1.25rem;margin-bottom:6px}
.bento-card p{color:var(--muted-foreground);margin:0}
.bento-card .thumb,.bento-visual{margin-bottom:20px}
/* Bento card 1: a template preview sized for the card (the 4/3 thumbs are
   built for small sizes and leave dead space at this width). */
.bento-site{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff}
.bento-site__bar{display:flex;align-items:center;gap:6px;padding:9px 12px;border-bottom:1px solid var(--line);background:var(--soft)}
.bento-site__bar i{width:9px;height:9px;border-radius:50%;background:#D5DBEA}
.bento-site__bar em{flex:1;text-align:center;font-style:normal;font-size:.72rem;color:var(--muted-foreground)}
/* v4.0.0, §4: the full-page preview is an <img> at width:100%,
   height:auto inside a fixed-height frame that scrolls VERTICALLY.
   Never scaled above 100%, never cropped on the sides, always starts
   at the top of the page. (The old 4:3 cover crop cut the sides off any
   real product image that was not exactly 4:3.) */
.bento-site__preview{height:220px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;border-bottom:1px solid var(--border)}
.bento-site__preview img{width:100%;height:auto;display:block}
.bento-site__hero{padding:18px 16px 0}
.bento-site__hero h4{font:700 .98rem/1.25 var(--ff-head);letter-spacing:-.02em;margin:0 0 6px}
.bento-site__hero p{font-size:.82rem;color:var(--muted-foreground);margin:0 0 12px;line-height:1.45}
.bs-btn{display:inline-block;background:var(--brand);color:#fff;font:600 .82rem/1 var(--ff-body);
  border-radius:999px;padding:8px 14px}
.bento-site__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 16px 16px}
.bento-site__cards span{display:flex;align-items:center;gap:7px;min-height:54px;border-radius:10px;
  background:var(--soft);border:1px solid var(--line);padding:10px 8px;font-size:.82rem;font-weight:600;white-space:nowrap}
.bs-thumb{width:40px;height:30px;flex:none;border-radius:6px;overflow:hidden}
.bs-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.bento-file{border:1px solid var(--line);border-radius:var(--r);padding:18px;display:grid;gap:12px;background:var(--soft)}
.bento-file__row{display:flex;align-items:center;gap:12px}
.bento-file__thumb{width:40px;height:40px;flex:none;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.bento-file__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.bento-file__row div{flex:1;min-width:0;display:grid;gap:1px}
.bento-file__row strong{font-size:.9rem}
.bento-file__row span{color:var(--muted-foreground);font-size:.82rem}
.bento-file__dl{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ink);
  color:#fff;font-weight:600;border-radius:999px;padding:11px 18px;font-size:.92rem}
/* Pass C: honest checkout mockup — payment methods + order total, no card
   number, no expiry, no cardholder. The old fake-card visual is gone. */
.bento-checkout{display:grid;gap:10px}
.bento-pay__row{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);
  border-radius:var(--r-sm);padding:10px 12px;font-size:.9rem}
.bento-pay__row span{display:inline-flex;align-items:center;gap:8px;min-width:0}
.bento-pay__row span .digireon-icon{color:var(--brand);flex:none}
.bento-pay__row b{font-weight:700;white-space:nowrap}
.bento-pay__total{background:var(--soft)}
.bento-chat{border:1px solid var(--line);border-radius:var(--r);padding:14px;display:grid;gap:10px;background:var(--soft)}
.bento-msg{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;
  font-size:.9rem;display:grid;gap:2px;max-width:92%}
.bento-msg strong{font-size:.75rem;color:var(--brand)}
.bento-msg.out{margin-left:auto;background:#EAF0FF;border-color:#D8E2FF}
.bento-msg.out strong{color:var(--brand-dark)}
.bento-chat__input{display:flex;justify-content:space-between;align-items:center;background:#fff;
  border:1px solid var(--line);border-radius:var(--r-sm);padding:10px 12px;color:var(--muted-foreground);font-size:.88rem}
.bento-chat__input svg{color:var(--brand);flex:none}
/* The bento swipe behaviour is owned by the carousel component
   (assets/css/carousel.css, .carousel--md) — no rules here. */

/* ================= Products ================= */
.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.product-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
  display:flex;flex-direction:column;min-width:0;transition:transform .2s ease,box-shadow .2s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.product-thumb{position:relative;aspect-ratio:4/3;background:var(--soft);overflow:hidden}
.product-thumb>a{display:block;height:100%}
.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.product-thumb .thumb{width:100%;border-radius:0;border:0}
.product-thumb .thumb--template .t-visual{flex:1}
.product-thumb .placeholder-thumb{width:100%;height:100%;display:grid;place-items:center;
  background:linear-gradient(135deg,#EEF3FF,#DCE6FF);color:var(--brand)}
.sale-badge{position:absolute;top:12px;left:12px;background:var(--brand);color:#fff;font-size:.75rem;
  font-weight:700;padding:5px 10px;border-radius:999px}
.product-body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}
.product-cat{font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand)}
.product-cat a{color:var(--brand);text-decoration:none}
.product-title{font-family:var(--ff-head);font-size:1.08rem;font-weight:700;line-height:1.3;margin:0;letter-spacing:-.02em}
.product-title a{color:var(--ink);text-decoration:none}
.product-title a:hover{color:var(--brand)}
.product-excerpt{color:var(--muted-foreground);font-size:.92rem;margin:0}
.product-price{font-weight:700;font-size:1.08rem;margin:0}
.product-price del{color:var(--muted-foreground);font-weight:400;margin-right:8px;font-size:.95rem}
.product-price ins{text-decoration:none;color:var(--brand)}
.product-rating{color:var(--muted-foreground);font-size:.88rem;margin:0}
.product-rating .star-rating{color:var(--brand)}
.product-actions{margin-top:auto;display:flex;gap:10px;align-items:center}
.product-actions .btn{flex:1;justify-content:center;padding:0 14px;font-size:.92rem}
.product-actions .button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:0 14px;border-radius:999px;background:var(--ink);color:#fff;
  font:600 .92rem/1 var(--ff-body);text-decoration:none;border:0;cursor:pointer;
  transition:transform .2s,box-shadow .2s,background .2s}
.product-actions .button:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(11,16,32,.25);color:#fff}
.product-actions .button.loading{opacity:.65}
.product-actions .added_to_cart{flex:none;font-size:.88rem;font-weight:600}
.products__more{text-align:center;margin-top:36px}
.empty-state{text-align:center;padding:60px 20px;color:var(--muted-foreground);border:1px dashed var(--line);
  border-radius:var(--r-lg);background:var(--soft)}
.empty-state__icon{width:56px;height:56px;margin:0 auto 16px;border-radius:16px;background:#fff;
  border:1px solid var(--line);display:grid;place-items:center;color:var(--brand)}
.empty-state h2,.empty-state h3{color:var(--ink);margin-bottom:8px}
.empty-state p{max-width:440px;margin:0 auto 20px}
@media (max-width:1024px){
  .products,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  /* The Popular swipe behaviour is owned by the carousel component
     (assets/css/carousel.css, .carousel--sm). Equal heights: the cards
     stretch and the actions sit at the bottom. The title and image
     already link to the product, so the View Details button is hidden here
     and Add to cart takes the full width. */
  .pv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .product-actions .btn{display:none}
  .product-actions .button{width:100%}
}

/* ================= Categories ================= */
.cat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.cat-card{display:block;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:28px 24px;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.cat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#D8E2FF}
.cat-icon{width:52px;height:52px;border-radius:14px;background:var(--soft);color:var(--brand);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.cat-card h3{margin-bottom:6px;color:var(--ink)}
.cat-card p{color:var(--muted-foreground);font-size:.94rem;margin-bottom:12px}
.cat-count{font-size:.85rem;font-weight:600;color:var(--brand)}
.cat-nav{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 28px;padding:0;list-style:none}
.cat-nav a{display:inline-block;padding:8px 16px;border:1px solid var(--line);border-radius:999px;
  background:#fff;color:var(--ink);font-weight:600;font-size:.92rem;text-decoration:none}
.cat-nav a:hover,.cat-nav a[aria-current="page"]{border-color:var(--brand);color:var(--brand)}
@media (max-width:1024px){.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.cat-grid{grid-template-columns:1fr;gap:14px}}

/* ================= Testimonials (real reviews only) ================= */
.reviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.review-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:26px;
  display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow-sm)}
.review-stars{display:flex;gap:2px;color:var(--brand)}
.review-stars svg{flex:none}
.review-text{color:var(--ink);margin:0;flex:1}
.review-who{display:flex;align-items:center;gap:12px}
.review-avatar{width:40px;height:40px;flex:none;border-radius:50%;background:var(--soft);
  color:var(--brand-dark);display:grid;place-items:center;font:700 .95rem var(--ff-head)}
.review-who strong{display:block;font-size:.94rem}
.review-who span{color:var(--muted-foreground);font-size:.84rem}
.review-who a{color:var(--muted-foreground);text-decoration:none}
.review-who a:hover{color:var(--brand)}
@media (max-width:1024px){.reviews{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.reviews{grid-template-columns:1fr}}

/* ================= FAQ ================= */
.faq-list{max-width:780px;margin:0 auto;display:grid;gap:12px}
.faq-item{border:1px solid var(--line);border-radius:var(--r);background:#fff;overflow:hidden}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:18px 20px;background:none;border:0;font:inherit;font-weight:600;text-align:left;
  cursor:pointer;color:var(--ink)}
.faq-q .faq-icon{flex:none;color:var(--brand);transition:transform .25s ease}
.faq-item.open .faq-icon{transform:rotate(45deg)}
.faq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}
.faq-item.open .faq-a{grid-template-rows:1fr}
.faq-a__inner{overflow:hidden;min-height:0}
.faq-a p{color:var(--muted-foreground);margin:0;padding:0 20px 18px}

/* ================= Final CTA band ================= */
.cta-band{background:var(--ink);border-radius:var(--r-lg);color:#fff;text-align:center;
  padding:72px 32px;position:relative;overflow:hidden}
.cta-band::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(560px 220px at 50% -10%,rgba(47,91,255,.45),transparent 70%)}
.cta-band h2{color:#fff;position:relative}
.cta-band p{color:#C3C9DB;max-width:560px;margin:16px auto 28px;position:relative}
.cta-band .btn--light{position:relative}
.btn--light{background:#fff;color:var(--ink)}
.btn--light:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.35);color:var(--ink)}
@media (max-width:640px){.cta-band{padding:48px 20px}}

@media (max-width:640px){
  /* Pass C: 2-column link grid on mobile (brand spans both columns),
     newsletter stays one row, payment badges stay in one row. */
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  .footer-brand{grid-column:1/-1}
  .footer-bottom-inner{flex-direction:column;align-items:flex-start}
  .footer-news form{flex-direction:row}
  .footer-news form .btn{flex:none;justify-content:center}
  .footer-pay{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .footer-pay::-webkit-scrollbar{display:none}
}
