/*
 * Doso main stylesheet (loaded non-render-blocking).
 * Mobile-first. Ship a MINIFIED build of this in production (see README).
 * Pairs with critical.css which defines the design tokens (:root vars).
 */

/* ============================================================
   LOGO STRIP — infinite marquee after hero
   ============================================================ */
.logostrip{background:#fff;border-top:1px solid #f0f2f5;padding:2.25rem 0 2rem;overflow:hidden}
.logostrip__header{text-align:center;margin-bottom:1.5rem}
.logostrip__label{font-size:.75rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:#9ca3af;margin:0}
/* Fade left & right edges */
.logostrip__wrap{overflow:hidden;-webkit-mask:linear-gradient(to right,transparent 0%,#000 8%,#000 92%,transparent 100%);mask:linear-gradient(to right,transparent 0%,#000 8%,#000 92%,transparent 100%)}
/* Track — doubled items scroll left infinitely */
.logostrip__track{display:flex;align-items:center;gap:3.5rem;list-style:none;margin:0;padding:0;width:max-content;animation:logoScroll 32s linear infinite}
.logostrip__track:hover{animation-play-state:paused}
/* Real logo images */
.logostrip__item img{height:68px;width:auto;max-width:160px;object-fit:contain;filter:none;transition:transform .22s,opacity .22s}
.logostrip__item img:hover{transform:scale(1.06);opacity:.85}
/* Text placeholder — shown until real images are added */
.logostrip__placeholder{display:inline-flex;align-items:center;font-size:.95rem;font-weight:700;color:#c4cad6;letter-spacing:-.02em;white-space:nowrap;min-width:100px}
/* Infinite scroll keyframe — translate exactly 50% because list is doubled */
@keyframes logoScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* Pause on reduced-motion */
@media(prefers-reduced-motion:reduce){.logostrip__track{animation:none}}

/* ============================================================
   PROJECT MANAGEMENT — gradient band + floating orbs + card grid
   Editable from Pages → Edit Home → "Project Management" tab.
   ============================================================ */
.projects{position:relative;overflow:hidden;padding-block:clamp(3.5rem,8vw,6rem);background:linear-gradient(180deg,#f4f8ff 0%,#fff 70%)}
.projects>.container{position:relative;z-index:1}
/* Decorative blurred orbs */
.projects__orb{position:absolute;border-radius:50%;filter:blur(70px);opacity:.5;z-index:0;pointer-events:none}
.projects__orb--1{width:360px;height:360px;top:-120px;left:-80px;background:radial-gradient(circle,#bfdbfe,transparent 70%)}
.projects__orb--2{width:420px;height:420px;top:30%;right:-140px;background:radial-gradient(circle,#a5f3fc,transparent 70%)}
.projects__orb--3{width:300px;height:300px;bottom:-100px;left:35%;background:radial-gradient(circle,#ddd6fe,transparent 70%)}
/* Header */
.projects__header{text-align:center;max-width:1040px;margin:0 auto clamp(2rem,5vw,3.25rem)}
.projects__title{margin:0 0 1.1rem;line-height:1.12}
.projects__title-top{display:block;font-size:50px;font-weight:800;color:var(--color-primary);margin-bottom:1rem}
.projects__title-bold{display:block;font-size:30px;font-weight:500;color:var(--color-text);letter-spacing:-.01em}
.projects__intro{font-size:1.031rem;color:#555;max-width:1000px;width:100%;margin:auto;white-space:normal}
/* Grid — 3 across on desktop, auto-wraps down. auto-FILL (not auto-fit) keeps
   column tracks so a single card stays card-width instead of stretching wide. */
.projects__grid{list-style:none;margin:0;padding:0;display:grid;gap:var(--gap);justify-content:center;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),380px))}
/* Card — image fills the whole tile; content overlays the bottom */
.projects__card{position:relative;min-height:clamp(300px,25vw,270px);background:#fff;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--color-border);box-shadow:0 8px 30px -18px rgba(15,23,42,.18);transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.projects__card:hover{transform:translateY(-6px);box-shadow:0 26px 54px -24px rgba(37,99,235,.34)}
/* Media — absolutely fills the card behind the content */
.projects__media{position:absolute;inset:0;z-index:0;line-height:0;background:#fff}
.projects__img{width:100%;height:100%;object-fit:contain;object-position:top;padding:.35rem;transition:transform .55s ease}
/* Image stays visible on hover (gentle zoom only) */
.projects__card:hover .projects__img{transform:scale(1.03)}
.projects__media--empty{display:flex;align-items:center;justify-content:center;background:#fff;color:#c2d4ef}
/* Content overlay — fills the card; default = soft bottom fade so the title
   reads over the image; hover = full diagonal brand wash with content centered */
.projects__body{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(1.15rem,2.6vw,1.65rem);background:linear-gradient(to top,#fff 4%,rgba(255,255,255,.9) 26%,rgba(255,255,255,0) 52%);transition:background .45s ease}
.projects__head{display:flex;align-items:center;gap:.75rem;margin-bottom:.55rem}
.projects__icon{flex:none;width:50px;height:50px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;color:var(--color-primary);background:#dbeafe;box-shadow:0 6px 14px -8px rgba(37,99,235,.45)}
.projects__icon svg{width:22px;height:22px}
.projects__card-title{margin:0;font-size:1.18rem;font-weight:700;line-height:1.3;color:var(--color-text);display:flex;align-items:center;gap:.4rem}
.projects__arrow{flex:none;color:var(--color-primary);transition:transform .25s ease}
.projects__card:hover .projects__arrow{transform:translateX(5px)}
/* Description + button: hidden until hover, then reveal */
.projects__card-text{color:#555;font-size:var(--fs-300);line-height:1.65;margin:0;max-height:0;opacity:0;overflow:hidden;transform:translateY(8px);transition:max-height .45s ease,opacity .35s ease,transform .35s ease,margin .35s ease}
.projects__more{align-self:flex-start;display:inline-flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:600;color:var(--color-primary);border:1.5px solid #c6d8f7;border-radius:50px;padding:.62rem 1.4rem;text-decoration:none;max-height:0;opacity:0;overflow:hidden;transform:translateY(8px);transition:max-height .45s ease,opacity .35s ease,transform .35s ease,background .2s,color .2s,border-color .2s}
.projects__more:hover{background:var(--color-primary);border-color:var(--color-primary);color:#fff;text-decoration:none}
/* Hover state */
.projects__card:hover .projects__body{background:linear-gradient(to top,rgba(147,197,253,.97) 0%,rgba(191,219,254,.92) 34%,rgba(222,235,255,.6) 58%,rgba(255,255,255,0) 84%)}
.projects__card:hover .projects__card-text{max-height:15em;opacity:1;transform:translateY(0);margin:.25rem 0 1.2rem}
.projects__card:hover .projects__more{max-height:4em;opacity:1;transform:translateY(0)}
.projects__empty{text-align:center;color:var(--color-muted)}
@media(prefers-reduced-motion:reduce){.projects__card,.projects__img,.projects__arrow,.projects__card-text,.projects__more{transition:none}}
/* Mobile (≤768px): single card per row, stacked layout, content always visible
   (touch devices can't hover, so the description + button stay revealed). */
@media(max-width:768px){
  .projects__grid{grid-template-columns:1fr}
  .projects__card{min-height:0}
  .projects__media{position:relative;inset:auto;aspect-ratio:16/10}
  .projects__img{object-position:center}
  .projects__body{position:static;background:#fff;padding:clamp(1rem,4vw,1.4rem)}
  .projects__card-text{max-height:none;opacity:1;overflow:visible;transform:none;margin:0 0 1rem}
  .projects__more{max-height:none;opacity:1;overflow:visible;transform:none}

}

/* ============================================================
   INDUSTRIES — "Software for Every Industry" bento grid
   Editable from Pages → Edit Home → "Industries" tab.
   ============================================================ */
.industries{position:relative;overflow:hidden;padding-block:clamp(2.5rem,5vw,4rem);background:#fff}
.industries>.container{position:relative;z-index:1}
/* Soft powder-blue glows: top-left and bottom-right */
.industries__glow{position:absolute;border-radius:50%;filter:blur(90px);opacity:.55;z-index:0;pointer-events:none}
.industries__glow--tl{width:420px;height:420px;top:-150px;left:-130px;background:radial-gradient(circle,#bfdbfe,transparent 70%)}
.industries__glow--br{width:480px;height:480px;bottom:-180px;right:-150px;background:radial-gradient(circle,#c7d9fb,transparent 70%)}
@media(max-width:768px){.industries__glow{filter:blur(70px);opacity:.45}}
/* Bento grid: 4 columns; lead card spans 2, large image fills bottom-right.
   Items auto-flow so the order in markup (lead, 5 cards, image) lands as the
   reference layout. */
.industries__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(.75rem,1.4vw,1.1rem);grid-auto-rows:auto}
.industries__card{background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:clamp(1.25rem,2vw,1.75rem);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.industries__card--item{align-items:center;justify-content:center;text-align:center}
.industries__card--item:hover{transform:translateY(-5px);box-shadow:0 22px 46px -26px rgba(37,99,235,.34);border-color:#c6d8f7}
/* Lead card — spans two columns, left-aligned heading + intro */
.industries__card--lead{grid-column:span 2;justify-content:center;text-align:left;padding:clamp(1.75rem,2.6vw,2.5rem)}
.industries__title{margin:0 0 1rem;line-height:1.14}
.industries__title-top{color:var(--color-primary);font-weight:800}
.industries__title-bold{color:var(--color-text);font-weight:800;letter-spacing:-.01em}
.industries__title-top,.industries__title-bold{font-size:var(--fs-800)}
.industries__intro{margin:0;color:#555;font-size:1.031rem;line-height:1.7}
/* Illustration image (top of each card) */
.industries__icon{display:flex;align-items:center;justify-content:center;width:100%;max-width:280px;margin-bottom:1rem}
.industries__icon-img{width:100%;height:auto;object-fit:contain;border-radius:12px}
/* Placeholder badge shown until an image is uploaded */
.industries__icon--empty{width:72px;height:72px;border-radius:18px;color:var(--color-primary);background:#dbeafe;box-shadow:0 6px 14px -8px rgba(37,99,235,.45)}
.industries__icon svg{width:34px;height:34px}
.industries__card-title{margin:0 0 .55rem;font-size:1.18rem;font-weight:700;color:var(--color-text)}
.industries__card-text{margin:0;color:#555;font-size:var(--fs-300);line-height:1.7}
/* Large image tile (bottom-right) */
.industries__card--image{grid-column:span 2;padding:0;overflow:hidden;align-items:stretch;min-height:200px}
.industries__img{width:100%;height:100%;object-fit:cover;display:block}
.industries__card--image-empty{align-items:center;justify-content:center;background:linear-gradient(135deg,#eef4ff,#f7faff);color:#b9cdf0}
@media(prefers-reduced-motion:reduce){.industries__card{transition:none}}
/* Tablet (≤992px): 2 columns, lead + image span the full width */
@media(max-width:992px){
  .industries__grid{grid-template-columns:repeat(2,1fr)}
  .industries__card--lead{grid-column:span 2}
  .industries__card--image{grid-column:span 2;min-height:220px}
  .industries__title-top,.industries__title-bold{font-size:var(--fs-600)}
}
/* Mobile (≤576px): single column stack */
@media(max-width:576px){
  .industries__grid{grid-template-columns:1fr}
  .industries__card--lead,.industries__card--image{grid-column:span 1}
}

/* ============================================================
   PLAN CTA — dark-blue "Right Plan" promo band (text left, image right)
   Editable from Pages → Edit Home → "Plan CTA" tab.
   ============================================================ */
.plan-cta{padding-block:clamp(2rem,2.2vw,2.1rem)}
/* Wider container for this section: smaller left/right gutter than the default 1rem. */
.plan-cta>.container{width:min(100% - 1rem,var(--container))}
.plan-cta__band{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.25rem,2.5vw,2.5rem);background:var(--color-primary-d);border-radius:var(--radius-lg);padding:clamp(1rem,1vw,2rem) clamp(1.25rem,2vw,1rem);overflow:hidden}
.plan-cta__title{margin:0 0 .85rem;color:#fff;font-weight:600;font-size:var(--fs-800);line-height:1.15}
.plan-cta__title-bold{font-weight:800}
.plan-cta__intro{margin:0 0 1.5rem;color:rgba(255,255,255,.85);font-size:1.031rem;line-height:1.65;max-width:36rem}
.plan-cta__actions{display:flex;flex-wrap:wrap;gap:.9rem}
.plan-cta__btn{display:inline-flex;align-items:center;justify-content:center;padding:.85rem 1.75rem;border-radius:.6rem;font-weight:600;font-size:1rem;text-decoration:none;border:2px solid #fff;transition:background .2s ease,color .2s ease,transform .2s ease}
.plan-cta__btn:hover{transform:translateY(-2px);text-decoration:none}
.plan-cta__btn--solid{background:#fff;color:var(--color-primary-d)}
.plan-cta__btn--solid:hover{background:#eef4ff;color:var(--color-primary-d)}
.plan-cta__btn--outline{background:transparent;color:#fff}
.plan-cta__btn--outline:hover{background:#fff;color:var(--color-primary-d)}
/* Media is the positioning context for the floating corner cards. Padding
   leaves room so floats can overhang the dashboard without being clipped. */






















   .plan-cta__img{width:100%;height:auto;max-width:none;object-fit:contain;border-radius:.75rem;box-shadow:0 30px 60px -30px rgba(0,0,0,.5)}
.plan-cta__media--empty{justify-content:center;min-height:200px;color:rgba(255,255,255,.45)}
.plan-cta__media--empty .plan-cta__img-ph{display:flex;align-items:center;justify-content:center;width:100%;border:2px dashed rgba(255,255,255,.3);border-radius:.75rem;padding:2.5rem}
/* Floating corner cards (small images that hover over the dashboard) */
.plan-cta__float{position:absolute;z-index:2;width:clamp(160px,26vw,280px);line-height:0;filter:drop-shadow(0 18px 30px rgba(0,0,0,.35))}
.plan-cta__float-img{width:100%;height:auto;border-radius:.6rem}
.plan-cta__float--tr{top:-.5rem;right:-1rem;animation:plan-cta-float 5s ease-in-out infinite}
.plan-cta__float--bl{bottom:-.5rem;left:-1rem;animation:plan-cta-float 6s ease-in-out infinite reverse}
@keyframes plan-cta-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@media(prefers-reduced-motion:reduce){.plan-cta__btn{transition:none}.plan-cta__float--tr,.plan-cta__float--bl{animation:none}}
@media(max-width:992px){
  .plan-cta__band{grid-template-columns:1fr;text-align:center}
  .plan-cta__intro{max-width:none}
  .plan-cta__actions{justify-content:center}
  .plan-cta__media{justify-content:center;order:-1}
  .plan-cta__title{font-size:var(--fs-600)}
}
@media(max-width:576px){
  .plan-cta__btn{width:100%}
  .plan-cta__float{width:clamp(120px,34vw,170px)}
}

/* ============================================================
   INTEGRATIONS — "Smart Integrations" pastel logo-pill marquee.
   Two rows drift in opposite directions and fade out at the edges.
   Editable from Pages → Edit Home → "Integrations" tab.
   ============================================================ */
.integrations{padding-block:clamp(3rem,7vw,5.5rem);background:linear-gradient(180deg,#e8f1ff 0%,#f4f9ff 40%,#fff 100%);overflow:hidden}
.integrations__header{text-align:center;max-width:880px;margin:0 auto clamp(2.25rem,5vw,3.25rem)}
.integrations__title{margin:0 0 1rem;line-height:1.18;font-size:var(--fs-800);font-weight:800;color:var(--color-text);letter-spacing:-.01em}
.integrations__title-main{color:var(--color-primary)}
.integrations__title-bold{color:var(--color-primary)}
.integrations__intro{margin:0;color:#555;font-size:1.05rem;line-height:1.7}
/* Rows — full-bleed marquee tracks with a soft edge fade on both sides. */
.integrations__rows{display:flex;flex-direction:column;gap:clamp(1rem,1.8vw,1.5rem);-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}
.integrations__row{overflow:hidden}
.integrations__track{display:flex;gap:clamp(.9rem,1.4vw,1.25rem);width:max-content;will-change:transform}
/* The track holds two copies of the row, so translating -50% loops seamlessly. */
.integrations__row--ltr .integrations__track{animation:integrations-ltr 38s linear infinite}
.integrations__row--rtl .integrations__track{animation:integrations-rtl 44s linear infinite}
.integrations__rows:hover .integrations__track{animation-play-state:paused}
@keyframes integrations-ltr{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes integrations-rtl{from{transform:translateX(-50%)}to{transform:translateX(0)}}
/* Pill — pastel chip with a logo/monogram + name. */
.integrations__pill{flex:none;display:inline-flex;align-items:center;gap:.7rem;padding:.7rem 1.35rem;border-radius:50px;background:var(--int-bg);border:1px solid rgba(15,23,42,.04);box-shadow:0 6px 16px -12px rgba(15,23,42,.3);font-weight:600;font-size:1rem;color:var(--color-text);transition:transform .25s ease,box-shadow .25s ease}
.integrations__pill:hover{transform:translateY(-3px);box-shadow:0 12px 24px -12px rgba(15,23,42,.4)}
.integrations__logo{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:#fff;box-shadow:0 2px 6px -2px rgba(15,23,42,.25);overflow:hidden}
.integrations__logo img{width:26px;height:26px;object-fit:contain;display:block}
/* Monogram fallback shown until a real logo file is added. */
.integrations__mono{font-weight:800;font-size:.95rem;line-height:1;color:var(--int-mono)}
.integrations__name{white-space:nowrap}
/* Pastel tints (background + monogram colour) — same family as the cards. */
.integrations__pill--c1{--int-bg:#eef0ff;--int-mono:#4f46e5}
.integrations__pill--c2{--int-bg:#e8fbf1;--int-mono:#059669}
.integrations__pill--c3{--int-bg:#eaf4ff;--int-mono:#2563eb}
.integrations__pill--c4{--int-bg:#fff4e9;--int-mono:#ea580c}
.integrations__pill--c5{--int-bg:#e6fbf6;--int-mono:#0d9488}
.integrations__pill--c6{--int-bg:#fdeef6;--int-mono:#db2777}
@media(prefers-reduced-motion:reduce){
  .integrations__track{animation:none}
  .integrations__pill{transition:none}
}
@media(max-width:768px){
  .integrations__title{font-size:var(--fs-600)}
  .integrations__pill{font-size:.92rem;padding:.6rem 1.1rem}
  .integrations__logo{width:30px;height:30px}
}

/* ============================================================
   MOBILE APP — "… Mobile App — Productivity in Your Pocket".
   Two columns: copy + green-check list + store badges on the left, a layered
   image stage (main image + two floating corner cards) on the right.
   Editable from Pages → Edit Home → "Mobile App" tab.
   ============================================================ */
.mobile-app{padding-block:clamp(3rem,7vw,5.5rem);background:#f7faf9}
.mobile-app__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.mobile-app__title{margin:0 0 1.1rem;line-height:1.15;font-size:var(--fs-800);font-weight:800;color:var(--color-text);letter-spacing:-.01em}
.mobile-app__title-main{color:var(--color-primary)}
.mobile-app__intro{margin:0 0 1.25rem;color:#555;font-size:1.05rem;line-height:1.7}
.mobile-app__lead{margin:0 0 1rem;color:var(--color-text);font-size:1.02rem}
/* Feature list — green/brand check + label, like the reference. */
.mobile-app__list{list-style:none;margin:0 0 1.4rem;padding:0;display:grid;gap:.85rem}
.mobile-app__list li{display:flex;align-items:center;gap:.7rem;color:var(--color-text);font-weight:600;font-size:1.05rem}
.mobile-app__check{flex:none;color:var(--color-primary)}
.mobile-app__outro{margin:0 0 1.5rem;color:var(--color-text);font-size:1.02rem}
/* App-store badge buttons */
.mobile-app__stores{display:flex;flex-wrap:wrap;gap:.85rem}
.mobile-app__store{display:inline-flex;align-items:center;gap:.6rem;background:#111827;color:#fff;border-radius:12px;padding:.6rem 1.1rem;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 10px 22px -14px rgba(15,23,42,.7)}
.mobile-app__store:hover{transform:translateY(-2px);color:#fff;text-decoration:none;box-shadow:0 16px 28px -14px rgba(15,23,42,.8)}
.mobile-app__store-icon{flex:none}
.mobile-app__store-text{display:flex;flex-direction:column;line-height:1.1;text-align:left}
.mobile-app__store-text small{font-size:.62rem;text-transform:uppercase;letter-spacing:.04em;opacity:.85}
.mobile-app__store-text strong{font-size:1.05rem;font-weight:700}
/* Visual stage — a blue rounded panel holds the phone image; two images float
   out from the panel's corners (top-right + bottom-left), bleeding past it. */
.mobile-app__visual{position:relative;margin:clamp(1rem,3vw,2.5rem)}
.mobile-app__panel{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:540px;margin-inline:auto;min-height:clamp(100px,5vw,10px);padding:clamp(1.5rem,2.4vw,2.1rem) clamp(1.5rem,2.4vw,2.1rem) 0;border-radius:clamp(22px,3vw,34px);background:linear-gradient(160deg,#3b82f6 0%,#2563eb 55%,#1e40af 100%);box-shadow:0 40px 70px -34px rgba(37,99,235,.55);overflow:hidden}

/* Soft glow inside the panel for depth. */
.mobile-app__panel::before{content:"";position:absolute;top:-30%;right:-20%;width:70%;height:70%;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 70%);pointer-events:none}
/* Panel heading — "Take Doso / Wherever You Go!" at the top of the panel. */
.mobile-app__panel-heading{position:relative;z-index:1;margin:0 0 clamp(.5rem,1.2vw,.9rem);text-align:center;color:#fff;line-height:1.12}
.mobile-app__panel-top{display:block;font-size:clamp(1rem,1.8vw,1.4rem);font-weight:500;opacity:.95}
.mobile-app__panel-bold{display:block;font-size:clamp(1.25rem,2.6vw,2rem);font-weight:800;letter-spacing:-.01em}
.mobile-app__media{position:relative;z-index:1;width:100%;margin:0;flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding-bottom:clamp(1rem,2.2vw,1.75rem)}
.mobile-app__img{width:100%;max-width:100%;max-height:clamp(380px,48vw,580px);height:auto;display:block;margin:auto;border-radius:14px;filter:drop-shadow(0 24px 40px rgba(15,23,42,.3))}
.mobile-app__media--empty{min-height:clamp(260px,30vw,360px);align-items:center;justify-content:center;color:rgba(255,255,255,.7)}
.mobile-app__float{position:absolute;z-index:2;display:inline-flex;line-height:0;background:#fff;border-radius:18px;padding:.45rem;box-shadow:0 26px 50px -22px rgba(15,23,42,.45);animation:mobile-app-float 6s ease-in-out infinite}
.mobile-app__float-img{display:block;width:100%;height:auto;border-radius:13px}
.mobile-app__float--tr{top:6%;right:-6%;width:36%;max-width:210px;animation-delay:-1.5s}
.mobile-app__float--bl{bottom:8%;left:-7%;width:48%;max-width:260px}
@keyframes mobile-app-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@media(prefers-reduced-motion:reduce){.mobile-app__float,.mobile-app__store{animation:none;transition:none}}
@media(max-width:992px){
  .mobile-app__grid{grid-template-columns:1fr;gap:2rem}
  .mobile-app__visual{order:-1}
  .mobile-app__title{font-size:var(--fs-600)}
}
@media(max-width:480px){
  .mobile-app__stores{gap:.6rem}
  .mobile-app__store{padding:.55rem .9rem}
}

/* ============================================================
   FEATURE STACK — sticky "deck" of feature blocks that overlap on scroll
   Editable from Pages → Edit Home → "Feature Stack" tab.
   ============================================================ */
.fstack{padding-block:clamp(3rem,7vw,5.5rem)}
.fstack__container{display:flex;flex-direction:column}
/* Each block pins near the top; later blocks slide up and overlap earlier ones.
   Incremental top offsets leave a sliver of the previous card peeking. */
.fstack__item{position:sticky;top:100px;background:#fff;border:1.5px solid var(--color-primary);border-radius:var(--radius-lg);box-shadow:0 30px 60px -34px rgba(15,23,42,.3);padding:clamp(1.5rem,4vw,3.25rem);margin-bottom:2.5rem}
.fstack__item:nth-child(1){top:88px;border-color:var(--color-primary)}
.fstack__item:nth-child(2){top:104px;border-color:var(--color-accent)}
.fstack__item:nth-child(3){top:120px;border-color:var(--color-cta)}
.fstack__item:last-child{margin-bottom:0}
.fstack__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:stretch}
.fstack__content{min-width:0;align-self:center}
.fstack__title{margin:0 0 1rem;line-height:1.15}
.fstack__title-main{color:var(--color-primary);font-weight:700;font-size:var(--fs-600)}
.fstack__title-bold{display:block;color:var(--color-text);font-weight:800;font-size:var(--fs-800);letter-spacing:-.01em}
.fstack__text{color:#555;font-size:1.031rem;line-height:1.7;margin:0 0 1.25rem}
.fstack__rule{display:block;height:1px;background:var(--color-border);margin:0 0 1.25rem}
.fstack__list{list-style:none;margin:0 0 1.5rem;padding:0;display:grid;gap:.85rem}
.fstack__list li{display:flex;align-items:flex-start;gap:.7rem;color:var(--color-text);font-weight:500}
.fstack__check{flex:none;color:var(--color-primary);margin-top:.1rem}
.fstack__btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:var(--color-primary);text-decoration:none;transition:gap .2s ease,color .2s ease}
.fstack__btn:hover{gap:.85rem;color:var(--color-primary-d);text-decoration:none}
.fstack__media{border-radius:var(--radius-lg);overflow:hidden;line-height:0;background:#f0f5ff;min-height:300px}
.fstack__img{width:100%;height:100%;object-fit:cover;display:block}
.fstack__media--empty{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#e0ecff,#f0f7ff);color:#a9c4ee}
/* Tablet / mobile: keep the sticky stacking; stack image above content */
@media(max-width:992px){
  .fstack__grid{grid-template-columns:1fr;gap:1.5rem}
  .fstack__media{order:-1;min-height:0}
  .fstack__img{height:auto}
  .fstack__item{margin-bottom:1.5rem}
}
@media(prefers-reduced-motion:reduce){.fstack__item{position:static}}

/* ============================================================
   HOW IT WORKS — bento video gallery + click-to-play lightbox
   Editable from Pages → Edit Home → "How It Works" tab.
   ============================================================ */
.hiw{position:relative;overflow:hidden;padding-block:clamp(3.5rem,8vw,6.5rem);background:linear-gradient(180deg,#d9ecec 0%,#eef1ec 48%,#f5efe7 100%)}
.hiw>.container,.hiw__wrap{position:relative;z-index:1}
/* Header — eyebrow pill + big heading */
.hiw__header{text-align:center;max-width:680px;margin:0 auto clamp(2.25rem,5vw,3.25rem)}
.hiw__title{margin:0 0 .9rem;line-height:1.12;display:flex;flex-direction:column;align-items:center;gap:.85rem}
.hiw__title-main{font-size:.78rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--color-primary);background:rgba(37,99,235,.1);padding:.4rem .95rem;border-radius:50px}
.hiw__title-bold{font-size:var(--fs-800);font-weight:800;color:var(--color-text);letter-spacing:-.02em}
.hiw__intro{color:#5b6172;font-size:1.05rem;line-height:1.7;margin:0}
/* Expanding video accordion */
.hiw__wrap{max-width:1100px;margin:0 auto;padding:0 clamp(1rem,4vw,2rem);scroll-margin-top:100px}
.hiw__accordion{display:flex;gap:14px;height:clamp(340px,46vw,520px)}
.hiw__panel{position:relative;flex:0 0 clamp(54px,7vw,86px);min-width:0;border-radius:20px;overflow:hidden;cursor:pointer;background:#0f1117;box-shadow:0 26px 50px -28px rgba(15,23,42,.45);transition:flex .65s cubic-bezier(.5,.05,.2,1);will-change:flex}
.hiw__panel.is-active{flex:1 1 auto;cursor:default}
/* Media fills the panel; collapsed = dark grayscale, active = full colour */
.hiw__thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(1) brightness(.45);transition:filter .6s ease}
.hiw__panel.is-active .hiw__thumb{filter:none}
.hiw__thumb--empty{background:linear-gradient(160deg,#0b1220,#1e293b)}
.hiw__panel.is-active .hiw__thumb--empty{background:linear-gradient(135deg,#1e3a8a 0%,#2563eb 55%,#06b6d4 100%)}
/* Scrim for legibility */
.hiw__scrim{position:absolute;inset:0;z-index:1;background:linear-gradient(to top,rgba(2,6,23,.8) 0%,rgba(2,6,23,.25) 50%,rgba(2,6,23,.4) 100%);transition:opacity .5s ease}
.hiw__panel.is-active .hiw__scrim{background:linear-gradient(to top,rgba(2,6,23,.78) 0%,rgba(2,6,23,.05) 42%,transparent 66%)}
/* Vertical title shown while collapsed */
.hiw__vtitle{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;transform:rotate(180deg);color:#fff;font-weight:700;letter-spacing:.16em;text-transform:uppercase;font-size:.92rem;white-space:nowrap;padding:1.2rem 0;transition:opacity .3s ease}
.hiw__panel.is-active .hiw__vtitle{opacity:0;pointer-events:none}
/* Caption shown when active */
.hiw__caption{position:absolute;left:0;bottom:0;z-index:3;padding:1.4rem 1.7rem;color:#fff;text-align:left;white-space:nowrap;opacity:0;transform:translateY(12px);transition:opacity .5s ease .2s,transform .5s ease .2s}
.hiw__panel.is-active .hiw__caption{opacity:1;transform:translateY(0)}
.hiw__cap-name{display:block;font-weight:700;font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.15}
.hiw__cap-sub{display:block;margin-top:.3rem;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.75)}
/* Play button (active panel) */
.hiw__play{position:absolute;top:50%;left:50%;z-index:3;width:78px;height:78px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--color-primary);background:#fff;box-shadow:0 14px 34px -10px rgba(0,0,0,.45);transform:translate(-50%,-50%) scale(.5);opacity:0;transition:transform .5s ease .15s,opacity .5s ease .15s,background .25s,color .25s}
.hiw__panel.is-active .hiw__play{transform:translate(-50%,-50%) scale(1);opacity:1;animation:hiwPulse 2.4s ease-out infinite}
.hiw__panel.is-active:hover .hiw__play{background:var(--color-primary);color:#fff;animation:none;transform:translate(-50%,-50%) scale(1.08)}
.hiw__play svg{margin-left:4px}
@keyframes hiwPulse{0%{box-shadow:0 14px 34px -10px rgba(0,0,0,.45),0 0 0 0 rgba(37,99,235,.5)}70%{box-shadow:0 14px 34px -10px rgba(0,0,0,.45),0 0 0 22px rgba(37,99,235,0)}100%{box-shadow:0 14px 34px -10px rgba(0,0,0,.45),0 0 0 0 rgba(37,99,235,0)}}
/* Controls */
.hiw__controls{display:flex;justify-content:center;gap:.85rem;margin-top:clamp(1.5rem,3vw,2.25rem)}
.hiw__nav{width:50px;height:50px;border-radius:50%;border:0;background:#fff;color:var(--color-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 14px 28px -12px rgba(15,23,42,.4);transition:background .2s,color .2s,transform .2s}
.hiw__nav:hover{background:var(--color-primary);color:#fff;transform:scale(1.08)}
/* Responsive */
@media(max-width:768px){
  .hiw__accordion{height:clamp(360px,86vw,460px)}
  .hiw__panel{flex-basis:46px}
  .hiw__vtitle{font-size:.8rem;letter-spacing:.1em}
}
@media(max-width:480px){.hiw__panel{flex-basis:40px}}
@media(prefers-reduced-motion:reduce){.hiw__panel,.hiw__thumb,.hiw__play{transition:none}.hiw__panel.is-active .hiw__play{animation:none}}
/* Lightbox */
.hiw__modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:clamp(1rem,4vw,3rem);background:rgba(2,6,23,.82);backdrop-filter:blur(4px)}
.hiw__modal[hidden]{display:none}
.hiw__modal-frame{position:relative;width:min(960px,100%);aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.6)}
.hiw__modal-frame iframe,.hiw__modal-frame video{position:absolute;inset:0;width:100%;height:100%;border:0}
.hiw__modal-close{position:absolute;top:18px;right:24px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:1.7rem;line-height:1;cursor:pointer;transition:background .2s}
.hiw__modal-close:hover{background:rgba(255,255,255,.3)}
/* Responsive */
@media(max-width:992px){
  .hiw__grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:170px}
  .hiw__item:nth-child(1){grid-row:span 1}
  .hiw__item:nth-child(4),.hiw__item:nth-child(5),.hiw__item:nth-child(6){grid-column:span 2}
}
@media(max-width:560px){
  .hiw__grid{grid-template-columns:1fr;grid-auto-rows:200px}
  .hiw__item:nth-child(1),.hiw__item:nth-child(4),.hiw__item:nth-child(5),.hiw__item:nth-child(6){grid-column:span 1}
}
@media(prefers-reduced-motion:reduce){.hiw__item,.hiw__thumb,.hiw__play{transition:none}}

/* ============================================================
   FINANCE HERO — image section + placeholder (detail layer)
   Critical fhero shell lives in critical.css.
   ============================================================ */

/* Image wrapper — rounded top, sits flush at bottom of viewport */
.fhero__img-wrap{width:100%;border-radius:1.25rem 1.25rem 0 0;overflow:hidden;box-shadow:0 -12px 48px -8px rgba(124,58,237,.14),0 0 0 1px rgba(139,92,246,.12);line-height:0}
.fhero__img{display:block;width:100%;height:auto}

/* Placeholder shown until admin uploads an image */
.fhero__img-wrap--empty{background:linear-gradient(160deg,#ede9fe 0%,#f5f3ff 100%);min-height:280px;display:flex;align-items:center;justify-content:center}
.fhero__placeholder{display:flex;flex-direction:column;align-items:center;gap:.85rem;color:#a78bfa;font-size:.82rem;font-weight:500;text-align:center;padding:2rem;max-width:28ch;line-height:1.5}

/* ============================================================
   DOSO HERO — kanban dashboard mockup, social proof, logo cloud
   (critical shell lives in critical.css; this is the detail layer)
   ============================================================ */

/* Hero CTAs — powder-blue pill */
.dhero .btn--primary{background:linear-gradient(135deg,#2563EB,#3b82f6);color:#fff;border-radius:50px;box-shadow:0 14px 30px -10px rgba(37,99,235,.45)}
.dhero .btn--primary:hover{background:linear-gradient(135deg,#1d4fd0,#2563eb);box-shadow:0 18px 38px -10px rgba(37,99,235,.55)}
.dhero .btn--ghost{background:#fff;border:2px solid #e2e8f0;border-radius:50px;color:#0f172a;backdrop-filter:none}
.dhero .btn--ghost:hover{background:#f6f8fc;border-color:#c8d5e8}

/* ---- Social proof (avatar stack + count) ---- */
.dhero__proof{display:flex;align-items:center;gap:.85rem}
.dhero__avatars{display:flex}
.dhero__avatars i{width:38px;height:38px;border-radius:50%;border:2px solid #fff;margin-left:-12px;background:var(--grad-brand);box-shadow:0 2px 6px rgba(2,12,40,.15)}
.dhero__avatars i:first-child{margin-left:0}
.dhero__avatars i:nth-child(2){background:linear-gradient(135deg,#06B6D4,#2563EB)}
.dhero__avatars i:nth-child(3){background:linear-gradient(135deg,#F97316,#fb923c)}
.dhero__proof-text strong{display:block;font-family:var(--font-head);font-weight:800;font-size:1.15rem;color:#0f172a;line-height:1.1}
.dhero__proof-text small{color:#5b6172;font-size:.9rem}

/* ---- Dashboard panel (frames the admin image OR the CSS mockup) ---- */
/* Panel: powder-blue fill visible on top/right/bottom; left side flush — board clips into curve */
.dhero__panel{position:relative;background:linear-gradient(150deg,#dbeafe 0%,#bfdbfe 55%,#93c5fd 100%);border:none;border-radius:1.75rem;padding: 30px 30px 30px 0;overflow:hidden;box-shadow:0 36px 72px -32px rgba(37,99,235,.32),0 10px 24px -12px rgba(37,99,235,.16)}
/* When an uploaded image is used, frame it cleanly inside the bezel */
.dhero__panel--image{padding:clamp(.5rem,1.4vw,.9rem);overflow:hidden}
.dhero__img{display:block;width:100%;height:auto;border-radius:1rem}

/* ---- Kanban board mockup (matches reference; DOSO-blue branded) ---- */
.kanban{background:#fff;border-radius:14px;overflow:hidden}
.kanban__appbar{display:flex;justify-content:space-between;align-items:center;padding:.72rem .95rem;border-bottom:1px solid #f1f3f8;font-size:.72rem;color:#64748b}
.kanban__search{display:inline-flex;align-items:center;gap:.3rem;border:1px solid #e7eaf0;border-radius:7px;padding:.26rem .6rem;color:#94a3b8;font-weight:600}
.kanban__appright{display:flex;align-items:center;gap:.9rem}
.kanban__help{display:inline-flex;align-items:center;gap:.3rem;color:#64748b}
.kanban__user{display:inline-flex;align-items:center;gap:.45rem;font-weight:600;color:#0f172a}
/* Avatar: powder-blue gradient */
.kanban__user i{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#93c5fd,#2563EB);border:1.5px solid #fff;box-shadow:0 2px 6px rgba(37,99,235,.25)}
.kanban__toolbar{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.72rem .95rem;border-bottom:1px solid #f1f3f8;font-size:.74rem;color:#64748b}
.kanban__tabs{display:inline-flex;gap:.9rem;align-items:center}
/* Active Kanban tab: powder-blue underline */
.kanban__tabs b{color:#0f172a;border-bottom:2px solid #2563EB;padding-bottom:.45rem}
.kanban__tools{display:flex;gap:.6rem;align-items:center}
.kanban__tools>span{display:inline-flex;align-items:center;gap:.28rem}
/* "+ Add Task" button: powder blue */
.kanban__add{background:#2563EB;color:#fff;padding:.32rem .7rem;border-radius:8px;font-weight:600;box-shadow:0 6px 14px -8px rgba(37,99,235,.45)}
.kanban__cols{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;padding:.85rem;background:#fafbfc}
.kanban__col{display:flex;flex-direction:column}
.kanban__colhead{display:flex;align-items:center;gap:.4rem;font-size:.79rem;font-weight:700;color:#0f172a;margin-bottom:.6rem}
.kanban__colhead em{font-style:normal;font-weight:500;color:#94a3b8;font-size:.64rem;margin-left:auto}
.kdot{width:8px;height:8px;border-radius:50%;flex:none}
.kdot--blue{background:#3b82f6}.kdot--green{background:#22c55e}
/* "+ Add Lead" button: solid border, white, matches reference */
.kanban__addlead{width:100%;border:1px solid #e5e7eb;background:#fff;color:#6b7280;border-radius:9px;padding:.55rem;font-size:.72rem;font-weight:600;margin-bottom:.65rem;cursor:default}
.lead{background:#fff;border:1px solid #f0f0f0;border-radius:12px;padding:.75rem;margin-bottom:.65rem;box-shadow:0 2px 8px -4px rgba(15,23,42,.12)}
.lead__tags{display:flex;flex-wrap:wrap;gap:.32rem;margin-bottom:.52rem}
.tag{font-size:.62rem;font-weight:600;padding:.2rem .5rem;border-radius:6px}
/* Tag colors match reference: Report=teal, Event=indigo, Urgent=red, Document=amber, Internal=gray */
.tag--blue{background:#dcfce7;color:#16a34a}   /* Report → green */
.tag--cyan{background:#ede9fe;color:#6d28d9}   /* Event / Marketing → indigo */
.tag--orange{background:#fee2e2;color:#dc2626}  /* Urgent → red */
.tag--slate{background:#fef3c7;color:#b45309}   /* Document / Internal → amber */
.lead__title{font-size:.8rem;font-weight:600;color:#111827;margin:0 0 .55rem;line-height:1.35}
.lead__meta{display:flex;justify-content:space-between;align-items:center;font-size:.64rem;color:#9ca3af}
.lead__meta span{display:inline-flex;align-items:center;gap:.3rem}
.lead__meta svg{width:11px;height:11px;flex:none}
.lead__foot{display:flex;justify-content:space-between;align-items:center;margin-top:.55rem;padding-top:.5rem;border-top:1px solid #f3f4f6}
/* Stacked avatars — two circles, second offset, match reference photo-style */
.lead__ava{display:inline-flex}
.lead__ava::before,.lead__ava::after{content:"";display:block;width:22px;height:22px;border-radius:50%;border:1.5px solid #fff}
.lead__ava::before{background:linear-gradient(135deg,#f9a8d4,#ec4899);z-index:1}
.lead__ava::after{background:linear-gradient(135deg,#93c5fd,#3b82f6);margin-left:-7px}
.lead__counts{display:flex;gap:.65rem;align-items:center;color:#9ca3af;font-size:.64rem}
.lead__counts span{display:inline-flex;align-items:center;gap:.22rem}
.lead__counts svg{width:11px;height:11px;flex:none}

/* Revenue card — powder-blue background + blue sparkline */
.revcard{display:flex;align-items:center;gap:.75rem;background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe;border-radius:14px;padding:.75rem .9rem;box-shadow:0 8px 24px -12px rgba(37,99,235,.2)}
.revcard__spark{width:68px;height:42px;flex:none}
.revcard__label{display:block;font-size:.62rem;color:#3b82f6;font-weight:500}
.revcard__value{display:block;font-family:var(--font-head);font-weight:800;font-size:1.1rem;color:#1e3a8a;line-height:1.15}
.revcard__delta{font-size:.6rem;font-weight:700;color:#16a34a}

/* ---- Continuous, premium micro-motion (paused for reduced-motion) ---- */
@keyframes dheroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes dheroGlow{0%,100%{opacity:.75;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
.dhero__float{animation:dheroFloat 7s ease-in-out infinite}
.dhero__glow{animation:dheroGlow 6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){
  .dhero__float,.dhero__glow{animation:none!important}
}

/* Hero CTAs: larger pill, matches reference proportions */
.dhero .btn--lg{padding:.9em 2.1em;font-size:1rem;border-radius:50px;font-weight:700}
.dhero .btn--primary{box-shadow:0 12px 26px -14px rgba(37,99,235,.5)}
.dhero .btn--primary:hover{box-shadow:0 16px 32px -14px rgba(37,99,235,.58)}
.dhero .btn--lg:hover{transform:translateY(-3px)}

/* ---- Partner logo cloud (centered, monochrome, with dot separators) ---- */
.dhero__logos{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:clamp(1.75rem,5vw,3.5rem);margin-top:clamp(2rem,5vw,3.5rem);padding-top:clamp(1.5rem,4vw,2.5rem);border-top:1px solid #eef1f6}
.logoipsum{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-head);font-weight:700;font-size:1.05rem;color:#9aa6bd;opacity:.85;transition:opacity .2s,filter .2s}
.logoipsum:hover{opacity:1;filter:saturate(1)}
.logoipsum__mark{width:20px;height:20px;border-radius:50%;background:conic-gradient(#9aa6bd 0 25%,#c3ccdc 0 50%,#9aa6bd 0 75%,#c3ccdc 0)}

/* Mobile: copy first, single-column board */
@media (max-width:979px){
  .dhero__copy{order:-1}
  .kanban__cols{grid-template-columns:1fr}
  .kanban__cols .kanban__col:nth-child(2){display:none}
  .revcard{position:static;transform:none;margin-top:.75rem}
  .kpicard{display:none}
  .dhero__glow{display:none}
  .dhero__logos{gap:1.5rem}
  .logoipsum{font-size:.9rem}
}

/* ---------- Base typography & rhythm ---------- */
h1,h2,h3,h4,h5,h6{line-height:1.15;font-weight:700;margin:0 0 .5em;text-wrap:balance}
h2{font-size:var(--fs-800)}
h3{font-size:var(--fs-600)}
p,ul,ol{margin:0 0 1rem}
.section{padding-block:clamp(3rem,8vw,6rem)}
.section__header{text-align:center;max-width:60ch;margin:0 auto clamp(2rem,5vw,3.5rem)}
.section__intro{color:var(--color-muted);font-size:var(--fs-400)}

/* ---------- Navigation ---------- */
.primary-nav__list{list-style:none;display:flex;flex-wrap:nowrap;align-items:center;gap:2.25rem;margin:0;padding:0}
.primary-nav__list li{position:relative}
.primary-nav__list>li>a{color:#111827;font-weight:500;font-size:1rem;display:inline-flex;align-items:center;padding:.25rem 0;letter-spacing:-.01em;transition:color .15s;text-decoration:none}
.primary-nav__list>li>a:hover,.primary-nav__list>li>a:focus{color:#1450B8;text-decoration:none}
/* Dropdown caret — thinner, modern */
.primary-nav__list .menu-item-has-children>a::after{content:"";width:.36em;height:.36em;margin-left:.42em;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s,color .15s}
.primary-nav__list .menu-item-has-children:hover>a::after,.primary-nav__list .menu-item-has-children:focus-within>a::after{transform:rotate(-135deg) translateY(2px)}
/* Dropdown panel */
.primary-nav__list .sub-menu{list-style:none;margin:0;padding:.6rem 0;position:absolute;top:calc(100% + .85rem);left:50%;transform:translateX(-50%) translateY(10px);min-width:220px;background:#fff;border:1px solid #f0f0f2;border-radius:14px;box-shadow:0 8px 32px rgba(0,0,0,.09),0 1px 4px rgba(0,0,0,.05);opacity:0;visibility:hidden;transition:opacity .18s,transform .18s,visibility .18s}
.primary-nav__list li:hover>.sub-menu,.primary-nav__list li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
/* Thin brand top line */
.primary-nav__list .sub-menu::before{content:"";position:absolute;top:0;left:1rem;right:1rem;height:2px;background:linear-gradient(90deg,#1450B8,#20A4DC);border-radius:2px}
.primary-nav__list .sub-menu a{display:block;padding:.6rem 1.15rem;font-size:.9rem;font-weight:500;color:#374151;letter-spacing:-.005em;transition:color .13s,background .13s;text-decoration:none}
.primary-nav__list .sub-menu a:hover{color:#1450B8;background:#f5f8ff;text-decoration:none}
.nav-toggle{display:none;width:44px;height:44px;background:none;border:1px solid var(--color-border);border-radius:.5rem;align-items:center;justify-content:center}
.nav-toggle__bars,.nav-toggle__bars::before,.nav-toggle__bars::after{content:"";display:block;width:20px;height:2px;background:var(--color-text);margin:auto;position:relative;transition:.2s}
.nav-toggle__bars::before{position:absolute;top:-6px}
.nav-toggle__bars::after{position:absolute;top:6px}
/* In-drawer CTAs are mobile-only; hidden on desktop where header buttons show. */
.primary-nav__cta{display:none}

/* ---------- Grids ---------- */
.feature-grid,.service-grid,.pricing-grid,.team-grid,.testimonial-grid,.gallery-grid,.post-grid{
  list-style:none;margin:0;padding:0;display:grid;gap:var(--gap);
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))
}
.gallery-grid{grid-template-columns:repeat(2,1fr)}

/* ---------- Cards ---------- */
/* NOTE: .pricing-card is intentionally excluded here — the dedicated pricing
   page (assets/css/pricing.css) owns its card styling. */
.feature-card,.service-card,.team-card,.testimonial,.post-card{
  background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius);padding:clamp(1.25rem,3vw,2rem)
}
.feature-card__img{width:56px;height:56px;border-radius:50%;margin-bottom:1rem}
.team-card{text-align:center}
.team-card__photo{width:160px;height:160px;border-radius:50%;object-fit:cover;margin:0 auto 1rem}
.testimonial__cite{display:flex;align-items:center;gap:.75rem;margin-top:1rem}
.testimonial__avatar{width:48px;height:48px;border-radius:50%;object-fit:cover}
.testimonial__role{display:block;color:var(--color-muted);font-size:var(--fs-300)}

/* ---------- Pricing ----------
   Pricing card styling now lives entirely in assets/css/pricing.css. The old
   generic rules were removed to stop them overriding that design (they forced
   centered text and injected a duplicate "✓" before every feature). */

/* ---------- FAQ accordion ---------- */
/* Soft dual-tone blue ambient glow behind the FAQ content (premium SaaS look):
   a light-blue glow drifts in from the left, a darker blue from the right, both
   heavily blurred and fading to transparent so they melt into the white page —
   no hard edges or visible circles. */
.section--faq{position:relative;overflow:hidden;isolation:isolate;background:#fff}
.section--faq::before,
.section--faq::after{content:"";position:absolute;top:50%;width:760px;height:560px;border-radius:50%;transform:translateY(-50%);filter:blur(90px);pointer-events:none;z-index:0}
.section--faq::before{left:-180px;background:radial-gradient(circle,rgba(96,165,250,.20) 0%,rgba(59,130,246,.12) 42%,rgba(96,165,250,0) 75%)}
.section--faq::after{right:-180px;background:radial-gradient(circle,rgba(29,78,216,.16) 0%,rgba(59,130,246,.10) 42%,rgba(29,78,216,0) 75%)}
.section--faq>.container{position:relative;z-index:1}
@media(prefers-reduced-motion:reduce){.section--faq::before,.section--faq::after{filter:blur(90px)}}
@media(max-width:768px){
  .section--faq::before,.section--faq::after{width:480px;height:420px;filter:blur(70px)}
  .section--faq::before{left:-160px}
  .section--faq::after{right:-160px}
}

/* Smaller, refined FAQ heading. */
.section--faq .section__title{font-size:clamp(1.55rem,3vw,2.1rem);font-weight:800;letter-spacing:-.01em}
.section--faq .section__header{margin-bottom:clamp(1.5rem,3vw,2.25rem)}
/* Accordion — clean horizontal dividers (bottom border only), no boxes. The
   list is framed by a hairline top rule; each row separated by a bottom rule. */
.faq-accordion{border-top:1px solid var(--color-border)}
.faq-item{border:0;border-bottom:1px solid var(--color-border);border-radius:0;margin:0;background:transparent}
/* Question row — text left, chevron right, comfortable tap target. */
.faq-item__q{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;cursor:pointer;font-weight:600;font-size:1.06rem;line-height:1.45;color:var(--color-text);padding:1.3rem .25rem;list-style:none;transition:color .2s ease}
.faq-item__q::-webkit-details-marker{display:none}
.faq-item__q:hover{color:var(--color-primary)}
.faq-item[open] .faq-item__q{color:var(--color-primary)}          /* active emphasis */
/* Chevron: a down arrow that flips to an up arrow when the item is open. */
.faq-item__q::after{content:"";flex:none;width:9px;height:9px;margin-right:.45rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .3s ease;color:var(--color-primary)}
.faq-item[open] .faq-item__q::after{transform:translateY(2px) rotate(-135deg)}
/* Answer — muted body copy with a soft slide-in reveal when opened. */
.faq-item__a{padding:0 .25rem 1.4rem;color:#5b6577;line-height:1.75;font-size:1rem}
.faq-item[open] .faq-item__a{animation:faq-reveal .35s ease}
@keyframes faq-reveal{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  .faq-item__q::after{transition:none}
  .faq-item[open] .faq-item__a{animation:none}
}

/* ---------- Blog ---------- */
.content-area{display:grid;gap:var(--gap);grid-template-columns:1fr}
.post-card__media img{border-radius:var(--radius) var(--radius) 0 0}
.breadcrumbs__list{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding:0;margin:0 0 1.5rem;font-size:var(--fs-300);color:var(--color-muted)}
.breadcrumbs__item+.breadcrumbs__item::before{content:"/";margin-right:.5rem;color:var(--color-border)}

/* ---------- Footer ---------- */
/* Footer styles live in assets/css/footer.css (enqueued site-wide). */
.social-links{list-style:none;display:flex;gap:1rem;padding:0;margin:0 0 1.5rem}

/* ---------- CTA band ---------- */
.cta-band{text-align:center;padding:clamp(2.5rem,6vw,4rem) var(--gap);border-radius:var(--radius)}

/* ---------- 404 ---------- */
.error-404__inner{text-align:center;padding-block:clamp(3rem,10vw,6rem)}
.error-404__code{font-size:clamp(4rem,18vw,9rem);margin:0;color:var(--color-primary)}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — full site
   ═══════════════════════════════════════════════════════════════ */

/* Anchor targets clear the fixed header */
section[id]{scroll-margin-top:84px}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ── Desktop sidebar / gallery ──────────────────────────────── */
@media(min-width:900px){
  .has-sidebar .content-area{grid-template-columns:minmax(0,1fr) 300px}
  .gallery-grid{grid-template-columns:repeat(4,1fr)}
}

/* ── Mobile nav — hamburger replaces desktop nav at ≤900px ──── */
@media(max-width:900px){
  /* Show hamburger button */
  .nav-toggle{display:flex}
  /* Slide-down panel below fixed header — flex column so links scroll and
     the CTAs can pin to the bottom of the drawer. */
  .primary-nav{
    position:fixed;top:84px;left:0;right:0;z-index:49;
    flex-direction:column;
    justify-content:flex-start;
    background:#fff;
    border-bottom:1px solid var(--color-border);
    box-shadow:0 8px 24px rgba(0,0,0,.07);
    max-height:0;overflow:hidden;
    transition:max-height .28s ease;
  }
  .primary-nav.is-open{max-height:85vh;overflow-y:auto}
  /* Stacked list */
  .primary-nav__list{flex-direction:column;align-items:stretch;gap:0;padding:.75rem 1rem;width:100%}
  /* Full-width rows so the dropdown caret can sit flush right of the label */
  .primary-nav__list>li>a{display:flex;justify-content:space-between;align-items:center;padding:.75rem .25rem;font-size:1rem;border-bottom:1px solid #f3f4f6}
  .primary-nav__list>li:last-child>a{border-bottom:0}
  .primary-nav__list .menu-item-has-children>a::after{margin-left:auto}
  /* Accordion caret — driven by .is-expanded (JS), not hover/focus, so taps
     control it on touch devices. Default points down; flips 180° when open. */
  .primary-nav__list .menu-item-has-children:hover>a::after,
  .primary-nav__list .menu-item-has-children:focus-within>a::after{transform:rotate(45deg) translateY(-2px)}
  .primary-nav__list .menu-item-has-children.is-expanded>a::after{transform:rotate(-135deg) translateY(2px)}
  /* Collapsible submenu — hidden by default, slides down when expanded.
     Child links sit in an indented, tinted panel so the nesting under the
     parent ("Services") reads clearly. */
  .primary-nav__list .sub-menu{
    position:static;opacity:1;visibility:visible;transform:none;
    box-shadow:none;border:0;
    margin:0 0 0 1rem;padding:0 .25rem 0 .9rem;
    border-left:3px solid #d7e3f7;
    background:transparent;
    max-height:0;overflow:hidden;
    transition:max-height .3s ease;
  }
  .primary-nav__list .menu-item-has-children.is-expanded>.sub-menu{
    max-height:60vh;margin-bottom:.5rem;padding-top:.2rem;padding-bottom:.3rem;
  }
  .primary-nav__list .sub-menu::before{display:none}
  /* Distinct child rows: smaller, indented, muted-blue, with a left dot marker. */
  .primary-nav__list .sub-menu a{
    display:block;position:relative;padding:.55rem .25rem .55rem 1rem;
    font-size:.92rem;font-weight:500;color:#475569;border-bottom:0;text-align:left;
  }
  .primary-nav__list .sub-menu a::before{
    content:"";position:absolute;left:0;top:50%;width:5px;height:5px;
    margin-top:-2.5px;border-radius:50%;background:#9db8e6;
  }
  .primary-nav__list .sub-menu a:hover,
  .primary-nav__list .sub-menu a:focus{color:#1450B8;background:transparent}
  .primary-nav__list .sub-menu a:hover::before,
  .primary-nav__list .sub-menu a:focus::before{background:#1450B8}
  /* Move CTAs into the drawer: hide the header copies, keep only the hamburger */
  .site-header__right .site-header__expert-call,
  .site-header__right .site-header__cta{display:none}
  /* In-drawer CTAs — pinned to the bottom, full-width, scrolls with the rest
     of the panel only when content overflows. */
  .primary-nav__cta{
    display:flex;flex-direction:column;gap:.6rem;
    margin-top:auto;
    padding:1rem;
    background:#fff;
    border-top:1px solid var(--color-border);
    position:sticky;bottom:0;
  }
  .primary-nav__cta .site-header__expert-call,
  .primary-nav__cta .site-header__cta{
    display:inline-flex;width:100%;justify-content:center;
  }
}

/* Hamburger → X animation when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars{background:transparent}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before{transform:rotate(45deg) translate(4px,4px)}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after{transform:rotate(-45deg) translate(4px,-4px)}

/* Nav panel top adjusts to match reduced header height on small screens */
@media(max-width:768px){
  .primary-nav{top:68px}
  section[id]{scroll-margin-top:68px}
}
@media(max-width:480px){
  .primary-nav{top:64px}
  section[id]{scroll-margin-top:64px}
}

/* ── Tablet ≤768px — sections & grids ──────────────────────── */
@media(max-width:768px){
  .section{padding-block:clamp(2.5rem,7vw,4rem)}
  .section__header{margin-bottom:1.5rem}
  .pricing-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
  .site-footer__columns{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
  /* Logo strip */
  .logostrip{padding:1.75rem 0 1.5rem}
  .logostrip__track{gap:2.5rem}
  .logostrip__item img{height:52px;max-width:120px}
}

/* ── Mobile ≤480px — single column everything ───────────────── */
@media(max-width:480px){
  .section{padding-block:2rem}
  /* All grids collapse to single column */
  .feature-grid,.service-grid,.team-grid,.testimonial-grid,.post-grid{
    grid-template-columns:1fr
  }
  .pricing-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  /* Cards */
  .feature-card,.service-card,.pricing-card,.team-card,.testimonial,.post-card{
    padding:1.25rem
  }
  /* Footer */
  .site-footer{padding-block:2rem;margin-top:2rem}
  .site-footer__columns{grid-template-columns:1fr;gap:1.5rem}
  .site-footer__bottom{flex-direction:column;text-align:center;gap:.6rem}
  .social-links{justify-content:center}
  /* CTA band */
  .cta-band{padding:2rem 1rem}
  /* Logo strip */
  .logostrip__track{gap:2rem}
  .logostrip__item img{height:44px;max-width:100px}
  .logostrip__label{font-size:.7rem}
  /* Project Management — tame the orbs on small screens */
  .projects__orb{filter:blur(48px);opacity:.4}
  .projects__orb--1,.projects__orb--2,.projects__orb--3{width:220px;height:220px}
  /* Images never overflow */
  img,.fhero__img-wrap{max-width:100%;height:auto}
  /* 404 */
  .error-404__inner{padding-block:2.5rem}
}

/* ── Very small ≤375px ──────────────────────────────────────── */
@media(max-width:375px){
  .site-footer__columns{gap:1rem}
  .primary-nav__list{padding:.5rem .75rem}
  .pricing-card__amount{font-size:var(--fs-800)}
}

/* ── Motion & contrast ──────────────────────────────────────── */
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
