/* Self-hosted variable fonts — no network fetch, no fallback-font flash.
   font-display:block never paints fallback metrics; local files load instantly. */
@font-face{
  font-family:'Plus Jakarta Sans';
  font-style:normal;
  font-weight:200 800;
  font-display:block;
  src:url('assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}
@font-face{
  font-family:'Lexend';
  font-style:normal;
  font-weight:100 900;
  font-display:block;
  src:url('assets/fonts/lexend.woff2') format('woff2');
}
@font-face{
  font-family:'Roboto';
  font-style:normal;
  font-weight:100 900;
  font-display:block;
  src:url('assets/fonts/roboto.woff2') format('woff2');
}

:root{
  --tint:#e3eef1;
  --tint-light:#f5fafb;  /* only used by the front page roles section */
  --panel:#accdd3;
  --orange:#ff7700;
  --slate:#546e7a;
  --teal:#006874;
  --teal2:#266470;
  --black:#000000;
  --white:#ffffff;

  --font-head:'Plus Jakarta Sans',system-ui,sans-serif;
  --font-ui:'Lexend',system-ui,sans-serif;
  --font-body:'Roboto',system-ui,sans-serif;

  --max:1320px;        /* max width for content on wide screens */
  --hero-cap:1760px;   /* cap for the front page hero's edge-bleed layout */
  --pad:24px;

  /* type scale */
  --fs-display:clamp(2.3rem,4.6vw,4rem);   /* front page hero */
  --fs-h1:clamp(1.9rem,3.5vw,3.1rem);      /* subpage heroes */
  --fs-h2:clamp(1.8rem,3.2vw,2.6rem);      /* major section headings */
  --fs-h2-sm:clamp(1.6rem,2.6vw,2.1rem);   /* supporting section headings */
  --fs-h3:1.4rem;                          /* card & block titles */
  --fs-h3-sm:1.05rem;                      /* compact card titles */

  --sec-pad:120px;     /* vertical padding of full-width sections */
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  color:var(--slate);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--font-head);color:var(--black);line-height:1.12}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}

.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad);width:100%}

.eyebrow{
  font-family:var(--font-ui);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.82rem;
}

/* ---------- Buttons & links ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--font-ui);
  font-weight:500;
  font-size:.95rem;
  padding:.7rem 1.6rem;
  border-radius:12px;
  border:1.5px solid transparent;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease,transform .15s ease,box-shadow .2s ease;
}
.btn-primary{background:var(--orange);color:var(--white)}
.btn-primary:hover{background:#e56b00;transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,119,0,.30)}
.btn-outline{background:var(--white);color:var(--orange);border-color:var(--orange)}
.btn-outline:hover{background:var(--orange);color:var(--white)}
.btn-teal{background:var(--teal2);color:var(--white)}
.btn-teal:hover{background:#1c4f59;transform:translateY(-2px);box-shadow:0 8px 20px rgba(38,100,112,.30)}
.btn:focus-visible,a:focus-visible,button:focus-visible{outline:2.5px solid var(--teal);outline-offset:3px}

.text-link{
  font-family:var(--font-ui);
  font-weight:500;
  font-size:.95rem;
  color:var(--teal);
  padding:.7rem .25rem;
  transition:color .2s;
}
.text-link:hover{color:var(--orange)}

/* ---------- Header ---------- */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(10px);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:2rem;height:88px}
.logo{display:flex;align-items:flex-end;gap:.15rem;flex:none}
.logo .mark{width:44px;height:auto}
.logo .wordmark{width:104px;height:auto;transform:translateY(2px)}
.nav-right{display:flex;align-items:center;gap:2.5rem}
/* Every link keeps an identical box; the active page is marked with an
   underline only — no width change between pages, no competing with the CTA pill */
.nav-links{display:flex;align-items:center;gap:.3rem}
.nav-links a{
  font-family:var(--font-ui);
  font-size:.95rem;
  color:var(--teal);
  padding:.5rem 1.15rem;
  transition:color .2s;
}
.nav-links a:hover{color:var(--orange)}
.nav-links a.active{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:6px;
}
.nav-links a.active:hover{color:var(--teal)}
.nav-links-cta{display:none}
/* nav CTA lifts on hover like the cards */
.nav-cta:hover,.nav-links-cta:hover{transform:translateY(-4px)}
/* CSS-only mobile menu: the hidden checkbox drives open/closed state */
.menu-check{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.menu-toggle{display:none;cursor:pointer;padding:10px}
.menu-toggle span{display:block;width:26px;height:2.5px;background:var(--teal);border-radius:2px;margin:5.5px 0;transition:.3s}
.menu-check:focus-visible ~ .menu-toggle{outline:2.5px solid var(--teal);outline-offset:3px}
.menu-check:checked ~ .menu-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.menu-check:checked ~ .menu-toggle span:nth-child(2){opacity:0}
.menu-check:checked ~ .menu-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* ---------- Front page hero ---------- */
.hero{padding:72px 0 110px;background:var(--white)}
.hero-cap{max-width:var(--hero-cap);margin:0 auto}
.hero-grid{
  display:grid;
  grid-template-columns:
    minmax(var(--pad),1fr)
    minmax(0,calc(var(--max)/2 - var(--pad)))
    minmax(0,calc(var(--max)/2 - var(--pad)))
    minmax(var(--pad),1fr);
  align-items:center;
}
.hero-media{
  grid-column:1/3;
  margin-right:56px;
  background:#d9d9d9;
  border-radius:0 28px 28px 0;
  aspect-ratio:16/9.3;
  display:flex;align-items:center;justify-content:center;
}
.hero-media span{font-family:var(--font-head);font-weight:600;font-size:1.35rem;color:var(--black)}
.hero-copy{grid-column:3/4;max-width:620px}
.hero-copy .eyebrow{color:var(--teal);display:block;margin-bottom:1.1rem}
.hero-copy h1{
  font-size:var(--fs-display);
  font-weight:800;
  letter-spacing:-.01em;
  margin-bottom:1.4rem;
}
.hero-copy p{font-size:1.05rem;max-width:60ch;margin-bottom:2rem}
.hero-actions{display:flex;align-items:center;gap:1.6rem;flex-wrap:wrap}

/* on very wide screens the bleed stops at the cap — round the left edge too */
@media (min-width:1800px){
  .hero-media{border-radius:28px}
}

/* ---------- Roles section (front page) ---------- */
.roles{background:var(--tint-light);padding:var(--sec-pad) 0}
.roles .eyebrow{color:var(--orange);display:block;margin-bottom:.9rem}
.roles h2{font-size:var(--fs-h2);font-weight:800;letter-spacing:-.01em;margin-bottom:3rem}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.card{
  background:var(--white);
  border-radius:16px;
  padding:2rem 2rem 1.7rem;
  display:flex;flex-direction:column;
  box-shadow:0 2px 10px rgba(84,110,122,.06);
  transition:transform .2s ease,box-shadow .2s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(84,110,122,.14)}
.card img{width:52px;height:52px;margin-bottom:1.4rem}
.card h3{font-size:var(--fs-h3);font-weight:700;margin-bottom:.5rem}
.card-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.card-row span{font-family:var(--font-ui);font-size:1.02rem;color:#37474f}
.card-row svg{flex:none;transition:transform .2s ease}
.card:hover .card-row svg{transform:translateX(5px)}

/* ---------- Store badges ---------- */
.store-badges{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}
.store-badges a{display:inline-block;border-radius:10px;transition:transform .15s ease,opacity .2s ease}
.store-badges a:hover{transform:translateY(-2px);opacity:.85}
.store-badges img{height:47px;width:auto}

/* ---------- Subpage hero ---------- */
.page-hero{padding:64px 0 90px;text-align:center}
.page-hero h1{
  font-size:var(--fs-h1);
  font-weight:700;
  letter-spacing:-.01em;
  max-width:820px;
  margin:0 auto 1.1rem;
}
.page-hero .lead{max-width:56ch;margin:0 auto 2rem;font-size:1rem}
.hero-figure{
  position:relative;
  max-width:880px;
  margin:64px auto 0;
  padding:0 var(--pad);
}
.hero-figure::before{
  content:"";
  position:absolute;
  left:var(--pad);right:var(--pad);
  top:13%;bottom:8%;
  background:var(--panel);
  border-radius:28px;
}
.hero-figure .phone{
  position:relative;
  width:min(330px,72vw);
  margin:0 auto;
}
.hero-figure--wide .phone{width:min(560px,84vw)}
.hero-perks{
  position:absolute;
  right:clamp(var(--pad),8vw,110px);
  top:52%;
  background:var(--orange);
  border-radius:14px;
  padding:1.15rem 1.5rem;
  display:flex;flex-direction:column;gap:.75rem;
  box-shadow:0 16px 34px rgba(255,119,0,.32);
}
.hero-perks li{display:flex;align-items:center;gap:.55rem}
.hero-perks img{width:21px;height:21px}
.hero-perks span{font-family:var(--font-ui);font-weight:500;font-size:.92rem;color:var(--white);white-space:nowrap}

/* ---------- Subpage hero: video variant ---------- */
.video-figure{
  position:relative;
  max-width:1160px;
  margin:64px auto 0;
  padding:0 var(--pad);
}
.video-figure::before{
  content:"";
  position:absolute;
  left:var(--pad);right:var(--pad);
  top:20%;bottom:0;
  background:var(--panel);
  border-radius:28px;
}
.video-box{
  position:relative;
  width:min(86%,980px);
  margin:0 auto 54px;
  background:#d9d9d9;
  border-radius:22px;
  aspect-ratio:16/8.8;
  display:flex;align-items:center;justify-content:center;
}
.video-box span{font-family:var(--font-head);font-weight:600;font-size:1.35rem;color:var(--black)}

/* ---------- Showcase (laptop + pitch) ---------- */
.showcase{background:var(--tint);padding:var(--sec-pad) 0}
.showcase-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:clamp(2.5rem,6vw,5.5rem);
  align-items:center;
}
.showcase h2{
  color:var(--teal2);
  font-size:var(--fs-h2-sm);
  font-weight:800;
  letter-spacing:-.01em;
  line-height:1.25;
  margin-bottom:1.2rem;
}
.showcase .showcase-text p{margin-bottom:1.6rem}
.checklist{margin-bottom:2rem}
.checklist li{display:flex;align-items:center;gap:.7rem;margin-bottom:.85rem}
.checklist svg{flex:none}
.checklist span{font-family:var(--font-ui);font-size:.95rem;color:#37474f}
.device-duo{position:relative;padding-bottom:9%}
.device-duo .laptop{width:92%}
.device-duo .phone{position:absolute;width:24%;right:2%;bottom:0}

/* ---------- Benefits (Näin Yoccu helpottaa arkeasi) ---------- */
.benefits{padding:var(--sec-pad) 0}
.benefits h2{
  text-align:center;
  font-size:var(--fs-h2);
  font-weight:800;
  margin-bottom:3rem;
}
.benefit-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.6rem;
  max-width:1080px;
  margin:0 auto;
}
.benefit{background:var(--tint-light);border-radius:14px;padding:1.7rem 1.8rem}
.benefit-head{display:flex;align-items:center;gap:.9rem;margin-bottom:.8rem}
.benefit-icon{
  flex:none;
  width:46px;height:46px;
  border-radius:50%;
  background:var(--orange);
  display:flex;align-items:center;justify-content:center;
}
.benefit-icon img{width:24px;height:24px}
.benefit h3{font-size:var(--fs-h3-sm);font-weight:700}
.benefit p{font-size:.92rem}

/* ---------- Pricing ---------- */
.pricing{background:var(--tint);padding:var(--sec-pad) 0}
.pricing h2{
  color:var(--teal2);
  font-size:var(--fs-h2-sm);
  font-weight:800;
  margin-bottom:2.6rem;
}
.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.plan{
  background:var(--white);
  border-radius:16px;
  padding:1.9rem 1.9rem 1.7rem;
  display:flex;flex-direction:column;
}
.plan--featured{background:var(--panel)}
.plan-tier{
  font-family:var(--font-ui);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#37474f;
  margin-bottom:1.1rem;
}
.plan-price{
  font-family:var(--font-head);
  font-weight:800;
  font-size:2rem;
  color:var(--teal2);
  line-height:1.1;
  margin-bottom:.6rem;
}
.plan-price small{font-family:var(--font-body);font-size:.85rem;font-weight:400;color:var(--slate)}
.plan-note{font-size:.85rem;margin-bottom:1.5rem}
.plan-feats{font-family:var(--font-ui);font-size:.8rem;font-weight:500;color:#37474f;margin-bottom:.7rem}
.plan ul{margin-bottom:1.8rem}
.plan li{display:flex;align-items:center;gap:.55rem;margin-bottom:.6rem;font-size:.88rem}
.plan li svg{flex:none}
.plan .btn{margin-top:auto;width:100%}
.btn-outline-teal{background:transparent;color:var(--teal2);border-color:var(--teal2)}
.btn-outline-teal:hover{background:var(--teal2);color:var(--white)}
.plan--featured .btn-outline-teal{background:var(--white);border-color:var(--white)}
.plan--featured .btn-outline-teal:hover{background:var(--teal2);border-color:var(--teal2);color:var(--white)}

/* ---------- Statement band ---------- */
.statement{background:var(--tint);padding:var(--sec-pad) 0;text-align:center}
.statement .eyebrow{color:var(--slate);display:block;margin-bottom:1.2rem}
.statement h2{
  font-size:var(--fs-h2);
  font-weight:800;
  color:var(--teal2);
  letter-spacing:-.01em;
  margin-bottom:1.4rem;
}
.statement p{max-width:58ch;margin:0 auto .9rem}
.statement p.em{color:var(--teal2);font-weight:500;font-family:var(--font-ui);max-width:52ch}

/* ---------- Feature rows ---------- */
.features{padding:var(--sec-pad) 0}
.feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2.5rem,6vw,5.5rem);
  align-items:center;
}
.feature + .feature{margin-top:110px}
.feature h3{font-size:var(--fs-h3);font-weight:700;margin-bottom:1rem}
.feature p + p{margin-top:1rem}
.feature-panel{
  background:var(--panel);
  border-radius:20px;
  padding:2.4rem;
  display:flex;align-items:center;justify-content:center;
  min-height:300px;
}
.feature-panel img{max-height:330px;width:auto;max-width:100%}
.feature.flip .feature-panel{order:-1}

/* ---------- Platforms (Monta projektia) ---------- */
.platforms{background:var(--tint);padding:var(--sec-pad) 0}
.platforms-grid{
  display:grid;
  grid-template-columns:1fr 1.05fr;
  gap:clamp(2.5rem,6vw,5.5rem);
  align-items:center;
}
.platforms h3{color:var(--teal2);font-size:var(--fs-h3);font-weight:700;margin-bottom:.5rem}
.platform-block + .platform-block{margin-top:1.9rem}
.platform-block p + p{margin-top:.8rem}
.platforms-panel{
  background:var(--white);
  border-radius:22px;
  padding:2.6rem;
  display:flex;align-items:center;justify-content:center;
}
.platforms-panel img{max-height:480px;width:auto;max-width:100%}
.platforms--white{background:var(--white)}
.platforms-panel--tint{background:var(--panel);padding:2.4rem;display:block}
.panel-duo{position:relative}
.panel-duo .laptop{width:100%}
.panel-duo .phone{position:absolute;width:26%;right:-8%;bottom:-14%}

/* ---------- Steps (Miten käyttönotto tapahtuu?) ---------- */
.steps{padding:var(--sec-pad) 0;text-align:center}
.steps .eyebrow{color:var(--slate);display:block;margin-bottom:1rem}
.steps h2{
  font-size:var(--fs-h2);
  font-weight:800;
  color:var(--teal2);
  letter-spacing:-.01em;
  margin-bottom:4rem;
}
.steps-row{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:clamp(1.2rem,3.5vw,2.8rem);
  margin-bottom:4rem;
}
.step{
  display:flex;flex-direction:column;align-items:center;
  gap:1.2rem;
  max-width:215px;
}
.step img{width:68px;height:68px}
.step p{font-family:var(--font-ui);font-size:.92rem;color:#37474f;line-height:1.5}
.step-arrow{flex:none;margin-top:26px;color:var(--teal2)}

/* ---------- Contact ---------- */
.contact{background:var(--tint);padding:var(--sec-pad) 0;text-align:center}
.contact h2{
  font-size:var(--fs-h2-sm);
  font-weight:800;
  color:var(--teal2);
  letter-spacing:-.01em;
  margin-bottom:1rem;
}
.contact .contact-lead{max-width:56ch;margin:0 auto 3rem}
.contact form{max-width:760px;margin:0 auto;text-align:left}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem}
.field{margin-bottom:1.3rem}
.field label{
  display:block;
  font-family:var(--font-ui);
  font-size:.82rem;
  font-weight:500;
  color:#37474f;
  margin-bottom:.4rem;
}
.field input,.field textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:.95rem;
  color:#263238;
  background:var(--white);
  border:1px solid var(--panel);
  border-radius:8px;
  padding:.7rem .9rem;
  transition:border-color .2s,box-shadow .2s;
}
.field input::placeholder,.field textarea::placeholder{color:#9bb0b8}
.field input:focus,.field textarea:focus{
  outline:none;
  border-color:var(--teal2);
  box-shadow:0 0 0 3px rgba(38,100,112,.14);
}
.field textarea{min-height:130px;resize:vertical}
.form-submit{text-align:center;margin-top:1.4rem}

/* ---------- Footer ---------- */
footer{background:var(--tint);padding:70px 0 46px}
.footer-grid{
  display:grid;
  grid-template-columns:1fr 1.2fr auto;
  gap:3rem;
  align-items:start;
}
.footer-nav a,.footer-legal a{
  font-family:var(--font-ui);
  font-size:.92rem;
  color:var(--slate);
  transition:color .2s;
}
.footer-nav a:hover,.footer-legal a:hover{color:var(--teal)}
.footer-nav li{margin-bottom:1.15rem}
.footer-legal li{margin-bottom:1.3rem}
.footer-legal a{
  display:inline-flex;align-items:center;gap:.45rem;
  text-decoration:underline;text-underline-offset:3px;
}
.footer-legal img{width:18px;height:18px}
.footer-brand{display:flex;flex-direction:column;align-items:center;gap:1.6rem}
.footer-logo{display:flex;flex-direction:column;align-items:center;gap:.4rem}
.footer-logo .mark{width:52px}
.footer-logo .wordmark{width:110px}
.socials{display:flex;align-items:center;gap:1.4rem}
.socials img{width:30px;height:30px;transition:transform .2s,opacity .2s}
.socials a:hover img{transform:translateY(-2px);opacity:.75}
.copyright{font-size:.85rem}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  :root{--sec-pad:84px}
  .hero{padding:48px 0 72px}
  .hero-grid{grid-template-columns:1fr;row-gap:2.6rem}
  .hero-media{
    grid-column:1/-1;
    margin:0 var(--pad);
    border-radius:20px;
  }
  .hero-copy{grid-column:1/-1;padding:0 var(--pad);max-width:none}
  .card-grid{grid-template-columns:1fr;max-width:560px}

  .feature{grid-template-columns:1fr;gap:2.2rem}
  .feature + .feature{margin-top:72px}
  .feature.flip .feature-panel{order:0}
  .platforms-grid{grid-template-columns:1fr;gap:2.6rem}
  .showcase-grid{grid-template-columns:1fr;gap:2.6rem}
  .benefit-grid{grid-template-columns:1fr}
  .plan-grid{grid-template-columns:1fr;max-width:460px}
  .platforms-panel--tint{margin-bottom:3rem}
}

@media (max-width:900px){
  .nav-right{gap:1.2rem}
  .menu-toggle{display:block;order:1}
  .nav-links{
    position:absolute;top:88px;left:0;right:0;
    flex-direction:column;align-items:flex-start;gap:0;
    background:var(--white);
    border-top:1px solid var(--tint);
    box-shadow:0 18px 30px rgba(84,110,122,.14);
    display:none;
    padding:.6rem 0 1rem;
  }
  .menu-check:checked ~ .nav-links{display:flex}
  .nav-links a{display:block;width:100%;padding:.9rem var(--pad);font-size:1.05rem}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
}

@media (max-width:760px){
  .steps-row{flex-direction:column;align-items:center;gap:1.6rem}
  .step-arrow{margin:0;transform:rotate(90deg)}
}

@media (max-width:560px){
  .nav-cta{display:none}
  .nav-links-cta{display:inline-flex;width:auto;margin:1rem var(--pad) .4rem}
  .footer-grid{grid-template-columns:1fr}
  .hero-copy h1{font-size:clamp(2rem,8.4vw,2.6rem)}

  .hero-perks{
    position:static;
    margin:-26px auto 0;
    width:max-content;
  }
  .hero-figure::before{bottom:22%}
  .form-row{grid-template-columns:1fr}
}
