/* shape-play — S5 card catalog
   Palette: white #FFFFFF · navy #1C2B5A · tangerine #FF8A3D
   Text: navy on white 12.4:1 · white on navy 12.4:1 · navy on tangerine 5.8:1
   Tangerine is used as a *non-text* accent (shapes, rules, flags) and as a
   button background carrying navy text. Illustration is hand-authored SVG. */

@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/red-hat-display-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/red-hat-text-variable-latin.woff2") format("woff2");
}

:root {
  --white: #FFFFFF;
  --paper: #F4F6FB;
  --navy: #1C2B5A;
  --navy-2: #142044;
  --navy-soft: #8794B8;
  --tan: #FF8A3D;
  --tan-soft: #FFE2CC;
  --ink: #1C2B5A;
  --muted: #4A5578;
  --line: #DCE2F0;
  --display: "Red Hat Display", "Trebuchet MS", sans-serif;
  --body: "Red Hat Text", "Segoe UI", sans-serif;
  --shell: 74rem;
  --gutter: 1.25rem;
  --r: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .price, .step-num, .wordmark {
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* ---- shape fills ---- */
.f-navy { fill: var(--navy); }
.f-navy-soft { fill: var(--navy-soft); }
.f-tan { fill: var(--tan); }
.f-white { fill: var(--white); }

/* ---- demo banner ---- */
.demo-banner {
  display: block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.6rem var(--gutter);
}
.demo-banner b { color: var(--tan); font-weight: 700; }

/* ---- top bar + hero ---- */
.top { border-bottom: 2px solid var(--line); }
.topbar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}
.mark {
  width: 20px; height: 20px;
  border-radius: 50% 50% 50% 4px;
  background: var(--tan);
  flex: none;
}
.topnav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.topnav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.topnav a:hover { color: var(--navy); border-bottom-color: var(--tan); }

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.75rem;
  display: grid;
  gap: 2rem;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2.3rem, 9vw, 3.9rem); font-weight: 800; }
.hero h1 .hi {
  background: linear-gradient(transparent 62%, var(--tan-soft) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.lede {
  margin-top: 1.1rem;
  max-width: 44ch;
  font-size: 1.0625rem;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  background: var(--tan);
  color: var(--navy-2);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--tan);
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--paper); }
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-facts b { font-family: var(--display); font-size: 1.15rem; color: var(--navy); margin-right: 0.3rem; }

.hero-shapes {
  position: relative;
  height: 190px;
  max-width: 340px;
}
.hs { position: absolute; display: block; }
.hs--circle { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); left: 0; top: 12px; }
.hs--square { width: 88px; height: 88px; background: var(--tan); left: 92px; top: 62px; }
.hs--tri {
  width: 0; height: 0; left: 176px; top: 0;
  border-left: 46px solid transparent;
  border-right: 46px solid transparent;
  border-bottom: 80px solid var(--tan);
}
.hs--arc {
  width: 96px; height: 48px; left: 22px; top: 132px;
  border-radius: 0 0 96px 96px;
  background: var(--navy-soft);
  animation: sway 9s ease-in-out infinite;
}
@keyframes sway { 50% { transform: translateX(26px) rotate(8deg); } }

/* ---- sections ---- */
.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 3rem var(--gutter);
}
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before { content: ""; width: 22px; height: 6px; background: var(--tan); flex: none; }
.kicker--light { color: #D4DAEC; }
.section-title { font-size: clamp(1.7rem, 5.6vw, 2.5rem); font-weight: 800; margin-top: 0.7rem; }
.section-lede { margin-top: 0.9rem; max-width: 56ch; color: var(--muted); }

/* ---- card catalog ---- */
.cards {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.card {
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.1rem 1.3rem;
  background: var(--white);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--navy); }
.shape {
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 1rem;
}
.shape svg { width: 100%; height: auto; }
.card h3 { font-size: 1.3rem; font-weight: 700; }
.card p { margin-top: 0.5rem; color: var(--muted); font-size: 0.97rem; }
.card-meta {
  margin-top: 0.9rem !important;
  font-weight: 700;
  color: var(--navy) !important;
  font-size: 0.9rem !important;
  border-top: 2px solid var(--line);
  padding-top: 0.7rem;
}

/* ---- navy band: työtapa ---- */
.band { background: var(--navy); color: var(--white); }
.band-inner { max-width: var(--shell); margin: 0 auto; padding: 3rem var(--gutter); }
.steps {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}
.steps li { border-top: 2px solid rgba(255, 255, 255, 0.28); padding-top: 0.9rem; }
.step-num { display: block; color: var(--tan); font-size: 1.5rem; font-weight: 800; }
.steps h3 { margin-top: 0.35rem; font-size: 1.2rem; font-weight: 700; }
.steps p { margin-top: 0.4rem; color: #D4DAEC; font-size: 0.97rem; }

/* ---- hinnasto ---- */
.tiers { margin-top: 2rem; display: grid; gap: 1rem; }
.tier {
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 1.3rem;
}
.tier--pick { border-color: var(--navy); background: var(--paper); }
.tier-flag {
  display: inline-block;
  background: var(--tan);
  color: var(--navy-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.tier h3 { font-size: 1.25rem; font-weight: 700; }
.price { font-size: 2rem; font-weight: 800; margin-top: 0.3rem; }
.tier ul { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.45rem; font-size: 0.95rem; color: var(--muted); }
.tier li { padding-left: 1.4rem; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; background: var(--tan); border-radius: 2px;
}

/* ---- tarina ---- */
.story { display: grid; gap: 2rem; }
.story p { margin-top: 0.9rem; color: var(--muted); max-width: 56ch; }
.quote {
  margin-top: 1.5rem !important;
  border-left: 6px solid var(--tan);
  padding-left: 1rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy) !important;
  line-height: 1.35;
}
.quote span { display: block; margin-top: 0.5rem; font-family: var(--body); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.collage { width: 100%; max-width: 300px; }
.collage svg { width: 100%; height: auto; }

/* ---- yhteys ---- */
.contact {
  margin: 2rem 0 1.6rem;
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line);
}
.contact > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--line);
}
.contact dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact dd { font-size: 1.02rem; }

/* ---- footer ---- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem var(--gutter) 1rem;
  text-align: center;
}
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.footer .small { margin-top: 0.4rem; font-size: 0.9rem; color: #D4DAEC; }
.footer .small b { color: var(--tan); }
.footer a { color: var(--white); }

/* Tekoälyilmoitus (EU AI Act 50 art.) — kit/ai-disclosure */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #D4DAEC;
}
.ai-note strong { font-weight: 600; color: var(--white); }

/* ---- larger screens ---- */
@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  :root { --gutter: 2rem; }
  .hero {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    padding: 3.5rem var(--gutter) 4rem;
    gap: 3rem;
  }
  .hero-shapes { height: 300px; max-width: none; justify-self: end; width: 100%; }
  .hs--circle { width: 170px; height: 170px; left: 0; top: 20px; }
  .hs--square { width: 124px; height: 124px; left: 130px; top: 96px; }
  .hs--tri { left: 244px; top: 0; border-left-width: 60px; border-right-width: 60px; border-bottom-width: 108px; }
  .hs--arc { width: 130px; height: 65px; left: 30px; top: 208px; border-radius: 0 0 130px 130px; }
  .section, .band-inner { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .story { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .collage { justify-self: end; max-width: 340px; }
  .contact { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
