/* ==========================================================================
   J International Bags — Layout, components, effects
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm);
  padding: 0.9rem 1.7rem; border-radius: var(--radius-pill); border: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn-primary {
  background: var(--gradient-brand); background-size: 160% 160%; background-position: 0% 50%;
  color: #fff; box-shadow: var(--shadow-glow); overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 46px rgba(246,67,0,0.34); }
.btn-primary:active { transform: translateY(0); }
/* Subtle one-shot shimmer sweep on hover — a light diagonal highlight, not a
   continuous/looping effect, so it reads as a premium touch rather than a
   distracting animation (a running theme in the anti-pattern guidance for
   B2B/corporate UI is to avoid perpetual motion on primary actions). */
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  background-size: 250% 100%; background-position: 150% 0;
}
.btn-primary:hover::after { transition: background-position 0.65s var(--ease-out); background-position: -50% 0; }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { display: none; } }
.btn-outline {
  background: transparent; color: var(--color-secondary); border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), height var(--dur-med) var(--ease-out);
  background: transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); width: 100%; }
.site-header.is-glass {
  height: 72px;
  background: rgba(250, 250, 249, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(18,11,54,0.06), var(--shadow-sm);
}
.site-header:not(.is-glass) { color: #fff; }
.site-header:not(.is-glass) .nav-link { color: rgba(255,255,255,0.92); }
.site-header:not(.is-glass) .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.site-header:not(.is-glass) .btn-outline:hover { border-color: #fff; }
.site-header.is-glass .nav-link { color: var(--color-secondary); }

.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-heading); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-glow); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }

.main-nav { display: flex; align-items: center; gap: 1.65rem; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 1.35rem; flex-wrap: nowrap; }
.nav-link { font-weight: 600; font-size: 0.9rem; padding: var(--space-2) 0; position: relative; white-space: nowrap; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gradient-text); transition: right var(--dur-fast) var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.nav-toggle {
  /* Visual icon stays a compact 26x20, but the tappable hit area is a full
     44x44px — below that, mobile touch targets are hard to hit accurately. */
  display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: none;
}
.nav-toggle span {
  position: absolute; left: 50%; width: 26px; height: 2px; margin-left: -13px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.has-dropdown { position: relative; }
.dropdown-panel {
  display: none;
  border-radius: var(--radius-lg);
  grid-template-columns: 1fr 1fr; gap: var(--space-2);
}
/* Hover/focus-reveal dropdown is a desktop-only interaction pattern — mobile uses a
   tap-to-toggle .is-open class instead (see main.js). Scoping this to desktop widths
   prevents the two mechanisms fighting each other (a lingering :hover/:focus-within
   state on mobile would otherwise re-apply the desktop transform and clip the panel
   off-screen). */
@media (min-width: 1001px) {
  .dropdown-panel {
    position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(8px);
    width: 560px; padding: var(--space-5);
    background: rgba(255,255,255,0.86); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow-lg);
    display: grid;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  }
  .has-dropdown:hover .dropdown-panel, .has-dropdown:focus-within .dropdown-panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
}
.dropdown-item { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); color: var(--color-secondary); }
.dropdown-item:hover { background: rgba(246,67,0,0.07); }
.dropdown-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-brand); margin-top: 6px; flex-shrink: 0; }
.dropdown-item strong { display: block; font-family: var(--font-heading); font-size: var(--fs-sm); }
.dropdown-item small { color: var(--color-text-muted); font-size: var(--fs-xs); }

/* ---------- Hero / parallax ---------- */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center;
  overflow: hidden; background: var(--color-secondary); color: var(--color-text-on-dark);
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: -10% -5%; z-index: 0;
  background: var(--gradient-dark);
}
.hero-bg::before, .hero-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px);
  animation: heroBlobDrift 16s ease-in-out infinite;
}
.hero-bg::before {
  width: 760px; height: 760px; right: -200px; top: -160px; opacity: 0.6;
  background: radial-gradient(circle, var(--color-primary), transparent 70%);
  animation-delay: 0s;
}
.hero-bg::after {
  width: 620px; height: 620px; left: -180px; bottom: -200px; opacity: 0.55;
  background: radial-gradient(circle, var(--color-secondary-soft), transparent 70%);
  animation-delay: -8s;
}
.hero-bg-blob3 {
  content: ''; position: absolute; z-index: 0; border-radius: 50%; filter: blur(100px);
  width: 520px; height: 520px; left: 32%; top: 8%; opacity: 0.3;
  background: radial-gradient(circle, #FFB020, transparent 72%);
  animation: heroBlobDrift 20s ease-in-out infinite; animation-delay: -4s;
}
@keyframes heroBlobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-3%, -4%) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-bg::after, .hero-bg-blob3 { animation: none; }
}
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 3px 3px; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-10); align-items: center; }
.hero-inner { max-width: 620px; }
.hero h1 { color: #fff; }
.hero-lede { font-size: var(--fs-lg); color: var(--color-text-on-dark-muted); max-width: 560px; }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }

/* ---------- Hero visual (product card stack, replaces the old low-opacity photo backdrop) ---------- */
.hero-visual { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.hero-visual-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,67,0,0.35), transparent 70%);
  filter: blur(40px); animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.12); opacity: 1; } }
.hero-visual-card {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); padding: var(--space-3);
  animation: heroFloat 5s ease-in-out infinite;
}
.hero-visual-card img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 6px); display: block; }
.hero-visual-card-main { width: 320px; height: 320px; z-index: 2; animation-delay: 0s; }
.hero-visual-card-secondary {
  width: 168px; height: 168px; right: -18px; bottom: -6px; z-index: 3;
  animation-delay: 0.6s; border-color: rgba(255,255,255,0.28);
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-badge {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
  z-index: 4; animation: heroFloat 5.5s ease-in-out infinite;
}
.hero-badge-num { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-xl); color: var(--color-secondary); line-height: 1; }
.hero-badge-label { font-size: 0.68rem; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hero-badge-top { top: 6%; left: -6%; animation-delay: 1s; }
.hero-badge-bottom { bottom: 10%; left: 42%; animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual-card, .hero-badge, .hero-visual-glow { animation: none; }
}
.hero-scroll-cue {
  position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-on-dark-muted);
  z-index: 2;
}
.hero-scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: scrollcue 2s var(--ease-out) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { padding: var(--space-12) 0; position: relative; }
.section-tight { padding: var(--space-10) 0; }
.section-dark { background: var(--gradient-dark); color: var(--color-text-on-dark); position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--color-text-on-dark-muted); }
/* Faint dot-grid texture for dark sections that would otherwise be a flat
   gradient — adds depth without competing with foreground content (kept at
   very low opacity, non-animated, purely a subtle backdrop texture). */
.section-dark.has-grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 90%);
}
.section-dark.has-grid > .container { position: relative; z-index: 1; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 660px; margin: 0 auto var(--space-10); text-align: center; }
.section-head.align-left { margin-inline: 0; text-align: left; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); filter: blur(5px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), filter 0.45s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Stat counters ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.stat-card {
  padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px); text-align: center;
}
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-4xl);
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-on-dark-muted); margin-top: var(--space-2); }

/* ---------- Glass cards ---------- */
.glass-card {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.glass-card-dark { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(16px); border-radius: var(--radius-lg); }

/* ---------- Product / category grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* ---------- Bento grid (homepage product showcase) ---------- */
.bento-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px;
  grid-auto-flow: dense; gap: var(--space-5);
}
.bento-item-lg { grid-column: span 2; grid-row: span 3; }
.bento-item-wide { grid-column: span 2; grid-row: span 2; }
.bento-item-sm { grid-column: span 1; grid-row: span 2; }
.bento-item .product-card { height: 100%; }
.bento-item-lg .product-card-body h3 { font-size: var(--fs-2xl); }
.bento-item-lg .product-card-body p { font-size: var(--fs-base); }
.bento-item-sm .product-card-body { padding: var(--space-4); }
.bento-item-sm .product-card-body h3 { font-size: var(--fs-base); margin-bottom: var(--space-1); }
.bento-item-sm .product-card-body p { display: none; }
.bento-item .product-card-media { aspect-ratio: auto; height: 58%; }
.bento-item-wide .product-card-media, .bento-item-sm .product-card-media { height: 52%; }
@media (max-width: 1080px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .bento-item-lg { grid-column: span 2; grid-row: span 2; }
  .bento-item-wide, .bento-item-sm { grid-column: span 1; grid-row: span 2; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-item-lg, .bento-item-wide, .bento-item-sm { grid-column: span 1; grid-row: span 1; }
  .bento-item .product-card-media, .bento-item-wide .product-card-media, .bento-item-sm .product-card-media { height: auto; aspect-ratio: 4/3; }
}
.product-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface);
  box-shadow: var(--shadow-sm); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--color-bg-alt); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.product-card:hover .product-card-media img { transform: scale(1.08); }
.product-card-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { margin-bottom: var(--space-2); }
.product-card-body p { font-size: var(--fs-sm); flex: 1; }
.product-card-link { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); color: var(--color-primary); margin-top: var(--space-3); }
.product-card-link .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.product-card:hover .product-card-link .arrow { transform: translateX(4px); }

/* ---------- Process stepper ---------- */
.stepper { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.stepper::before { content: ''; position: absolute; top: 26px; left: 6%; right: 6%; height: 2px; background: var(--color-border); z-index: 0; }
.stepper-fill { position: absolute; top: 26px; left: 6%; height: 2px; background: var(--gradient-text); z-index: 0; width: var(--fill, 0%); transition: width 1s var(--ease-out); }
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto var(--space-4); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-secondary);
  transition: border-color var(--dur-med), background var(--dur-med), color var(--dur-med);
}
.step.is-active .step-num { border-color: transparent; background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow); }
.step h4 { margin-bottom: var(--space-1); }
.step p { font-size: var(--fs-sm); }

/* ---------- Marquee (clients) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--space-10); width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-logo { height: 46px; display: flex; align-items: center; opacity: 0.65; filter: grayscale(1); transition: opacity var(--dur-fast), filter var(--dur-fast); }
.marquee-logo:hover { opacity: 1; filter: grayscale(0); }
.marquee-logo img { height: 100%; width: auto; object-fit: contain; }
/* A small number of supplied client logos are white/pale artwork made for dark
   backgrounds — invisible on the marquee's light section. Give just those a
   dark chip so they stay legible without dimming/greying every other logo. */
.marquee-logo-dark { background: var(--color-secondary); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }

/* ---------- Client logo wall (/clients page) ---------- */
.logo-tile {
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-tile-dark { background: var(--color-secondary) !important; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.testi-card { padding: var(--space-6); }
.testi-quote { font-size: var(--fs-lg); color: var(--color-secondary); font-family: var(--font-heading); font-weight: 600; margin-bottom: var(--space-5); }
.testi-person { display: flex; align-items: center; gap: var(--space-3); }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-family: var(--font-heading); flex-shrink: 0; }
.testi-person strong { display: block; font-size: var(--fs-sm); color: var(--color-secondary); }
.testi-person span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; background: none; border: none; text-align: left; font-family: var(--font-heading); font-weight: 700; color: var(--color-secondary); font-size: var(--fs-base); }
.faq-q .plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--color-border); position: relative; transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--color-secondary); top: 50%; left: 50%; transition: transform var(--dur-fast) var(--ease-out); }
.faq-q .plus::before { width: 10px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-q .plus::after { width: 1.5px; height: 10px; transform: translate(-50%,-50%); }
.faq-item.is-open .faq-q .plus::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item.is-open .faq-q .plus { border-color: var(--color-primary); transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); }
.faq-a-inner { padding-bottom: var(--space-5); color: var(--color-text-muted); }
.faq-item.is-open .faq-a { max-height: 400px; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); color: var(--color-secondary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--color-border);
  background: var(--color-surface); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); font-size: var(--fs-sm);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(246,67,0,0.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-error { color: var(--color-primary-dark); font-size: var(--fs-xs); margin-top: var(--space-1); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-primary-dark); }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-top: var(--space-4); display: none; }
.form-status.is-success { display: block; background: rgba(34,150,90,0.1); color: #1c6b45; }
.form-status.is-error { display: block; background: rgba(246,67,0,0.1); color: var(--color-primary-dark); }

/* ---------- Configurator (Build Your Bag) ---------- */
.configurator { padding: var(--space-6); border-radius: var(--radius-lg); }
.config-steps { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); flex-wrap: wrap; }
.config-step-pill { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; font-family: var(--font-heading); background: var(--color-bg-alt); color: var(--color-text-muted); }
.config-step-pill.is-active { background: var(--gradient-brand); color: #fff; }
.config-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.config-option { padding: var(--space-4); border-radius: var(--radius-md); border: 1.5px solid var(--color-border); text-align: center; font-size: var(--fs-sm); font-weight: 600; transition: all var(--dur-fast); background: var(--color-surface); }
.config-option:hover { border-color: var(--color-primary); }
.config-option.is-selected { border-color: var(--color-primary); background: rgba(246,67,0,0.06); color: var(--color-primary-dark); box-shadow: 0 0 0 3px rgba(246,67,0,0.1); }
.config-summary { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-md); background: var(--color-bg-alt); font-size: var(--fs-sm); }
.config-summary b { color: var(--color-secondary); }

/* ---------- Badges / pills ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--color-bg-alt); font-size: var(--fs-xs); font-weight: 700; color: var(--color-secondary); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); background: var(--gradient-brand); padding: var(--space-10); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.4; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.86); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--fs-xs); color: var(--color-text-on-dark-muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + var(--space-10)) 0 var(--space-10); background: var(--gradient-dark); color: #fff; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--color-primary), transparent 70%); opacity: 0.35; filter: blur(60px); top: -200px; right: -100px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 780px; }
.page-hero-lede { color: var(--color-text-on-dark-muted); max-width: 640px; font-size: var(--fs-lg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gradient-dark); color: var(--color-text-on-dark); padding: var(--space-12) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-8); margin-bottom: var(--space-10); }
.footer-brand p { max-width: 320px; }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { color: var(--color-text-on-dark-muted); font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.1); font-size: var(--fs-xs); color: var(--color-text-on-dark-muted); flex-wrap: wrap; gap: var(--space-3); }
.social-row { display: flex; gap: var(--space-3); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast); }
.social-row a:hover { background: var(--gradient-brand); }

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

/* Responsive column-count helpers — use these instead of inline grid-template-columns,
   so column counts still collapse properly at every breakpoint (inline styles would
   otherwise out-rank the media queries below and never shrink on mobile). */
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-6 { grid-template-columns: repeat(6, 1fr); }
.icon-tile { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--gradient-brand-soft); display: flex; align-items: center; justify-content: center; color: var(--color-primary); margin-bottom: var(--space-4); flex-shrink: 0; }
.feature-list { display: flex; flex-direction: column; gap: var(--space-4); }
.feature-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.feature-item .check { width: 24px; height: 24px; border-radius: 50%; background: var(--gradient-brand); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stat-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stepper { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-8); }
  .stepper::before, .stepper-fill { display: none; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-6 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { height: 380px; transform: none !important; }
  .hero-inner { max-width: 100%; }
}
@media (max-width: 1180px) and (min-width: 1001px) {
  /* Tight laptop widths: trim spacing further before the nav switches to the mobile menu. */
  .site-header .container { gap: var(--space-4); }
  .main-nav { gap: 1.1rem; }
  .nav-list { gap: 1rem; }
  .nav-link { font-size: 0.84rem; }
  .brand-text span { display: none; }
}
@media (max-width: 1000px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-6); }
  .three-col { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; inset: 0; background: var(--color-secondary); flex-direction: column; justify-content: center;
    transform: translateX(100%); transition: transform var(--dur-med) var(--ease-out); padding: var(--space-8); z-index: 90;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: var(--space-5); width: 100%; }
  .site-header:not(.is-glass) .main-nav .nav-link { color: #fff; }
  .nav-link { color: #fff !important; font-size: var(--fs-xl); white-space: normal; }
  .dropdown-panel { grid-template-columns: 1fr; margin-top: var(--space-3); }
  .has-dropdown.is-open .dropdown-panel { display: grid; }
  .has-dropdown { width: 100%; }
  .dropdown-item { color: #fff; }
  .dropdown-item small { color: var(--color-text-on-dark-muted); }
  .nav-toggle { display: block; z-index: 91; }
  .nav-actions .btn-outline { display: none; }
  .nav-actions { gap: var(--space-2); }
}
@media (max-width: 640px) {
  .stat-grid, .card-grid, .testi-grid, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-6 { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero { min-height: 100vh; min-height: 100svh; }
  .brand-text strong { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
  .nav-actions .btn-primary { padding: 0.65rem 1.1rem; font-size: 0.8rem; }
  .container { padding-inline: var(--space-4); }

  /* Hero visual: shrink the card stack and keep floating badges inside bounds
     so nothing pokes past the viewport edge on narrow phones. */
  .hero-visual { height: 300px; }
  .hero-visual-card-main { width: 220px; height: 220px; }
  .hero-visual-card-secondary { width: 116px; height: 116px; right: 0; bottom: -10px; }
  .hero-visual-glow { width: 260px; height: 260px; }
  .hero-badge { padding: var(--space-2) var(--space-3); }
  .hero-badge-num { font-size: var(--fs-lg); }
  .hero-badge-label { font-size: 0.6rem; }
  .hero-badge-top { top: 2%; left: 0; }
  .hero-badge-bottom { bottom: 4%; left: 38%; }

  .stepper { grid-template-columns: 1fr; }
  .three-col, .config-options { grid-template-columns: 1fr 1fr; }
  .marquee-logo { height: 34px; }
  .page-hero { padding-top: calc(var(--header-h) + var(--space-6)); }
}
@media (max-width: 400px) {
  .config-options { grid-template-columns: 1fr; }
  .hero-badge-bottom { display: none; }
}
