/* =====================================================================
   ReflectMe - HOME refinement pass
   Loaded AFTER style.css. Goal: one calm, warm, institutional SaaS
   surface with a single consolidated design system.

   This file deliberately OVERRIDES the older "Final SaaS surface
   cohesion pass" at the end of style.css, which introduced a cool
   blue/purple/green gradient canvas and translucent blur panels.
   ===================================================================== */

:root{
  /* --- Surface (one calm cool blue-grey) --- */
  --rm-canvas: #f3f6fc;            /* cool light blue-grey */
  --rm-canvas-2: #e9eff8;

  /* --- Ink (cool slate) --- */
  --rm-ink: #131a26;
  --rm-ink-soft: #38414f;
  --rm-muted: #586374;
  --rm-faint: #8893a3;

  /* --- Single brand accent (logo blue, no purple) ---
     Variable names kept as --rm-green-* to avoid churn; values are blue. */
  --rm-green: #2563eb;
  --rm-green-strong: #1d4ed8;
  --rm-green-tint: rgba(37,99,235,0.08);
  --rm-green-line: rgba(37,99,235,0.18);
  --rm-ok: #15803d;            /* reserved: 'resolved/done' semantic only */

  /* --- One card/line/shadow/radius system --- */
  --rm-card: #ffffff;
  --rm-line: rgba(17,22,28,0.09);
  --rm-line-soft: rgba(17,22,28,0.06);
  --rm-r-sm: 8px;
  --rm-r: 12px;
  --rm-r-lg: 16px;
  --rm-sh-sm: 0 1px 2px rgba(16,21,28,0.05);
  --rm-sh: 0 1px 2px rgba(16,21,28,0.04), 0 16px 36px -22px rgba(16,21,28,0.22);
  --rm-sh-lg: 0 1px 2px rgba(16,21,28,0.04), 0 30px 60px -34px rgba(16,21,28,0.30);

  /* --- One container width --- */
  --container: 1140px;

  /* --- Vertical rhythm between large modules --- */
  --rm-gap: 132px;
  --rm-gap-md: 96px;
  --rm-gap-sm: 68px;
}

/* ---------------------------------------------------------------
   1) ONE CALM SURFACE
   Replace the cool multi-gradient fixed canvas with a single warm
   off-white and ONE barely-there top light. No fixed attachment.
   --------------------------------------------------------------- */
body,
body.how-page,
body.security-page,
body.faq-page,
body.contact-page,
body.about-page,
body.rm-role{
  background:
    radial-gradient(1200px 640px at 50% -180px, rgba(37,99,235,0.06), transparent 64%),
    var(--rm-canvas) !important;
  background-attachment: scroll !important;
  color: var(--rm-ink);
}
html{ background: var(--rm-canvas) !important; }

main, main#home{ background: transparent !important; }

/* Kill section zebra + hard dividers - sections are modules on one plane */
.section,
.section--soft,
.section:nth-of-type(even),
.trust-block,
.trust-block--soft{
  background: transparent !important;
}
.section + .section::before,
.rm-early-section,
.rm-early-section[id]{
  background: transparent !important;
  border: 0 !important;
}
.section + .section::before{ display: none !important; }

/* ---------------------------------------------------------------
   2) VERTICAL RHYTHM - consistent breathing room between modules
   --------------------------------------------------------------- */
main#home .section{
  padding-top: var(--rm-gap);
  padding-bottom: 0;
}
main#home .hero + .rm-early-section{ padding-top: clamp(72px, 8vw, 116px); }
main#home .rm-early-section{
  padding-top: clamp(72px, 8vw, 112px) !important;
  padding-bottom: 0 !important;
}
main#home #flow{ padding-top: var(--rm-gap) !important; }
main#home .section--benefits{ padding-top: var(--rm-gap) !important; padding-bottom: 0 !important; }
main#home #security{ padding-top: var(--rm-gap); }
main#home #kontakt{ padding-top: var(--rm-gap); padding-bottom: var(--rm-gap); }

@media (max-width: 980px){
  main#home .section{ padding-top: var(--rm-gap-md); }
  main#home .rm-early-section{ padding-top: var(--rm-gap-md) !important; }
  main#home #flow,
  main#home .section--benefits,
  main#home #security,
  main#home #kontakt{ padding-top: var(--rm-gap-md) !important; }
  main#home #kontakt{ padding-bottom: var(--rm-gap-md) !important; }
}
@media (max-width: 600px){
  main#home .section{ padding-top: var(--rm-gap-sm); }
  main#home .rm-early-section{ padding-top: var(--rm-gap-sm) !important; }
  main#home #flow,
  main#home .section--benefits,
  main#home #security,
  main#home #kontakt{ padding-top: var(--rm-gap-sm) !important; }
  main#home #kontakt{ padding-bottom: var(--rm-gap-sm) !important; }
}

/* ---------------------------------------------------------------
   3) HERO - calm premium, single soft light (drop blue/green blobs)
   --------------------------------------------------------------- */
main#home .hero{
  padding-top: 56px;
  padding-bottom: clamp(64px, 7vw, 96px);
}
.hero__bg{
  inset: -60px -10% auto -10% !important;
  height: 520px !important;
  background:
    radial-gradient(900px 470px at 50% -40px, rgba(37,99,235,0.08), transparent 62%) !important;
  filter: none !important;
  opacity: 1 !important;
}
main#home .hero::after{ display: none !important; }

.hero__grid{ gap: clamp(28px, 4vw, 56px); align-items: center; }

main#home h1{
  color: var(--rm-ink);
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 800;
}
/* Single accent: the underline word uses brand green, calmly */
.accent{ color: var(--rm-green-strong) !important; }
.accent--underline{ text-decoration: none; }

html body main#home .hero .lead.lead--mission,
html body .hero .lead.lead--mission{
  color: var(--rm-ink-soft);
  font-weight: 500;
  border-left: 3px solid rgba(37,99,235,0.45) !important;
}

/* Trust row chips under hero - unified calm cards */
.trust__item{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm);
}
html body main#home .trust__dot,
html body .trust__dot{ background: var(--rm-green) !important; box-shadow: 0 0 0 5px var(--rm-green-tint) !important; }
html body main#home .trust__text strong{ color: var(--rm-ink) !important; }
html body main#home .trust__text span{ color: var(--rm-muted) !important; }

/* ---------------------------------------------------------------
   4) SIGNAL DEMO - keep realistic, soften loud colors, unify chrome
   --------------------------------------------------------------- */
.rm-signal-demo{
  border-radius: var(--rm-r-lg) !important;
  border: 1px solid var(--rm-line) !important;
  box-shadow: var(--rm-sh-lg) !important;
  background: var(--rm-card) !important;
}
.rm-signal-demo__url svg{ color: var(--rm-green) !important; }
.rm-signal-demo__status--urgent{ background: #e2483f !important; }   /* calmer than #ff4d45 */

/* Floating proof chips - neutral, not blue/green rainbow */
.rm-signal-float{
  border: 1px solid var(--rm-line) !important;
  box-shadow: var(--rm-sh) !important;
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: saturate(1.1) blur(8px);
}
.rm-signal-float--top span{ background: var(--rm-green-tint) !important; color: var(--rm-green) !important; }
.rm-signal-float--bottom span{ background: var(--rm-green-tint) !important; color: var(--rm-green) !important; }

/* ---------------------------------------------------------------
   5) BUTTONS - flatten gradients to one calm solid green
   --------------------------------------------------------------- */
.btn{ border-radius: var(--rm-r-sm) !important; font-weight: 650; }
.btn--primary{
  background: var(--rm-green) !important;
  box-shadow: 0 1px 2px rgba(37,99,235,0.22), 0 14px 24px -14px rgba(37,99,235,0.55) !important;
}
.btn--primary:hover{ background: var(--rm-green-strong) !important; filter: none !important; }
.btn--ghost{
  background: var(--rm-card) !important;
  border-color: var(--rm-line) !important;
  color: var(--rm-ink) !important;
}
.btn--ghost:hover{ box-shadow: var(--rm-sh-sm) !important; border-color: rgba(17,22,28,0.16) !important; }
.btn--security{
  background: var(--rm-green-tint) !important;
  border: 1px solid var(--rm-green-line) !important;
  color: var(--rm-green-strong) !important;
  box-shadow: none !important;
}
.btn--security:hover{ background: rgba(37,99,235,0.12) !important; }

/* Nav CTA - unify to the same brand green (was teal) */
.rm-bar__cta{
  color: var(--rm-green-strong) !important;
  border-color: var(--rm-green-line) !important;
}
.rm-bar__cta:hover{ border-color: var(--rm-green) !important; background: var(--rm-green-tint) !important; }
.rm-bar::after{ display: none !important; }   /* drop teal/green underbar gradient */
.rm-bar, .rm-bar__inner{ background: #ffffff !important; border-bottom: 1px solid var(--rm-line) !important; }
.rm-bar{ backdrop-filter: none !important; }
.rm-bar__link[aria-current="page"]{
  color: var(--rm-green-strong) !important;
  background: var(--rm-green-tint) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
}
.rm-mobile-nav a[aria-current="page"]{ color: var(--rm-green-strong) !important; font-weight: 700 !important; }

/* ---------------------------------------------------------------
   6) EARLY-SIGNALS - strategic problem, not a billboard
   --------------------------------------------------------------- */
main#home .rm-early-head{
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}
main#home .rm-early-head p{
  color: var(--rm-green-strong);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
main#home .rm-early-head h2{
  color: var(--rm-ink);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  font-weight: 800;
}
main#home .rm-early-grid{ gap: 18px; }
main#home .rm-early-card{
  min-height: 0 !important;
  padding: 24px 22px !important;
  border-radius: var(--rm-r) !important;
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  box-shadow: var(--rm-sh-sm) !important;
  backdrop-filter: none !important;
}
main#home .rm-early-icon{
  width: 40px !important; height: 40px !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
  background: var(--rm-green-tint) !important;
  border: 1px solid var(--rm-green-line) !important;
  color: var(--rm-green) !important;
}
main#home .rm-early-icon svg{ width: 20px !important; height: 20px !important; }
main#home .rm-early-card h3{
  color: var(--rm-ink) !important;
  font-size: 16px !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 8px !important;
}
main#home .rm-early-card p{ color: var(--rm-muted) !important; font-size: 14.5px !important; line-height: 1.6 !important; }
@media (hover:hover){
  main#home .rm-early-card:hover{
    transform: translateY(-2px);
    border-color: var(--rm-green-line) !important;
    box-shadow: var(--rm-sh) !important;
  }
}

/* ---------------------------------------------------------------
   7) FLOW "Jak działa" - equal, calm, premium step cards
   --------------------------------------------------------------- */
main#home #flow .trust-head{
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
main#home #flow .trust-head h2{
  color: var(--rm-ink);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem) !important;
  letter-spacing: -0.03em;
  font-weight: 800;
}
main#home #flow .trust-head .text{ color: var(--rm-muted); margin: 0 auto; max-width: 64ch; }

main#home .safe-flow{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin: 0;
}
main#home .safe-step{
  position: relative;
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  padding: 26px 22px 24px !important;
  backdrop-filter: none !important;
}
main#home .safe-step__num{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--rm-green-tint);
  border: 1px solid var(--rm-green-line);
  color: var(--rm-green-strong);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
main#home .safe-step h3{ color: var(--rm-ink); font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 8px; }
main#home .safe-step p{ color: var(--rm-muted); font-size: 0.95rem; line-height: 1.58; }
@media (hover:hover){
  main#home .safe-step:hover{ transform: translateY(-2px); border-color: var(--rm-green-line) !important; box-shadow: var(--rm-sh) !important; }
}
@media (max-width: 900px){ main#home .safe-flow{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ main#home .safe-flow{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   8) BENEFITS - unified icon treatment (no rainbow, no blob)
   --------------------------------------------------------------- */
main#home .benefits-head{ max-width: 760px; margin: 0 auto 36px; }
main#home .benefits-title{
  color: var(--rm-ink);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}
main#home .benefits{ gap: 18px; align-items: stretch; }
main#home .benefit{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  backdrop-filter: none !important;
  flex: 1 1 240px;
  padding: 24px 22px !important;
}
main#home .benefit::after{ display: none !important; }   /* remove blue blob */
main#home .benefit__icon,
main#home .benefit--student .benefit__icon,
main#home .benefit--teacher .benefit__icon,
main#home .benefit--psych .benefit__icon,
main#home .benefit--school .benefit__icon{
  width: 42px !important; height: 42px !important;
  border-radius: 12px !important;
  background: var(--rm-green-tint) !important;
  border: 1px solid var(--rm-green-line) !important;
  color: var(--rm-green) !important;
}
main#home .benefit__heading h3{ color: var(--rm-ink); font-size: 1.05rem; }
main#home .benefit__list{ color: var(--rm-muted); }
main#home .benefit__list li::before{ background: var(--rm-green-tint) !important; border-color: var(--rm-green-line) !important; }
main#home .benefit__list li::after{ border-color: var(--rm-green) !important; }
@media (hover:hover){
  main#home .benefit:hover{ transform: translateY(-2px); box-shadow: var(--rm-sh) !important; border-color: var(--rm-green-line) !important; }
}

/* ---------------------------------------------------------------
   9) TRUST LAYER (#security) - institutional security cards
   --------------------------------------------------------------- */
main#home #security h2{
  color: var(--rm-ink);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}
main#home #security .text{ color: var(--rm-muted); }
.trust-head--center{ max-width: 720px; margin: 0 auto 40px; text-align: center; }

.trust-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
@media (max-width: 900px){ .trust-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .trust-grid{ grid-template-columns: 1fr; } }

.trust-card{
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-r);
  box-shadow: var(--rm-sh-sm);
  padding: 24px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover:hover){
  .trust-card:hover{ transform: translateY(-2px); box-shadow: var(--rm-sh); border-color: var(--rm-green-line); }
}
.trust-card__icon{
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--rm-green-tint);
  border: 1px solid var(--rm-green-line);
  color: var(--rm-green);
  margin-bottom: 16px;
}
.trust-card__icon svg{ width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h3{ color: var(--rm-ink); font-size: 1.02rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.trust-card p{ color: var(--rm-muted); font-size: 0.94rem; line-height: 1.58; margin: 0; }

/* Responsibility note - calm full-width institutional banner */
.trust-note{
  margin-top: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--rm-r);
  border: 1px solid var(--rm-line);
  background: var(--rm-canvas-2);
  box-shadow: none;
}
.trust-note__icon{
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--rm-line);
  color: var(--rm-ink-soft);
}
.trust-note__icon svg{ width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-note p{ margin: 0; color: var(--rm-ink-soft); font-size: 0.97rem; line-height: 1.6; }
.trust-note strong{ color: var(--rm-ink); }

.security-cta{ margin-top: 24px; justify-content: center; }

/* ---------------------------------------------------------------
   10) CONTACT - calm card on the same plane
   --------------------------------------------------------------- */
main#home .contact-card{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh) !important;
  backdrop-filter: none !important;
  padding: 36px 32px !important;
}
main#home .contact-title{ color: var(--rm-ink); font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.03em; font-weight: 800; }
main#home .contact-lead{ color: var(--rm-muted); }
main#home .contact-meta{ color: var(--rm-faint); }

/* ---------------------------------------------------------------
   11) MISC consolidation - callout + checks share the system
   --------------------------------------------------------------- */
html body #security .callout,
html body main#home .callout,
.callout{
  border-radius: var(--rm-r) !important;
  border: 1px solid var(--rm-green-line) !important;
  background: var(--rm-green-tint) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body #security .callout__title,
.callout__title{ color: var(--rm-green-strong) !important; }
html body #security .callout__text,
.callout__text{ color: var(--rm-ink-soft) !important; }
.checks li strong{ color: var(--rm-ink); }
.checks li::before{ background: var(--rm-green-tint) !important; border-color: var(--rm-green-line) !important; }
.checks li::after{ border-color: var(--rm-green) !important; }

h2, h3{ color: var(--rm-ink); }
.text, .muted{ color: var(--rm-muted); }

/* =====================================================================
   13) SUBPAGES - unified to the home system
   Targets: how-page (Jak działa), security-page (Bezpieczeństwo),
            faq-page, contact-page.
   ===================================================================== */

/* --- Generic page hero (FAQ + Kontakt + bezpieczenstwo) --- */
html body .page-hero,
html body .trust-hero,
html body .howa-hero{
  background: transparent !important;
  padding-top: clamp(40px, 5vw, 64px) !important;
  padding-bottom: clamp(28px, 4vw, 48px) !important;
}
html body .page-hero__bg,
html body .trust-hero__bg{ display: none !important; }
html body .page-hero h1,
html body .trust-hero h1,
html body .howa-hero h1,
html body .howa-hero h2{
  color: var(--rm-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
}
html body .lead.lead--hero,
html body .trust-lead{ color: var(--rm-muted) !important; max-width: 64ch; }
html body .page-hero__kicker{
  background: var(--rm-card) !important;
  border-color: var(--rm-line) !important;
  color: var(--rm-ink-soft) !important;
  box-shadow: var(--rm-sh-sm) !important;
}

/* Section heads on subpages */
html body .trust-head h2,
html body .howa-head h2{ color: var(--rm-ink); font-weight: 800; letter-spacing: -0.03em; }
html body .trust-head .text,
html body .howa-head .text{ color: var(--rm-muted); }

/* --- SECURITY (bezpieczenstwo) --- */
.trust-badges{ display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.trust-badge{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: 999px !important;
  color: var(--rm-ink) !important;
  font-weight: 650;
  font-size: 0.93rem;
}
.trust-badge i{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--rm-green) !important;
  box-shadow: 0 0 0 5px var(--rm-green-tint) !important;
}

/* Hide the animated shield - too loud for institutional calm. The hero
   becomes a single-column copy block, full width, larger headline. */
html body.security-page .sec-visual,
html body.security-page .sec-visual.sec-visual--shield-pro{ display: none !important; }
html body.security-page .trust-hero__grid,
html body.security-page section.trust-hero .trust-hero__grid{
  grid-template-columns: 1fr !important;
  max-width: 1100px !important;
  gap: 0 !important;
}
html body.security-page .trust-copy,
html body.security-page section.trust-hero .trust-copy{
  max-width: none !important;
}
html body.security-page .trust-copy h1,
html body.security-page section.trust-hero .trust-copy h1{
  max-width: none !important;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
}
@media (max-width: 600px){
  html body.security-page .trust-copy h1{
    font-size: clamp(1.85rem, 7vw, 2.4rem) !important;
  }
}
html body.security-page .trust-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Safe-flow (Sprawy ważne) used on bezpieczenstwo */
html body.security-page .safe-flow{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
@media (max-width: 900px){ html body.security-page .safe-flow{ grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px){ html body.security-page .safe-flow{ grid-template-columns: 1fr !important; } }
html body .safe-step{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  padding: 22px !important;
  list-style: none;
}
html body .safe-step__num{
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important; height: 38px !important;
  border-radius: 10px !important;
  background: var(--rm-green-tint) !important;
  color: var(--rm-green-strong) !important;
  border: 1px solid var(--rm-green-line) !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  margin-bottom: 14px !important;
  box-shadow: none !important;
}
html body .safe-step h3{ color: var(--rm-ink) !important; font-size: 1rem !important; margin: 0 0 6px !important; }
html body .safe-step p{ color: var(--rm-muted) !important; font-size: 0.94rem !important; line-height: 1.55 !important; margin: 0 !important; }

/* Controls accordion on bezpieczenstwo */
html body.security-page .controls-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 760px){ html body.security-page .controls-grid{ grid-template-columns: 1fr; } }
html body.security-page .control-item{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  align-self: start;
  overflow: hidden;
}
html body.security-page .control-item > summary{
  padding: 18px 60px 18px 22px !important;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
}
html body.security-page .control-item > summary span{ font-weight: 700; color: var(--rm-ink); font-size: 1rem; }
html body.security-page .control-item > summary small{ display: block; color: var(--rm-muted); font-size: 0.88rem; margin-top: 2px; }
html body.security-page .control-item > summary::before,
html body.security-page .control-item > summary::after{ display: none !important; }
html body.security-page .control-item > summary{ position: relative; }
html body.security-page .control-item > summary:after{
  content: "+";
  display: grid !important;
  place-items: center !important;
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--rm-green-tint) !important;
  border: 1px solid var(--rm-green-line);
  color: var(--rm-green-strong);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
html body.security-page .control-item[open] > summary:after{ content: "−"; }
html body.security-page .control-item .control-body{ padding: 0 22px 18px; color: var(--rm-muted); }
html body.security-page .control-item .control-body ul{ padding-left: 18px; margin: 0; }
html body.security-page .control-item .control-body li{ margin: 4px 0; line-height: 1.55; }

.proof-grid,
.docs-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 8px;
}
.docs-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px){
  .proof-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .proof-grid, .docs-grid{ grid-template-columns: 1fr; }
}
.proof-card,
.doc-card{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  backdrop-filter: none !important;
  padding: 24px !important;
}
.proof-card h3,
.doc-card h3{ color: var(--rm-ink); font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.proof-card p,
.doc-card p{ color: var(--rm-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 12px; }
.doc-link{
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--rm-green-strong) !important;
  font-weight: 700;
  text-decoration: none;
}
.doc-link:hover{ text-decoration: underline; }

.trust-cta{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh) !important;
  padding: 28px !important;
  margin-top: 24px;
  text-align: center;
}
.trust-cta h3{ color: var(--rm-ink); margin: 0 0 8px; }
.trust-cta p{ color: var(--rm-muted); margin: 0 0 16px; }

/* --- JAK DZIAŁA --- */
html body .howa-hero-side .trust__item{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
}
html body.how-page .howa-flow{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  gap: 16px !important;
  max-width: none !important;
  margin: 28px 0 0 !important;
  list-style: none !important;
  padding: 0 !important;
}
@media (max-width: 1100px){ html body.how-page .howa-flow{ grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 760px){ html body.how-page .howa-flow{ grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px){ html body.how-page .howa-flow{ grid-template-columns: 1fr !important; } }
html body.how-page .howa-flow__item{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  grid-template-columns: none !important;
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  padding: 22px 20px !important;
  overflow: visible !important;
  list-style: none;
}
/* Kill the timeline radial glow + connector line from the vertical layout */
html body.how-page .howa-flow__item::before,
html body.how-page .howa-flow__item:not(:last-child)::after{ display: none !important; content: none !important; }

html body.how-page .howa-flow__item--safe{
  border-color: var(--rm-green-line) !important;
  background: var(--rm-card) !important;
}
html body.how-page .howa-flow__item h3{
  grid-column: auto !important;
  color: var(--rm-ink) !important;
  font-size: 1.02rem !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  margin: 14px 0 8px !important;
  max-width: none !important;
}
html body.how-page .howa-flow__item p{
  grid-column: auto !important;
  color: var(--rm-muted) !important;
  font-size: 0.93rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  max-width: none !important;
}
html body.how-page .howa-flow__item--safe .howa-flow__num{
  background: var(--rm-green-tint) !important;
  color: var(--rm-green-strong) !important;
  border: 1px solid var(--rm-green-line) !important;
}
html body.how-page .howa-flow__num{
  display: inline-grid !important; place-items: center !important;
  width: 38px !important; height: 38px !important;
  border-radius: 10px !important;
  background: var(--rm-green-tint) !important;
  color: var(--rm-green-strong) !important;
  border: 1px solid var(--rm-green-line) !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Data card */
.howa-split{ align-items: start; }
.howa-data-card{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh) !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
}
.howa-data-row{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid var(--rm-line-soft);
  color: var(--rm-muted);
  font-size: 0.95rem;
}
.howa-data-row strong{ color: var(--rm-ink); font-weight: 700; }
.howa-data-row--head{
  background: var(--rm-canvas);
  color: var(--rm-ink-soft);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-top: 0 !important;
}
.howa-data-row--head span{ color: var(--rm-ink-soft); }
@media (max-width: 560px){
  .howa-data-row{ grid-template-columns: 1fr; gap: 4px; }
}

/* Safe steps */
.howa-safe-split{ align-items: start; gap: 28px; }
.howa-safe-callout{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh-sm) !important;
  background-image: none !important;
  padding: 28px !important;
}
.howa-safe-steps{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px;
}
@media (max-width: 700px){ .howa-safe-steps{ grid-template-columns: 1fr; } }
html body.how-page .howa-safe-head{
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
html body.how-page .howa-safe-head h2{
  color: var(--rm-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 12px !important;
}
html body.how-page .howa-safe-head .text{
  color: var(--rm-muted) !important;
  line-height: 1.6 !important;
  margin: 0 auto !important;
  max-width: 60ch;
}
html body.how-page #safe .howa-safe-steps{
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 960px){ html body.how-page #safe .howa-safe-steps{ grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px){ html body.how-page #safe .howa-safe-steps{ grid-template-columns: 1fr !important; } }
  display: grid !important;
  grid-template-columns: 1fr !important;
  background: var(--rm-canvas) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  padding: 18px !important;
  box-shadow: none !important;
}
html body.how-page .howa-safe-steps article span{
  display: inline-grid !important; place-items: center !important;
  width: 32px !important; height: 32px !important;
  border-radius: 9px !important;
  background: var(--rm-green-tint) !important;
  color: var(--rm-green-strong) !important;
  border: 1px solid var(--rm-green-line) !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  margin-bottom: 10px !important;
}
.howa-safe-steps article h4{ color: var(--rm-ink); margin: 0 0 4px; font-size: 0.98rem; }
.howa-safe-steps article p{ color: var(--rm-muted); margin: 0; font-size: 0.9rem; line-height: 1.55; }

/* Roles mini */
.howa-role-mini-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
}
@media (max-width: 1000px){ .howa-role-mini-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .howa-role-mini-grid{ grid-template-columns: 1fr; } }
.howa-role-mini{
  display: block;
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  padding: 22px !important;
  text-decoration: none !important;
  color: var(--rm-ink) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.howa-role-mini:hover{ transform: translateY(-2px); border-color: var(--rm-green-line) !important; box-shadow: var(--rm-sh) !important; }
html body.how-page .howa-role-mini__icon,
html body.how-page .howa-role-mini--student .howa-role-mini__icon,
html body.how-page .howa-role-mini--teacher .howa-role-mini__icon,
html body.how-page .howa-role-mini--specialist .howa-role-mini__icon,
html body.how-page .howa-role-mini--school .howa-role-mini__icon{
  display: inline-grid !important; place-items: center !important;
  width: 36px !important; height: 36px !important;
  border-radius: 10px !important;
  background: var(--rm-green-tint) !important;
  color: var(--rm-green-strong) !important;
  border: 1px solid var(--rm-green-line) !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  margin-bottom: 12px !important;
}
.howa-role-mini strong{ display: block; color: var(--rm-ink); font-size: 1.0rem; }
.howa-role-mini small{ display: block; margin-top: 6px; color: var(--rm-muted); font-size: 0.9rem; line-height: 1.45; }

/* Implementation stages */
.howa-stage-list{ display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.howa-stage{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  padding: 22px 24px !important;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 640px){ .howa-stage{ grid-template-columns: 1fr; gap: 10px; } }
html body.how-page .howa-stage__tag,
html body.how-page #wdrozenie .howa-stage__tag{
  display: inline-block !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: var(--rm-green-tint) !important;
  color: var(--rm-green-strong) !important;
  border: 1px solid var(--rm-green-line) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-align: center !important;
  box-shadow: none !important;
}
.howa-stage__content h3{ color: var(--rm-ink); font-size: 1.04rem; margin: 0 0 6px; }
.howa-stage__content p{ color: var(--rm-muted); margin: 0; line-height: 1.55; }

/* --- FAQ --- */
.faq-clean__toc{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.faq-clean__toc a{
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  color: var(--rm-ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.faq-clean__toc a:hover{ border-color: var(--rm-green-line); color: var(--rm-green-strong); background: var(--rm-green-tint); }
.faq-clean__stack{ display: grid; gap: 36px; max-width: 880px; margin: 0 auto; }
.faq-clean__group-head{ margin-bottom: 16px; }
.faq-clean__group-head h2{ font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--rm-ink); margin: 0 0 4px; font-weight: 800; letter-spacing: -0.02em; }
.faq-clean__group-head p{ color: var(--rm-muted); margin: 0; font-size: 0.94rem; }
.faq-clean__list{ display: grid; gap: 10px; }
.faq-clean__item{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  backdrop-filter: none !important;
  overflow: hidden;
}
.faq-clean__item h3{ margin: 0; }
.faq-clean__trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--rm-ink);
  font-family: inherit;
  letter-spacing: -0.005em;
}
.faq-clean__trigger:hover{ background: rgba(37,99,235,0.03); }
.faq-clean__icon{
  position: relative;
  width: 24px; height: 24px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--rm-green-tint);
  border: 1px solid var(--rm-green-line);
  transition: background .2s ease;
}
.faq-clean__icon::before,
.faq-clean__icon::after{
  content: "";
  position: absolute;
  background: var(--rm-green-strong);
  top: 50%; left: 50%;
}
.faq-clean__icon::before{ width: 11px; height: 2px; transform: translate(-50%, -50%); border-radius: 1px; }
.faq-clean__icon::after{ width: 2px; height: 11px; transform: translate(-50%, -50%); border-radius: 1px; transition: transform .2s ease; }
.faq-clean__trigger[aria-expanded="true"] .faq-clean__icon::after{ transform: translate(-50%, -50%) scaleY(0); }
.faq-clean__panel{ padding: 0 22px 20px; color: var(--rm-muted); }
.faq-clean__panel p{ margin: 0 0 8px; line-height: 1.62; }

/* --- KONTAKT --- */
html body main > .contact-section{ padding-top: clamp(40px, 5vw, 68px) !important; padding-bottom: clamp(60px, 8vw, 100px) !important; }
.contact-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}
@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info-card,
.contact-form-card{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh) !important;
  padding: 30px !important;
  backdrop-filter: none !important;
}
.contact-info-card h2,
.contact-form-card h2,
.form-head h2{ color: var(--rm-ink); font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
html body ol.contact-steps{ margin: 0 0 18px !important; padding: 0 0 0 20px !important; list-style: disc !important; display: grid !important; gap: 12px !important; }
html body ol.contact-steps li{ color: var(--rm-muted) !important; line-height: 1.55 !important; padding-left: 4px !important; }
html body ol.contact-steps li::marker{ color: var(--rm-green) !important; }
.contact-meta{ color: var(--rm-muted); }
.contact-meta a{ color: var(--rm-green-strong); text-decoration: none; font-weight: 700; }
.contact-meta a:hover{ text-decoration: underline; }
.form-head{ margin-bottom: 18px; }
.form-intro{ color: var(--rm-muted); margin: 0; font-size: 0.95rem; }
.rm-form{
  display: grid;
  gap: 14px 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px){ .rm-form{ grid-template-columns: 1fr; } }
.form-field{ display: grid; gap: 6px; }
.form-field label{ font-weight: 650; color: var(--rm-ink); font-size: 0.92rem; }
.form-field label span{ color: var(--rm-green-strong); }
.form-field label small{ color: var(--rm-faint); font-weight: 400; }
.rm-form input[type=text],
.rm-form input[type=email],
.rm-form input[type=tel],
.rm-form select,
.rm-form textarea{
  width: 100%;
  background: var(--rm-canvas);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-r-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--rm-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.rm-form input:focus,
.rm-form select:focus,
.rm-form textarea:focus{
  outline: 0;
  border-color: var(--rm-green) !important;
  box-shadow: 0 0 0 3px var(--rm-green-tint) !important;
  background: #fff;
}
.rm-form textarea{ min-height: 120px; resize: vertical; }
.field-span-2{ grid-column: 1 / -1; }
.field-error{ color: #b91c1c; font-size: 0.85rem; min-height: 0; margin: 0; }
.field-hint{ color: var(--rm-faint); font-size: 0.85rem; margin: 4px 0 0; }
.form-consent label{ display: flex; align-items: flex-start; gap: 10px; color: var(--rm-muted); font-size: 0.92rem; line-height: 1.5; }
.form-consent input[type=checkbox]{ margin-top: 3px; accent-color: var(--rm-green); }
.form-consent a{ color: var(--rm-green-strong); }
.form-actions{ display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-note{ color: var(--rm-muted); font-size: 0.88rem; margin: 0; }
.form-status{ color: var(--rm-muted); margin: 6px 0 0; }
.hp-wrap{ position: absolute; left: -9999px; }
.contact-section{ padding-top: clamp(40px, 5vw, 60px); }

/* --- Compact footer (subpages use this instead of dark home footer) --- */
html body .footer{
  background: transparent !important;
  border-top: 1px solid var(--rm-line) !important;
  padding: 22px 0 !important;
}
.footer__copy, .footer__meta{ color: var(--rm-muted); }
.footer__links a{ color: var(--rm-muted); }
.footer__links a:hover{ color: var(--rm-ink); border-bottom-color: var(--rm-green-line) !important; }

/* Ensure body display:flex layout doesn't squash subpage main */
body main{ width: 100%; }

/* =====================================================================
   12) SUBTLE ENHANCEMENTS - cohesive with the system, never loud
   ===================================================================== */

/* Shared eyebrow */
.rm-eyebrow{
  color: var(--rm-green-strong);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* --- 12a) Early-signals lead under the centered heading --- */
main#home .rm-early-lead{
  margin: 14px auto 0;
  max-width: 56ch;
  color: var(--rm-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

/* =====================================================================
   14) O REFLECTME (about-page) - unified to the home system
   ===================================================================== */
html body.about-page .about-hero,
html body.about-page .about-section,
html body.about-page .about-section--soft,
html body.about-page .about-section--cta{
  background: transparent !important;
}
html body.about-page .about-hero__bg{ display: none !important; }

html body.about-page .about-hero{ padding-top: clamp(46px, 5.5vw, 72px) !important; padding-bottom: clamp(32px, 4vw, 52px) !important; }
/* Center the About hero (single column) */
html body.about-page .about-hero__inner{ text-align: center; max-width: 880px; margin: 0 auto; }
html body.about-page .about-hero__copy{ max-width: 720px; margin: 0 auto; }
html body.about-page .about-hero__copy .about-eyebrow{ display: block; }
html body.about-page .about-hero__copy .about-lead{ margin-left: auto; margin-right: auto; max-width: 56ch; }
html body.about-page .about-hero__notes{ text-align: left; }
html body.about-page .about-section{ padding-top: var(--rm-gap-md) !important; padding-bottom: var(--rm-gap-md) !important; }
@media (max-width: 760px){
  html body.about-page .about-section{ padding-top: var(--rm-gap-sm) !important; padding-bottom: var(--rm-gap-sm) !important; }
}

/* Eyebrows / labels */
html body.about-page .about-eyebrow,
html body.about-page .about-section-label{
  color: var(--rm-green-strong) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  margin: 0 0 12px !important;
}

/* Headings */
html body.about-page .about-hero h1{
  color: var(--rm-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(2rem, 3.4vw, 3rem) !important;
  line-height: 1.08 !important;
  margin: 0 0 16px !important;
}
html body.about-page h2{ color: var(--rm-ink) !important; font-weight: 800 !important; letter-spacing: -0.025em !important; }
html body.about-page h3{ color: var(--rm-ink) !important; }
html body.about-page .about-lead,
html body.about-page .about-header p,
html body.about-page .about-copy-block p{ color: var(--rm-muted) !important; line-height: 1.62 !important; }
html body.about-page .about-lead{ max-width: 64ch; }

/* Centered header helper */
html body.about-page .about-header--center{ text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 3.5vw, 44px); }
html body.about-page .about-header{ margin-bottom: clamp(24px, 3vw, 40px); }

/* Hero notes (3 mini cards) */
html body.about-page .about-hero__notes{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 16px !important;
  margin-top: clamp(28px, 3.5vw, 44px) !important;
}
@media (max-width: 820px){ html body.about-page .about-hero__notes{ grid-template-columns: 1fr !important; } }
html body.about-page .about-note,
html body.about-page .about-summary-card,
html body.about-page .about-principle-card{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  backdrop-filter: none !important;
  padding: 24px !important;
}
html body.about-page .about-note h2{ font-size: 1.05rem !important; margin: 12px 0 8px !important; letter-spacing: -0.01em !important; }
html body.about-page .about-note p,
html body.about-page .about-summary-card p,
html body.about-page .about-principle-card p{ color: var(--rm-muted) !important; font-size: 0.95rem !important; line-height: 1.6 !important; margin: 0 !important; }
html body.about-page .about-summary-card h3,
html body.about-page .about-principle-card h3{ font-size: 1.05rem !important; margin: 14px 0 8px !important; letter-spacing: -0.01em !important; }

/* Number / letter chips */
html body.about-page .about-note__kicker,
html body.about-page .about-summary-card__index,
html body.about-page .about-principle-card__badge{
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important; height: 38px !important;
  border-radius: 10px !important;
  background: var(--rm-green-tint) !important;
  color: var(--rm-green-strong) !important;
  border: 1px solid var(--rm-green-line) !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
}

/* Grids */
html body.about-page .about-summary-grid{
  display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 18px !important;
}
html body.about-page .about-principles-grid{
  display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 18px !important;
}
@media (max-width: 860px){
  html body.about-page .about-summary-grid,
  html body.about-page .about-principles-grid{ grid-template-columns: 1fr !important; }
}

/* Two-col (why) */
html body.about-page .about-two-col{
  display: grid !important; grid-template-columns: 1.05fr 0.95fr !important; gap: clamp(24px, 3vw, 48px) !important; align-items: start !important;
}
@media (max-width: 860px){ html body.about-page .about-two-col{ grid-template-columns: 1fr !important; } }
html body.about-page .about-copy-block p + p{ margin-top: 14px !important; }

/* Accent panel */
html body.about-page .about-accent-panel{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh) !important;
  background-image: none !important;
  overflow: hidden;
}
html body.about-page .about-accent-panel__inner{ padding: 30px !important; }
html body.about-page .about-accent-panel__label{ color: var(--rm-green-strong) !important; font-weight: 700; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; margin: 0 0 14px; }
html body.about-page .about-accent-panel blockquote{
  margin: 0 0 18px !important;
  color: var(--rm-ink) !important;
  font-size: 1.18rem !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}
html body.about-page .about-accent-list{ list-style: none !important; padding: 0 !important; margin: 0 !important; display: grid; gap: 10px; }
html body.about-page .about-accent-list li{
  position: relative; padding-left: 26px; color: var(--rm-muted) !important; line-height: 1.5;
}
html body.about-page .about-accent-list li::before{
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 3px; background: var(--rm-green) !important;
}

/* Compare cols */
html body.about-page .about-compare{
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 18px !important;
}
@media (max-width: 760px){ html body.about-page .about-compare{ grid-template-columns: 1fr !important; } }
html body.about-page .about-compare__col{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r) !important;
  box-shadow: var(--rm-sh-sm) !important;
  padding: 26px !important;
}
html body.about-page .about-compare__col--positive{ border-color: var(--rm-green-line) !important; }
html body.about-page .about-compare__col h3{ font-size: 1.05rem !important; margin: 0 0 14px !important; }
html body.about-page .about-compare__col ul{ list-style: none !important; padding: 0 !important; margin: 0 !important; display: grid; gap: 11px; }
html body.about-page .about-compare__col li{ position: relative; padding-left: 26px; color: var(--rm-muted) !important; line-height: 1.5; }
html body.about-page .about-compare__col--positive li::before{
  content: ""; position: absolute; left: 0; top: 7px;
  width: 11px; height: 7px; border-left: 2px solid var(--rm-green); border-bottom: 2px solid var(--rm-green);
  transform: rotate(-45deg);
}
html body.about-page .about-compare__col--neutral li::before{
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 11px; height: 2px; background: var(--rm-faint); border-radius: 1px;
}

/* Founder */
html body.about-page .about-founder-card{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh) !important;
  padding: clamp(24px, 3vw, 40px) !important;
}
html body.about-page .about-founder{
  display: grid !important; grid-template-columns: 200px 1fr !important; gap: clamp(24px, 3vw, 44px) !important; align-items: start !important;
}
@media (max-width: 680px){ html body.about-page .about-founder{ grid-template-columns: 1fr !important; } }
html body.about-page .about-founder__media{ background: none !important; }
html body.about-page .about-founder__monogram{
  display: grid; place-items: center;
  width: 130px; height: 130px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--rm-green) 0%, var(--rm-green-strong) 100%);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px -14px rgba(37,99,235,0.55);
}
html body.about-page .about-founder__content p{ color: var(--rm-muted) !important; line-height: 1.62 !important; margin: 0 0 12px !important; }
html body.about-page .about-founder__meta{ display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
html body.about-page .about-founder__meta span{
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  background: var(--rm-green-tint);
  border: 1px solid var(--rm-green-line);
  border-radius: 999px;
  color: var(--rm-green-strong);
  font-size: 0.85rem;
  font-weight: 650;
}

/* CTA card */
html body.about-page .about-cta-card{
  background: var(--rm-card) !important;
  border: 1px solid var(--rm-line) !important;
  border-radius: var(--rm-r-lg) !important;
  box-shadow: var(--rm-sh) !important;
  padding: clamp(28px, 4vw, 48px) !important;
  text-align: center;
}
html body.about-page .about-cta-card p{ color: var(--rm-muted) !important; max-width: 60ch; margin: 0 auto 12px; line-height: 1.6; }
html body.about-page .about-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
html body.about-page .about-actions--center{ justify-content: center; }
/* =====================================================================
   16) CO WYRÓŻNIA REFLECTME - 4 atut cards
   ===================================================================== */
.rm-edge-section{
  padding-top: var(--rm-gap) !important;
  padding-bottom: 0 !important;
}
@media (max-width: 980px){ .rm-edge-section{ padding-top: var(--rm-gap-md) !important; } }
@media (max-width: 600px){ .rm-edge-section{ padding-top: var(--rm-gap-sm) !important; } }
.rm-edge-section .trust-head--center{ max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.rm-edge-section .rm-eyebrow{
  color: var(--rm-green-strong);
  font-weight: 700; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  margin: 0 0 12px;
}
.rm-edge-section h2{ color: var(--rm-ink); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin: 0 0 14px; }
.rm-edge-section > .container > .trust-head--center > .text{ color: var(--rm-muted); line-height: 1.6; }

.rm-edge-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px){ .rm-edge-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px){ .rm-edge-grid{ grid-template-columns: 1fr; gap: 14px; } }

.rm-edge-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-r-lg);
  box-shadow: var(--rm-sh-sm);
  padding: 28px 26px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.rm-edge-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rm-green) 0%, oklch(0.62 0.18 240) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.rm-edge-card:hover{ transform: translateY(-3px); box-shadow: var(--rm-sh); border-color: var(--rm-green-line); }
.rm-edge-card:hover::before{ opacity: 1; }

.rm-edge-card__icon{
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--rm-green-tint);
  border: 1px solid var(--rm-green-line);
  color: var(--rm-green-strong);
  margin-bottom: 20px;
}
.rm-edge-card__icon svg{ width: 24px; height: 24px; }

.rm-edge-card h3{
  color: var(--rm-ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.25;
}
.rm-edge-card__lead{
  color: var(--rm-ink);
  font-weight: 650;
  font-size: 0.96rem;
  line-height: 1.45;
  margin: 0 0 10px;
}
.rm-edge-card > p:last-child{
  color: var(--rm-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* The 4th (security) card carries a touch more weight as a positioning anchor */
.rm-edge-card--accent{
  background: linear-gradient(180deg, var(--rm-card) 0%, oklch(0.985 0.012 230) 100%);
}
.rm-edge-card--accent::before{ opacity: 1; }
.rm-edge-card--accent .rm-edge-card__icon{
  background: var(--rm-green);
  border-color: var(--rm-green);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37,99,235,0.55);
}


/* =====================================================================
   16B) REKOMENDACJE SZKÓŁ - calm institutional testimonial layer
   ===================================================================== */
.rm-recommendations-section{
  padding-top: clamp(88px, 7.2vw, 112px) !important;
  padding-bottom: 0 !important;
}
.rm-recommendations-head{
  max-width: 720px;
  margin: 0 auto clamp(36px, 4.2vw, 52px);
  text-align: center;
}
.rm-recommendations-head .rm-eyebrow{
  color: var(--rm-green-strong);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.rm-recommendations-section h2{
  color: var(--rm-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 14px;
}
.rm-recommendations-section .text{
  color: var(--rm-muted);
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
}
.rm-recommendations-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.rm-recommendation-card{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px 28px 26px;
  border-radius: var(--rm-r-lg);
  border: 1px solid var(--rm-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,1)),
    var(--rm-card);
  box-shadow: var(--rm-sh-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rm-recommendation-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rm-green) 0%, oklch(0.62 0.18 240) 100%);
  opacity: .72;
}
@media (hover:hover){
  .rm-recommendation-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--rm-sh);
    border-color: var(--rm-green-line);
  }
}
.rm-recommendation-card__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.rm-recommendation-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--rm-green-line);
  background: var(--rm-green-tint);
  color: var(--rm-green-strong);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.03em;
}
.rm-recommendation-quote-mark{
  margin-top: -16px;
  color: rgba(37,99,235,0.14);
  font-size: 68px;
  font-weight: 800;
  line-height: .75;
  letter-spacing: -0.08em;
  user-select: none;
}
.rm-recommendation-card blockquote{
  margin: 0;
  padding: 0;
}
.rm-recommendation-card blockquote p{
  margin: 0;
  color: var(--rm-ink);
  font-size: clamp(.94rem, 1.08vw, 1.01rem);
  font-weight: 610;
  letter-spacing: -0.012em;
  line-height: 1.68;
}
.rm-recommendation-source{
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rm-line-soft);
}
.rm-recommendation-source strong,
.rm-recommendation-source span{
  display: block;
}
.rm-recommendation-source strong{
  color: var(--rm-ink);
  font-size: .96rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.rm-recommendation-source span{
  margin-top: 5px;
  color: var(--rm-muted);
  font-size: .9rem;
  line-height: 1.45;
}
.rm-recommendations-note{
  margin: 18px 0 0;
  text-align: center;
  color: var(--rm-faint);
  font-size: .92rem;
  line-height: 1.5;
}
@media (max-width: 900px){
  .rm-recommendations-section{ padding-top: var(--rm-gap-md) !important; }
  .rm-recommendations-grid{ grid-template-columns: 1fr; gap: 16px; }
  .rm-recommendation-card{ padding: 28px 24px 24px; }
}
@media (max-width: 600px){
  .rm-recommendations-section{ padding-top: var(--rm-gap-sm) !important; }
  .rm-recommendations-head{ margin-bottom: 34px; }
  .rm-recommendation-card{ padding: 26px 20px 22px; }
  .rm-recommendation-card__top{ margin-bottom: 18px; }
  .rm-recommendation-quote-mark{ font-size: 64px; }
  .rm-recommendation-card blockquote p{ font-size: .95rem; line-height: 1.62; }
}

/* =====================================================================
   19) MOBILE - center section titles & leads on small screens
   ===================================================================== */
/* Benefits - shorter cards (1 bullet each now, 220px floor was too tall) */
main#home .benefit{
  min-height: 0 !important;
  padding: 22px 22px 20px !important;
}
main#home .benefit__top{ margin-bottom: 14px !important; }
main#home .benefit__list{ margin: 0 !important; }
main#home .benefit__list li{ line-height: 1.5; }

/* Home hero heading - balanced + nicely centered on mobile */
@media (max-width: 760px){
  main#home .hero__copy h1{
    text-wrap: balance;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 760px){
  main#home .hero__copy,
  main#home .rm-early-head,
  main#home .benefits-head,
  main#home .trust-head,
  main#home .trust-head--center,
  main#home .rm-student-copy,
  body.how-page .howa-hero__copy,
  body.how-page .howa-head,
  body.how-page .howa-safe-head,
  body.security-page .trust-copy,
  body.security-page .trust-head,
  body.about-page .about-hero__copy,
  body.about-page .about-header,
  body.faq-page .page-hero,
  body.contact-page .page-hero{
    text-align: center !important;
  }
  /* keep the centered leads readable + auto-margined */
  main#home .hero__copy .lead,
  main#home .rm-early-head .rm-early-lead,
  main#home .rm-student-copy .text,
  body.how-page .howa-hero__copy .lead,
  body.security-page .trust-copy .trust-lead,
  body.about-page .about-hero__copy .about-lead{
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* lists/steps stay left-aligned for readability even under centered head */
  main#home .rm-student-steps{ text-align: left; }
}
.rm-student-section{
  padding-top: var(--rm-gap) !important;
  padding-bottom: var(--rm-gap) !important;
}
@media (max-width: 980px){ .rm-student-section{ padding-top: var(--rm-gap-md) !important; padding-bottom: var(--rm-gap-md) !important; } }
@media (max-width: 600px){ .rm-student-section{ padding-top: var(--rm-gap-sm) !important; padding-bottom: var(--rm-gap-sm) !important; } }

.rm-student-grid{
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px){
  .rm-student-grid{ grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .rm-student-copy{ text-align: center; max-width: 560px; }
}
.rm-student-copy .rm-eyebrow{
  color: var(--rm-green-strong);
  font-weight: 700; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  margin: 0 0 12px;
}
.rm-student-copy h2{
  color: var(--rm-ink);
  font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  margin: 0 0 14px;
}
.rm-student-copy .text{ color: var(--rm-muted); line-height: 1.62; max-width: 48ch; margin: 0 0 28px; }
@media (max-width: 860px){ .rm-student-copy .text{ margin-inline: auto; } }

.rm-student-steps{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
@media (max-width: 860px){ .rm-student-steps{ text-align: left; max-width: 420px; margin: 0 auto; } }
.rm-student-steps > li{ display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.rm-student-steps span{
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--rm-green-tint);
  color: var(--rm-green-strong);
  border: 1px solid var(--rm-green-line);
  font-weight: 800; font-size: 0.9rem;
}
.rm-student-steps p{ margin: 6px 0 0; color: var(--rm-muted); font-size: 0.96rem; line-height: 1.5; }
.rm-student-steps strong{ color: var(--rm-ink); font-weight: 700; }

/* ----- Phone ----- */
.rm-phone{
  position: relative;
  width: 300px;
  max-width: 78vw;
  background: #0f1722;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(15,23,34,0.55), 0 0 0 1px rgba(15,23,34,0.06);
  justify-self: center;
}
.rm-phone__notch{
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 26px;
  background: #0f1722;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 3;
}
.rm-phone__screen{
  position: relative;
  background: var(--rm-canvas);
  border-radius: 32px;
  overflow: hidden;
}
.rm-phone__statusbar{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 8px;
  font-size: 13px; font-weight: 700; color: var(--rm-ink);
}
.rm-phone__signal{ display: inline-flex; align-items: flex-end; gap: 3px; }
.rm-phone__signal i{ width: 3px; border-radius: 2px; background: var(--rm-ink); }
.rm-phone__signal i:nth-child(1){ height: 6px; }
.rm-phone__signal i:nth-child(2){ height: 9px; }
.rm-phone__signal i:nth-child(3){ height: 12px; }
.rm-phone__app{ padding: 8px 20px 26px; display: flex; flex-direction: column; gap: 16px; }
.rm-phone__appbar{ display: flex; align-items: center; justify-content: space-between; }
.rm-phone__brand{ font-weight: 800; color: var(--rm-green-strong); font-size: 1.05rem; letter-spacing: -0.01em; }
.rm-phone__class{
  font-size: 12px; font-weight: 700; color: var(--rm-muted);
  background: var(--rm-card); border: 1px solid var(--rm-line);
  padding: 5px 10px; border-radius: 999px;
}
.rm-phone__q{ margin: 4px 0 0; font-size: 1.15rem; font-weight: 800; color: var(--rm-ink); letter-spacing: -0.02em; }
.rm-phone__chips{ display: flex; flex-wrap: wrap; gap: 7px; }
.rm-phone__chips span{
  padding: 7px 12px; border-radius: 999px;
  background: var(--rm-card); border: 1px solid var(--rm-line);
  font-size: 12.5px; font-weight: 650; color: var(--rm-muted);
}
.rm-phone__chips span.is-on{
  background: var(--rm-green); border-color: var(--rm-green); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(37,99,235,0.6);
}
.rm-phone__textarea{
  background: var(--rm-card); border: 1px solid var(--rm-line);
  border-radius: 14px; padding: 16px; min-height: 84px;
  display: flex; flex-direction: column; gap: 9px;
}
.rm-phone__line{ height: 8px; border-radius: 4px; background: var(--rm-line); }
.rm-phone__line--short{ width: 55%; }
.rm-phone__priv{
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--rm-green-strong);
  line-height: 1.3;
}
.rm-phone__priv svg{ width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rm-phone__send{
  margin-top: 2px;
  background: var(--rm-green); color: #fff;
  text-align: center; font-weight: 700; font-size: 0.98rem;
  padding: 14px; border-radius: 14px;
  box-shadow: 0 10px 24px -10px rgba(37,99,235,0.6);
}
.rm-flow-section .trust-head--center{ text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.rm-flow-section .rm-eyebrow{
  color: var(--rm-green-strong);
  font-weight: 700; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  margin: 0 0 12px;
}
.rm-flow-section h2{ color: var(--rm-ink); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin: 0 0 14px; }
.rm-flow-section .text{ color: var(--rm-muted); line-height: 1.6; }

.rm-flow{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 960px){ .rm-flow{ grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 540px){ .rm-flow{ grid-template-columns: 1fr; gap: 16px; } }

.rm-flow__step{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-r-lg);
  box-shadow: var(--rm-sh-sm);
  padding: 22px 22px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rm-flow__step:hover{ transform: translateY(-3px); box-shadow: var(--rm-sh); border-color: var(--rm-green-line); }

/* head holds the number + the connector line that runs to the next card */
.rm-flow__head{ position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.rm-flow__num{
  position: relative;
  z-index: 2;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--rm-green);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px -8px rgba(37,99,235,0.6);
}
/* connector: dashed line from this number to the next card's number */
.rm-flow__line{
  position: absolute;
  left: 52px;
  top: 50%;
  height: 2px;
  width: calc(100% - 52px + 22px);   /* span the card gap */
  background-image: linear-gradient(90deg, var(--rm-green-line) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
  transform: translateY(-50%);
  z-index: 1;
}
@media (max-width: 960px){
  /* hide horizontal connector where the grid wraps */
  .rm-flow__line{ display: none; }
}

.rm-flow__step h3{
  color: var(--rm-ink);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.rm-flow__step > p{
  color: var(--rm-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

/* preview area sits at the bottom of every card, equal height */
.rm-flow__preview{ margin-top: auto; }
.rm-mini{
  border: 1px solid var(--rm-line-soft);
  border-radius: var(--rm-r);
  background: var(--rm-canvas);
  padding: 14px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-mini__label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-faint);
}

/* 1 - class code + qr */
.rm-mini--code{ position: relative; }
.rm-mini__code{ display: flex; gap: 7px; }
.rm-mini__code i{
  display: grid; place-items: center;
  width: 30px; height: 36px;
  border-radius: 8px;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  font-style: normal;
  font-weight: 800;
  color: var(--rm-ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.rm-mini__qr{
  position: absolute;
  right: 14px; bottom: 14px;
  width: 38px; height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(var(--rm-ink) 0 0) 0 0/8px 8px no-repeat,
    linear-gradient(var(--rm-ink) 0 0) 100% 0/8px 8px no-repeat,
    linear-gradient(var(--rm-ink) 0 0) 0 100%/8px 8px no-repeat,
    repeating-linear-gradient(90deg, var(--rm-ink) 0 3px, transparent 3px 6px) center/26px 3px no-repeat,
    var(--rm-card);
  border: 1px solid var(--rm-line);
  opacity: 0.8;
}

/* 2 - mini form */
.rm-mini__chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.rm-mini__chips span{
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  font-size: 12px;
  color: var(--rm-muted);
}
.rm-mini__chips span.is-on{
  background: var(--rm-green-tint);
  border-color: var(--rm-green-line);
  color: var(--rm-green-strong);
  font-weight: 650;
}
.rm-mini__field{
  height: 10px;
  border-radius: 5px;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
}
.rm-mini__field--short{ width: 62%; }

/* 3 - routing */
.rm-mini--route{ gap: 8px; }
.rm-mini__route{ display: flex; align-items: center; gap: 8px; }
.rm-mini__route--alt{ padding-left: 58px; }
.rm-mini__node{
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  font-size: 12px;
  font-weight: 650;
  color: var(--rm-muted);
  white-space: nowrap;
}
.rm-mini__node--on{ background: var(--rm-green-tint); border-color: var(--rm-green-line); color: var(--rm-green-strong); }
.rm-mini__node--soft{ border-style: dashed; }
.rm-mini__arrow{
  position: relative;
  width: 22px; height: 2px;
  background: var(--rm-green-line);
  flex: 0 0 auto;
}
.rm-mini__arrow::after{
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 2px solid var(--rm-green-line);
  border-right: 2px solid var(--rm-green-line);
  transform: translateY(-50%) rotate(45deg);
}
.rm-mini__arrow--branch{ width: 16px; transform: rotate(35deg); transform-origin: left center; }

/* 4 - panel rows */
.rm-mini--panel{ gap: 9px; }
.rm-mini__row{ display: flex; align-items: center; gap: 9px; }
.rm-mini__dot{ width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.rm-mini__dot--new{ background: var(--rm-green); }
.rm-mini__dot--prog{ background: oklch(0.72 0.13 70); }
.rm-mini__bar{ flex: 1; height: 9px; border-radius: 5px; background: var(--rm-card); border: 1px solid var(--rm-line); }
.rm-mini__bar--short{ flex: 0 0 56%; }
.rm-mini__status{
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}
.rm-mini__status--new{ background: var(--rm-green-tint); color: var(--rm-green-strong); }
.rm-mini__status--prog{ background: oklch(0.95 0.04 75); color: oklch(0.5 0.12 60); }

/* staggered entrance, gated to active + motion-ok (handled by .reveal already,
   here we add a gentle per-step delay when revealed) */
@media (prefers-reduced-motion: no-preference){
  .rm-flow__step{ opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .rm-flow-section.is-lazy-visible .rm-flow__step,
  .rm-flow-section .rm-flow__step.is-visible{ opacity: 1; transform: none; }
  .rm-flow__step:nth-child(1){ transition-delay: .04s; }
  .rm-flow__step:nth-child(2){ transition-delay: .12s; }
  .rm-flow__step:nth-child(3){ transition-delay: .20s; }
  .rm-flow__step:nth-child(4){ transition-delay: .28s; }
}

/* =====================================================================
   17) PO TYGODNIU PYTAMY (Care) - replaces home flow with one big idea
   ===================================================================== */
.rm-care-section{
  padding-top: clamp(80px, 9vw, 130px) !important;
  padding-bottom: clamp(80px, 9vw, 130px) !important;
  background: transparent !important;
}
.rm-care-head{ max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.rm-care-head .rm-eyebrow{
  color: var(--rm-green-strong);
  font-weight: 700; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  margin: 0 0 12px;
}
.rm-care-head h2{
  color: var(--rm-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 16px;
}
.rm-care-accent{
  color: var(--rm-green-strong);
  white-space: nowrap;
  position: relative;
}
.rm-care-accent::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: var(--rm-green-tint);
  border-radius: 4px;
  z-index: -1;
}
.rm-care-head .text{ color: var(--rm-muted); line-height: 1.62; max-width: 60ch; margin: 0 auto; }

.rm-care-stage{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 960px){
  .rm-care-stage{ grid-template-columns: 1fr; gap: 32px; }
}

.rm-care-phone{
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  box-shadow: var(--rm-sh);
  overflow: hidden;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.rm-care-phone__bar{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--rm-canvas);
  border-bottom: 1px solid var(--rm-line-soft);
}
.rm-care-phone__dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(19,26,38,0.12);
  flex: 0 0 auto;
}
.rm-care-phone__bar em{
  margin-left: 10px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--rm-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.rm-care-phone__body{
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.rm-care-stamp{
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-faint);
  background: var(--rm-canvas);
  border: 1px solid var(--rm-line-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.rm-care-msg{
  background: var(--rm-canvas);
  border: 1px solid var(--rm-line-soft);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
}
.rm-care-msg::before{
  content: "";
  position: absolute;
  top: -7px; left: 28px;
  width: 12px; height: 12px;
  background: var(--rm-canvas);
  border-left: 1px solid var(--rm-line-soft);
  border-top: 1px solid var(--rm-line-soft);
  transform: rotate(45deg);
}
.rm-care-msg__from{
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rm-green-strong);
  letter-spacing: 0.02em;
}
.rm-care-msg__text{
  margin: 0;
  color: var(--rm-ink);
  font-size: 0.96rem;
  line-height: 1.55;
}
.rm-care-answers__label{
  margin: 4px 0 -4px;
  font-size: 0.85rem;
  color: var(--rm-faint);
  font-weight: 600;
}
.rm-care-answers{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rm-care-answer{
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  color: var(--rm-ink);
  font-size: 0.9rem;
  font-weight: 650;
  transition: border-color .2s ease, background .2s ease;
}
.rm-care-answer.is-active{
  background: var(--rm-green);
  border-color: var(--rm-green);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(37,99,235,0.55);
}
.rm-care-answer--ghost{ color: var(--rm-faint); }

.rm-care-aside{
  background: var(--rm-card);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-r-lg);
  box-shadow: var(--rm-sh-sm);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rm-care-aside__label{
  margin: 0;
  font-size: 0.95rem;
  color: var(--rm-muted);
  line-height: 1.5;
}
.rm-care-aside__label strong{ color: var(--rm-ink); font-weight: 700; }
.rm-care-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.rm-care-steps::before{
  content: "";
  position: absolute;
  left: 19px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background-image: linear-gradient(180deg, var(--rm-green-line) 0 6px, transparent 6px 12px);
  background-size: 2px 12px;
}
.rm-care-steps > li{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
.rm-care-step__num{
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--rm-green-tint);
  color: var(--rm-green-strong);
  border: 1px solid var(--rm-green-line);
  font-weight: 800;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.rm-care-steps h4{
  margin: 6px 0 4px;
  color: var(--rm-ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.rm-care-steps p{
  margin: 0;
  color: var(--rm-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.rm-care-aside__foot{
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--rm-line-soft);
  color: var(--rm-green-strong);
  font-size: 0.9rem;
  font-weight: 650;
  font-style: italic;
}

/* =====================================================================
   21) LAZY-LOAD POLISH - fade-up entrance for every section
   ===================================================================== */
@media (prefers-reduced-motion: no-preference){
  main .section,
  main > section,
  body.how-page main > section,
  body.security-page main > section,
  body.faq-page main > section,
  body.contact-page main > section,
  body.about-page main > section{
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.2,.65,.2,1), transform .55s cubic-bezier(.2,.65,.2,1);
    will-change: opacity, transform;
  }
  main .section.is-in-view,
  main > section.is-in-view{
    opacity: 1;
    transform: none;
  }
  /* The hero is always above the fold - show it instantly */
  main .hero,
  main > .hero,
  main > .about-hero,
  main > .trust-hero,
  main > .howa-hero,
  main > .page-hero{
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================================
   20) FINAL OVERRIDES - lighter headings + tighter section rhythm
   ===================================================================== */
:root{
  --rm-gap: 72px;
  --rm-gap-md: 56px;
  --rm-gap-sm: 42px;
}
/* Unified PRIMARY section-title scale - matches "Wdrożenie w kilka dni" feel */
html body h1.hero-title,
html body .hero__copy h1,
html body .rm-early-head h2,
html body .benefits-title,
html body #flow .trust-head h2,
html body main#home #security h2,
html body .rm-edge-section h2,
html body .rm-flow-section h2,
html body .rm-student-copy h2,
html body .rm-care-head h2,
html body .trust-head h2,
html body .trust-head--center h2,
html body .howa-head h2,
html body .howa-hero h1,
html body .howa-hero h2,
html body .howa-safe-head h2,
html body.about-page .about-hero h1,
html body.about-page h2,
html body .page-hero h1,
html body .trust-hero h1{
  font-weight: 700 !important;
  letter-spacing: -0.032em !important;
  line-height: 1.1 !important;
}
/* Primary section titles share one size ramp */
html body .rm-early-head h2,
html body .benefits-title,
html body #flow .trust-head h2,
html body main#home #security h2,
html body .rm-edge-section h2,
html body .rm-flow-section h2,
html body .rm-student-copy h2,
html body .rm-care-head h2,
html body .trust-head h2,
html body .howa-head h2,
html body .howa-safe-head h2,
html body.about-page h2,
html body .page-hero h1,
html body .trust-hero h1{
  font-size: clamp(1.85rem, 2.6vw, 2.55rem) !important;
}
/* Smaller sub-heads only get the lighter weight, not the big size */
html body .faq-clean__group-head h2,
html body .contact-info-card h2,
html body .contact-form-card h2,
html body .form-head h2,
html body .contact-title{
  font-weight: 700 !important;
  letter-spacing: -0.022em !important;
}

/* About hero - centered + sized to the same title ramp */
html body.about-page .about-hero__inner{ text-align: center !important; }
html body.about-page .about-hero__copy{
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  text-align: center !important;
}
html body.about-page .about-hero__copy .about-eyebrow,
html body.about-page .about-hero__copy h1,
html body.about-page .about-hero__copy .about-lead{ text-align: center !important; }
html body.about-page .about-hero h1{
  font-size: clamp(1.9rem, 2.8vw, 2.7rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 18ch;
}
html body.about-page .about-hero__copy .about-lead{
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 54ch;
}
html body.about-page .about-hero__notes{ text-align: left; }

/* Slightly tighten the very large home section padding without breaking rhythm */
main#home #flow,
main#home #security,
main#home .section--benefits,
main#home #kontakt,
.rm-edge-section,
.rm-student-section,
.rm-care-section{
  padding-top: var(--rm-gap) !important;
}
main#home #kontakt{ padding-bottom: var(--rm-gap) !important; }
.rm-care-section{ padding-bottom: var(--rm-gap) !important; }
@media (max-width: 980px){
  main#home #flow,
  main#home #security,
  main#home .section--benefits,
  main#home #kontakt,
  .rm-edge-section,
  .rm-student-section,
  .rm-care-section{ padding-top: var(--rm-gap-md) !important; }
  main#home #kontakt,
  .rm-care-section{ padding-bottom: var(--rm-gap-md) !important; }
}
@media (max-width: 600px){
  main#home #flow,
  main#home #security,
  main#home .section--benefits,
  main#home #kontakt,
  .rm-edge-section,
  .rm-student-section,
  .rm-care-section{ padding-top: var(--rm-gap-sm) !important; }
  main#home #kontakt,
  .rm-care-section{ padding-bottom: var(--rm-gap-sm) !important; }
}

/* =====================================================================
   22) HOME SPACING CORRECTION - section rhythm polish
   Scope: only homepage vertical spacing between selected sections.
   ===================================================================== */

/* Mniejszy odstęp między hero a sekcją "Najważniejsze sygnały łatwo przeoczyć" */
main#home .hero{
  padding-bottom: clamp(42px, 4.2vw, 62px) !important;
}
main#home .hero + #what.rm-early-section{
  padding-top: clamp(32px, 3.2vw, 48px) !important;
}

/* Większy odstęp między kartami "Czym różnimy się od innych" a sekcją bezpieczeństwa */
main#home #security{
  padding-top: clamp(96px, 7.5vw, 118px) !important;
}

@media (max-width: 980px){
  main#home .hero{
    padding-bottom: 44px !important;
  }
  main#home .hero + #what.rm-early-section{
    padding-top: 34px !important;
  }
  main#home #security{
    padding-top: 88px !important;
  }
}

@media (max-width: 600px){
  main#home .hero{
    padding-bottom: 34px !important;
  }
  main#home .hero + #what.rm-early-section{
    padding-top: 28px !important;
  }
  main#home #security{
    padding-top: 68px !important;
  }
}

/* =====================================================================
   HOTFIX - Jak działa: urgent path heading uses the same typography
   as the other main section headings.
   ===================================================================== */
html body.how-page #safe .howa-safe-head h2,
html body.how-page .howa-safe-head h2{
  font-family: inherit !important;
  font-size: clamp(1.85rem, 2.6vw, 2.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.032em !important;
  margin: 0 0 12px !important;
  text-wrap: balance;
}


/* =====================================================================
   HOTFIX - HOME hero demo responsive + calmer important status
   Cel:
   1) demo w hero nie znika na mniejszych ekranach,
   2) tytuł nie centruje się po schowaniu/przełamaniu layoutu,
   3) status sprawy ważnej nie używa czerwonego alarmowego koloru.
   ===================================================================== */

/* Status w demo: nie robimy czerwonego „Pilne” w marketingowym hero. */
html body main#home .rm-signal-demo__status--urgent,
html body main#home .rm-signal-demo__status--important{
  background: rgba(37,99,235,0.10) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(37,99,235,0.18) !important;
}

/* ── Tablet 768-1024px: grid 1:1, copy wycentrowane w pionie ── */
@media (min-width: 768px) and (max-width: 1024px){
  html body main#home .hero__grid{
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: clamp(20px, 3vw, 40px) !important;
  }

  html body main#home .hero__copy{
    align-self: center !important;
    text-align: left !important;
  }

  html body main#home .hero__copy h1,
  html body main#home h1{
    font-size: clamp(1.85rem, 3.2vw, 2.6rem) !important;
    text-wrap: balance !important;
    max-width: 14ch !important;
  }

  html body main#home .hero__visual{
    align-self: center !important;
    justify-self: center !important;
    width: 100% !important;
  }
}

/* Hero na tabletach i telefonach: tytuł zostaje wycentrowany jak na podstronach, demo zostaje widoczne. */
@media (max-width: 767.98px){
  html body main#home .hero{
    padding-top: clamp(22px, 5vw, 36px) !important;
    padding-bottom: clamp(42px, 7vw, 64px) !important;
  }

  html body main#home .hero__grid{
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    align-items: center !important;
  }

  html body main#home .hero__copy{
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    justify-self: center !important;
  }

  html body main#home .hero__copy h1,
  html body main#home h1{
    max-width: 16.5ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    text-wrap: balance !important;
  }

  html body main#home .lead,
  html body main#home .lead--mission{
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  html body main#home .cta,
  html body main#home .trust{
    justify-content: center !important;
  }

  html body main#home .hero__visual{
    display: block !important;
    order: 2 !important;
    width: min(100%, 420px) !important;
    margin: 4px auto 0 !important;
    align-self: center !important;
    justify-self: center !important;
  }

  html body main#home .rm-signal-demo{
    display: block !important;
    width: min(100%, 390px) !important;
    margin-inline: auto !important;
    border-radius: 22px !important;
  }

  html body main#home .rm-signal-float{
    display: none !important;
  }
}

/* Węższe telefony: demo robi się kompaktowe zamiast znikać lub ucinać badge. */
@media (max-width: 520px){
  html body main#home .rm-signal-demo__chrome{
    height: 48px !important;
    padding-inline: 14px !important;
  }

  html body main#home .rm-signal-demo__url{
    display: none !important;
  }

  html body main#home .rm-signal-demo__body{
    padding: 16px 12px 14px !important;
  }

  html body main#home .rm-signal-demo__head{
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  html body main#home .rm-signal-demo__head strong{
    font-size: 16px !important;
  }

  html body main#home .rm-signal-demo__head span{
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  html body main#home .rm-signal-demo__list{
    gap: 9px !important;
  }

  html body main#home .rm-signal-demo__row{
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    min-height: 58px !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  html body main#home .rm-signal-demo__icon{
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
  }

  html body main#home .rm-signal-demo__main small{
    font-size: 11px !important;
  }

  html body main#home .rm-signal-demo__main strong{
    font-size: 12.5px !important;
  }

  html body main#home .rm-signal-demo__status{
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
}

/* Bardzo małe ekrany: status schodzi pod tytuł wiersza, zamiast wypychać tekst. */
@media (max-width: 380px){
  html body main#home .rm-signal-demo__row{
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  html body main#home .rm-signal-demo__status{
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: 2px !important;
  }
}

/* =====================================================================
   HOTFIX - HOME student section: phone exactly as the visual reference
   WAŻNE:
   - Kąt telefonu jest w samym pliku PNG: assets/img/reflectme-phone-angled.png.
   - Nie robimy już mocnego rotateY/rotateZ w CSS, bo CSS deformował płaski obraz
     i nigdy nie da 1:1 prawdziwego telefonu z boczną krawędzią.
   - CSS odpowiada tylko za rozmiar, pozycję, cień i wlot z dołu.
   ===================================================================== */
html body main#home .rm-phone-real{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  margin: 0 auto;
  justify-self: center;
  transform-origin: center bottom;
  will-change: transform, opacity;
  overflow: visible;
}

html body main#home .rm-phone-real::before{
  content: "";
  position: absolute;
  z-index: 0;
  inset: 4% -14% -8%;
  border-radius: 999px;
  background:
    radial-gradient(closest-side at 50% 52%, rgba(37,99,235,0.075), rgba(37,99,235,0.032) 48%, transparent 74%),
    radial-gradient(closest-side at 52% 92%, rgba(15,23,42,0.18), rgba(15,23,42,0.075) 38%, transparent 72%);
  filter: blur(30px);
  opacity: 0.86;
  pointer-events: none;
}

html body main#home .rm-phone-real img{
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(318px, 22.5vw, 356px);
  max-height: 760px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 34px 54px rgba(15,23,42,0.18));
  transform: none !important;
  transform-origin: center bottom;
}

/* Wlot z dołu. Kąt zostaje w PNG, więc animujemy tylko wrapper. */
html body main#home .rm-phone-real.reveal{
  opacity: 0;
  transform: translate3d(0, 104px, 0) scale(0.985);
  transition:
    opacity 0.72s cubic-bezier(.22,.84,.2,1),
    transform 0.96s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}

html body main#home .rm-phone-real.reveal.is-visible{
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 860px){
  html body main#home .rm-phone-real{
    width: min(100%, 388px);
  }

  html body main#home .rm-phone-real img{
    width: min(76vw, 332px);
    max-height: 720px;
  }
}

@media (max-width: 520px){
  html body main#home .rm-phone-real img{
    width: min(80vw, 292px);
    max-height: 640px;
  }
}

@media (prefers-reduced-motion: reduce){
  html body main#home .rm-phone-real,
  html body main#home .rm-phone-real.reveal,
  html body main#home .rm-phone-real.reveal.is-visible{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* =====================================================================
   HOME hero video preview
   Clean embedded player: poster-first, central play, native controls after start.
   ===================================================================== */
html body main#home .hero__visual--video{
  position: relative !important;
  width: min(100%, 540px) !important;
  justify-self: center !important;
  align-self: center !important;
}

html body main#home .rm-hero-video{
  position: relative;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #f8fbff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  isolation: isolate;
}

html body main#home .rm-hero-video::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,0.00) 52%, rgba(15,23,42,0.16) 100%);
  opacity: 1;
  transition: opacity 180ms ease;
}

html body main#home .rm-hero-video.has-started::before{
  opacity: 0;
}

html body main#home .rm-hero-video__media{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border: 0;
  border-radius: inherit;
  background: #f8fbff;
  cursor: pointer;
}

html body main#home .rm-hero-video.has-started .rm-hero-video__media{
  cursor: default;
}

html body main#home .rm-hero-video__media:focus-visible{
  outline: 3px solid rgba(37,99,235,0.42);
  outline-offset: 4px;
}

html body main#home .rm-hero-video__play{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 48px rgba(15,23,42,0.20), 0 2px 8px rgba(15,23,42,0.08);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

html body main#home .rm-hero-video__play span{
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #2563eb;
  filter: drop-shadow(0 2px 6px rgba(37,99,235,0.22));
}

html body main#home .rm-hero-video__play:hover{
  transform: translate(-50%, -50%) scale(1.045);
  box-shadow: 0 22px 58px rgba(15,23,42,0.24), 0 3px 10px rgba(15,23,42,0.10);
}

html body main#home .rm-hero-video__play:focus-visible{
  outline: 3px solid rgba(37,99,235,0.42);
  outline-offset: 4px;
}

html body main#home .rm-hero-video.has-started .rm-hero-video__play{
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767.98px){
  html body main#home .hero__visual--video{
    display: block !important;
    order: 2 !important;
    width: min(92vw, 420px) !important;
    margin: 4px auto 0 !important;
  }

  html body main#home .rm-hero-video{
    border-radius: 18px;
  }

  html body main#home .rm-hero-video__play{
    width: 60px;
    height: 60px;
  }

  html body main#home .rm-hero-video__play span{
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 18px;
  }
}

@media (max-width: 480px){
  html body main#home .hero__visual--video{
    width: min(88vw, 360px) !important;
  }

  html body main#home .rm-hero-video{
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.12);
  }

  html body main#home .rm-hero-video__play{
    width: 52px;
    height: 52px;
  }

  html body main#home .rm-hero-video__play span{
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 16px;
    margin-left: 4px;
  }
}

@media (prefers-reduced-motion: reduce){
  html body main#home .rm-hero-video,
  html body main#home .rm-hero-video__play,
  html body main#home .rm-hero-video::before{
    transition: none !important;
  }
}

html body main#home .rm-hero-video__caption{
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px auto 0;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #64748b;
  line-height: 1;
}

html body main#home .rm-hero-video__caption svg{
  flex-shrink: 0;
  color: #2563eb;
  opacity: 0.7;
}

/* FINAL FIX 2026-06-23: iPad Safari must not reserve/paint lazy sections incorrectly. */
.lazy-section,
main .lazy-section,
main > section.lazy-section{
  content-visibility: visible !important;
  contain: none !important;
  contain-intrinsic-size: auto !important;
}

main,
main#home,
body.how-page .howa-main,
body.security-page main,
body.faq-page main,
body.contact-page main{
  overflow: visible !important;
}

.rm-saas-footer,
footer.footer,
footer[role="contentinfo"]{
  position: relative !important;
  inset: auto !important;
  flex-shrink: 0 !important;
  width: 100% !important;
}


/* =====================================================================
   REFLECTME SYSTEM LOGIC 2026-07-22
   Homepage narrative and one-school-process section.
   ===================================================================== */

html body main#home .hero__copy{
  max-width: 620px;
}

html body main#home .hero__copy h1{
  max-width: 20ch !important;
  text-wrap: balance;
}

html body main#home .hero .lead.lead--mission{
  max-width: 58ch;
  margin-top: 22px;
  line-height: 1.62;
}

html body main#home .hero__system-line{
  max-width: 56ch;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  color: var(--rm-ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.5;
  box-shadow: var(--rm-sh-sm);
}

html body main#home .rm-school-process{
  padding-top: var(--rm-gap) !important;
}

html body main#home .rm-school-process__head{
  max-width: 760px;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
  text-align: center;
}

html body main#home .rm-school-process__head .rm-eyebrow{
  margin: 0 0 12px;
  color: var(--rm-green-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
}

html body main#home .rm-school-process__head h2{
  margin: 0 0 14px;
  color: var(--rm-ink);
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

html body main#home .rm-school-process__head > p:last-child{
  max-width: 60ch;
  margin: 0 auto;
  color: var(--rm-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

html body main#home .rm-school-process__grid{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

html body main#home .rm-school-process__step{
  position: relative;
  min-height: 246px;
  padding: 24px 20px 22px;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-r-lg);
  background: var(--rm-card);
  box-shadow: var(--rm-sh-sm);
}

html body main#home .rm-school-process__step::after{
  content: "";
  position: absolute;
  top: 38px;
  right: -15px;
  z-index: 2;
  width: 16px;
  height: 1px;
  background: rgba(37,99,235,0.28);
}

html body main#home .rm-school-process__step:last-child::after{
  display: none;
}

html body main#home .rm-school-process__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  background: var(--rm-green-tint);
  color: var(--rm-green-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

html body main#home .rm-school-process__step h3{
  margin: 0 0 10px;
  color: var(--rm-ink);
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.32;
  letter-spacing: -0.012em;
}

html body main#home .rm-school-process__step p{
  margin: 0;
  color: var(--rm-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

html body main#home .rm-school-process__note{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 14px;
  background: rgba(37,99,235,0.055);
}

html body main#home .rm-school-process__note svg{
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--rm-green-strong);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body main#home .rm-school-process__note p{
  margin: 0;
  color: var(--rm-ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.55;
}

html body.how-page .howa-process-note{
  max-width: 760px;
  margin: 24px auto 0;
  padding: 15px 18px;
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 14px;
  background: rgba(37,99,235,0.055);
}

html body.how-page .howa-process-note p{
  margin: 0;
  color: var(--rm-ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 1120px){
  html body main#home .rm-school-process__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html body main#home .rm-school-process__step{
    min-height: 220px;
  }

  html body main#home .rm-school-process__step::after{
    display: none;
  }
}

@media (max-width: 980px){
  html body main#home .rm-school-process{
    padding-top: var(--rm-gap-md) !important;
  }

  html body main#home .hero__copy h1{
    max-width: 21ch !important;
  }
}

@media (max-width: 720px){
  html body main#home .rm-school-process__grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  html body main#home .rm-school-process__step{
    min-height: 0;
    padding: 20px 18px;
  }

  html body main#home .rm-school-process__num{
    margin-bottom: 16px;
  }
}

@media (max-width: 767.98px){
  html body main#home .hero__copy h1{
    max-width: 21ch !important;
  }

  html body main#home .hero .lead.lead--mission,
  html body main#home .hero__system-line{
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 600px){
  html body main#home .rm-school-process{
    padding-top: var(--rm-gap-sm) !important;
  }

  html body main#home .hero__system-line{
    padding: 13px 14px;
    font-size: 0.9rem;
  }
}
