:root {
  color-scheme: dark;
  --bg: #07090c;
  --bg-elev: #0c1014;
  --card: rgba(18, 23, 28, 0.72);
  --card-solid: #12171c;
  --border: rgba(36, 48, 58, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9eef3;
  --muted: #9aa6b2;
  --accent: #1ee387;
  --accent-ink: #042014;
  --glow: #14a866;
  --own: #c97878;
  --nav-h: 4.25rem;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 0.75rem); }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.011em;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
code {
  font-size: 0.86em;
  background: #10151a;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  text-decoration: none;
  border-radius: 0.45rem;
}
.skip:focus { top: 0.75rem; }

/* --- cinematic stage (homepage) --- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(980px 560px at 78% -8%, rgba(30, 227, 135, 0.28), transparent 58%),
    radial-gradient(720px 480px at 8% 12%, rgba(30, 227, 135, 0.12), transparent 50%),
    radial-gradient(70% 36% at 50% 62%, rgba(30, 227, 135, 0.10), transparent 60%),
    radial-gradient(80% 40% at 50% 100%, rgba(20, 168, 102, 0.14), transparent 55%),
    var(--bg);
}
.stage .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 227, 135, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 18%, #000 18%, transparent 78%);
}
.stage .orb {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 580px;
  max-height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 227, 135, 0.32), transparent 68%);
  filter: blur(6px);
  right: -6%;
  top: -8%;
  animation: drift 16s ease-in-out infinite;
}
.stage .orb.alt {
  width: 28vw;
  height: 28vw;
  left: -8%;
  top: 28%;
  right: auto;
  opacity: 0.55;
  animation-duration: 22s;
  animation-direction: reverse;
}
.stage .road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(58vh, 620px);
  opacity: 0.9;
}
.stage .lane {
  stroke-dasharray: 14 22;
  stroke: #1ee387;
  opacity: 0.75;
  animation: dash 1.8s linear infinite;
}
.stage .vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 12, 0.55) 78%, var(--bg) 100%);
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 4%, 0) scale(1.06); }
}
@keyframes dash {
  to { stroke-dashoffset: -72; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.wrap, main, footer, .legal {
  position: relative;
  z-index: 1;
}

/* --- nav (homepage + blog .top) --- */
.nav, .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  position: sticky;
  top: 0;
  min-height: var(--nav-h);
  background: rgba(7, 9, 12, 0.62);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  z-index: 8;
}
.nav.is-scrolled, .top.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 12, 0.86);
}
.nav-inner {
  position: relative;
  width: min(var(--max), calc(100% - 0rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
  font-size: 1.02rem;
}
.mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--glow);
  flex: 0 0 auto;
}
.mark-svg {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--accent); }
.lang, .lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}
.lang a, .lang-switch a, .lang-switch button {
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  padding: 0;
}
.lang span, .lang-switch span { color: var(--muted); }
.lang a[aria-current="page"],
.lang-switch a[aria-current="true"],
.lang-switch button[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
}
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(12, 16, 20, 0.7);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle > span:first-child,
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
}
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle > span:first-child::before { top: -6px; }
.nav-toggle > span:first-child::after { top: 6px; }

/* --- type + buttons --- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 750;
  margin: 0 0 0.85rem;
}
h1 {
  font-size: clamp(2.15rem, 6.4vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 650;
  margin: 0 0 1.05rem;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}
.lede.small { font-size: 0.95rem; }
.fine { font-size: 0.82rem; color: var(--muted); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 0.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.2rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(30, 227, 135, 0.2), 0 10px 28px rgba(30, 227, 135, 0.18);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(30, 227, 135, 0.35), 0 16px 36px rgba(30, 227, 135, 0.28);
}
.btn.primary:active { transform: translateY(0); }
.btn.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(12, 16, 20, 0.45);
}
.btn.ghost:hover {
  border-color: rgba(30, 227, 135, 0.45);
  transform: translateY(-2px);
}
.btn.nav-mini {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 0.65rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(12, 16, 20, 0.55);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

/* --- homepage layout --- */
.home-main {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 5rem;
}
.hero.home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 4.2rem 0 3.4rem;
  animation: rise 0.8s ease both;
}
.hero-copy h1 { max-width: 14ch; }

.product-stack {
  display: grid;
  gap: 0.9rem;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.glass, .step-card, .price-card, .join, .faq details, .soft-cta, .post-card, .cookie-note {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}
.mock {
  padding: 1.05rem 1.1rem 1.15rem;
}
.mock .panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
  margin: 0 0 0.7rem;
}
.tg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
}
.tg-head strong { font-size: 0.95rem; }
.tg-head span { color: var(--muted); font-size: 0.8rem; }
.bubble {
  background: #1a2330;
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.bubble .dim { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; }
.btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.chip-btn {
  border-radius: 0.7rem;
  padding: 0.65rem 0.4rem;
  text-align: center;
  font-weight: 750;
  font-size: 0.88rem;
  border: 1.5px solid transparent;
}
.chip-btn.work {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(30, 227, 135, 0.08);
}
.chip-btn.own { border-color: #5a3438; color: var(--own); }
.mock table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mock th {
  text-align: left;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0.4rem 0.45rem 0;
}
.mock td { padding: 0.5rem 0.4rem 0.5rem 0; border-top: 1px solid var(--border); }
.mock .num { font-weight: 750; color: var(--accent); }
.example-tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.section {
  padding: 3.2rem 0 0.4rem;
}
.section-head { max-width: 40rem; margin-bottom: 1.6rem; }
.section-head p { color: var(--muted); margin: 0.4rem 0 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  position: relative;
}
.step-card { padding: 1.15rem 1.15rem 1.2rem; min-height: 100%; }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(30, 227, 135, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.step-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.price-single {
  display: flex;
  justify-content: center;
}
.price-single .price-card {
  width: min(22rem, 100%);
  text-align: center;
  padding: 1.6rem 1.4rem 1.55rem;
}
.price-single .price {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
}
.price-single .more-link { align-self: center; }
.price-card {
  padding: 1.2rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.price-card.featured {
  border-color: rgba(30, 227, 135, 0.55);
  box-shadow: 0 0 0 1px rgba(30, 227, 135, 0.2), 0 18px 60px rgba(0, 0, 0, 0.28);
}
.price-card h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 700;
}
.price {
  margin: 0.7rem 0 0.2rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.price-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.price-card .more { margin-top: auto; padding-top: 1rem; color: var(--text); font-weight: 650; font-size: 0.88rem; }
.price-card a.more-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}
.price-card a.more-link:hover { text-decoration: underline; }
.trial-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.price-single + .trial-note {
  text-align: center;
}

.faq { display: grid; gap: 0.65rem; }
.faq details { padding: 0.15rem 1.05rem; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  letter-spacing: -0.02em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 600;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.join {
  padding: 1.35rem 1.3rem 1.45rem;
  margin-top: 0.4rem;
}
.join h2 { margin-top: 0; }
.alpha-form { display: grid; gap: 0.45rem; max-width: 28rem; }
.alpha-form input, .alpha-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: #0c1014;
  color: var(--text);
  font: inherit;
}
.alpha-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.alpha-form .consent-row input {
  width: auto;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.alpha-form button {
  margin-top: 0.4rem;
  padding: 0.78rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.alpha-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30, 227, 135, 0.22);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin: 0.9rem 0 1.1rem;
  color: var(--muted);
}
.contact-row a { font-weight: 750; }

html[data-lang="en"] [data-i="fi"] { display: none !important; }
html[data-lang="fi"] [data-i="en"] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 3.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.cookie-note {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
}
.cookie-note p { margin: 0.35rem 0; }

.legal {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 6vh auto 4rem;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.1rem; margin-top: 1.7rem; }
.legal p, .legal li { color: #b7c0c8; }
.en-block {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

/* --- blog (shared) --- */
.hero { padding: 3.2rem 0 1.5rem; }
main { max-width: 960px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.home-main { max-width: none; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 2.5rem;
}
.grid3 article, .cards article {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.1rem 1.15rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.cards .price { font-size: 1.25rem; font-weight: 750; margin: 0.35rem 0; }
.cards .featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(30, 227, 135, 0.25);
}
.card-cta { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; }
.card-cta a { font-size: 0.82rem; font-weight: 700; color: var(--accent); text-decoration: none; }

.post-list { display: grid; gap: 0.9rem; margin: 0 0 2.5rem; }
.post-card { padding: 1.1rem 1.15rem; }
.post-card h2 { margin: 0.2rem 0 0.5rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card .meta { margin: 0; color: var(--muted); font-size: 0.82rem; }
.post-card .more { color: var(--accent); font-weight: 700; text-decoration: none; }
.post-card .more:hover { text-decoration: underline; }

.post { padding: 2.4rem 0 1rem; }
.post h1 { margin-bottom: 0.6rem; font-size: clamp(1.7rem, 4vw, 2.45rem); }
.post h2 { font-size: 1.2rem; margin-top: 2rem; letter-spacing: -0.02em; }
.post h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.post p, .post li { color: #d5dde4; }
.post a { color: var(--accent); }
.post .eyebrow a { color: var(--accent); text-decoration: none; font-weight: 700; }
.post blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.post hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.post table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.post th, .post td { border: 1px solid var(--border); padding: 0.45rem 0.55rem; text-align: left; }
.post th { color: var(--muted); font-weight: 650; }

.related { margin: 2.5rem 0 1.5rem; }
.related h2 { font-size: 1.1rem; margin: 0 0 0.8rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.related li { background: var(--card); border: 1px solid var(--border); border-radius: 0.8rem; padding: 0.85rem 1rem; }
.related a { color: var(--text); font-weight: 700; text-decoration: none; }
.related a:hover { color: var(--accent); }
.related p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }

.soft-cta { padding: 1.2rem 1.2rem 1.3rem; margin: 1rem 0 0; }
.soft-cta h2 { margin: 0.35rem 0 0.6rem; font-size: 1.15rem; }
.soft-cta a { color: var(--accent); font-weight: 700; }
footer a, .join a { color: var(--accent); }

.noscript-en {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 2rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero.home {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.4rem;
  }
  .product-stack { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    background: rgba(10, 14, 18, 0.97);
    border: 1px solid rgba(30, 227, 135, 0.22);
    border-radius: 0.9rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a, .nav-links .lang-switch, .nav-links .nav-cta { padding: 0.45rem 0.2rem; }
  .steps { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn { text-align: center; width: 100%; }
  .home-main, footer { width: min(var(--max), calc(100% - 1.6rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .orb, .stage .lane, .hero.home {
    animation: none !important;
  }
  .btn, .alpha-form button { transition: none; }
  .btn.primary:hover, .btn.ghost:hover { transform: none; }
}
