:root{
  --blue:#004a99;
  --blue2:#0b3c78;
  --orange:#ff762f;
  --orange2:#ff5a00;
  --green:#78de20;

  /* Light theme tokens */
  --bg:#f6f9ff;
  --bg2:#ffffff;
  --text:#0b1b2b;
  --muted:rgba(11,27,43,.72);

  --card:#ffffff;
  --stroke:rgba(0,0,0,.10);

  --shadow:0 18px 55px rgba(0,0,0,.12);
  --shadow2:0 14px 40px rgba(0,0,0,.10);

  --radius:18px;
  --radius2:24px;

  --sp-sticky-h: 55px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(255,118,47,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(0,74,153,.16), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 45%, #ffffff 100%);
}

a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.muted{color:var(--muted)}
.small{font-size:.92rem}

/* progress bar */
.sp-progress{
  position:fixed;left:0;top:0;height:4px;width:0%;
  background: linear-gradient(90deg, var(--orange), var(--green));
  z-index:999;
}

/* sticky CTA bar */
.sp-sticky{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.82);
  border-bottom:1px solid rgba(0,0,0,.08);
}
.sp-sticky__inner{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 0;
}
.sp-sticky__left{display:flex;flex-direction:column;gap:2px}
.sp-sticky__right{display:flex;gap:10px;flex-wrap:wrap}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:.55rem;
  padding:12px 16px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  font-weight:800;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-2px)}
.btn-lg{padding:14px 20px;font-size:1.05rem}
.btn-full{width:100%}

.btn-primary{
  background: linear-gradient(180deg, var(--orange), var(--orange2));
  color:#0b1b2b;
  box-shadow: 0 14px 28px rgba(255,118,47,.22);
}
.btn-primary:hover{box-shadow: 0 18px 34px rgba(255,118,47,.30)}

.btn-outline{
  border-color: rgba(0,0,0,.14);
  background: rgba(255,255,255,.70);
  color: var(--text);
}
.btn-ghost{
  border-color: rgba(0,0,0,.12);
  background: transparent;
  color: var(--text);
}

/* badge */
.badge{
  display:inline-flex;align-items:center;gap:8px;
  width:fit-content;
  padding:6px 10px;border-radius:999px;
  background: rgba(0,74,153,.08);
  border:1px solid rgba(0,74,153,.16);
  color: var(--blue2);
  font-weight:900;
}

/* sections */
.section{padding:56px 0;scroll-margin-top:20px;}
.sectionHead{max-width:760px}
.sectionHead h2{margin:0 0 8px;font-size:2rem;letter-spacing:-.01em}
.sectionHead p{margin:0}

/* grids */
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns: 1.15fr .85fr}
.grid-4{grid-template-columns: repeat(4, 1fr)}
@media (max-width: 980px){
  .grid-2{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr 1fr}
}
@media (max-width: 560px){
  .grid-4{grid-template-columns:1fr}
}

/* cards */
.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card.highlight{
  border-color: rgba(255,118,47,.45);
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,118,47,.10) inset;
}
.card h3{margin:0 0 10px;color:var(--blue2)}
.card p{margin:0 0 10px;line-height:1.75}
.card p:last-child{margin-bottom:0}

/* HERO */
.hero{
  padding:54px 0 14px;
  position:relative;
  overflow:hidden;
}
.hero__bg{
  position:absolute;inset:-10%;
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(255,118,47,.22), transparent 60%),
    radial-gradient(900px 450px at 80% 0%, rgba(0,74,153,.18), transparent 55%),
    radial-gradient(900px 450px at 60% 70%, rgba(120,222,32,.12), transparent 55%);
  pointer-events:none;
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
}

.hero__copy h1{
  margin:10px 0 10px;
  font-size:3rem;
  line-height:1.05;
  letter-spacing:-.02em;
  color: var(--blue2);
  text-shadow: 0 10px 30px rgba(0,0,0,.06);
}
@media (max-width: 560px){
  .hero__copy h1{font-size:2.3rem}
}
.hero__lead{
  font-size:1.12rem;
  line-height:1.8;
  color: rgba(11,27,43,.92);
  margin:0 0 14px;
}

.hero__pillbox{display:flex;gap:8px;flex-wrap:wrap;margin: 10px 0 16px}
.pill{
  padding:7px 10px;border-radius:999px;
  font-weight:800;
  font-size:.92rem;
  color: var(--blue2);
}

.hero__cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.hero__note{
  margin:16px 0 0;
  font-weight:900;
  color: rgba(11,27,43,.92);
}

/* Hero card */
.heroCard{padding:18px}
.heroCard__top{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.heroCard__icon{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(255,118,47,.14);
  border:1px solid rgba(255,118,47,.28);
}
.heroCard__title{font-weight:900;font-size:1.12rem;color:var(--text)}
.heroCard__sub{opacity:.85}
.heroCard__cta{margin-top:14px}

.checklist{margin:0;padding-left:18px}
.checklist li{margin:10px 0;line-height:1.65}

/* Cutout section */
.section--cutout{position:relative}
.cutoutBg{
  position:absolute;inset:0;
  background:
    radial-gradient(800px 420px at 10% 30%, rgba(255,118,47,.16), transparent 60%),
    radial-gradient(800px 420px at 90% 30%, rgba(0,74,153,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.01));
  border-top:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
  pointer-events:none;
}

/* Stats */
.statCard{
  background: rgba(255,255,255,.90);
  border:1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding:14px;
  display:flex;gap:10px;align-items:flex-start;
  box-shadow: var(--shadow2);
}
.statCard span{color:var(--orange2);font-weight:900;font-size:1.5rem;line-height:1}
.statCard p{margin:0;line-height:1.55;font-weight:800;color:var(--text)}

/* Accordion */
.accordion{display:grid;gap:10px;margin-top:10px}
.acc__btn{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(0,74,153,.05);
  color:var(--text);
  cursor:pointer;
  text-align:left;
  font-weight:900;
}
.acc__btn:hover{
  border-color: rgba(255,118,47,.55);
  background: rgba(255,118,47,.08);
}
.acc__icon{font-size:1.2rem;font-weight:900;color:var(--orange2)}
.acc__panel{
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow2);
}
.acc__panel p{margin:0 0 10px;line-height:1.75}
.acc__panel p:last-child{margin-bottom:0}

/* Parent benefits */
.numList{margin:0;padding-left:18px}
.numList li{margin:12px 0;line-height:1.75}
.miniGrid{display:grid;gap:10px;grid-template-columns:1fr 1fr;margin-top:10px}
.miniChip{
  padding:10px 12px;border-radius:14px;
  background: rgba(0,74,153,.05);
  border:1px solid rgba(0,74,153,.14);
  font-weight:900;
  text-align:center;
  color: var(--blue2);
}

/* Final */
.section--final{padding-bottom:70px}
.finalCard{
  border-radius: var(--radius2);
  padding:22px;
  background:
    radial-gradient(700px 340px at 10% 10%, rgba(255,118,47,.18), transparent 60%),
    radial-gradient(700px 340px at 90% 10%, rgba(0,74,153,.16), transparent 55%),
    #ffffff;
  border:1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
}
.finalCard h2{margin:0 0 10px;font-size:2rem;color:var(--blue2)}
.finalCard p{margin:0 0 16px;line-height:1.75}
.finalCard__actions{display:flex;gap:12px;flex-wrap:wrap}
.finalCard__fine{margin-top:16px;opacity:.9;font-weight:900}
.finalCard__fine p{margin:0}

/* Footer */
.footer{
  padding:18px 0;
  border-top:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.footer__link{text-decoration:none;font-weight:900;color: var(--blue2)}
.footer__link:hover{color: var(--orange2)}

/* Reveal */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Mobile tweaks */
@media (max-width: 560px){
  .sp-sticky__left{display:none}
  .btn{padding:11px 14px}
  .btn-lg{padding:13px 16px}
}

/* Back to top button */
.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 14px 30px rgba(0,0,0,.16);

  color: var(--blue2);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;
  z-index: 200;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.toTop:hover{
  transform: translateY(6px);
  border-color: rgba(255,118,47,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.toTop.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dlouhá tlačítka na mobilu musí umět zalomit text */
@media (max-width: 560px){
  .btn.btn-full{
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}

.acc__btn > span:first-child{
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ===========================
   FOOTER – mobile fix
   =========================== */

.footer{
  background: #fdfdfd;
}

.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

@media (max-width: 600px){
  .footer__inner{
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }

  .footer__link{
    font-weight: 600;
  }
}

/* ===========================
   BACK BUTTON (top)
   =========================== */

.sp-back-btn{
  position: fixed;
  top: calc(var(--sp-sticky-h) + 10px);
  left: 12px;
  z-index: 1100;

  background: white;
  backdrop-filter: blur(6px);
  color: black;
  text-decoration: none;

  padding: .45rem .7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;

  border: 1px solid rgba(255,255,255,.15);
}

.sp-back-btn:hover{
  background: #ff762f;
  color: #07121f;
}

/* Sticky bar – jistota, že nepřetéká */
.sp-sticky{
  width: 100%;
  left: 0;
  right: 0;
}

/* základ */
.sp-sticky__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

/* levá část může zalamovat */
.sp-sticky__left{
  min-width: 0;
}
.sp-sticky__left strong,
.sp-sticky__left span{
  display: block;
  overflow-wrap: anywhere;
}

/* pravá část – tlačítka vedle sebe */
.sp-sticky__right{
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
}

/* MOBILE: přepnout do sloupce */
@media (max-width: 700px){
  .sp-sticky__inner{
    flex-direction: column;
    align-items: stretch;
  }

  .sp-sticky__left{
    text-align: left;
  }

  .sp-sticky__right{
    width: 100%;
    justify-content: space-between;
  }

  /* tlačítka v sticky: ať jsou kompaktní a nezabijou šířku */
  .sp-sticky .btn{
    width: auto !important;
    white-space: nowrap;
    padding: .55rem .75rem;
    font-size: .9rem;
  }

  /* pokud jsou dvě CTA, je hezké je udělat na půlku */
  .sp-sticky__right .btn{
    flex: 1;
    text-align: center;
  }
}
