/* =========================================================
   SALA — Homepage styles
   ========================================================= */

/* ---- Hero variant switching ---- */
.hero{ position:relative; }
.hv{ display:none; }
body[data-hero="a"] .hero-a{ display:block; }
body[data-hero="b"] .hero-b{ display:block; }
body[data-hero="c"] .hero-c{ display:block; }

.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:32px; }

/* ===== HERO A · Editorial ===== */
.hero-a{ padding:84px 0 96px; background:
    radial-gradient(1200px 500px at 78% -8%, var(--blue-tint) 0%, rgba(233,240,255,0) 60%); }
.hero-a-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:56px; align-items:center; }
.hero-a-copy .eyebrow{ color:var(--ink-2); }
.hero-a-copy .display{ margin-top:22px; }
.hero-stats{ display:flex; gap:44px; margin-top:44px; padding-top:30px; border-top:1px solid var(--line); }
.hero-a-media{ position:relative; }

/* Floating proof cards */
.float-card{
  position:absolute; display:flex; align-items:center; gap:11px;
  background:#fff; border:1px solid var(--line); border-radius:13px; padding:12px 15px;
  box-shadow:var(--shadow-lg); z-index:3;
}
.float-card .fc-ic{ width:26px; height:26px; border-radius:8px; background:#22c55e; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; flex:none; }
.float-card .fc-t{ font-size:13.5px; font-weight:600; letter-spacing:-0.01em; }
.float-card .fc-s{ font-size:12px; color:var(--muted); }
.fc-1{ top:-22px; left:-26px; animation:floaty 6s ease-in-out infinite; }
.fc-2{ bottom:-20px; right:-18px; animation:floaty 6s ease-in-out infinite .8s; }
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-9px);} }
@media (prefers-reduced-motion:reduce){ .fc-1,.fc-2{ animation:none; } }

/* ===== HERO B · Dark premium ===== */
.hero-b{ padding:104px 0 96px; position:relative; overflow:hidden; text-align:center; }
.hero-b-glow{ position:absolute; inset:0; background:
    radial-gradient(680px 380px at 50% 0%, rgba(10,75,208,.55) 0%, rgba(10,20,48,0) 62%); }
.hero-b-octo{ position:absolute; width:520px; left:50%; top:42%; transform:translate(-50%,-30%);
  opacity:.06; pointer-events:none; }
.hero-b-inner{ position:relative; z-index:2; }
.hero-b-stats{ display:inline-flex; align-items:center; gap:34px; margin-top:52px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:18px; padding:22px 34px; }
.hero-b-stats .vr{ width:1px; height:42px; background:rgba(255,255,255,.14); }

/* ===== HERO C · Product-forward ===== */
.hero-c{ padding:80px 0 90px; background:
    linear-gradient(180deg, var(--blue-tint) 0%, rgba(233,240,255,0) 78%); }
.hero-c-top{ text-align:center; max-width:760px; margin:0 auto; }
.hero-c-modules{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:54px; }
.hcm{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .2s ease, border-color .2s; cursor:default; }
.hcm:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--blue-tint-2); }
.hcm .hcm-n{ font-family:var(--mono); font-size:12px; color:var(--blue); }
.hcm .hcm-t{ font-weight:600; font-size:17px; margin:10px 0 6px; letter-spacing:-0.01em; }
.hcm .hcm-d{ font-size:13.5px; color:var(--muted); line-height:1.45; }

/* ===== App mock (browser window with dashboard) ===== */
.appmock{ border-radius:16px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-lg); overflow:hidden; }
.win-bar{ height:38px; display:flex; align-items:center; gap:7px; padding:0 14px; background:#fff; border-bottom:1px solid var(--line-2); }
.win-bar .tl{ width:11px; height:11px; border-radius:50%; }
.win-bar .url{ margin-left:14px; font-family:var(--mono); font-size:11px; color:var(--muted-2);
  background:var(--bg-soft); border:1px solid var(--line-2); border-radius:7px; padding:4px 12px; }
.dash{ display:grid; grid-template-columns:62px 1fr; min-height:300px; }
.dash-side{ background:var(--navy); padding:14px 10px; display:flex; flex-direction:column; gap:7px; align-items:center; }
.dash-side .si{ width:34px; height:34px; border-radius:9px; background:rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center; }
.dash-side .si.on{ background:var(--blue); }
.dash-side .si svg{ width:17px; height:17px; }
.dash-main{ padding:18px; background:var(--bg-soft); }
.dash-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.dash-head .t{ font-weight:700; font-size:15px; letter-spacing:-0.01em; }
.dash-kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.kpi{ background:#fff; border:1px solid var(--line); border-radius:11px; padding:12px; }
.kpi .kn{ font-size:21px; font-weight:700; letter-spacing:-0.03em; }
.kpi .kl{ font-family:var(--mono); font-size:9.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-top:3px; }
.kpi .kt{ font-size:10px; color:#16a34a; font-weight:600; margin-top:4px; }
.dash-chart{ background:#fff; border:1px solid var(--line); border-radius:11px; padding:14px; margin-top:10px; }
.dash-chart .ct{ font-size:12px; font-weight:600; margin-bottom:8px; display:flex; justify-content:space-between; color:var(--ink-2); }
.bars{ display:flex; align-items:flex-end; gap:7px; height:78px; }
.bars .bar{ flex:1; border-radius:5px 5px 0 0; background:linear-gradient(180deg,var(--blue) 0%, #4d86e8 100%); opacity:.9; }
.bars .bar:last-child{ background:linear-gradient(180deg,#0a1430,#26345f); }

/* ===== Trust bar ===== */
.trust{ padding:30px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.trust-label{ text-align:center; font-family:var(--mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-2); margin:0 0 18px; }
.trust-logos{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:14px 40px; }

/* ===== Problem ===== */
.prob{ transition:transform .18s ease, box-shadow .2s; }
.prob:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.prob-ic{ width:46px; height:46px; border-radius:12px; background:var(--blue-tint); color:var(--blue);
  display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:16px; }
.prob .h3{ margin-bottom:10px; }
.prob-p{ color:var(--muted); font-size:15.5px; line-height:1.55; margin:0; }

/* ===== Modules (dark) ===== */
.mod-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.mod{ background:var(--navy-soft); border:1px solid rgba(255,255,255,.09); border-radius:16px; padding:26px;
  transition:transform .18s ease, border-color .2s, background .2s; position:relative; overflow:hidden; }
.mod:hover{ transform:translateY(-4px); border-color:rgba(127,176,255,.5); background:#16244d; }
.mod .mod-n{ font-family:var(--mono); font-size:12px; color:#7FB0FF; }
.mod .mod-ic{ width:42px; height:42px; border-radius:11px; background:rgba(127,176,255,.14); color:#9cc2ff;
  display:flex; align-items:center; justify-content:center; margin:14px 0 16px; }
.mod .mod-ic svg{ width:21px; height:21px; }
.mod .mod-t{ font-size:18px; font-weight:600; letter-spacing:-0.01em; color:#fff; }
.mod .mod-d{ font-size:14px; color:#9fb0d6; line-height:1.5; margin-top:8px; }
.flow-line{ text-align:center; margin-top:44px; font-size:16px; font-weight:600; color:#cfe0ff;
  display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }

/* ===== Prism ===== */
.prism-grid{ display:grid; grid-template-columns:1fr 1.05fr; gap:60px; align-items:center; }
.feat-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px; }
.feat-list li{ position:relative; padding-left:30px; font-size:16px; color:var(--ink-2); line-height:1.5; }
.feat-list li b{ color:var(--ink); }
.feat-list li::before{ content:""; position:absolute; left:0; top:7px; width:18px; height:18px; border-radius:6px;
  background:var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='%230050D2' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.feat-list.compact li{ font-size:14.5px; padding-left:26px; }
.prism-cta{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }

/* Prism panel mock */
.prism-panel{ background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-lg); overflow:hidden; }
.pp-head{ padding:16px 20px; border-bottom:1px solid var(--line-2); display:flex; justify-content:space-between; align-items:center; }
.pp-head .pt{ font-weight:700; font-size:15px; }
.pp-head .pc{ font-family:var(--mono); font-size:11px; color:var(--muted); }
.pp-rows{ padding:8px 0; }
.pp-row{ display:flex; align-items:center; gap:14px; padding:12px 20px; border-bottom:1px solid var(--line-2); }
.pp-row:last-child{ border-bottom:0; }
.pp-rank{ width:26px; height:26px; border-radius:8px; background:var(--blue-tint); color:var(--blue-700); font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; flex:none; }
.pp-row.top .pp-rank{ background:var(--blue); color:#fff; }
.pp-av{ width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#c9dbff,#9cc2ff); flex:none; }
.pp-name{ flex:1; }
.pp-name .nn{ font-size:13.5px; font-weight:600; }
.pp-name .nm{ font-family:var(--mono); font-size:10.5px; color:var(--muted); }
.pp-score{ display:flex; align-items:center; gap:9px; }
.pp-bar{ width:70px; height:6px; border-radius:4px; background:var(--line); overflow:hidden; }
.pp-bar i{ display:block; height:100%; background:var(--blue); border-radius:4px; }
.pp-score .sv{ font-family:var(--mono); font-size:12px; font-weight:600; color:var(--ink); width:30px; }

/* ===== Intelligence ===== */
.intel-grid{ display:grid; grid-template-columns:1.4fr 1fr; gap:28px; align-items:stretch; }
.intel-dash{ background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; }
.id-head{ padding:18px 22px; border-bottom:1px solid var(--line-2); display:flex; justify-content:space-between; align-items:center; }
.id-head .t{ font-weight:700; font-size:16px; }
.id-body{ padding:22px; }
.id-kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.id-kpi{ border:1px solid var(--line); border-radius:12px; padding:13px 14px; }
.id-kpi .l{ font-family:var(--mono); font-size:9.5px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); line-height:1.3; min-height:24px; }
.id-kpi .n{ font-size:23px; font-weight:700; letter-spacing:-0.03em; margin-top:6px; }
.id-kpi .n .u{ font-size:12px; font-weight:600; color:var(--muted); letter-spacing:0; }
.id-kpi.good .n{ color:var(--blue); }
.id-kpi.flag{ background:#fff7ed; border-color:#fed7aa; }
.id-kpi.flag .n{ color:#ea580c; }

/* split: donut + trend */
.id-split{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.id-card{ border:1px solid var(--line); border-radius:13px; padding:15px 16px; }
.id-card-t{ font-weight:600; font-size:12.5px; color:var(--ink-2); }
.id-card-s{ font-family:var(--mono); font-size:9.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted-2); margin-top:2px; }

/* donut */
.donut-row{ display:flex; align-items:center; gap:14px; margin-top:12px; }
.donut{ width:96px; height:96px; border-radius:50%; flex:none; position:relative;
  background:conic-gradient(
    var(--blue) 0% 8%,
    #4f8bea 8% 38%,
    #86b0f2 38% 72%,
    #f4b740 72% 80%,
    #f08a4b 80% 87%,
    #e2604f 87% 95%,
    #cdd6e3 95% 100%); }
.donut::after{ content:""; position:absolute; inset:21px; border-radius:50%; background:#fff; }
.donut-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.donut-center .dn{ font-size:18px; font-weight:700; letter-spacing:-0.02em; line-height:1; }
.donut-center .dl{ font-family:var(--mono); font-size:8px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-top:2px; }
.donut-legend{ display:grid; grid-template-columns:1fr 1fr; gap:3px 10px; flex:1; }
.donut-legend .dleg{ display:flex; align-items:center; gap:6px; font-size:11px; color:var(--ink-2); }
.donut-legend .dleg i{ width:8px; height:8px; border-radius:2px; flex:none; }
.donut-legend .dleg .pc{ margin-left:auto; font-family:var(--mono); font-size:10px; color:var(--muted); }

/* trend bars */
.spark{ display:flex; align-items:flex-end; gap:6px; height:96px; margin-top:12px; }
.spark .sbar{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.spark .sbar i{ width:100%; max-width:18px; background:linear-gradient(180deg,#86b0f2,var(--blue)); border-radius:4px 4px 0 0; }
.spark .sbar.last i{ background:linear-gradient(180deg,var(--blue),var(--blue-700)); }
.spark .sbar .sm{ font-family:var(--mono); font-size:8.5px; color:var(--muted-2); }
.id-card-foot{ display:flex; align-items:center; gap:7px; margin-top:11px; font-size:11px; color:var(--muted); }
.id-card-foot .up{ color:var(--blue); font-weight:700; }

.id-rows{ margin-top:18px; display:flex; flex-direction:column; gap:10px; }
.id-bar-row{ display:flex; align-items:center; gap:14px; }
.id-bar-row .lab{ font-size:13px; color:var(--ink-2); width:150px; flex:none; }
.id-bar-row .track{ flex:1; height:8px; background:var(--bg-soft-2); border-radius:5px; overflow:hidden; }
.id-bar-row .track i{ display:block; height:100%; background:linear-gradient(90deg,var(--blue),#5a92ec); border-radius:5px; }
.id-bar-row .val{ font-family:var(--mono); font-size:12px; color:var(--muted); width:38px; text-align:right; }
.hero-ai{ background:linear-gradient(180deg,var(--blue) 0%, var(--blue-700) 100%); color:#fff; border-radius:18px; padding:30px; display:flex; flex-direction:column; box-shadow:var(--shadow-blue); }
.hero-ai .h3{ color:#fff; }
.hero-ai .pill.ghost{ background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.28); color:#fff; }
.hero-ai .feat-list li{ color:#e3edff; padding-left:26px; }
.hero-ai .feat-list li::before{ background:rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='white' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ===== Proof band ===== */
.proof-band{ background:var(--navy); }
.proof-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid rgba(255,255,255,.1); border-radius:18px; overflow:hidden; }
.proof-cell{ padding:34px 28px; border-right:1px solid rgba(255,255,255,.1); }
.proof-cell:last-child{ border-right:0; }
.proof-cell .n{ font-size:clamp(32px,3.4vw,46px); font-weight:700; letter-spacing:-0.035em; color:#fff; }
.proof-cell .l{ font-size:13.5px; color:#9fb0d6; margin-top:10px; line-height:1.45; }

/* ===== Pricing peek ===== */
.price-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.pcard{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .2s, border-color .2s; }
.pcard:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.pcard.pop{ border-color:var(--blue); box-shadow:0 14px 40px rgba(10,75,208,.16); position:relative; }
.pcard .ptag{ position:absolute; top:-11px; left:24px; background:var(--blue); color:#fff; font-size:11px; font-weight:600;
  font-family:var(--mono); letter-spacing:.05em; text-transform:uppercase; padding:4px 10px; border-radius:999px; }
.pcard .pn{ font-weight:600; font-size:17px; }
.pcard .pp{ margin-top:12px; display:flex; align-items:baseline; gap:3px; }
.pcard .pp .amt{ font-size:34px; font-weight:700; letter-spacing:-0.035em; }
.pcard .pp .per{ font-family:var(--mono); font-size:12px; color:var(--muted); }
.pcard .pd{ font-size:13.5px; color:var(--muted); margin:12px 0 18px; line-height:1.45; min-height:38px; }
.pcard .pa{ margin-top:auto; }

/* ===== Final CTA ===== */
.final-cta{ padding:0 0 100px; }
.cta-box{ position:relative; overflow:hidden; background:linear-gradient(135deg,var(--blue) 0%, var(--blue-800) 100%);
  border-radius:28px; padding:64px 56px; box-shadow:var(--shadow-lg); }
.cta-octo{ position:absolute; right:18px; bottom:-26px; width:248px; opacity:1;
  filter:drop-shadow(0 12px 26px rgba(8,30,90,.30)); pointer-events:none; }
@media (max-width:620px){ .cta-octo{ width:150px; right:-6px; bottom:-14px; opacity:.5; } }
.cta-inner{ position:relative; z-index:2; }
.cta-box .eyebrow.on-dark{ color:#bcd3ff; }
.cta-box .lead{ color:#dce8ff; }

/* ===== Responsive ===== */
@media (max-width:960px){
  .hero-a-grid{ grid-template-columns:1fr; gap:48px; }
  .prism-grid{ grid-template-columns:1fr; gap:36px; }
  .intel-grid{ grid-template-columns:1fr; }
  .mod-grid,.hero-c-modules{ grid-template-columns:1fr 1fr; }
  .proof-grid{ grid-template-columns:1fr 1fr; }
  .proof-cell:nth-child(2n){ border-right:0; }
  .proof-cell:nth-child(-n+2){ border-bottom:1px solid rgba(255,255,255,.1); }
  .price-row{ grid-template-columns:1fr 1fr; }
  .hero-b-stats{ flex-wrap:wrap; gap:20px 28px; justify-content:center; }
}
@media (max-width:620px){
  .hero-stats{ flex-wrap:wrap; gap:24px; }
  .mod-grid,.hero-c-modules{ grid-template-columns:1fr; }
  .proof-grid{ grid-template-columns:1fr; }
  .proof-cell{ border-right:0; border-bottom:1px solid rgba(255,255,255,.1); }
  .price-row{ grid-template-columns:1fr; }
  .cta-box{ padding:44px 26px; }
  .hero-b-stats .vr{ display:none; }
  .float-card{ display:none; }
}
