/* ClicknFile · home.css
 * Homepage-specific styles (cinematic sections).
 * Loaded alongside pdp.css (which provides nav, footer, buttons, vars).
 */

/* -----------------------------------------------------------------
 * Hero – cinematic
 * ----------------------------------------------------------------- */
.home-hero {
  position: relative;
  min-height: 92vh;
  padding: 130px 5vw 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width:1440px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(27,77,74,0.08);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.home-hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: home-eyebrow-pulse 2.4s ease-out infinite;
}
@keyframes home-eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.home-hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
/* Apply gradient to the inner word-span too – word-reveal wraps content
 * in <span class="rw-inner"> which would otherwise inherit transparent
 * fill without the gradient backdrop, hiding the text. */
.home-hero h1 em,
.home-hero h1 em .rw-inner {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-dark), var(--primary) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.home-hero-tagline {
  font-family: "Caveat", cursive;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}
.home-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}
.home-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.home-hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.home-hero-meta strong {
  color: var(--text);
  font-weight: 800;
}

/* Hero visual – tilted product mockup (legacy) */
.home-hero-visual {
  position: relative;
  perspective: 1400px;
}

/* Hero visual: animated Excel sheet that fills row by row and then pops a
 * mini bar chart, on an 8s loop. Pure CSS keyframes, no JS. The variable
 * --d on each cell (and bar) staggers the appearance order. */
.home-hero-visual--excel { perspective: 1400px; }
.hero-excel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 0 0 1px rgba(27,77,74,.06),
    0 18px 40px -10px rgba(27,77,74,.18),
    0 50px 80px -20px rgba(27,77,74,.18);
  transform: rotate3d(1, -0.4, 0.1, 4deg);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.hero-excel:hover { transform: rotate3d(1, -0.4, 0.1, 1deg) translateY(-4px); }

.hero-excel-tb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #F2F0E4 0%, #E8E6D6 100%);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.hero-excel-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.hero-excel-fname {
  margin-left: 14px;
  font-size: .72rem;
  font-weight: 700;
  color: #6B6560;
  letter-spacing: .01em;
}
.hero-excel-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #1B4D4A;
}
.hero-excel-tab {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 12px;
  border-radius: 5px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.05);
}
.hero-excel-tab.is-active {
  background: #F5A623;
  color: #1A1A1A;
}
.hero-excel-grid {
  display: grid;
  grid-template-columns: 36px repeat(4, 1fr);
  background: #fff;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.hx-cell {
  padding: 9px 12px;
  font-size: .8rem;
  color: #1A1A1A;
  border-right: 1px solid #ECE9D9;
  border-bottom: 1px solid #ECE9D9;
  white-space: nowrap;
}
.hx-cell:nth-child(5n) { border-right: 0; }
.hx-cell:nth-last-child(-n+5) { border-bottom: 0; }
.hx-corner, .hx-col-h, .hx-row-h {
  background: #F5EFE0;
  color: #6B6560;
  font-weight: 700;
  font-size: .7rem;
  text-align: center;
  padding: 6px 0;
}
.hx-col-h { border-bottom: 1.5px solid #D4D0BC; }
.hx-row-h { border-right: 1.5px solid #D4D0BC; padding: 9px 0; }
.hx-corner { border-right: 1.5px solid #D4D0BC; border-bottom: 1.5px solid #D4D0BC; }
.hx-num {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .78rem;
  text-align: right;
  color: #1A1A1A;
}
.hx-head {
  font-weight: 800;
  color: #6B6560;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hx-pos { color: #2E8B57; font-weight: 700; }

/* Skills-matrix level swatches: each cell is tinted by its 1..5 level so the
 * grid reads as a heatmap at a glance (the look of a real ClicknFile skills
 * matrix template). */
.hx-lvl {
  text-align: center;
  font-weight: 800;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .85rem;
}
.hx-lvl-5 { background: rgba(46,139,87,.20);  color: #2E8B57; }
.hx-lvl-4 { background: rgba(79,151,120,.16); color: #3D8064; }
.hx-lvl-3 { background: rgba(245,166,35,.20); color: #B8843C; }
.hx-lvl-2 { background: rgba(245,166,35,.10); color: #B8843C; }
.hx-lvl-1 { background: rgba(180,58,58,.14);  color: #B43A3A; }

.hx-total {
  background: rgba(245,166,35,.10);
  font-weight: 800;
  border-top: 1.5px solid rgba(245,166,35,.5);
}
.hx-grand { background: rgba(245,166,35,.22); color: #B8843C; }

.hx-fill {
  opacity: 0;
  transform: translateY(3px);
  animation: hx-cell 8s cubic-bezier(.34,1.4,.64,1) infinite;
  animation-delay: calc(var(--d) * 0.08s);
}
@keyframes hx-cell {
  0%, 1%   { opacity: 0; transform: translateY(3px); }
  6%       { opacity: 1; transform: translateY(0); }
  88%      { opacity: 1; transform: translateY(0); }
  94%, 100%{ opacity: 0; transform: translateY(-3px); }
}

/* Mini bar chart popup that slides in once the cells are filled, then
 * retracts before the loop restarts. */
.hero-excel-chart {
  position: absolute;
  bottom: -32px;
  right: -28px;
  width: 240px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px 12px;
  border: 1px solid rgba(27,77,74,.10);
  box-shadow: 0 20px 40px -10px rgba(27,77,74,.22), 0 1px 0 rgba(255,255,255,.6) inset;
  opacity: 0;
  transform: translate(18px, 8px) scale(.95);
  animation: hx-chart 8s cubic-bezier(.34,1.4,.64,1) infinite;
  animation-delay: 1.9s;
}
@keyframes hx-chart {
  0%, 15%   { opacity: 0; transform: translate(18px, 8px) scale(.95); }
  25%       { opacity: 1; transform: translate(0, 0) scale(1); }
  82%       { opacity: 1; transform: translate(0, 0) scale(1); }
  92%, 100% { opacity: 0; transform: translate(18px, 8px) scale(.95); }
}
.hero-excel-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.hero-excel-chart-title {
  font-size: .72rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: .01em;
}
.hero-excel-chart-sub {
  font-family: "Caveat", cursive;
  font-size: .85rem;
  color: var(--accent-dark);
}
.hero-excel-bars { display: block; width: 100%; height: 88px; }
.hx-bar {
  transform-origin: center bottom;
  transform: scaleY(0);
  animation: hx-bar 8s cubic-bezier(.34,1.4,.64,1) infinite;
  animation-delay: calc(2.4s + var(--d) * 0.08s);
}
@keyframes hx-bar {
  0%, 28%   { transform: scaleY(0); }
  36%       { transform: scaleY(1.04); }
  42%       { transform: scaleY(1); }
  82%       { transform: scaleY(1); }
  92%, 100% { transform: scaleY(0); }
}

/* Reduced motion: hold the final frame, no looping or transforms. */
@media (prefers-reduced-motion: reduce) {
  .hx-fill, .hero-excel-chart, .hx-bar { animation: none; opacity: 1; transform: none; }
  .hero-excel:hover { transform: none; }
}

@media (max-width: 1023px) {
  .hero-excel { max-width: 480px; }
  .hero-excel-chart { right: -8px; bottom: -28px; width: 200px; }
  .hero-excel-bars { height: 76px; }
}
@media (max-width: 600px) {
  .hero-excel { transform: none; }
  .hero-excel:hover { transform: translateY(-2px); }
  .hero-excel-chart {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 18px 4vw -10px auto;
    max-width: 86%;
  }
  .hx-cell { padding: 8px 9px; font-size: .74rem; }
  .hx-num { font-size: .72rem; }
}
.home-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 0 0 1px rgba(27,77,74,0.04),
    0 18px 40px -10px rgba(27,77,74,0.18),
    0 50px 80px -20px rgba(27,77,74,0.18);
  transform: rotate3d(1, -0.4, 0.1, 4deg);
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}
.home-hero-card:hover { transform: rotate3d(1, -0.4, 0.1, 1deg) translateY(-4px); }
.home-hero-card img { width: 100%; height: auto; display: block; }
.home-hero-floating {
  position: absolute;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px -4px rgba(27,77,74,0.18);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 3;
}
.home-hero-floating--top  { top: 8%;  left: -8%;  animation: float-bob 4s ease-in-out infinite; }
.home-hero-floating--bot  { bottom: 12%; right: -6%; animation: float-bob 4.6s ease-in-out infinite reverse; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.home-hero-floating .ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}

@media (max-width: 1023px) {
  .home-hero { padding-top: 110px; min-height: auto; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .home-hero-visual { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .home-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .home-hero-floating--top, .home-hero-floating--bot { display: none; }
}

/* -----------------------------------------------------------------
 * Pinned story – Apple-style scrollytelling
 * ----------------------------------------------------------------- */
.pin-story {
  background: #0d0d0f;
  color: var(--white);
}
.pin-stage {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245,166,35,0.08), transparent 65%),
    radial-gradient(ellipse 50% 35% at 85% 100%, rgba(74,124,122,0.10), transparent 65%),
    radial-gradient(circle at 50% 50%, #18181b 0%, #0a0a0c 75%);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* Dot grid pattern – feels Stripe/Linear modern. Masked so it fades
 * at the edges instead of hard-cutting at the section boundary. */
.pin-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 1.5px);
  background-size: 36px 36px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 90%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 90%);
}
/* Two soft brand-colored orbs that drift slowly for ambient motion */
.pin-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 320px at 20% 30%, rgba(245,166,35,0.10), transparent 60%),
    radial-gradient(circle 380px at 78% 72%, rgba(155,137,196,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: pin-orbs-drift 18s ease-in-out infinite alternate;
}
@keyframes pin-orbs-drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(20px, -15px); }
  100% { transform: translate(-15px, 10px); }
}
.pin-frame { z-index: 2; }
.pin-progress { z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .pin-stage::after { animation: none; }
}
.pin-frame {
  text-align: center;
}
.pin-step {
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.pin-headline {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}
.pin-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 auto 2rem;
}
.pin-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
}
.pin-visual img {
  border-radius: 14px;
  box-shadow: 0 20px 48px -8px rgba(0,0,0,0.4);
  max-width: 100%;
  height: auto;
}
.pin-progress {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 4;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.55rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.06);
}
.pin-dot {
  width: 28px;        /* larger click target */
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  transition: background 0.2s;
}
.pin-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transition: background 0.3s, transform 0.3s, width 0.3s, height 0.3s, margin 0.3s;
}
.pin-dot:hover::before {
  background: rgba(255,255,255,0.55);
  transform: scale(1.2);
}
.pin-dot.active::before {
  background: var(--accent);
  width: 22px;
  margin-left: -11px;
  border-radius: 100px;
}

/* -----------------------------------------------------------------
 * Stats counters – the wow numbers
 * ----------------------------------------------------------------- */
.home-stats {
  padding: 5rem 5vw;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-stats-grid {
  max-width:1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.home-stat {
  text-align: center;
}
.home-stat-num {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.home-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 768px) {
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
}

/* -----------------------------------------------------------------
 * Categories grid – 6 cards
 * ----------------------------------------------------------------- */
.home-categories {
  padding: 5rem 5vw;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.home-section-head {
  max-width:1400px;
  margin: 0 auto 2.5rem;
}
.home-section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.home-section-head .sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}
.cat-grid {
  max-width:1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(.34,1.4,.64,1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -12px rgba(27,77,74,0.16);
  border-color: rgba(27,77,74,0.18);
}
.cat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(245,166,35,0.12);
}
.cat-name {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.cat-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------
 * Best-sellers – product grid
 * ----------------------------------------------------------------- */
.home-bestsellers {
  padding: 5rem 5vw;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.home-section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width:1400px;
  margin: 0 auto 2.5rem;
}
.home-section-head-row h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.home-section-head-row .sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}

/* Category card icon variants – brand-tinted backgrounds per category */
.cat-icon--hr       { background: rgba(27,77,74,0.10);   color: var(--primary); }
.cat-icon--finance  { background: rgba(245,166,35,0.15); color: var(--accent-dark); }
.cat-icon--audit    { background: rgba(155,137,196,0.18); color: #6b54a3; }
.cat-icon--tools    { background: rgba(74,144,217,0.15);  color: #2c6fb8; }
.cat-icon--personal { background: rgba(34,197,94,0.15);   color: #16a34a; }
.cat-icon--free     { background: rgba(245,166,35,0.15);  color: var(--accent-dark); }

/* Hero floating-chip icon variants */
.ico--success { background: rgba(34,197,94,0.15);   color: #16a34a; }
.ico--star    { background: rgba(245,166,35,0.15); color: var(--accent-dark); }
.bs-grid {
  max-width:1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bs-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(.34,1.4,.64,1), box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.bs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(27,77,74,0.18);
  border-color: rgba(27,77,74,0.18);
}
.bs-img {
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--bg);
}
.bs-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transition: transform 0.5s ease;
}
.bs-card:hover .bs-img img { transform: scale(1.06); }
.bs-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bs-cat {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 0.3rem;
}
.bs-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.95rem;
  flex: 1;
}
.bs-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.bs-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.025em;
}
.bs-price sup { font-size: 0.6rem; vertical-align: super; }
.bs-arrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}
.bs-card:hover .bs-arrow { transform: translateX(4px); opacity: 1; }
@media (max-width: 1024px) {
  .bs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bs-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------
 * Who we are – story section
 * ----------------------------------------------------------------- */
.home-story {
  padding: 5.5rem 5vw;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.home-story-inner {
  max-width:1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}
.home-story-img {
  position: relative;
  aspect-ratio: 5/6;
  max-height: 580px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(27,77,74,0.22);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,166,35,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 100%, rgba(155,137,196,0.16), transparent 60%),
    linear-gradient(160deg, #1B4D4A 0%, #133634 60%, #0d2a28 100%);
  color: var(--white);
}
.home-story-img::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.story-card {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2.25rem 2rem;
}
.story-card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
}
.story-card-top .lamp {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(245,166,35,0.35);
}
/* Founder portrait – rounded-square frame.
 * Uses mathieu.webp (auto-cropped to subject's bounding box, 18 KB).
 * Now a simple img tag with object-fit cover works cleanly. */
.story-card-photo {
  margin: 1.5rem auto 0;
  width: 72%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, #ffffff 0%, #faf3e2 60%, #f0e6cf 100%);
}
.story-card-photo::before {
  /* Halo glow behind the frame, extends past edges */
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(245,166,35,0.45), transparent 65%),
    radial-gradient(circle at 75% 85%, rgba(155,137,196,0.35), transparent 65%);
  filter: blur(28px);
  z-index: -1;
}
.story-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.22));
}
.story-card-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 24px 48px -16px rgba(0,0,0,0.4);
  z-index: 2;
  pointer-events: none;
}
.story-card-quote {
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}
.story-card-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  text-align: center;
}
.story-card-name span { color: var(--accent); }
.story-card-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: 0.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.story-card-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.story-card-decor::before,
.story-card-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.story-card-decor::before {
  width: 240px; height: 240px;
  top: -80px; right: -80px;
  background: var(--accent);
  opacity: 0.18;
}
.story-card-decor::after {
  width: 180px; height: 180px;
  bottom: -60px; left: -60px;
  background: #9B89C4;
  opacity: 0.22;
}
.home-story h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.home-story p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.home-story-proofs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.home-story-proof {
  text-align: center;
}
.home-story-proof-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.home-story-proof-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .home-story-inner { grid-template-columns: 1fr; }
  /* Keep the card portrait on mobile too. The photo inside is 3/4
   * portrait; switching the card to landscape was clipping it. */
  .home-story-img { aspect-ratio: 5/6; max-width: 380px; margin: 0 auto; max-height: none; }
  .home-story-proofs { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 480px) {
  .home-story-proofs { grid-template-columns: 1fr; gap: 1rem; }
}

/* -----------------------------------------------------------------
 * Free template promo
 * ----------------------------------------------------------------- */
.home-free {
  padding: 5rem 5vw;
  background: var(--white);
}
.home-free-inner {
  max-width:1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home-free-eyebrow {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}
.home-free h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}
.home-free-sub {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.home-free-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.home-free-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.home-free-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(27,77,74,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900;
}
.home-free-visual {
  text-align: center;
  font-size: 6rem;
}
@media (max-width: 768px) {
  .home-free-inner { grid-template-columns: 1fr; padding: 2.5rem 1.75rem; }
  .home-free-visual { display: none; }
}

/* -----------------------------------------------------------------
 * Final CTA
 * ----------------------------------------------------------------- */
.home-final {
  position: relative;
  background: var(--primary);
  text-align: center;
  padding: 6rem 5vw;
  overflow: hidden;
}
.home-final-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.home-final h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.05;
}
.home-final-tagline {
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--accent);
  margin-bottom: 2rem;
}
.home-final-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ----- CLS hardening (PageSpeed fix 2026-04-30) ----- */
/* Reserve space for counters so 0+ -> 20+ doesn't shift surrounding layout */
[data-counter] { display: inline-block; min-width: 2.2ch; text-align: left; font-variant-numeric: tabular-nums; }

/* Lock the hero h1 height even before fonts load, so Caveat swap (or fallback) doesn't push content */
.home-hero h1 { min-height: 1.96em; }
.home-hero h1 .rw-word, .home-hero h1 em { display: inline-block; }

/* ----- Home reviews section (social proof) ----- */
.home-reviews { padding: 5rem 5vw 4rem; background: var(--bg-card); position: relative; }
.home-reviews-inner { max-width: 1200px; margin: 0 auto; }
.home-reviews-head { text-align: center; margin-bottom: 2.5rem; }
.home-reviews-head .section-tag { justify-content: center; }
.home-reviews-head h2 { max-width: 700px; margin: 0 auto .8rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.home-reviews-sub { color: var(--text-muted); font-size: .95rem; max-width: 540px; margin: 0 auto; line-height: 1.7; }
.home-reviews .reviews-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 0; }
.home-reviews-foot { text-align: center; margin-top: 2.5rem; }
.home-reviews-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 700; font-size: .85rem; text-decoration: none; padding: .7rem 1.3rem; border-radius: 100px; border: 1.5px solid var(--border); background: var(--white); transition: all .2s; }
.home-reviews-link:hover { border-color: var(--primary); transform: translateY(-1px); }
