/* nfunds · „вътре в продукта“
   След всеки продукт — как изглежда отвътре: Какебо в телефона (Моите пари),
   един месец от SOLO, три листа от PRO. Плюс добавките на началната страница. */

/* ——— общото ——— */
.peek, .dsec { position: relative; z-index: 1; }
.peek { padding: clamp(10px, 2vw, 30px) 0 clamp(110px, 13vw, 180px); }
.peek::before, .dsec::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(70% 45% at 30% 12%, rgba(16, 9, 6, 0.5), rgba(16, 9, 6, 0) 70%);
}
/* преливката между разделите: сенките зад текста изчезват към горния и долния ръб,
   за да не се вижда граница между два раздела върху коприната */
.chapter::before, .story::before, .peek::before, .dsec::before {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.hero::before {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 76%, transparent 100%);
}
.peek__head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 84px); }
.peek__head h2, .dsec .dhero__head h2 { font-size: clamp(40px, 5.2vw, 80px); margin: 18px 0 22px; }
.peek__head h2 .g, .dsec .dhero__head h2 .g {
  display: block;
  background: linear-gradient(100deg, #F6E3B4 0%, #D8B26A 38%, #F3DCA0 55%, #B8873A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.peek__head .lead, .dsec .lead { color: var(--cream-2); max-width: 36em; margin: 0; }
.velvet .kanji { opacity: 0.75; }
.peek__foot { text-align: center; color: var(--cream-3); font-size: 15px; margin: 22px auto 0; max-width: 44em; }

/* ——— телефонът ——— */
.phone {
  --pw: min(310px, calc((100vh - 210px) / 2.17));
  position: relative; width: var(--pw); padding: 10px; border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(150deg, #3B2B23 0%, #120C09 42%, #2B1E18 100%);
  box-shadow: 0 0 0 1px rgba(233, 207, 147, 0.42), 0 0 0 4px #0C0806,
    0 80px 120px -56px rgba(0, 0, 0, 0.95), 0 30px 70px -36px rgba(74, 29, 47, 0.9);
}
.phone::before { /* островът */
  content: ''; position: absolute; z-index: 4; top: calc(10px + var(--pw) * 0.03); left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--pw) * 0.075); border-radius: 99px; background: #050302;
}
.phone__screen { position: relative; overflow: hidden; aspect-ratio: 750 / 1624; border-radius: calc(var(--pw) * 0.125); background: #FAF7F2; }
.phone__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: translateY(24px) scale(1.015);
  transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-emph);
}
.phone__screen img.is-on { opacity: 1; transform: none; }
.phone__bar {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 8%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10% 0 11%;
  font: 600 calc(var(--pw) * 0.046)/1 var(--sans); color: #2B2320;
  background: linear-gradient(#FAF7F2 72%, rgba(250, 247, 242, 0));
}
.phone__bar i { width: calc(var(--pw) * 0.08); height: calc(var(--pw) * 0.038); border-radius: 3px; border: 1.5px solid #2B2320; position: relative; }
.phone__bar i::after { content: ''; position: absolute; inset: 1.5px; right: 30%; background: #2B2320; border-radius: 1px; }
.phone--sm { --pw: min(270px, 72vw); margin: 0 auto; }
.phone--sm .phone__screen img { position: absolute; opacity: 1; transform: none; }

/* ——— Какебо в телефона ——— */
.appstory { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.appstage { position: sticky; top: max(96px, calc(50vh - 350px)); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.appstage::before { /* светлина зад телефона */
  content: ''; position: absolute; z-index: -1; left: 50%; top: 42%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(231, 168, 184, 0.22), rgba(231, 168, 184, 0));
}
.appstage__dots { display: flex; gap: 9px; }
.appstage__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(248, 241, 228, 0.28); transition: background var(--dur-base), transform var(--dur-base) var(--ease-out); }
.appstage__dots i.is-on { background: var(--gold-2); transform: scale(1.35); }
.appstage__note { margin: 0; font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--cream-3); }

.asteps { list-style: none; margin: 0; padding: 0; }
.astep { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: 0.3; transition: opacity 500ms var(--ease-out); }
.astep.is-on { opacity: 1; }
.astep__phone { display: none; margin: 0; }
.astep__n { font-family: var(--display); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(233, 207, 147, 0.62); }
.astep__tab {
  align-self: flex-start; margin: 16px 0 14px; padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--cream);
  background: rgba(248, 241, 228, 0.08); border: 1px solid rgba(233, 207, 147, 0.3);
}
.astep h3 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; margin: 0 0 16px; text-wrap: balance; }
.astep p { margin: 0; max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--cream-2); }
.astep p em { font-style: normal; color: var(--cream); background: linear-gradient(transparent 60%, rgba(231, 168, 184, 0.35) 60%); }
.kcats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kcats li { padding: 8px 14px; border-radius: 999px; background: var(--b); color: var(--c); font-size: 14px; font-weight: 600; }
.kq { list-style: none; counter-reset: q; margin: 20px 0 0; padding: 0; max-width: 30em; }
.kq li { counter-increment: q; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed rgba(233, 207, 147, 0.3); font-size: 18px; color: var(--cream); }
.kq li:last-child { border-bottom: 0; }
.kq li::before { content: counter(q); font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1; color: var(--mp-l); }
.pearls--velvet { max-width: 460px; margin: 26px 0 12px; }
.pearls--velvet .pearl--gold { box-shadow: 0 0 0 3px #3A1624, 0 0 0 4px var(--gold), 0 6px 14px -4px rgba(0, 0, 0, 0.6); }
.astep .rule__labels { max-width: 460px; color: var(--cream-3); font-size: 22px; }

.peek__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: clamp(30px, 5vw, 70px); }
.peek__buy .hand { margin: 0; font-size: 32px; color: var(--mp-l); transform: rotate(-3deg); }
.peek__buy-f { font-size: 14px; font-weight: 600; color: #2A1A0E; padding: 7px 14px; border-radius: 999px; background: linear-gradient(160deg, #F5E3B0, #D9B670); }

/* ——— листовете на таблиците ——— */
.xl {
  position: relative; overflow: hidden; border-radius: 14px; background: #FFFFFF; color: #1E1E1E;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  box-shadow: 0 0 0 1px rgba(233, 207, 147, 0.3), 0 80px 120px -60px rgba(0, 0, 0, 0.95), 0 26px 50px -30px rgba(0, 0, 0, 0.6);
}
.xl__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #EFEBE4; border-bottom: 1px solid #DDD5C8; font: 600 13px/1 var(--sans); color: #3B3B3B; }
.xl__dots { display: flex; gap: 7px; }
.xl__dots i { width: 11px; height: 11px; border-radius: 50%; background: #E26B5B; }
.xl__dots i:nth-child(2) { background: #E7B746; }
.xl__dots i:nth-child(3) { background: #6DBE5C; }
.xl__tag { margin-left: auto; font-family: var(--hand); font-weight: 700; font-size: 19px; color: var(--gold-deep); }
.xl__fx { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid #E3DDD3; background: #FBFAF7; font-size: 12.5px; color: #444; white-space: nowrap; overflow: hidden; }
.xl__ref { min-width: 46px; padding: 3px 6px; border: 1px solid #DDD5C8; border-radius: 4px; background: #FFFFFF; text-align: center; font-weight: 700; }
.xl__f { font-family: Georgia, serif; font-style: italic; color: #8A8A8A; }
.xl__fx code { font-family: Menlo, Consolas, monospace; font-size: 12px; color: #1D4638; overflow: hidden; text-overflow: ellipsis; }
.xl__grid { overflow-x: auto; }
.xl table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.xl th, .xl td { border: 1px solid #E6E0D6; padding: 6px 10px; height: 31px; white-space: nowrap; text-align: left; }
.xl thead th { height: 24px; padding: 2px 8px; background: #F4F1EB; color: #7A7A7A; font-weight: 400; font-size: 12px; text-align: center; }
.xl .rn { width: 36px; padding: 0 4px; background: #F4F1EB; color: #8A8A8A; font-size: 12px; text-align: center; }
.xl .h1 { background: #2A4D3E; color: #FFFFFF; font-weight: 700; font-size: 14px; }
.xl .h2 { background: #3E6B57; color: #FFFFFF; font-weight: 700; font-size: 12.5px; letter-spacing: 0.02em; }
.xl .in { background: #FFF9EC; }
.xl .tot { background: #F3E9D7; font-weight: 700; }
.xl .gr { background: #E8F0EA; font-weight: 700; }
.xl .neg { background: #F4E4E4; color: #A14545; font-weight: 700; }
.xl .num { text-align: right; font-variant-numeric: tabular-nums; }
.xl .b { font-weight: 700; }
.xl .c { text-align: center; }
.xl .ind { padding-left: 22px; }
.xl .note { color: #7A7A7A; font-style: italic; font-size: 12.5px; white-space: normal; }
.xl .colh td:not(.rn) { background: #FAF7F2; font-weight: 700; font-size: 12.5px; }
.xl .gap td { height: 18px; background: #FBFAF7; color: #AAA; }
.xl .sel { position: relative; outline: 2px solid #1E7145; outline-offset: -2px; }
.xl .sel::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: #1E7145; border: 1px solid #FFFFFF; }
.xl .cfade { min-width: 170px; }
.xl .cellnote { font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1; color: #9A7430; white-space: nowrap; }
.xl .blink { animation: xl-blink 700ms var(--ease-out); }
@keyframes xl-blink { from { box-shadow: inset 0 0 0 999px rgba(233, 207, 147, 0.55); } to { box-shadow: inset 0 0 0 999px rgba(233, 207, 147, 0); } }
.xl__tabs { display: flex; align-items: stretch; gap: 2px; padding: 0 10px; background: #EFEBE4; border-top: 1px solid #DDD5C8; overflow-x: auto; font: 12.5px/1 var(--sans); }
.xl__tabs span, .xl__tabs button { padding: 10px 14px; white-space: nowrap; color: #8A847A; background: none; border: 0; font: inherit; }
.xl__tabs .is-on { background: #FFFFFF; color: #1D4638; font-weight: 700; box-shadow: inset 0 3px 0 #3E6B57; }
.xl__tabs button { cursor: pointer; color: #34312C; font-weight: 600; transition: background var(--dur-fast); }
.xl__tabs button:not(.is-on):hover { background: rgba(255, 255, 255, 0.65); }
.xl__tabs button::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }

/* SOLO: месецът и фондовете — два прозореца един над друг */
.solo-demo { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: start; }
.xl--month { z-index: 1; }
.xl--funds { z-index: 2; margin: 96px 0 0 28px; }
.funds { list-style: none; margin: 0; padding: 6px 0; }
.funds li { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 18px 15px; border-bottom: 1px solid #EEE8DE; font-size: 13.5px; }
.funds li i { position: absolute; left: 18px; bottom: 5px; height: 4px; border-radius: 2px; width: calc((100% - 36px) * var(--w, 0.2)); background: linear-gradient(90deg, #3E6B57, #8CC0A6); transition: width 500ms var(--ease-emph); }
.funds__p { color: #8A8A8A; font-size: 12.5px; }
.funds__v { min-width: 84px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.funds__sum { display: flex; justify-content: space-between; padding: 12px 18px; background: #E8F0EA; color: #1D4638; font-size: 12.5px; font-weight: 700; }
.chalknote { position: absolute; z-index: 3; pointer-events: none; font-family: var(--hand); font-weight: 700; font-size: 28px; line-height: 1; transform: rotate(-4deg); }
.chalknote--funds { right: 4%; bottom: -52px; color: var(--so-l); }

.slider { display: flex; align-items: center; gap: 22px; max-width: 780px; margin: 70px auto 0; padding: 16px 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(233, 207, 147, 0.32); }
.slider label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; }
.slider output { min-width: 4.4em; text-align: right; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--cream); }
.slider input[type="range"] { --fill: 32%; flex: 1; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-2) var(--fill), rgba(248, 241, 228, 0.22) var(--fill)); }
.slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(248, 241, 228, 0.22); }
.slider input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold-2); }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #FFF4C8, #E2B95C 55%, #A97A2C); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(233, 207, 147, 0.18); }
.slider input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #FFF4C8, #E2B95C 55%, #A97A2C); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }

/* PRO: три листа */
.xl--pro { max-width: 1120px; margin: 0 auto; }
.xl__sheet[hidden] { display: none; }
.xl__sheet { position: relative; animation: nf-fade 360ms var(--ease-out); }
.xl .dd { position: relative; overflow: visible; }
.dd__a { float: right; color: #6B6B6B; }
.dd__list {
  position: absolute; z-index: 5; left: -1px; top: calc(100% + 1px); min-width: calc(100% + 2px); margin: 0; padding: 4px 0; list-style: none;
  background: #FFFFFF; border: 1px solid #BDB6AA; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2); font-size: 13px;
  opacity: 0; transform: translateY(-6px); transition: opacity 400ms var(--ease-out) 700ms, transform 500ms var(--ease-emph) 700ms;
}
.xl.is-seen .dd__list { opacity: 1; transform: none; }
.dd__list li { padding: 5px 12px; }
.dd__list li.is-on { background: #1E7145; color: #FFFFFF; }
.xl .mbar { width: 160px; }
.mbar i { display: block; height: 10px; width: calc(var(--m) * 5%); max-width: 100%; border-radius: 2px; background: linear-gradient(90deg, #3E6B57, #8CC0A6); }
.mbar--neg i { background: #C46A6A; }
.procap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 26px; text-align: center; }
.procap__hand { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--pr-l); }
.procap__t { margin: 0; max-width: 40em; min-height: 3.2em; color: var(--cream-2); font-size: 17px; }

/* ——— добавките на началната страница ——— */
.dsec { padding: clamp(100px, 12vw, 160px) 0 clamp(90px, 11vw, 140px); }

/* ——— телефон и таблет ——— */
@media (max-width: 1040px) {
  .appstory { grid-template-columns: minmax(0, 1fr); }
  .appstage { display: none; }
  .astep { min-height: 0; opacity: 1; padding: 0 0 80px; }
  .astep__phone { display: block; margin: 0 0 30px; }
  .solo-demo { grid-template-columns: minmax(0, 1fr); }
  .xl--funds { margin: 24px 0 0; }
  .chalknote--funds { bottom: -46px; }
  .slider { flex-wrap: wrap; border-radius: 26px; gap: 10px 18px; }
  .slider input[type="range"] { flex-basis: 100%; order: 3; }
  .slider output { margin-left: auto; }
}
@media (max-width: 600px) {
  .xl__tabs--live span { display: none; }
  .xl__tabs--live { justify-content: center; }
  .xl table { font-size: 12.5px; }
  .xl__fx code { font-size: 11px; }
  .astep h3 { font-size: 34px; }
  .astep p, .kq li { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone__screen img { transition: none; }
  .dd__list { opacity: 1; transform: none; }
}
