/* =========================================
   ROLE PAGE — UCZEŃ (Top SaaS, lekki premium)
   ========================================= */

:root{
  --ru-text: 15,23,42;
  --ru-accent: 43,125,115;   /* brand green */
  --ru-accent-2: 59,130,246; /* cold blue accent */
  --ru-safe: 22,163,74;
  --ru-line: rgba(15,23,42,.10);
  --ru-muted: rgba(15,23,42,.66);
  --ru-ease: cubic-bezier(.2,.8,.2,1);
  --ru-dur: 420ms;
}

/* page background */
body.rm-role.rm-role--uczen{
  background:
    radial-gradient(1200px 520px at 10% -4%, rgba(43,125,115,.14), transparent 58%),
    radial-gradient(900px 440px at 94% 8%, rgba(59,130,246,.10), transparent 62%),
    linear-gradient(180deg, rgba(245,248,250,.88), #fff 560px);
}

/* ---------- HERO ---------- */

.rolepage-hero{
  position: relative;
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--ru-line);
}

.rolepage-hero__grid{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
  align-items: start;
}

.rolepage-breadcrumbs{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--ru-muted);
  margin-bottom: 10px;
}

.rolepage-breadcrumbs a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.rolepage-breadcrumbs a:hover{
  border-bottom-color: rgba(var(--ru-accent), .40);
}

.rolepage-title{
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.1vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: rgba(var(--ru-text), .96);
}

.rolepage-lead{
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.56;
  color: var(--ru-muted);
}

/* proof row */
.rp-proof{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.rp-proof__item{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  color: rgba(15,23,42,.84);
  font-size: .95rem;
  font-weight: 700;
}

.rp-proof__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--ru-safe), .80);
  box-shadow: 0 0 0 4px rgba(var(--ru-safe), .15);
}

.rp-proof__link{
  margin-left: 6px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(15,23,42,.84);
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(15,23,42,.10);
}
.rp-proof__link:hover{
  background: rgba(255,255,255,.80);
}

/* right visual */
.rolepage-hero__visual{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-trust-grid{
  display: grid;
  gap: 10px;
}

.hero-trust-card{
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
}

.hero-trust-card__icon{
  width: 24px;
  height: 24px;
  color: rgba(var(--ru-accent), .86);
}

.hero-trust-card strong{
  display: block;
  margin: 0;
  color: rgba(var(--ru-text), .94);
  font-size: .98rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-trust-card span{
  display: block;
  margin-top: 1px;
  color: rgba(15,23,42,.64);
  font-size: .90rem;
  line-height: 1.34;
}

/* Student mock shell */
.student-shell{
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 26px 90px rgba(15,23,42,.15);
}

.student-shell__top{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  background: rgba(245,248,250,.95);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.student-shell__top span{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.18);
}
.student-shell__top small{
  margin-left: auto;
  font-size: .82rem;
  color: rgba(15,23,42,.56);
  font-weight: 700;
}

.student-shell__body{
  padding: 14px 14px 16px;
}
.student-shell__body h3{
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  color: rgba(var(--ru-text), .95);
}
.student-shell__body p{
  margin: 6px 0 10px;
  color: rgba(15,23,42,.64);
  font-size: .92rem;
}

.student-shell__moods{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.mood-chip{
  border: 1px solid rgba(15,23,42,.11);
  background: rgba(255,255,255,.90);
  height: 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: default;
}
.mood-chip.is-active{
  border-color: rgba(var(--ru-accent), .36);
  box-shadow: 0 0 0 3px rgba(var(--ru-accent), .14);
  background: rgba(255,255,255,.98);
}

.student-shell__note{
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(245,248,250,.92);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.52);
  font-size: .9rem;
}

.student-shell__toast{
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(var(--ru-accent), .12);
  border: 1px solid rgba(var(--ru-accent), .22);
  color: rgba(15,23,42,.88);
  font-size: .9rem;
  font-weight: 700;
}

/* ---------- SECTIONS ---------- */

.rolepage-section{
  padding: 34px 0;
}
.rolepage-section--soft{
  background: rgba(245,248,250,.62);
  border-top: 1px solid var(--ru-line);
  border-bottom: 1px solid var(--ru-line);
}

.rolepage-h2{
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: rgba(var(--ru-text), .96);
}
.rolepage-sub{
  margin: 0 0 16px;
  max-width: 900px;
  color: var(--ru-muted);
}

/* segmented tabs */
.rm-seg{
  display: inline-flex;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
  margin: 10px 0 18px;
}
.rm-seg__btn{
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(15,23,42,.72);
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
}
.rm-seg__btn:hover{
  transform: translateY(-1px);
}
.rm-seg__btn.is-active{
  background: rgba(255,255,255,.94);
  color: rgba(15,23,42,.92);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  border: 1px solid rgba(15,23,42,.10);
}
.rm-seg__btn:focus-visible{
  outline: 3px solid rgba(var(--ru-accent), .28);
  outline-offset: 3px;
}

/* panes */
.rm-pane{ display: none; }
.rm-pane.is-active{
  display: block;
  animation: rmPaneIn var(--ru-dur) var(--ru-ease) both;
}
@keyframes rmPaneIn{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: none; }
}

/* cards */
.rm-cards3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rm-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px 16px 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.rm-card::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--ru-accent), .58), rgba(var(--ru-accent-2), .20));
}

.rm-card__cap{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(var(--ru-accent), .10);
  border: 1px solid rgba(var(--ru-accent), .20);
  color: rgba(15,23,42,.88);
  font-size: .84rem;
  font-weight: 900;
}

.rm-card h3{
  margin: 10px 0 6px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.rm-card p{
  margin: 0;
  line-height: 1.55;
  color: var(--ru-muted);
}

@media (hover:hover){
  .rm-card{
    transition: transform .14s ease, box-shadow .14s ease;
  }
  .rm-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 24px 70px rgba(15,23,42,.12);
  }
}

/* compare */
.rm-compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rm-compare__col{
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.rm-compare__col--muted{
  background: rgba(255,255,255,.66);
}
.rm-compare__title{
  margin-bottom: 10px;
  font-weight: 950;
  color: rgba(var(--ru-text), .94);
}
.rm-compare ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

/* steps */
.rm-steps{
  display: grid;
  gap: 10px;
  max-width: 980px;
}
.rm-step{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.rm-step span{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--ru-accent), .10);
  border: 1px solid rgba(var(--ru-accent), .20);
  color: rgba(15,23,42,.90);
  font-weight: 950;
}
.rm-step small{
  color: var(--ru-muted);
}

.rolepage-footnote{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #627086;
}

.rolepage-ctaRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* mini faq */
.rolepage-miniFaq{
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-width: 980px;
}
.rolepage-miniFaq details{
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.rolepage-miniFaq summary{
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 14px 48px 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: rgba(15,23,42,.86);
}
.rolepage-miniFaq summary::-webkit-details-marker{
  display: none;
}
.rolepage-miniFaq summary::after{
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
  color: rgba(15,23,42,.65);
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.14);
}
.rolepage-miniFaq details[open] summary::after{
  content: "–";
  background: rgba(var(--ru-accent), .12);
  border-color: rgba(var(--ru-accent), .35);
  color: rgba(15,23,42,.92);
}
.rolepage-miniFaq__body{
  padding: 0 16px 14px;
  color: var(--ru-muted);
  line-height: 1.55;
}

/* reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--ru-dur) var(--ru-ease),
    transform var(--ru-dur) var(--ru-ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in{
  opacity: 1;
  transform: none;
}

/* responsive */
@media (max-width: 920px){
  .rolepage-hero__grid{ grid-template-columns: 1fr; }
  .rm-cards3{ grid-template-columns: 1fr; }
  .rm-compare{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .rm-seg{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 16px;
  }
  .rm-seg__btn{
    border-radius: 12px;
    text-align: left;
  }

  .student-shell__moods{
    grid-template-columns: repeat(5, minmax(0,1fr));
  }
}

@media (max-width: 560px){
  .rp-proof__link{
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rm-pane.is-active{
    animation: none;
  }
  .rm-card:hover{
    transform: none;
  }
}
.rm-bar__logo-full{
  display:block;
  height:64px;
  width:auto;
}
@media (max-width:980px){
  .rm-bar__logo-full{ height:64px; }
}
