/* ui.css */

/* =====================================================
   RESET + BODY + CONTAINER
===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body{
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:   background: #ffffff !important;
  padding: 0 0 0 0; 
  line-height: 1.6;
  color:#111827;
}

.container{
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  display: flow-root;


  /* poista yläsaumaan tuleva "kuilu" 
  padding: 0 40px 40px 40px; */

  /* estä varjon katkos headerin alla 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
}

/* Korjaa paksujen otsikoiden ja bold-tekstien ilme desktopilla */

/* Yleinen bold hieman kevyemmäksi */
b, strong {
  font-weight: 600;
}

/* Otsikot kevyemmiksi */
h1, h2, h3 {
  font-weight: 800;
}

/* Halutessa vielä erikseen desktopille hienosäätö */
@media (min-width: 900px) {
  h1, h2, h3 {
    font-weight: 700;
  }

  b, strong {
    font-weight: 500;
  }
}



/* =====================================================
   TYPOGRAFIA
===================================================== */
h1{
  color:#0d4f6e;
  font-size: 2rem;
  margin-bottom: 25px;
  margin-top: 50px;
  line-height: 1.25;
  text-align:center;
}

h2{
  color:#0d4f6e;
  font-size: 1.5rem;
  margin-bottom: 20px;
  margin-top: 40px;
  margin: 32px 0 18px;
  font-weight: 600;
}

h3{
  color:#0d4f6e;
  font-size: 1.25rem;
  margin-bottom: 15px;
  margin-top: 30px;
  margin: 24px 0 12px;
  font-weight: 600;
}

p{
  color:#374151;
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Otsikon jälkeinen ensimmäinen kappale tiiviimmäksi (vähemmän “aukkoa”) */
h2 + p{
  margin-top: 2px;
}

ul{
  margin: 10px 0 16px;
  padding-left: 22px;
  color:#111827;
}
ul li{
  margin: 6px 0;
  line-height:1.6;
}
ul ul{
  margin-top:8px;
}

/* =====================================================
   PANEELI
===================================================== */
.panel{
  border: 2px solid #cce9d2;
  background: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 25px 0;
}

.panel-center{ text-align:center; }

.subhead{
  margin-top: 0;
  color:#111827;
  font-weight:600;
  font-size:1.1rem;
  text-align:center; 
}

/* =====================================================
   CHECKLIST (✔︎ listat)
===================================================== */
.checklist{
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  text-align:left;
}

.checklist li{
  margin: 0 0 14px;
  padding-left: 28px;
  position: relative;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.65;
}

.checklist li::before{
  content: "✔︎";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-size: 1.1rem;
}

/* =====================================================
   LINKIT / PIENITEKSTI
===================================================== */
.muted-small{
  margin-top: 0;
  font-size: 0.85rem;
  color:#64748b;
  text-align:center;
}

.muted-small a{
  color:#64748b;
  text-decoration:none;
  font-weight:400;
}

.muted-small a:hover{
  text-decoration:none;
  color:#64748b;
}

.muted-small-link {
  color:#16a34a;
  text-decoration: underline;
  font-weight:500;
}

.muted-small-link:hover{
  color:#15803d;
  text-decoration: underline;
}



.link-green{
  display:inline-block;
  color:#16a34a;
  text-decoration:none;
  font-weight:600;
  border-bottom:2px solid #16a34a;
  padding-bottom:2px;
  cursor:pointer;
}

.center{ text-align:center; }
.narrow{ max-width: 600px; margin-left:auto; margin-right:auto; }
.text-left{ text-align:left; }
.mt-0{ margin-top:0; }
.mt-8{ margin-top:8px; }
.mt-10{ margin-top:10px; }
.mt-18{ margin-top:18px; }
.mb-10{ margin-bottom:10px; }
.mb-12{ margin-bottom:12px; }
.mb-15{ margin-bottom:15px; }
.mb-18{ margin-bottom:18px; }

/* =====================================================
   BUTTONS
===================================================== */
.btn-row{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:10px 0 16px;
  flex-wrap:wrap;
}

.btn{
  display: flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  background:#fff;
  color:#111827;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor:pointer;
  text-decoration:none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.btn-primary{
  background:#16a34a;
  color:#fff;
  border-color:#16a34a;
}

.btn-primary:hover{ filter: brightness(.97); }

.btn-disabled{
  background:#e5e7eb !important;
  border-color:#d1d5db !important;
  color:#9ca3af !important;
  box-shadow:none !important;
  transform:none !important;
  cursor:default !important;
}

.full-buy-button,
.intro-big-cta{
  padding: 18px 26px;
  font-size: 1.05rem;
  line-height:1.25;
}

/* =====================================================
   SISÄLLYSLUETTELO (TOC) – KUIN KUVASSA
   - Poistaa lukot ja vihreät pallot (jos niitä jää DOMiin)
   - Näyttää "description"-tekstit suoraan listan alla
   - Ei "korttivälejä": listassa vain rivit + jakoviiva
===================================================== */

/* =====================================================
   OHJELMAN RAKENNE – "structure"-tyyli TOC-listalle
   (korvaa aiempi ul.toc / .toc -osio tällä)
===================================================== */

ul.toc{
  list-style: none;
  margin: 0 auto 18px;
  padding: 18px 18px;
  background: #f9fafb;
  border-radius: 12px;
  max-width: 760px;
  border: 1px solid #eef2f7;
}

/* Jokainen rivi */
.toc li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
}

.toc li:last-child{
  border-bottom: none;
}

/* Numeropallo */
.toc .num{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: #e5e7eb;  /* lukitut */
  color: #9ca3af;
  margin-top: 2px;
}

.toc li.is-open .num{
  background: #16a34a;
  color: #ffffff;
}

/* Otsikko */
.toc .title{
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
}


/* Kuvaus */
.toc .desc{
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.toc .desc p{
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Jos kuvaus on tyhjä, älä varaa tilaa */
.toc .desc:empty{
  display: none;
}

/* Mobiili */
@media (max-width: 768px){
  ul.toc{
    padding: 16px 14px;
    max-width: 100%;
  }
  .toc li{
    padding: 12px 0;
  }
}


/* =====================================================
   BLOCKQUOTE
===================================================== */
blockquote{
  margin: 18px 0;
  padding: 12px 16px;
  background: #f9fafb;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  font-size: 1.02rem;
  font-style: italic;
  color: #374151;
  line-height: 1.5;
}

/* =====================================================
   MODAALI
===================================================== */
.hidden{ display:none; }

.locked-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.locked-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,0.55);
}

.locked-modal-content{
  position:relative;
  z-index:1;
  background:#fff;
  border-radius:16px;
  padding:20px 20px 18px;
  max-width:420px;
  width:92%;
  box-shadow:0 18px 45px rgba(15,23,42,0.35);
  text-align:left;
  border:2px solid #e5e7eb;
}

.locked-modal-content h2{
  margin-top:0;
  margin-bottom:10px;
  font-size:1.2rem;
  color:#111827;
}

.locked-modal-content p{
  margin:6px 0 10px;
  font-size:1rem;
  line-height:1.7;
  color:#374151;
}

.locked-modal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.locked-close-btn{
  border:none;
  background:none;
  color:#64748b;
  font-size:0.95rem;
  padding:0;
  text-decoration:underline;
  cursor:pointer;
}

.locked-x{
  position:absolute;
  right:10px;
  top:8px;
  border:none;
  background:none;
  font-size:1.2rem;
  cursor:pointer;
  color:#64748b;
}

.locked-modal.hidden{ display:none !important; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px){
  .container{ padding:24px; }
  h1{ font-size:1.8rem; }
  .btn{ width:100%; }
}


@media (max-width: 768px){
  h2{
    margin: 35px 0 14px;
  }

  p{
    margin-bottom: 16px;
  }

  .checklist{
    margin: 12px 0 16px;
  }

  .checklist li{
    margin: 0 0 12px;
    line-height: 1.65;
  }
}





/* =====================================================
   SHOWRESULTS – LISÄTTÄVÄT OSAT ui.css:ään
   (vain ne selektorit, joita showResults käyttää)
===================================================== */

/* #results on nyt suoraan <body>:n sisällä -> tehdään siitä container-mäinen 
#results{
              
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

*/


#results{
  display:none;     
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}


/* Yleinen “kortti” tulossivun lohkoille (korvaa inline: background/border/radius/padding/max-width) */
.results-card{
  background:#ffffff;
  border:2px solid #e5e7eb;
  border-radius:12px;
  padding:24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin: 20px auto;
}

.results-card.soft-green{
  border-color:#cce9d2;
  background:#f5fff7;
}

.results-card.soft-blue{
  border-color:#cfe8ff;
  background:#f5faff;
}

.results-card.center{
  text-align:center;
}

/* Tulossivun listat (tunnelukkolistat + voimakkuudet) */
#results ul{
  margin: 10px 0 16px;
  padding-left: 22px;
  color:#111827;
}
#results ul li{
  margin: 6px 0;
  line-height:1.6;
}
#results ul ul{
  margin-top:8px;
}

/* Check-ikonilliset listat (kun poistat inline: list-style:none jne) */
#results ul.checklist{
  list-style:none;
  padding-left:0;
}
#results ul.checklist li{
  padding-left:28px;
}

#results > .container.results-root{
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#results details ul li{
  font-size: 1.12rem;
  font-weight: 500;
}

/* =====================================================
   PAYMENT BOX (MobilePay)
===================================================== */
.payment-box-modern{
  max-width: 420px;
  width: 100%;
  margin: 24px auto 10px;
  background:#ffffff;
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  text-align:center;
  border:2px solid #e5e7eb;
}

.payment-header{
  background: linear-gradient(135deg, #5A78FF 0%, #5A78FF 100%);
  color:#ffffff;
  padding: 1.6rem 1rem 1.25rem;
}

.mp-logo{
  height: 112px;
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.payment-title{
  font-size: 1.05rem;
  margin: 0 0 0.35rem 0;
  opacity: 0.95;
  color:#ffffff;
}

.payment-product{
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  color:#ffffff;
}

.price-tag{
  background:#f8fbff;
  padding: 1rem;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
}

.price-amount{
  font-size: 1.6rem;
  font-weight: 700;
  color:#005ea6;
  line-height: 1;
}

.pay-button{
  width: 100%;
  background:#005ea6;
  color:#ffffff;
  border:none;
  padding: 1.25rem;
  cursor:pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.pay-button:hover{
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.pay-button-img{
  height: 45px;
  display:block;
}

/* “Maksu käynnistetty…” -tekstit */
.locked-message{
  margin: 12px auto 0;
  max-width: 520px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-style: italic;
  color:#6b7280;
  text-align:center;
  display:none;
}

.locked-message.offer-active{
  color:#b91c1c;
}

/* Tilisiirto-linkki (showResults käyttää class="bankTransferLink") */
.bankTransferLink{
  display:inline-block;
  margin-top: 10px;
  color:#005ea6;
  text-decoration: underline;
}

/* Ankkurin scroll-margin */
#payment-div{
  scroll-margin-top: 20px;
}

/* =====================================================
   SIGNATURE (Kimmo + kuva)
===================================================== */
.signature{
  display:flex;
  align-items:center;
  gap: 16px;
  margin-top: 22px;
}

.sig-photo{
  width: 168px;
  height: 168px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  background:#ffffff;
  flex-shrink:0;
}

.signature .sig-text{
  line-height: 1.5;
  color:#374151;
  font-size: 0.95rem;
}

@media (max-width: 600px){
  .sig-photo{
    width: 122px;
    height: 122px;
  }
}

/* =====================================================
   BOOK GRID (kirjakannet)
===================================================== */
.book-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  column-gap: 18px;
  row-gap: 26px;
  justify-items:center;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}

.book-grid a{ display:block; }

.book-grid img{
  display:block;
  width: 100%;
  max-width: 230px;
  height:auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transition: transform 0.18s ease;
}

.book-grid img:hover{
  transform: scale(1.02);
}

@media (max-width: 700px){
  .book-grid{
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    column-gap: 14px;
    row-gap: 20px;
    max-width: 100%;
  }
  .book-grid img{ max-width: 180px; }
}

@media (max-width: 460px){
  .book-grid{
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .book-grid img{ max-width: 150px; }
}




footer{
  margin-top: 40px;
  padding-top: 18px;
}

footer p{
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.6;
}

footer{
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 24px;
}



.emphasis-line {
  display: block;
  font-size: 1.06em;
  font-style: italic;
  color: #1f2937;
  margin-top: 16px;
  margin-bottom: 16px;
}



.rule {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 32px auto 24px;
  max-width: 520px;
}


.top-header{
  max-width: 900px;      /* sama kuin .container */
  margin: 0 auto;       /* keskitys kuten container */
  background: #ffffff;
  text-align: center;
  padding: 16px 20px 8px;
}

/* poistaa kuvan alle jäävän "baseline"-raon */
.top-header img{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* varmistaa ettei linkki tuo omaa rakoa */
.top-header a{
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

/* varmistaa saumattoman liitoksen containeriin */
.container{
  margin-top: 0;
  padding-top: 0;
  background: #ffffff;
}

.highlight {
  background: #fef3c7;
  padding: 20px;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  margin: 24px 0;
}


.highlight p {
  margin: 0;
  font-style: italic;
  color: #92400e;
}


@media (max-width: 768px){
  .top-header{
    box-sizing: border-box;
    margin-left: 10px;
    margin-right: 10px;

    margin-top: 20px;   /* lisää ylätilaa (kokeile 12–18px) */

    padding-left: 24px;
    padding-right: 24px;
  }
}