@import url('/marketing-base.css');

/* Sellability imagery: preserve each section's existing color as a heavy mask. */
.home-trust{
  background-image:
    linear-gradient(135deg,rgba(11,23,25,.90),rgba(16,53,47,.90)),
    url('/media/Valvonnan-pitaa-olla-turvallista-hiljaista-ja-todennettavaa.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.final-cta{
  background-image:
    linear-gradient(rgba(11,23,25,.84),rgba(11,23,25,.84)),
    url('/media/Katso-mita-sivustosi-jattaa-kertomatta.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Deeper monitoring: keep the original near-white section feel while adding subtle depth. */
.value-section{
  position:relative;
  isolation:isolate;
}
.value-section::before{
  content:"";
  position:absolute;
  inset:0 auto 0 50%;
  width:100vw;
  transform:translateX(-50%);
  z-index:-1;
  background-image:
    linear-gradient(rgba(251,253,253,.90),rgba(251,253,253,.90)),
    url('/media/Syvempi-valvonta.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.value-section .compare{background:rgba(255,255,255,.96);backdrop-filter:blur(2px)}

/* Give the homepage pricing controls and featured-plan ribbon permanent breathing room. */
#pricing .section-head{margin-bottom:24px}
#pricing .billing-toggle-wrap{margin-top:18px;margin-bottom:36px}
#pricing .price.featured{padding-top:38px}
#pricing .price.featured h3{margin-top:0}

/* Keep the content on the normal grid, but let the hero photograph and its
   original pale-green mask span the full viewport width. */
.page-hero.mika-hero{
  background-image:none!important;
  background-color:transparent!important;
  box-shadow:none!important;
  position:relative;
  isolation:isolate;
}
.page-hero.mika-hero::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  z-index:0;
  background-image:
    linear-gradient(rgba(233,243,240,.88),rgba(233,243,240,.88)),
    url('/media/mika-on-myyntivahti-hero.webp');
  background-size:cover;
  background-position:center 48%;
  background-repeat:no-repeat;
}
.page-hero.mika-hero>*{position:relative;z-index:1}

/* Product tour */
.tour-hero{padding-bottom:72px}
.tour-hero .tour-kicker{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.tour-hero .tour-kicker span{padding:7px 10px;border:1px solid #cfe5df;border-radius:999px;background:#f4fbf8;color:#35655d;font-size:12px;font-weight:750}
.tour-main{padding:8px 0 88px}
.tour-intro{max-width:760px;margin-bottom:58px}
.tour-intro h2{font-size:36px;letter-spacing:-.03em;margin:0 0 14px}
.tour-intro p{font-size:17px;line-height:1.7;color:var(--muted)}
.tour-list{display:grid;gap:88px}
.tour-step{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:58px;align-items:center}
.tour-step:nth-child(even){grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)}
.tour-step:nth-child(even) .tour-copy{order:2}
.tour-step:nth-child(even) .tour-shot{order:1}
.tour-copy .tour-number{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e7f7f1;color:var(--green2);font-size:12px;font-weight:900;margin-bottom:15px}
.tour-copy h2{font-size:34px;line-height:1.08;letter-spacing:-.03em;margin:0 0 14px}
.tour-copy p{color:var(--muted);font-size:16px;line-height:1.72;margin:0 0 16px}
.tour-copy ul{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:10px;color:#38565a;font-size:14px}
.tour-copy li::before{content:'✓';color:var(--green);font-weight:900;margin-right:9px}
.tour-shot{min-height:390px;border:1px solid #dce7e5;border-radius:22px;background:linear-gradient(145deg,#f7fbfa,#edf7f4);box-shadow:0 24px 70px rgba(21,62,56,.12);padding:15px;overflow:hidden}
.tour-shot-frame{height:100%;min-height:358px;background:#fff;border:1px solid #dbe6e4;border-radius:14px;overflow:hidden;display:grid;grid-template-rows:34px 1fr}
.tour-shot-bar{display:flex;align-items:center;gap:6px;padding:0 12px;border-bottom:1px solid #e8efed;background:#f9fbfb}
.tour-shot-bar i{width:7px;height:7px;border-radius:50%;background:#c9d6d4}
.tour-placeholder{display:grid;grid-template-columns:150px 1fr;background:#f4f8f7;min-height:320px}
.tour-placeholder-nav{background:#122528;padding:18px 13px;display:grid;align-content:start;gap:9px}
.tour-placeholder-nav span{height:9px;border-radius:8px;background:rgba(255,255,255,.11)}
.tour-placeholder-nav span:first-child{height:18px;background:rgba(126,229,194,.28);margin-bottom:12px}
.tour-placeholder-body{padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.tour-placeholder-body span{min-height:74px;border-radius:11px;background:#fff;border:1px solid #e0eae8;box-shadow:0 6px 20px rgba(21,62,56,.04)}
.tour-placeholder-body span:first-child{grid-column:1/-1;min-height:100px;background:linear-gradient(135deg,#eaf8f3,#fff)}
.tour-shot figcaption{font-size:11px;color:#71878a;margin-top:10px;text-align:center}
.tour-final{margin:94px 0 0;border-radius:24px;padding:42px;background:#0f2f2a;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px}
.tour-final h2{font-size:34px;line-height:1.1;margin:0 0 9px}
.tour-final p{color:#bad0cc;max-width:650px;margin:0;line-height:1.65}

@media(max-width:900px){
  .tour-step,.tour-step:nth-child(even){grid-template-columns:1fr;gap:28px}
  .tour-step:nth-child(even) .tour-copy,.tour-step:nth-child(even) .tour-shot{order:initial}
  .tour-list{gap:66px}
  .tour-final{align-items:flex-start;flex-direction:column}
}
@media(max-width:720px){
  .home-trust{background-position:58% center}
  .final-cta{background-position:center}
  .value-section::before{background-position:58% center}
  .page-hero.mika-hero::before{background-position:58% center}
  #pricing .billing-toggle-wrap{margin-top:14px;margin-bottom:32px}
  #pricing .price.featured{padding-top:40px}
  .tour-hero{padding-bottom:48px}
  .tour-intro h2,.tour-copy h2{font-size:29px}
  .tour-shot{min-height:300px;padding:9px;border-radius:16px}
  .tour-shot-frame{min-height:280px}
  .tour-placeholder{grid-template-columns:85px 1fr;min-height:245px}
  .tour-placeholder-nav{padding:13px 9px}
  .tour-placeholder-body{padding:13px;gap:8px}
  .tour-placeholder-body span{min-height:58px}
  .tour-placeholder-body span:first-child{min-height:74px}
  .tour-final{margin-top:68px;padding:28px}
  .tour-final h2{font-size:29px}
}

/* Full-width homepage Syvempi valvonta band. The content remains aligned to the 1180px site grid. */
#landing .value-section{
  width:100%;
  max-width:none;
  margin:0;
  padding-left:max(20px,calc((100vw - 1180px)/2));
  padding-right:max(20px,calc((100vw - 1180px)/2));
  background-image:
    linear-gradient(rgba(251,253,253,.90),rgba(251,253,253,.90)),
    url('/media/Syvempi-valvonta.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
#landing .value-section::before{content:none!important}
@media(max-width:720px){
  #landing .value-section{padding-left:14px;padding-right:14px;background-position:58% center}
}

/* Homepage differentiation section: keep copy left and the real dashboard visual right. */
#landing .home-faq{
  width:100%;
  max-width:none;
  margin:0;
  min-height:560px;
  padding:72px max(20px,calc((100vw - 1180px)/2));
  background-color:#f7faf9;
  background-image:url('/media/mita-myyntivahti-tekee-erilailla.webp');
  background-size:min(1020px,66vw) auto;
  background-position:right 24px center;
  background-repeat:no-repeat;
  display:flex;
  align-items:center;
}
#landing .home-faq-content{width:min(480px,40vw);position:relative;z-index:1}
#landing .home-faq-content h2{font-size:38px;line-height:1.04;letter-spacing:-.035em;margin:10px 0 24px;color:#10272a;max-width:480px}
#landing .home-faq-accordion{display:grid;gap:10px;max-width:480px}
#landing .home-faq-accordion details{
  border:1px solid rgba(201,219,216,.95);
  border-radius:15px;
  background:rgba(255,255,255,.97);
  box-shadow:0 8px 28px rgba(20,54,50,.06);
  overflow:hidden;
}
#landing .home-faq-accordion summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:58px;
  padding:15px 18px;
  color:#11292c;
  font-size:16px;
  line-height:1.3;
  font-weight:800;
}
#landing .home-faq-accordion summary::-webkit-details-marker{display:none}
#landing .home-faq-accordion summary span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#edf7f4;color:#0f8f73;font-size:20px;font-weight:500;transition:transform .2s ease}
#landing .home-faq-accordion details[open] summary span{transform:rotate(45deg)}
#landing .home-faq-accordion details p{margin:0;padding:0 18px 17px;color:#61777a;font-size:14px;line-height:1.6;max-width:440px}
#landing .home-faq-all{display:inline-flex;margin-top:17px;background:rgba(255,255,255,.96);border-color:#ceddda;color:#173336}

@media(max-width:1050px){
  #landing .home-faq{
    background-size:min(820px,64vw) auto;
    background-position:right 14px center;
  }
  #landing .home-faq-content{width:min(450px,42vw)}
  #landing .home-faq-content h2{font-size:35px;max-width:440px}
  #landing .home-faq-accordion{max-width:450px}
}
@media(max-width:900px){
  #landing .home-faq{
    min-height:520px;
    padding-top:58px;
    padding-bottom:58px;
    background-size:min(700px,62vw) auto;
    background-position:right 6px center;
  }
  #landing .home-faq-content{width:min(410px,44vw)}
  #landing .home-faq-content h2{font-size:32px}
}
@media(max-width:720px){
  #landing .home-faq{
    min-height:auto;
    padding:46px 14px 300px;
    background-size:min(620px,94vw) auto;
    background-position:center bottom 22px;
  }
  #landing .home-faq-content{width:100%;max-width:560px}
  #landing .home-faq-content h2{font-size:30px;max-width:430px}
  #landing .home-faq-accordion{max-width:560px}
  #landing .home-faq-accordion details{background:rgba(255,255,255,.98)}
  #landing .home-faq-all{background:rgba(255,255,255,.98)}
}

/* Compact final trust strip before the footer. Keep it inside the footer box so nothing can be clipped. */
#landing .site-footer{
  position:relative;
  margin-top:0;
  padding-top:212px;
  box-shadow:none;
  background:linear-gradient(to bottom,#f3f8f6 0,#f3f8f6 160px,#0f1d20 160px,#0f1d20 100%);
}
#landing .site-footer .footer-grid{position:relative;overflow:visible}
#landing .site-footer .footer-grid>div{overflow:visible}
#landing .site-footer .footer-grid::before,
#landing .site-footer .footer-grid>div:first-child::before,
#landing .site-footer .footer-grid>div:nth-child(2)::before{
  position:absolute;
  top:-180px;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#e5f4ef;
  color:#0d7f68;
  box-shadow:0 8px 24px rgba(20,72,63,.08);
  font-size:27px;
  line-height:1;
  z-index:5;
}
#landing .site-footer .footer-grid::after,
#landing .site-footer .footer-grid>div:first-child::after,
#landing .site-footer .footer-grid>div:nth-child(2)::after{
  position:absolute;
  top:-178px;
  width:calc(33.333% - 28px);
  min-height:88px;
  padding-left:62px;
  padding-right:26px;
  box-sizing:border-box;
  color:#20383b!important;
  white-space:pre-line;
  font-size:14px;
  line-height:1.5;
  font-weight:650;
  letter-spacing:-.005em;
  z-index:4;
  opacity:1!important;
  visibility:visible!important;
}
#landing .site-footer .footer-grid::before{content:"🔒";left:0}
#landing .site-footer .footer-grid::after{content:"Turvallinen käyttö\A Aktiiviset testit vain varmennetuille sivustoille.";left:0;border-right:1px solid #d8e6e2}
#landing .site-footer .footer-grid>div:first-child::before{content:"🔔";left:33.333%}
#landing .site-footer .footer-grid>div:first-child::after{content:"Vahvistetut hälytykset\A Ongelma varmistetaan ennen kuin siitä ilmoitetaan.";left:33.333%;border-right:1px solid #d8e6e2}
#landing .site-footer .footer-grid>div:nth-child(2)::before{content:"🇫🇮";left:66.666%}
#landing .site-footer .footer-grid>div:nth-child(2)::after{content:"Suomalainen palvelu\A Selkeä hinnoittelu, käyttöönottoapu ja suomenkielinen kokemus.";left:66.666%}

@media(max-width:720px){
  #landing .site-footer{
    padding-top:342px;
    background:linear-gradient(to bottom,#f3f8f6 0,#f3f8f6 300px,#0f1d20 300px,#0f1d20 100%);
  }
  #landing .site-footer .footer-grid::before,
  #landing .site-footer .footer-grid>div:first-child::before,
  #landing .site-footer .footer-grid>div:nth-child(2)::before{
    left:0;
    width:42px;
    height:42px;
    font-size:23px;
  }
  #landing .site-footer .footer-grid::after,
  #landing .site-footer .footer-grid>div:first-child::after,
  #landing .site-footer .footer-grid>div:nth-child(2)::after{
    left:0;
    width:100%;
    min-height:68px;
    padding-left:56px;
    padding-right:0;
    border-right:0;
  }
  #landing .site-footer .footer-grid::before,
  #landing .site-footer .footer-grid::after{top:-310px}
  #landing .site-footer .footer-grid>div:first-child::before,
  #landing .site-footer .footer-grid>div:first-child::after{top:-220px}
  #landing .site-footer .footer-grid>div:nth-child(2)::before,
  #landing .site-footer .footer-grid>div:nth-child(2)::after{top:-130px}
}