/* 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;
  --panel:#accdd3;
  --orange:#ff7700;
  --slate:#546e7a;
  --slate-dark:#3f5b68;    /* hero perks box */
  --teal:#006874;
  --teal2:#266470;
  --ink:#263238;
  --ink-head:#323232;  /* big centred section headings */
  --line:#d4e2e6;
  --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:1400px;        /* 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(2.1rem,4.4vw,4.2rem);      /* subpage heroes */
  --fs-h2-lg:clamp(2rem,4vw,3.5rem);       /* big centred section headings */
  --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 */

  --r-card:16px;       /* standard card corner */
  --r-card-lg:22px;    /* panels & plan cards */
  --r-pill:999px;      /* buttons, nav pills, accordion rows */
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  color:var(--slate);
  background:var(--tint-light);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--font-head);color:var(--black);line-height:1.15}
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:.75rem 1.8rem;
  border-radius:var(--r-pill);
  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:transparent;color:var(--orange);border-color:var(--orange)}
.btn-outline:hover{background:var(--orange);color:var(--white);transform:translateY(-2px)}
.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,summary: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(245,250,251,.92);   /* page tint, translucent */
  backdrop-filter:saturate(160%) blur(10px);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:2rem;height:104px}
/* The mark sits above the wordmark, as in the brand lockup */
.logo{display:flex;flex-direction:column;align-items:center;gap:.1rem;flex:none}
.logo .mark{width:40px;height:auto}
.logo .wordmark{width:82px;height:auto}
.nav-right{display:flex;align-items:center;gap:1.6rem}
/* Every link keeps an identical box; the active page is marked with a tinted
   pill so it reads as the current section without competing with the CTA */
.nav-links{display:flex;align-items:center;gap:.4rem}
.nav-links a{
  font-family:var(--font-ui);
  font-size:.95rem;
  color:var(--teal);
  padding:.55rem 1.3rem;
  border-radius:var(--r-pill);
  transition:color .2s,background .2s;
}
.nav-links a:hover{color:var(--orange)}
.nav-links a.active{background:var(--tint);color:#37474f;font-weight:500}
.nav-links a.active:hover{color:#37474f}
.nav-links-cta{display:none}
/* nav CTA lifts on hover like the cards */
.nav-cta:hover,.nav-links-cta:hover{transform:translateY(-3px)}
/* 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: header, hero and footer share one viewport ---------- */
body.front{min-height:100vh;display:flex;flex-direction:column}
body.front main{flex:1;display:flex;flex-direction:column;justify-content:center}
.hero{padding:40px 0}
.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;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;
}
.hero-media span{font-family:var(--font-head);font-weight:600;font-size:1.35rem;color:var(--black)}
.play{
  width:72px;height:72px;border-radius:50%;
  background:var(--white);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.play::before{
  content:"";
  margin-left:6px;
  border-style:solid;
  border-width:13px 0 13px 22px;
  border-color:transparent transparent transparent var(--teal2);
}
.hero-copy{grid-column:3/4;max-width:660px}
.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;
  line-height:1.12;
  margin-bottom:1.4rem;
}
.hero-copy p{font-size:1.05rem;max-width:60ch;margin-bottom:1.8rem}
.role-label{
  font-family:var(--font-ui);
  font-weight:400;
  font-size:.98rem;
  color:var(--ink);
  margin-bottom:1rem;
}

/* role picker: contractor is the primary action on desktop, residents on phones */
.hero-actions{display:flex;align-items:center;gap:1.6rem;flex-wrap:wrap}
.hero-act{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--font-ui);font-weight:500;font-size:.95rem;
  padding:.75rem 1.8rem;
  border-radius:var(--r-pill);
  border:1.5px solid transparent;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .15s ease,box-shadow .2s ease;
}
.hero-act--pro{background:var(--orange);color:var(--white)}
.hero-act--pro:hover{background:#e56b00;transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,119,0,.30)}
.hero-act--home,.hero-act--pm{padding:.75rem .25rem;color:var(--teal)}
.hero-act--home:hover,.hero-act--pm:hover{color:var(--orange)}

/* on very wide screens the bleed stops at the cap — round the left edge too */
@media (min-width:1800px){
  .hero-media{border-radius:28px}
}
/* short desktop windows: tighten so the page still fits without scrolling */
@media (min-width:1025px) and (max-height:820px){
  .hero{padding:16px 0}
  .hero-copy h1{font-size:clamp(2rem,3.4vw,3rem);margin-bottom:1rem}
  .hero-copy p{margin-bottom:1.3rem}
  .footer--front{padding:28px 0 24px}
}

/* ---------- 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:56px 0 90px;text-align:center}
.page-hero h1{
  font-size:var(--fs-h1);
  font-weight:600;
  letter-spacing:-.015em;
  line-height:1.18;
  max-width:30ch;
  margin:0 auto 1.6rem;
  text-wrap:balance;          /* even two-line split, as the headlines are drawn */
}
.page-hero .h1--wide{max-width:17.8em}   /* lets "tapahtuu" end line 1 and the dash open line 2 */
.page-hero .lead{
  max-width:62ch;
  margin:0 auto 2.4rem;
  font-family:var(--font-ui);
  font-weight:300;
  font-size:1.1rem;
  line-height:1.6;
}
.hero-actions-center{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}

.hero-figure{
  position:relative;
  max-width:800px;
  margin:64px auto 0;
  padding:0 var(--pad);
}
/* the phone art is cut flush at its bottom edge, so the panel ends exactly there */
.hero-figure::before{
  content:"";
  position:absolute;
  left:var(--pad);right:var(--pad);
  top:17%;bottom:0;
  background:var(--panel);
  border-radius:28px;
}
.hero-figure .phone{
  position:relative;
  width:min(400px,72vw);
  margin:0 auto;
}
.hero-figure--wide .phone{width:min(660px,84vw)}
.hero-figure--wide::before{top:20%}
.hero-perks{
  position:absolute;
  right:-2%;                /* spills past the panel edge, as drawn */
  top:58%;
  background:var(--slate-dark);
  border-radius:14px;
  padding:1.35rem 1.8rem;
  display:flex;flex-direction:column;gap:.9rem;
  box-shadow:0 16px 34px rgba(63,91,104,.30);
}
.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:1.02rem;color:var(--white);white-space:nowrap}

/* ---------- Subpage hero: video variant ---------- */
.video-figure{
  position:relative;
  max-width:1160px;
  margin:56px auto 0;
  padding:0 var(--pad);
}
.video-figure::before{
  content:"";
  position:absolute;
  left:var(--pad);right:var(--pad);
  top:23%;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)}

/* ---------- Placeholder for art that is not drawn yet ---------- */
.placeholder{
  background:repeating-linear-gradient(135deg,#dfe8ea 0 14px,#eef4f5 14px 28px);
  border:2px dashed #9fb9bf;
  border-radius:var(--r-card-lg);
  min-height:280px;
  display:flex;align-items:center;justify-content:center;
  padding:2rem;
  text-align:center;
  font-family:var(--font-ui);
  font-weight:500;
  font-size:.95rem;
  color:#5d7c84;
}

/* ---------- Split section (art + pitch) ---------- */
.split{background:var(--tint);padding:var(--sec-pad) 0}
.split-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2.5rem,6vw,5rem);
  align-items:center;
}
.split h2{
  color:var(--teal);
  font-size:var(--fs-h2);
  font-weight:600;
  letter-spacing:-.01em;
  line-height:1.2;
  margin-bottom:1.6rem;
}
.split-text p{margin-bottom:1.3rem;font-size:1.02rem}
.split .checklist{margin:2.2rem 0}
.split-art{position:relative;padding-bottom:7%}
.split-art .laptop{width:94%}
.split-art .phone{position:absolute;width:25%;right:0;bottom:0}
/* variant: white band, copy in brand teal, art on a tinted panel */
.split--white{background:transparent}   /* follows the page background */
.split-text--teal p{color:var(--teal)}
.split-panel{
  position:relative;
  background:var(--panel);
  border-radius:var(--r-card-lg);
  aspect-ratio:1.1;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.split-panel img{height:78%;width:auto}   /* art carries its own slate slab */
.split .store-badges{justify-content:flex-start;margin-top:2.6rem}

/* Teal outline check rows */
.checklist li{display:flex;align-items:flex-start;gap:.8rem;margin-bottom:1.2rem}
.checklist svg{flex:none;margin-top:.22rem}
.checklist span{font-family:var(--font-ui);font-weight:300;font-size:1rem;color:var(--teal)}

/* ---------- Showcase (laptop + pitch) — front/legacy pages ---------- */
.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}
.device-duo{position:relative;padding-bottom:9%}
.device-duo .laptop{width:92%}
.device-duo .phone{position:absolute;width:24%;right:2%;bottom:0}

/* ---------- Reasons grid (Miksi urakoitsijat valitsevat Yoccun) ---------- */
.reasons{padding:var(--sec-pad) 0}
.reasons h2{
  text-align:center;
  font-size:var(--fs-h2-lg);
  font-weight:500;
  letter-spacing:-.015em;
  color:var(--ink-head);
  margin-bottom:3.2rem;
}
.reasons--tint{background:var(--tint)}
.reasons--tint .reason{background:var(--white)}
.reason-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
.reason{
  background:var(--tint-light);
  border-radius:var(--r-card);
  padding:2.1rem 2.2rem;
  min-height:7.5rem;
  display:flex;align-items:center;gap:1.3rem;
}
.reason svg{flex:none}
.reason p{font-family:var(--font-ui);font-weight:300;font-size:1.05rem;color:var(--ink);line-height:1.5}

/* ---------- Pricing ---------- */
.pricing{background:var(--tint);padding:var(--sec-pad) 0}
.pricing h2{
  color:var(--teal2);
  font-size:var(--fs-h2);
  font-weight:600;
  letter-spacing:-.01em;
  margin-bottom:1rem;
}
.pricing .pricing-lead{max-width:70ch;font-size:1.05rem;margin-bottom:3rem}
.plan-grid{
  display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:2rem;
  padding-top:30px;           /* room for the "Saatavilla" tab */
  align-items:stretch;
}
.plan-card{
  position:relative;
  background:var(--tint-light);
  border:1.5px solid transparent;
  border-radius:var(--r-card-lg);
  padding:2.2rem 2.1rem;
  display:flex;flex-direction:column;
}
.plan-card--featured{background:var(--white);border-color:var(--orange)}
.plan-flag{
  position:absolute;top:-29px;left:-1.5px;
  background:var(--orange);color:var(--white);
  font-family:var(--font-ui);font-weight:500;font-size:.85rem;
  line-height:1;
  padding:.62rem 2.6rem .62rem 1.5rem;
  border-radius:10px 10px 0 0;
  clip-path:polygon(0 0,74% 0,100% 100%,0 100%);
}
.plan-name{
  font-family:var(--font-head);font-weight:600;font-size:1.3rem;
  color:var(--teal2);margin-bottom:1.2rem;
}
.plan-price{
  font-family:var(--font-head);font-weight:700;
  font-size:2.6rem;line-height:1.1;color:var(--teal2);
  white-space:nowrap;
  margin-bottom:.9rem;
  display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;
}
.plan-price small{
  font-family:var(--font-body);font-size:.9rem;font-weight:400;
  color:var(--slate);line-height:1.3;white-space:normal;
}
.plan-price--soon{font-size:2rem;display:block;margin-bottom:1.1rem}
.plan-desc{font-size:.95rem;margin-bottom:1.8rem}
.plan-card--featured .plan-desc{font-size:1rem}
.plan-lines{margin-bottom:1.4rem}
.plan-lines:last-of-type{margin-bottom:2.2rem}
.plan-lines li{
  display:flex;align-items:center;gap:.7rem;
  padding:.85rem 0;
  border-bottom:1px solid var(--line);   /* every group closes with a rule */
  font-family:var(--font-ui);font-weight:300;font-size:.95rem;color:var(--ink);
}
.plan-lines svg{flex:none}
.plan-lines .price{margin-left:auto;white-space:nowrap;color:var(--ink)}
.plan-sub{
  font-family:var(--font-ui);font-weight:500;font-size:.95rem;color:var(--ink);
  margin-bottom:.2rem;
}
.plan-lines--soon li{padding:0;align-items:flex-start;border-bottom:0}
.plan-lines--soon svg{margin-top:.22rem}
.plan-card .btn{align-self:flex-start;margin-top:auto}

.notecard{
  background:var(--white);
  border-radius:var(--r-card-lg);
  padding:2rem 2.2rem;
  margin-top:2rem;
}
.notecard h3{
  font-family:var(--font-ui);font-weight:500;font-size:1.05rem;
  color:var(--ink);margin-bottom:1.2rem;
}
.notecard p{font-family:var(--font-ui);font-weight:300;font-size:.93rem;color:var(--teal2);line-height:1.6}
/* worked example: one cost item per line, amounts in bold */
.notecard .example-title,.notecard .example-lines li,.notecard .example-total{
  font-family:var(--font-ui);font-weight:300;font-size:1rem;color:var(--teal);line-height:1.5;
}
.notecard .example-title{font-weight:600;margin-bottom:.15rem}
.notecard .example-total{margin-top:.5rem;font-size:1.08rem}
.notecard .example-lines b,.notecard .example-total b{font-weight:600}
.fineprint{
  background:var(--white);
  border-radius:var(--r-card-lg);
  padding:1.9rem 2.2rem;
  margin-top:2rem;
  font-family:var(--font-ui);
  font-weight:300;
  font-size:.84rem;
  line-height:1.7;
  color:var(--slate);
}

/* ---------- Flow (Näin se toimii) ---------- */
.flow{padding:var(--sec-pad) 0}
.flow h2{
  text-align:center;
  font-size:var(--fs-h2-lg);
  font-weight:500;
  letter-spacing:-.015em;
  color:var(--ink-head);
  margin-bottom:3.2rem;
}
.flow--tint{background:var(--tint)}
.flow--tint .flow-card{background:var(--tint-light)}
.flow-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
.flow-card{
  background:var(--white);   /* on the page tint; the band variant above uses tint-light */
  border-radius:var(--r-card);
  padding:1.9rem 2rem;
  display:flex;align-items:center;gap:1.4rem;
}
.flow-num{
  flex:none;
  width:46px;height:46px;border-radius:50%;
  background:var(--teal);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-ui);font-weight:600;font-size:.95rem;
}
.flow-card p{font-family:var(--font-ui);font-weight:300;font-size:1rem;color:var(--ink);line-height:1.5}

/* ---------- FAQ ---------- */
.faq{padding:var(--sec-pad) 0}
.faq-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:clamp(2.5rem,6vw,5rem);
  align-items:start;
}
.faq h2{
  font-size:var(--fs-h2-lg);
  font-weight:500;
  letter-spacing:-.015em;
  color:var(--ink-head);
  margin-bottom:.6rem;
}
.faq-sub{
  font-family:var(--font-head);
  font-weight:500;
  font-size:clamp(1.2rem,1.7vw,1.6rem);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#37474f;
  margin-bottom:2.2rem;
}
.faq-list details{
  background:var(--tint);
  border-radius:14px;
  margin-bottom:1.1rem;
  overflow:hidden;              /* app.js animates the height between closed and open */
  transition:background .2s;
}
.faq-list details:hover{background:#d9e7eb}
.faq-list summary{
  list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  padding:1.15rem 1.7rem;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  font-family:var(--font-head);
  font-weight:500;
  font-size:1.05rem;
  color:var(--teal2);
  line-height:1.4;
}
.faq-list summary::-webkit-details-marker{display:none}
/* "+" drawn as two bars; the vertical bar folds into the horizontal one so it
   turns into "−" as the answer opens. is-closing keeps it on "+" while the
   closing animation still has the open attribute set. */
.faq-icon{position:relative;flex:none;width:18px;height:18px}
.faq-icon::before,.faq-icon::after{
  content:"";
  position:absolute;left:50%;top:50%;
  width:16px;height:1.7px;
  background:var(--teal2);
  border-radius:2px;
  transform:translate(-50%,-50%);
  transition:transform .32s cubic-bezier(.4,0,.2,1),opacity .32s;
}
.faq-icon::after{transform:translate(-50%,-50%) rotate(90deg)}
.faq-list details[open]:not(.is-closing) .faq-icon::after{
  transform:translate(-50%,-50%) rotate(0deg);
  opacity:0;
}
.faq-body{padding:0 1.7rem 1.4rem}
.faq-body p{font-size:.95rem;line-height:1.7}
.faq-body p + p{margin-top:.9rem}
@media (prefers-reduced-motion:reduce){
  .faq-icon::before,.faq-icon::after{transition:none}
}

/* ---------- 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 0;text-align:center}
.contact h2{
  font-size:var(--fs-h2-sm);
  font-weight:700;
  color:var(--teal2);
  letter-spacing:-.01em;
  margin-bottom:.8rem;
}
.contact .contact-lead{max-width:78ch;margin:0 auto 1.1rem;font-family:var(--font-ui);font-weight:300}
.contact .contact-lead:last-of-type{margin-bottom:3rem}
.contact form{max-width:860px;margin:0 auto;text-align:left}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
.field{margin-bottom:1.4rem}
.field label,.field .field-label{
  display:block;
  font-family:var(--font-ui);
  font-size:.95rem;
  font-weight:400;
  color:var(--slate);
  margin-bottom:.5rem;
}
.field input,.field textarea{
  width:100%;
  font-family:var(--font-ui);
  font-weight:300;
  font-size:.98rem;
  color:var(--ink);
  background:var(--tint-light);
  border:1px solid var(--line);
  border-radius:10px;
  padding:.85rem 1rem;
  transition:border-color .2s,box-shadow .2s;
}
.field input::placeholder,.field textarea::placeholder{color:#8ba3ab}
.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:120px;resize:vertical}
/* radio group (how to be contacted): the label sits where a field label does and the
   option row fills the height of the neighbouring input, so it centres on it */
.field--choice{display:flex;flex-direction:column;min-width:0}
.choice-row{flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:.2rem 2rem}
.field .choice{
  display:flex;align-items:center;gap:.6rem;
  margin:0;padding:.3rem 0;
  font-family:var(--font-ui);font-weight:300;font-size:.95rem;color:var(--teal2);
  cursor:pointer;
}
.choice input{
  appearance:none;-webkit-appearance:none;
  width:18px;height:18px;margin:0;padding:0;flex:none;   /* padding:0 undoes the text-field padding */
  border:2px solid var(--teal);border-radius:50%;
  background:var(--white);
  display:grid;place-content:center;
  position:relative;top:1px;   /* Lexend's x-height sits low in the line box */
  cursor:pointer;
}
.choice input::before{
  content:"";width:10px;height:10px;border-radius:50%;
  background:var(--teal);
  transform:scale(0);transition:transform .15s;
}
.choice input:checked::before{transform:scale(1)}
.choice input:focus{border-color:var(--teal);box-shadow:none}   /* no text-field glow */
.choice input:focus-visible{outline:2px solid var(--teal2);outline-offset:2px}
.form-submit{text-align:center;margin-top:1.6rem}
.form-submit .btn{padding:.8rem 2.4rem}

/* ---------- Footer ---------- */
footer{background:var(--tint);padding:90px 0 56px}
/* when the contact band sits directly above, the two share one tint field */
.contact + footer{padding-top:110px}
.footer-grid{
  display:grid;
  grid-template-columns:1fr auto;
  gap:3rem;
  align-items:start;
}
.footer-legal li{margin-bottom:1.5rem}
.footer-legal a{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--font-ui);
  font-weight:300;
  font-size:1rem;
  color:var(--teal2);
  text-decoration:underline;
  text-underline-offset:4px;
  transition:color .2s;
}
.footer-legal a:hover{color:var(--orange)}
.footer-legal img{width:18px;height:18px;flex:none}
.footer-contact{margin-top:2.4rem}
.footer-contact li{margin-bottom:1rem}
.footer-contact a{
  display:inline-flex;align-items:center;gap:.75rem;
  font-family:var(--font-ui);
  font-weight:500;
  font-size:.95rem;
  color:var(--teal2);
  transition:color .2s;
}
.footer-contact a:hover{color:var(--orange)}
.footer-contact svg{flex:none}
.footer-brand{display:flex;flex-direction:column;align-items:center;gap:1rem}
.footer-brand .footer-logo{margin-bottom:.4rem}
.footer-logo{display:flex;flex-direction:column;align-items:center;gap:.3rem}
.footer-logo .mark{width:54px}
.footer-logo .wordmark{width:112px}
.ytunnus,.copyright{font-family:var(--font-ui);font-weight:300;font-size:.95rem;color:var(--slate)}
/* one-row variant for the front page */
.footer--compact{padding:26px 0}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.footer-inline{display:flex;align-items:center;gap:2.2rem;flex-wrap:wrap}
.footer-inline a{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--font-ui);font-weight:300;font-size:.95rem;
  color:var(--teal2);
  transition:color .2s;
}
.footer-inline a:hover{color:var(--orange)}
.footer-inline .legal{text-decoration:underline;text-underline-offset:4px}
.footer-inline img{width:18px;height:18px}
.footer-inline-right{display:flex;align-items:center;gap:1.4rem}
/* front page: legal links on the left, lockup on the right */
.footer--front{padding:44px 0 40px}
.footer--front .footer-legal li{margin-bottom:1rem}
.footer--front .footer-legal li:last-child{margin-bottom:0}

/* ---------- Toast (coming-soon / form confirmation) ---------- */
.toast{
  position:fixed;
  left:50%;bottom:32px;
  transform:translate(-50%,20px);
  background:var(--teal2);
  color:var(--white);
  font-family:var(--font-ui);
  font-weight:500;
  font-size:.95rem;
  padding:.85rem 1.5rem;
  border-radius:12px;
  box-shadow:0 12px 32px rgba(38,100,112,.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
  z-index:200;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- Responsive ---------- */
@media (max-width:1180px){
  .faq-grid{grid-template-columns:1fr;gap:2.4rem}
}

@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}

  .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}
  .split-grid{grid-template-columns:1fr;gap:2.6rem}
  .split-art,.split-panel{order:-1;max-width:620px}
  .split-panel{width:100%}
  .reason-grid,.flow-grid{grid-template-columns:1fr}
  .plan-grid{grid-template-columns:1fr;max-width:520px}
  .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:104px;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;border-radius:0}
  .footer-grid{grid-template-columns:1fr;gap:3rem;justify-items:start}
  .footer-brand{align-items:flex-start}
  .footer-logo{align-items:flex-start}
}

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

  /* front page on phones: no video, residents first as the filled pill, the
     other two as outline pills, all full width */
  .hero-media{display:none}
  .hero-grid{row-gap:0}
  .hero-actions{flex-direction:column;align-items:stretch;gap:.7rem}
  .hero-act{width:100%;padding:.8rem 1.4rem}
  .hero-act--home{order:-1;background:var(--orange);color:var(--white)}
  .hero-act--home:hover{color:var(--white);background:#e56b00}
  .hero-act--pro,.hero-act--pm{background:transparent;color:var(--teal);border-color:var(--teal)}
  .hero-act--pro:hover,.hero-act--pm:hover{background:var(--teal);color:var(--white);transform:none;box-shadow:none}
}

@media (max-width:560px){
  .nav-cta{display:none}
  .nav-links-cta{display:inline-flex;width:auto;margin:1rem var(--pad) .4rem;border-radius:var(--r-pill)}
  .hero-copy h1{font-size:clamp(2rem,8.4vw,2.6rem)}
  .footer-row,.footer-inline{flex-direction:column;align-items:flex-start;gap:1rem}
  .footer--front .footer-row{gap:2rem}
  .footer--front .footer-logo{align-items:flex-start}
  .page-hero h1{max-width:none}

  .hero-perks{
    position:relative;top:auto;right:auto;z-index:1;   /* stays above the positioned art it overlaps */
    margin:-26px auto 0;
    width:max-content;
  }
  .hero-figure::before{bottom:22%}
  .form-row{grid-template-columns:1fr}
  .reason,.flow-card{padding:1.5rem 1.3rem;gap:1rem}
  .plan-card,.notecard,.fineprint{padding:1.7rem 1.4rem}
  .faq-list summary{padding:1rem 1.2rem;font-size:1rem}
  .faq-body{padding:0 1.2rem 1.2rem}
}

/* ---------- Documents (terms, privacy policy) ---------- */
.doc{max-width:820px;margin:0 auto;padding:56px var(--pad) 90px}
.doc h1{
  font-size:var(--fs-h2);
  font-weight:600;
  letter-spacing:-.015em;
  line-height:1.2;
  color:var(--ink-head);
  margin-bottom:.8rem;
}
.doc-meta{font-family:var(--font-ui);font-weight:300;font-size:.95rem;color:var(--slate);margin-bottom:1.4rem}
.doc-actions{display:flex;align-items:center;gap:.6rem 1.4rem;flex-wrap:wrap;margin-bottom:2.4rem}
.doc-toc{background:var(--tint);border-radius:var(--r-card);padding:1.4rem 1.8rem;margin-bottom:2.6rem}
.doc .doc-toc-title{
  display:block;margin:0 0 .8rem;
  font-family:var(--font-ui);font-size:.82rem;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;color:var(--slate);
}
.doc-toc ol{list-style:none;columns:2;column-gap:2rem}
.doc-toc li{margin-bottom:.4rem;break-inside:avoid}
.doc-toc a{font-family:var(--font-ui);font-weight:300;font-size:.95rem;color:var(--teal2);transition:color .2s}
.doc-toc a:hover{color:var(--orange)}
.doc h2{
  display:grid;grid-template-columns:3.4rem 1fr;gap:0 .4rem;
  font-size:1.25rem;font-weight:600;letter-spacing:-.01em;
  color:var(--ink-head);
  margin:2.4rem 0 1rem;
  scroll-margin-top:90px;
}
.doc .clause{
  display:grid;grid-template-columns:3.4rem 1fr;gap:0 .4rem;
  margin-bottom:1rem;
  color:var(--ink);line-height:1.65;
  scroll-margin-top:90px;
}
.doc .num{font-family:var(--font-ui);font-weight:500;color:var(--slate)}
.doc h2 .num{font-family:inherit;font-weight:inherit;color:inherit}
.doc .sub{list-style:none;counter-reset:sub;margin:-.3rem 0 1rem 3.8rem}   /* aligns with the clause text column */
.doc .sub li{
  counter-increment:sub;
  position:relative;padding-left:2.4rem;
  margin-bottom:.5rem;
  color:var(--ink);line-height:1.65;
}
.doc .sub li::before{
  content:"(" counter(sub,lower-alpha) ")";
  position:absolute;left:0;
  font-family:var(--font-ui);color:var(--slate);
}
.doc .clause a,.doc .sub a,.doc-sign a{color:var(--teal2);text-decoration:underline;text-underline-offset:3px}
.doc .clause a:hover,.doc .sub a:hover,.doc-sign a:hover{color:var(--orange)}
.doc-sign{
  margin-top:2.6rem;padding-top:1.4rem;border-top:1px solid var(--line);
  font-family:var(--font-ui);font-weight:300;font-size:.95rem;color:var(--slate);
}
@media (max-width:560px){
  .doc{padding:32px var(--pad) 60px}
  .doc h2,.doc .clause{grid-template-columns:2.8rem 1fr}
  .doc .sub{margin-left:0}
  .doc-toc ol{columns:1}
}
@media print{
  header,footer,.doc-actions,.doc-toc{display:none !important}
  body{background:#fff;color:#000}
  .doc{max-width:none;padding:0}
  .doc h2{break-after:avoid}
  .doc .clause,.doc .sub li{break-inside:avoid}
}

/* documents: sub-headings, running text, dash lists and tables (privacy policy) */
.doc h3{
  display:grid;grid-template-columns:3.4rem 1fr;gap:0 .4rem;
  font-family:var(--font-ui);font-size:1.02rem;font-weight:600;
  color:var(--ink-head);
  margin:1.8rem 0 .8rem;
  scroll-margin-top:90px;
}
.doc h3 .num{font-weight:inherit;color:inherit}
.doc .text{margin:0 0 1rem 3.8rem;color:var(--ink);line-height:1.65}
.doc .dash{list-style:none;margin:-.2rem 0 1rem 3.8rem}
.doc .dash li{position:relative;padding-left:1.6rem;margin-bottom:.5rem;color:var(--ink);line-height:1.65}
.doc .dash li::before{content:"–";position:absolute;left:0;color:var(--slate)}
.doc table{
  width:calc(100% - 3.8rem);margin:0 0 1.4rem 3.8rem;
  border-collapse:collapse;
  font-size:.95rem;line-height:1.5;color:var(--ink);
}
.doc th,.doc td{text-align:left;vertical-align:top;padding:.7rem .8rem;border-bottom:1px solid var(--line)}
.doc th{
  font-family:var(--font-ui);font-weight:500;font-size:.78rem;
  letter-spacing:.06em;text-transform:uppercase;color:var(--slate);
  background:var(--tint);
}
.doc .text a,.doc td a{color:var(--teal2);text-decoration:underline;text-underline-offset:3px}
.doc .text a:hover,.doc td a:hover{color:var(--orange)}
@media (max-width:560px){
  .doc .text,.doc .dash{margin-left:0}
  .doc h3{grid-template-columns:2.8rem 1fr}
  /* each table row becomes a small card with the column name above each cell */
  .doc table{width:100%;margin-left:0}
  .doc table,.doc tbody,.doc tr,.doc td{display:block}
  .doc thead{display:none}
  .doc tr{border:1px solid var(--line);border-radius:10px;padding:.5rem .9rem;margin-bottom:.8rem}
  .doc td{border:0;padding:.45rem 0}
  .doc td::before{
    content:attr(data-label);display:block;
    font-family:var(--font-ui);font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;
    color:var(--slate);margin-bottom:.15rem;
  }
}
/* flush variant: headings and text at the margin, no hanging number column (privacy policy) */
.doc--plain h2,.doc--plain h3{display:block}
.doc--plain .text,.doc--plain .dash{margin-left:0}
.doc--plain table{width:100%;margin-left:0}
