/* --- APP EXTENSIONS (non-destructive) --- */
:root{
  --shadow-soft: 0 20px 60px rgba(0,0,0,0.55);
  --stroke-soft: rgba(255,255,255,0.10);
}

/* Page header spacing under fixed navbar */
.page-top-pad{ padding-top: 110px; }

.page-title{
  margin: 0 0 22px;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(84,255,180,0.18);

  text-align: center;
}

.kpi-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.kpi{
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.kpi::after{
  content:'';
  position:absolute; inset:-60% -60%;
  background: radial-gradient(circle at 30% 30%, rgba(80,240,255,0.14), transparent 55%);
  transform: rotate(12deg);
  pointer-events:none;
}
.kpi b{ font-size: 26px; display:block; color:#fff; }
.kpi span{ color: var(--muted); font-size: 13px; }

.stepper{
  display:flex; gap: 12px; justify-content:center; flex-wrap:wrap;
  margin: 22px 0 30px;
}
.step{
  display:flex; align-items:center; gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke-soft);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step .dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  box-shadow: 0 0 18px rgba(255,255,255,0.08);
}
.step.active{ color:#fff; border-color: rgba(84,255,180,0.45); background: rgba(84,255,180,0.08); }
.step.active .dot{ background: var(--primary); box-shadow: 0 0 18px rgba(84,255,180,0.4); }
.step.done{ color: var(--primary); border-color: rgba(84,255,180,0.35); }
.step.done .dot{ background: var(--primary); }

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field{
  display:flex; flex-direction:column; gap: 8px;
}
.label{
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.input, .select, .textarea{
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  padding: 12px 14px;
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: 0.2s var(--ease);
}
.textarea{ min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(80,240,255,0.65);
  box-shadow: 0 0 0 4px rgba(80,240,255,0.12);
}

.helper{
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  line-height: 1.5;
}

.notice{
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast{
  position: fixed;
  right: 18px; bottom: 92px;
  z-index: 99999;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,15,25,0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  color: #fff;
  font-size: 13px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events:none;
  transition: 0.35s var(--ease);
}
.toast.show{ transform: translateY(0); opacity: 1; }

.table-wrap{
  overflow:auto;
  border:1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}
.matrix{
  width:100%;
  border-collapse: collapse;
  min-width: 860px;
}
.matrix th, .matrix td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align:left;
  font-size: 13px;
  color: var(--muted);
}
.matrix th{
  position: sticky; top: 0;
  background: rgba(10,15,25,0.92);
  color:#fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.matrix td strong{ color:#fff; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}
.badge.ok{ border-color: rgba(84,255,180,0.35); color: var(--primary); background: rgba(84,255,180,0.08); }
.badge.warn{ border-color: rgba(255,71,87,0.35); color: var(--danger); background: rgba(255,71,87,0.08); }

.pill{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color:#fff;
  font-size: 12px;
  font-weight: 800;
}


.kv.pick{
  width: 100%;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
}
.kv.pick:focus{ outline: none; border-color: rgba(84,255,180,0.5); box-shadow: 0 0 0 3px rgba(84,255,180,0.12); }
.kv.pick[aria-checked="true"]{
  border-color: rgba(84,255,180,0.55);
  box-shadow: inset 0 0 0 1px rgba(84,255,180,0.12), 0 0 40px rgba(84,255,180,0.10);
  background: rgba(84,255,180,0.10);
}
.kv.pick.popular{
  border-color: rgba(136,126,255,0.35);
}
.kv-badge{
  display:inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(136,126,255,0.14);
  border: 1px solid rgba(136,126,255,0.28);
  color: rgba(255,255,255,0.92);
  width: fit-content;
}
@media (max-width: 900px){
  .kpi-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

.ic-mark{ background: rgba(80,240,255,0.25); color:#fff; padding:0 2px; border-radius:4px; }

/* --- HOMEPAGE / SUMMARY VISUAL COMPONENTS --- */
.section-head{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: end;
}
.section-head .head-copy{ text-align:left; }
.section-head .head-copy h2{ margin:0; }
.section-head .head-copy p{
  margin: 10px 0 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.section-head .head-side{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mini-kpis{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.mini-kpi{
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.mini-kpi::after{
  content:'';
  position:absolute; inset:-80% -80%;
  background: radial-gradient(circle at 30% 30%, rgba(80,240,255,0.18), transparent 55%);
  transform: rotate(18deg);
  pointer-events:none;
}
.mini-kpi b{ display:block; font-size: 16px; color:#fff; letter-spacing:-0.01em; }
.mini-kpi span{ display:block; font-size: 12px; color: rgba(255,255,255,0.62); margin-top: 4px; }

/* Feature cards (used across pages) */
.features-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.feature-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: 0.35s var(--ease);
  min-height: 162px;
}
.feature-card::after{
  content:'';
  position:absolute; inset:-70% -70%;
  background: radial-gradient(circle at 30% 30%, rgba(84,255,180,0.14), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}
.feature-card:hover{
  transform: translateY(-6px);
  border-color: rgba(84,255,180,0.35);
  box-shadow: 0 28px 80px rgba(0,0,0,0.65);
}
.f-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(80,240,255,0.08);
  border: 1px solid rgba(80,240,255,0.18);
  color: var(--accent);
  font-weight: 900;
  box-shadow: 0 0 26px rgba(80,240,255,0.10);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.f-title{ font-weight: 900; color:#fff; letter-spacing: -0.01em; position: relative; z-index:2; }
.f-desc{ color: rgba(255,255,255,0.66); font-size: 13px; line-height: 1.55; margin-top: 8px; position: relative; z-index:2; }

/* Recommendation layout */
.reco-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.reco-left{ min-width: 0; }
.reco-right{ min-width: 0; display:grid; gap: 14px; }

/* Slider (homepage) */
.slider-row{ display:flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap:wrap; }
.slider-wrap{ flex:1; min-width: 260px; display:grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.slider-control{ position: relative; padding-top: 26px; }
input.slider{
  width:100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(80,240,255,0.95) 0%,
    rgba(84,255,180,0.95) var(--pct, 50%),
    rgba(255,255,255,0.12) var(--pct, 50%),
    rgba(255,255,255,0.12) 100%
  );
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
input.slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 5px solid rgba(80,240,255,0.85);
  box-shadow: 0 0 34px rgba(80,240,255,0.35);
  cursor: pointer;
}
input.slider::-moz-range-thumb{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 5px solid rgba(80,240,255,0.85);
  box-shadow: 0 0 34px rgba(80,240,255,0.35);
  cursor: pointer;
}
.slider-bubble{
  position:absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10,15,25,0.88);
  backdrop-filter: blur(18px);
  color:#fff;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  pointer-events: none;
}
.slider-val{
  display:flex;
  align-items:center;
  gap: 10px;
}
.num-input{
  width: 120px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px 12px;
  color:#fff;
  font-weight: 900;
  font-size: 14px;
  text-align: right;
}
.num-step{ display:flex; gap: 8px; }
.step-btn{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color:#fff;
  font-weight: 900;
  cursor:pointer;
  transition: 0.25s var(--ease);
}
.step-btn:hover{ transform: translateY(-2px); border-color: rgba(84,255,180,0.35); background: rgba(84,255,180,0.08); }

/* How-it-works visual flow */
.how-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.how-steps{
  display:grid;
  gap: 14px;
}
.how-step{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 18px 18px;
  position: relative;
  overflow:hidden;
  transition: 0.35s var(--ease);
}
.how-step:hover{ transform: translateY(-4px); border-color: rgba(80,240,255,0.25); }
.how-step::before{
  content:'';
  position:absolute; left: -40%; top: -120%;
  width: 220%; height: 220%;
  background: radial-gradient(circle at 30% 30%, rgba(80,240,255,0.16), transparent 55%);
  transform: rotate(18deg);
  pointer-events:none;
}
.how-head{ display:flex; align-items:center; gap: 12px; position: relative; z-index:2; }
.how-n{
  width: 36px; height: 36px;
  border-radius: 14px;
  background: rgba(84,255,180,0.10);
  border: 1px solid rgba(84,255,180,0.28);
  display:grid; place-items:center;
  color: var(--primary);
  font-weight: 900;
}
.how-title{ font-weight: 900; color:#fff; letter-spacing:-0.01em; }
.how-desc{ color: rgba(255,255,255,0.68); font-size: 13px; line-height: 1.55; margin-top: 8px; position: relative; z-index:2; }

.how-visual{
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  padding: 18px;
  position: relative;
  overflow:hidden;
}
.how-visual::after{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(circle at top, rgba(84,255,180,0.18), transparent 70%);
  pointer-events:none;
}
.mono-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 14px;
  position: relative;
  z-index:2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}
.mono-card b{ color:#fff; }
.mono-card .chip{ display:inline-flex; align-items:center; gap:6px; padding: 6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); font-weight: 900; letter-spacing:0.06em; text-transform: uppercase; font-size: 10px; }

/* Loss comparison bars */
.loss-card{
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.loss-row{ display:flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.loss-row b{ color:#fff; font-size: 14px; }
.loss-row span{ color: rgba(255,255,255,0.60); font-size: 12px; }
.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow:hidden;
  margin-top: 10px;
  position: relative;
}
.bar > i{ display:block; height:100%; width: 50%; border-radius: 999px; background: linear-gradient(90deg, rgba(255,71,87,0.9), rgba(251,191,36,0.9)); box-shadow: 0 0 30px rgba(255,71,87,0.18); }
.bar.good > i{ background: linear-gradient(90deg, rgba(84,255,180,0.95), rgba(80,240,255,0.95)); box-shadow: 0 0 30px rgba(84,255,180,0.18); }

/* Summary hero layout */
.split-hero{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}
.stack{
  display:grid;
  gap: 12px;
}
.stack-card{
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow:hidden;
}
.stack-card::after{
  content:'';
  position:absolute; inset:-70% -70%;
  background: radial-gradient(circle at 30% 30%, rgba(80,240,255,0.15), transparent 60%);
  transform: rotate(18deg);
  pointer-events:none;
}
.stack-card b{ color:#fff; display:block; font-weight: 900; letter-spacing:-0.01em; }
.stack-card span{ color: rgba(255,255,255,0.64); display:block; font-size: 12px; margin-top: 6px; }

@media (max-width: 980px){
  .section-head{ grid-template-columns: 1fr; }
  .reco-grid{ grid-template-columns: 1fr; }
  .how-grid{ grid-template-columns: 1fr; }
  .split-hero{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .features-grid{ grid-template-columns: 1fr; }
}

/* --- UI polish (v4) ------------------------------------------------------- */

/* Forms: fix white dropdown/white text on dark theme */
.select{
  background-color: rgba(10,15,25,0.72);
  color: rgba(255,255,255,0.92);
}
.select:focus{ outline:none; box-shadow: 0 0 0 2px rgba(84,255,180,0.25); }
.select option,
.select optgroup{
  background: #ffffff;
  color: #0b1012;
}

/* Activation: ensure plans render as a proper grid (and ticks are not gigantic) */
.plans-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.plans-grid .plan-card{ min-width: 0; }

.p-features{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.p-features li{
  display:flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,0.78);
}
.p-features svg{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  opacity: 0.9;
}

/* Comparison matrix: clearer separation between plans */
.matrix{ border-collapse: separate; border-spacing:0; overflow:hidden; }
.matrix th{ position: sticky; top: 0; z-index: 1; backdrop-filter: blur(10px); }
.matrix th:nth-child(2), .matrix td:nth-child(2){ background: rgba(255,255,255,0.02); }
.matrix th:nth-child(3), .matrix td:nth-child(3){
  background: linear-gradient(180deg, rgba(84,255,180,0.12), rgba(84,255,180,0.04));
  box-shadow: inset 1px 0 0 rgba(84,255,180,0.22), inset -1px 0 0 rgba(84,255,180,0.22);
}
.matrix th:nth-child(4), .matrix td:nth-child(4){
  background: linear-gradient(180deg, rgba(167,139,250,0.10), rgba(167,139,250,0.03));
}
.matrix td, .matrix th{ border-bottom: 1px solid rgba(255,255,255,0.06); }
.matrix tr:hover td{ background-color: rgba(255,255,255,0.03); }
.matrix tr:hover td:nth-child(3){ background: rgba(84,255,180,0.10); }

/* "Най-избиран" badge */
.tag-top{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(84,255,180,0.30);
  background: linear-gradient(180deg, rgba(84,255,180,0.20), rgba(84,255,180,0.06));
  color: rgba(255,255,255,0.92);
}

/* Terms typography: reduce vertical gaps from docx paragraphs */
#termsBody h1{ margin-top: 0; }
#termsBody h2{ margin-top: 26px; }
#termsBody h3{ margin-top: 18px; }
#termsBody p{
  margin: 0 0 8px;
  max-width: none;
  line-height: 1.6;
  color: rgba(255,255,255,0.80);
}
#termsBody .helper{ margin-bottom: 18px; }
#termsBody a{ color: var(--accent); }
#termsBody ul, #termsBody ol{ margin: 8px 0 14px 20px; }
#termsBody li{ margin: 6px 0; }

/* Terms layout responsive */
@media (max-width: 980px){
  .terms-grid{ grid-template-columns: 1fr !important; }
  .terms-aside{ position: relative !important; top: 0 !important; max-height: none !important; }
}

/* Apple-like keynote blocks (used in Summary/Home) */
.keynote{ display:grid; gap: 18px; }
.key-slide{
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.key-slide::before{
  content:'';
  position:absolute; inset:-60% -40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(80,240,255,0.12), transparent 60%),
    radial-gradient(circle at 75% 35%, rgba(84,255,180,0.10), transparent 55%),
    radial-gradient(circle at 60% 80%, rgba(167,139,250,0.10), transparent 60%);
  transform: rotate(14deg);
  pointer-events:none;
}
.key-slide > *{ position: relative; z-index: 1; }
.key-title{
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 5vw, 52px);
  margin: 0;
}
.key-sub{ color: rgba(255,255,255,0.75); max-width: 860px; margin-top: 12px; }
.kv-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.kv{ padding: 14px 14px; border-radius: 18px; border:1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.18); }
.kv b{ display:block; font-size: 22px; color:#fff; }
.kv span{ display:block; font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }

@media (max-width: 900px){
  .plans-grid{ grid-template-columns: 1fr; }
  .kv-grid{ grid-template-columns: 1fr; }
}

/* Modal + info pill */
.info-btn{
  width:26px;height:26px;border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.9);
  display:inline-grid;place-items:center;
  font-weight:900;
  cursor:pointer;
}
.info-btn:hover{ border-color: rgba(84,255,180,0.35); box-shadow: 0 0 0 2px rgba(84,255,180,0.10); }

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}
.modal.open{ display:flex; }
.modal .modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}
.modal .modal-card{
  position: relative;
  width: min(900px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,10,16,0.86);
  box-shadow: 0 30px 100px rgba(0,0,0,0.55);
  padding: 22px;
  overflow:hidden;
}
.modal .modal-card::before{
  content:''; position:absolute; inset:-60% -40%;
  background:
    radial-gradient(circle at 25% 25%, rgba(80,240,255,0.14), transparent 60%),
    radial-gradient(circle at 75% 35%, rgba(84,255,180,0.12), transparent 60%);
  transform: rotate(10deg);
  pointer-events:none;
}
.modal .modal-card > *{ position:relative; z-index:1; }
.modal .modal-close{
  position:absolute; top:14px; right:14px;
  width:38px; height:38px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
  cursor:pointer;
}
.modal .modal-close:hover{ border-color: rgba(84,255,180,0.35); }
.modal .modal-title{ font-size: 20px; font-weight: 900; margin: 0 0 8px; }
.modal .modal-body{ color: rgba(255,255,255,0.75); line-height:1.75; }
.modal .src-list{ margin: 10px 0 0; padding-left: 18px; }
.modal .src-list li{ margin: 6px 0; }

/* Home alignment refinements */
.section-head .head-copy{ text-align:left; }
.section-head .head-copy p{ text-align:left; }
#smart-reco .liquid-glass{ max-width: 1180px; margin-left:auto; margin-right:auto; }

/* --- Keynote lane (Home + Investors deck) -------------------------------- */

/* Home uses a keynote, slide-by-slide scroll on desktop. Mobile stays normal. */
@media (min-width: 981px){
  html.home, body.home{ scroll-snap-type: y mandatory; scroll-behavior: smooth; }
  html.deck, body.deck{ scroll-snap-type: y mandatory; scroll-behavior: smooth; }
}

body.home, body.deck{ scroll-padding-top: 96px; }

.kn-slide{
  min-height: 100vh;
  padding: 120px 0 90px;
  display: flex;
  align-items: center;
  position: relative;
}
.kn-slide.kn-top{ align-items: flex-start; }
@media (min-width: 981px){
  .kn-slide{ scroll-snap-align: start; scroll-snap-stop: always; }
}

.kn-inner{ width:100%; }

.hero-split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}
@media (max-width: 980px){
  .kn-slide{ padding: 110px 0 70px; }
  .hero-split{ grid-template-columns: 1fr; }
}

/* Home hero alignment: Apple-like (left copy, right visual) */
body.home .hero-content{ text-align: left; max-width: none; }
body.home .hero-content p{ margin-left: 0; margin-right: 0; }
body.home .kpi-grid{ margin-top: 18px; }

.glass-hero{
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.26);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.glass-hero::before{
  content:'';
  position:absolute; inset:-60% -40%;
  background:
    radial-gradient(circle at 25% 25%, rgba(80,240,255,0.18), transparent 60%),
    radial-gradient(circle at 75% 30%, rgba(84,255,180,0.16), transparent 60%),
    radial-gradient(circle at 65% 80%, rgba(167,139,250,0.12), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}
.glass-hero > *{ position:relative; z-index:1; }

.device-mock{
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  overflow:hidden;
}
.device-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,15,25,0.55);
}
.device-top b{ color:#fff; letter-spacing:-0.01em; }
.device-top .dot-live{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(84,255,180,0.95);
  box-shadow: 0 0 18px rgba(84,255,180,0.45);
  animation: pulseLive 1.8s var(--ease) infinite;
}
@keyframes pulseLive{ 0%,100%{ transform: scale(1); opacity:1; } 50%{ transform: scale(0.7); opacity:.55; } }

.device-body{ padding: 16px; }
.device-row{ display:flex; justify-content: space-between; gap: 10px; color: rgba(255,255,255,0.78); font-size: 13px; }
.device-row b{ color:#fff; }
.device-bars{ display:grid; gap: 10px; margin-top: 14px; }
.device-bar{ height: 10px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow:hidden; }
.device-bar i{ display:block; height:100%; width: 55%; border-radius: 999px; background: linear-gradient(90deg, rgba(80,240,255,0.95), rgba(84,255,180,0.95)); box-shadow: 0 0 24px rgba(80,240,255,0.18); }

/* Keynote dots */
.kn-dots{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display:flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1300;
}
.kn-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  position: relative;
  transition: 0.25s var(--ease);
}
.kn-dot:hover{ transform: scale(1.2); border-color: rgba(80,240,255,0.45); }
.kn-dot::after{
  content: attr(data-label);
  position:absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,15,25,0.86);
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events:none;
  transition: 0.25s var(--ease);
}
.kn-dot:hover::after{ opacity: 1; }
.kn-dot.active{
  background: var(--primary);
  border-color: rgba(84,255,180,0.6);
  box-shadow: 0 0 22px rgba(84,255,180,0.28);
}
@media (max-width: 980px){
  .kn-dots{ display:none; }
  body.home .hero-content{ text-align:center; }
}

/* Outro footer cards (home) */
.outro-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .outro-grid{ grid-template-columns: 1fr; }
}

/* Scroll hint (home) */
.scroll-hint{
  position:absolute;
  left:50%;
  bottom: 20px;
  transform: translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  opacity: 0.72;
  pointer-events:none;
}
.scroll-hint span{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.sh-arrow{
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255,255,255,0.55);
  border-bottom: 2px solid rgba(255,255,255,0.55);
  transform: rotate(45deg);
  animation: shDown 1.8s var(--ease) infinite;
}
@keyframes shDown{
  0%,100%{ transform: translateY(0) rotate(45deg); opacity: .55; }
  50%{ transform: translateY(8px) rotate(45deg); opacity: 1; }
}


/* =========================
   v6 – UX FIXES + MOBILE PWA
   ========================= */

/* Better text contrast for selectable needs (fix black-on-dark on some browsers) */
.need-item{ color: rgba(255,255,255,0.92); }
.need-item.selected{ color: #ffffff; }

/* Form controls – readable on mobile (avoid white on white) */
select, .select, .input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"]{
  color: rgba(255,255,255,0.92);
}
select, .select{
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(84,255,180,0.22);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.35);
}
select:focus, .select:focus{
  outline: none;
  border-color: rgba(84,255,180,0.55);
}
select option{
  background: #0b1012;
  color: #ffffff;
}

/* Home: make the right visual sticky on desktop (light Apple-like) */
@media (min-width: 980px){
  .how-visual{ position: sticky; top: calc(var(--navH, 72px) + 18px); align-self: start; }
}

/* Embed mode (for mobile app shell iframes) */
html.embed, body.embed{
  background: transparent !important;
}
.embed nav, .embed .bottom-dock, .embed .kn-dots, .embed .home-tabs, .embed .scroll-hint,
.embed .app-nav, .embed .navbar, .embed .app-drawer, .embed #siteDrawer{
  display:none !important;
}

/* Mobile: remove decorative hero tagline chip (keeps the hero clean on small screens) */
@media (max-width: 520px){
  .hero-tagline{ display:none !important; }
}
.embed .page-top-pad{
  padding-top: 18px !important;
}

/* In embed iframes we do not need the global body safe padding. */
body.embed{
  padding-bottom: 18px !important;
}

/* App shell (mobile screens) */
.app-shell{
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: transparent;
}

/* In app-shell view, keep the bottom nav visible even on wide viewports (tablets). */
html.app .app-nav{ display:flex !important; }
html.app body{ padding-bottom: 0 !important; }
.app-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2,4,8,0.82), rgba(2,4,8,0.45));
  border-bottom: 1px solid rgba(84,255,180,0.12);
}
.app-topbar .inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
}
.app-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.app-brand img{ width: 22px; height: 22px; }
.app-burger{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.app-burger:active{ transform: translateY(1px); }

.app-stage{
  position: relative;
  overflow: hidden;
}

.screen-frame{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.screen-frame.is-active{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Drawer menu (app shell) */
.app-drawer{
  position: fixed;
  inset: 0;
  z-index: 80;
  display:none;
}
.app-drawer.open{ display:block; }
.app-drawer .overlay{
  position:absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}
.app-drawer .panel{
  position:absolute;
  top: 12px; left: 12px; right: 12px;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(12,16,20,0.86);
  border: 1px solid rgba(84,255,180,0.14);
  box-shadow: 0 18px 70px rgba(0,0,0,0.6);
  padding: 14px;
}
.drawer-links{
  display:grid;
  gap: 8px;
  margin-top: 10px;
}
.drawer-links a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}
.drawer-links a.active{
  border-color: rgba(84,255,180,0.45);
  box-shadow: inset 0 0 0 1px rgba(84,255,180,0.15), 0 0 30px rgba(84,255,180,0.08);
}
.drawer-links small{ opacity: .75; }

/* Bottom dock – keep as is, but make sure it's always visible above safe areas */
.bottom-dock{
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}


/* Investors KPI cards */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.kpi-card{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 40px rgba(84,255,180,0.05);
}
.kpi-lab{ font-size: 12px; opacity: .72; letter-spacing: .02em; }
.kpi-val{ font-weight: 900; font-size: 32px; letter-spacing: -0.02em; margin-top: 4px; }
.kpi-note{ font-size: 12px; opacity: .72; margin-top: 8px; }
.spark{ width:100%; height:70px; display:block; margin-top: 10px; border-radius: 14px; background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.05); }

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.funnel{ display:grid; gap: 8px; }
.f-step{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.f-step span{ opacity: .75; font-size: 12px; }
.f-step b{ font-weight: 900; letter-spacing:-0.02em; }

@media (max-width: 980px){
  .kpi-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* Activation plan ticks – keep compact */
.p-features li svg{ width:18px !important; height:18px !important; flex:0 0 18px; }



/* --- v7 MOBILE + UX PATCHES (non-destructive) --- */

/* Desktop navbar structure (keeps existing look) */
.nav-actions{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav-links{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items:center;
}
.nav-burger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:none;
  place-items:center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-burger:active{ transform: translateY(1px); }

/* Table scroll wrapper (plan matrix) */
.table-scroll{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}
.table-scroll .matrix{ margin: 0; }

/* Drawer: stronger contrast (avoid "black-on-black" perception) */
.app-drawer .panel{
  background: linear-gradient(180deg, rgba(16,22,34,0.96), rgba(6,10,16,0.92));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
}
.drawer-links a{
  color: #fff;
}
.drawer-links a small{
  opacity: .78;
}
.drawer-links a.active{
  border-color: rgba(84,255,180,0.45);
  background: rgba(84,255,180,0.10);
}

/* Make embedded pages safe for the bottom dock */
body.embed{
  padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
}

/* App topbar safe-area and logo visibility */
.app-topbar{
  padding-top: max(10px, env(safe-area-inset-top));
}
.app-brand span{
  white-space: nowrap;
}

/* Mobile layout fixes */
@media (max-width: 820px){
  /* Top navbar becomes app-like */
  .nav-links{ display:none !important; }
  .nav-burger{ display:grid; }
  .navbar .nav-inner{
    gap: 10px;
  }
  .navbar .logo{
    font-size: 16px !important;
  }
  .navbar .logo svg{
    width: 34px !important;
    height: 34px !important;
  }

  /* Plan cards: prevent overflow */
  .plans-grid{
    grid-template-columns: 1fr !important;
  }
  .plan-card{
    min-width: 0 !important;
  }
  .p-price{
    font-size: 32px !important;
  }
  .p-features li{
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
  .p-features svg{
    width: 18px !important;
    height: 18px !important;
  }

  /* Buttons: ensure tap targets */
  .btn{
    min-height: 44px;
  }

  /* Matrix: allow swipe */
  .matrix{ min-width: 760px; }
}

/* Very small devices */
@media (max-width: 380px){
  .navbar .logo{ letter-spacing: 0.12em !important; }
  .p-price{ font-size: 28px !important; }
}
