/* v2 additions — layered on top of styles.css + sections.css */
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }

.proofpill {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 14px; row-gap: 8px; margin: 0 auto 28px; padding: 12px 22px;
  border: 1px solid var(--border-hi); border-radius: 999px; background: var(--bg-2);
  box-shadow: 0 0 24px -4px var(--accent-glow);
  max-width: 100%;
}
.proofpill-item { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.pp-short { display: none; }
.proofpill-sep { color: var(--accent-hi); font-weight: 700; }
@media (max-width: 560px) { .proofpill { font-size: 12.5px; padding: 10px 16px; flex-wrap: wrap; row-gap: 8px; justify-content: center; } .proofpill-item { font-size: 11.5px; white-space: nowrap; } .pp-full { display: none; } .pp-short { display: inline; } }

/* VSL video placeholder — glowing blue backdrop, dim to brighter pulse */
.vsl-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 40px auto 0;
}
.vsl-glow {
  position: absolute;
  inset: -14px;
  border-radius: 26px;
  background: transparent;
  box-shadow: 0 0 28px 4px rgba(70, 120, 255, 0.35);
  animation: vsl-pulse 5.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes vsl-pulse {
  0%, 100% { box-shadow: 0 0 18px 3px rgba(70, 120, 255, 0.2); }
  50% { box-shadow: 0 0 34px 6px rgba(70, 120, 255, 0.45); }
}
.vsl-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-motion: reduce) {
  .vsl-glow { animation: none; opacity: 0.6; }
}

.hero-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.hero-cta { margin-top: 64px; }

.eyebrow { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 560px) { .eyebrow { font-size: 14px; letter-spacing: 0.04em; } }

.method-k {
  font-size: clamp(64px, 7vw, 92px);
  text-shadow: 0 10px 12px rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.method-row { align-items: center; border-color: rgba(255,255,255,0.14); padding-inline: clamp(20px, 4vw, 40px); }
.method-row:last-child { border-bottom-color: rgba(255,255,255,0.14); }
.method-list { border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; overflow: hidden; padding-inline: 0; }
.method-row { border-top-color: rgba(255,255,255,0.14); }
.method-row:first-child { border-top: none; }
@media (max-width: 560px) {
  .method-row { grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .method-k { font-size: 56px; justify-content: flex-start; text-align: left; text-shadow: none; }
}

.whyfail-grid { grid-template-columns: 1fr; }
@media (min-width: 620px) { .whyfail-grid { grid-template-columns: repeat(2, 1fr); } }

.whyfail-h { color: var(--accent-hi); }

/* New pricing/CTA layout: stacked hero price above card */
.price-card { display: block; padding: 0; background: none; border: 0; max-width: 460px; margin: 0 auto; }
.price-hero {
  text-align: center; margin: 0 auto; position: relative; z-index: 2;
  padding: 22px 32px 32px; border-radius: 20px 20px 0 0;
  border: 1px solid rgba(90, 140, 255, 0.45); border-bottom: none;
  background: var(--bg);
  width: 62%; min-width: 260px;
}
.price-hero .price-amount { justify-content: center; margin: 0; flex-wrap: nowrap; white-space: nowrap; }
.price-hero .price-num { font-size: clamp(26px, 3.8vw, 36px); white-space: nowrap; }
.price-hero .price-unit { color: var(--text); font-size: clamp(26px, 3.8vw, 36px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.price-panel {
  max-width: none; margin: 0; padding: 40px 32px 26px;
  border-radius: 20px; border: 1px solid rgba(90, 140, 255, 0.45);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-2) 140%);
  box-shadow: 0 0 60px -10px var(--accent-glow);
  position: relative; z-index: 1;
}
.price-panel-head { text-align: center; margin-bottom: 18px; }
.price-panel-head .price-plan { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; font-family: var(--font-mono); color: var(--text-3); }
.price-panel .price-list { margin-top: 4px; }
.price-panel .price-list li { padding: 10px 0; font-size: 14.5px; }
.price-panel .price-cta { margin-top: 20px; text-align: center; }

.guarantee-card { margin-top: 44px; padding: 32px clamp(24px, 5vw, 56px); background: var(--bg); border-color: rgba(90, 140, 255, 0.45); text-align: left; }
.guarantee-h { margin: 0 0 14px; }

.proofbar { border-color: rgba(90, 140, 255, 0.35); }
.about-stats { border-color: rgba(90, 140, 255, 0.35); }
.about-stat:not(:last-child) { border-color: rgba(90, 140, 255, 0.35); }

#metodi, #tulokset, #hinnoittelu, #ukk, #kipu, #miksi, #mita-saat, #nain-alkaa, #minusta, #aloita { scroll-margin-top: 90px; }
.price-panel .price-cta > div { width: 100%; }
.price-panel .price-cta .btn { width: 100%; justify-content: center; }

/* ---------- "Mitä saat" accordion ---------- */
.acc-list { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; max-width: 900px; margin-left: auto; margin-right: auto; }
.acc-item {
  border: 1px solid var(--border-hi); border-radius: 16px; background: var(--surface);
  transition: border-color 0.4s ease;
}
.acc-item.open { border-color: rgba(90, 140, 255, 0.45); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); color: var(--text);
}
.acc-ic {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  border: 1.5px solid rgba(90, 140, 255, 0.45); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--accent-hi);
}
.acc-titles { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-h { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.acc-chev {
  flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center; color: var(--text-2); background: var(--surface-2);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}
.acc-item.open .acc-chev { transform: rotate(180deg); border-color: var(--accent); background: var(--accent); color: #fff; }
.acc-body-wrap { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-item.open .acc-body-wrap { max-height: 600px; }
.acc-body { opacity: 0; transition: opacity 0.35s ease; }
.acc-item.open .acc-body { opacity: 1; transition-delay: 0.08s; }
.acc-body p { margin: 0; padding: 0 22px 22px 84px; font-size: 15.5px; line-height: 1.6; }
@media (max-width: 560px) {
  .acc-body p { padding-left: 22px; }
}

/* ---------- "Näin se toimii" scroll timeline ---------- */
.tl-wrap { position: relative; margin-top: 56px; }
.tl-track, .tl-track-fill {
  position: absolute; top: 0; left: 50%; width: 2px; transform: translateX(-50%);
  border-radius: 2px;
}
.tl-track { background: var(--border-hi); }

.about-head { text-align: center; margin-inline: auto; }
.about-stats { border-top: none !important; border-bottom: none !important; }
@media (max-width: 860px) { .about-media { order: -1; } }
@media (max-width: 860px) { .about-portrait { aspect-ratio: 4/5; } }
.tl-track-fill { height: 0%; background: var(--accent-hi); box-shadow: 0 0 12px var(--accent-glow); transition: height 0.05s linear; }

.about-badges { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.about-badge { border: 1px solid rgba(90, 140, 255, 0.5); border-radius: 16px; padding: 26px 28px; background: var(--surface); }
.about-badge-n { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.about-badge-h { margin: 0 0 10px; font-size: 19px; }

.about-portrait { position: relative; top: 0; }
.about-media { display: flex; flex-direction: column; }
.about-creds-row {
  display: flex; flex-direction: column; gap: 10px; margin-top: 18px;
}
.about-cred-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-cred-float {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text); background: var(--surface);
  border: 1px solid rgba(90, 140, 255, 0.5);
  padding: 10px 16px; border-radius: 999px; white-space: nowrap; text-align: left;
  display: flex; align-items: center; gap: 8px;
}
.about-cred-check { flex: none; display: inline-flex; color: var(--accent-hi); }

.contact-cta-inner { text-align: center; }
.faq-contact-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; border-top: 1px solid var(--border);
  margin-top: 4px; padding: 26px 4px; text-align: left;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 2vw, 21px); color: var(--text); letter-spacing: -0.015em; line-height: 1.3;
  cursor: pointer;
}
.faq-contact-row-text { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.faq-contact-btn {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--accent-hi); border: 1px solid var(--accent); border-radius: 999px; padding: 9px 18px;
  background: var(--accent-soft); transition: background 0.2s ease, color 0.2s ease;
}
.faq-contact-row:hover .faq-contact-btn { background: var(--accent); color: #fff; }
.contact-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,6,8,0.78);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.contact-modal {
  position: relative; width: 100%; max-width: 460px;
  background: var(--bg-2); border: 1px solid rgba(90,140,255,0.45); border-radius: 18px;
  padding: 32px 28px 28px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}
.contact-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-2);
  cursor: pointer; display: grid; place-items: center; padding: 4px;
}
.contact-close:hover { color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-hi); border-radius: 10px;
  padding: 12px 14px; font-family: var(--font-display); font-size: 15px; color: var(--text);
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-3); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-hi); }
.contact-form button { margin-top: 4px; justify-content: center; }
@media (max-width: 560px) { .contact-modal { padding: 26px 20px 22px; } }

.tm-note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.tm-r-stack { flex-direction: column; align-items: flex-start !important; gap: 6px; }
.tm-r-stack .tm-note { display: inline; margin: 0 0 0 2px; }
.tm-r-list { display: flex; flex-direction: column; gap: 3px; color: var(--text); font-weight: 600; }

.tms-marquee { position: relative; margin-top: 54px; overflow: hidden; }
.tms-marquee::before, .tms-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30px; z-index: 2; pointer-events: none;
}
.tms-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tms-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.tms-track-scroll {
  display: flex; gap: 22px; width: max-content;
  cursor: grab; touch-action: pan-y;
}
.tms-track-scroll:active { cursor: grabbing; }
.tms-track-scroll .tm-card { width: min(340px, 82vw); flex: none; user-select: none; }
.tms-track-scroll .tm-card img { -webkit-user-drag: none; }
@media (max-width: 860px) { .about-cred-top { grid-template-columns: 1fr; } .about-cred-float { white-space: normal; } }

.tl-step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center;
  gap: 32px; padding: 44px 0;
}
.tl-col.tl-text { order: 1; }
.tl-col.tl-node { order: 2; display: flex; justify-content: center; }
.tl-col.tl-media { order: 3; display: flex; justify-content: center; }
.tl-step.tl-flip .tl-text { order: 3; text-align: left; }
.tl-step.tl-flip .tl-media { order: 1; }
.tl-step:not(.tl-flip) .tl-text { text-align: right; }

.tl-step-label {
  display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 10px; transition: color 0.6s ease;
}
.tl-h { color: var(--text); margin: 0 0 12px; }
.tl-p { color: var(--text-3); font-size: 16.5px; line-height: 1.6; margin: 0; transition: color 0.6s ease; }
.tl-step.tl-active .tl-p { color: var(--text-2); }
.tl-step.tl-active .tl-step-label { color: var(--accent-hi); }

.tl-num {
  width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--text-3);
  background: var(--surface-2); border: 1.5px solid var(--border-hi);
  transition: all 0.6s ease;
}
.tl-step.tl-active .tl-num {
  color: #fff; background: var(--accent); border-color: var(--accent-hi);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 0 22px var(--accent-glow);
}

.tl-media-box {
  width: 100%; max-width: 380px; aspect-ratio: 16/11; border-radius: 18px;
  border: 1px solid var(--border-hi); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.6s ease;
}
.tl-step.tl-active .tl-media-box { border-color: rgba(90, 140, 255, 0.55); }
.tl-media-box svg { color: var(--text-3); transition: color 0.6s ease; width: 82%; height: auto; max-width: 320px; }
.tl-step.tl-active .tl-media-box svg { color: var(--accent-hi); filter: drop-shadow(0 0 8px var(--accent-glow)); }

/* per-icon loop animations, only run once card active */
.tl-row { opacity: 0.3; animation: tl-blink 2.4s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-row { animation-play-state: running; }
.tl-row-1 { animation-delay: 0s; }
.tl-row-2 { animation-delay: 0.4s; }
.tl-row-3 { animation-delay: 0.8s; }
@keyframes tl-blink { 0%, 100% { opacity: 0.3; } 15% { opacity: 1; } 30% { opacity: 0.3; } }

.tl-plate-dot { opacity: 0.5; animation: tl-pulse-op 2.6s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-plate-dot { animation-play-state: running; }
@keyframes tl-pulse-op { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.tl-float { animation: tl-float-y 2.8s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-float { animation-play-state: running; }
@keyframes tl-float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.tl-main-sq { transform-origin: center; animation: tl-scale-pulse 2.4s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-main-sq { animation-play-state: running; }
@keyframes tl-scale-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.tl-sq { opacity: 0.3; animation: tl-blink 2.4s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-sq { animation-play-state: running; }
.tl-sq-1 { animation-delay: 0s; } .tl-sq-2 { animation-delay: 0.6s; }
.tl-sq-3 { animation-delay: 1.2s; } .tl-sq-4 { animation-delay: 1.8s; }

.tl-chart-line {
  stroke-dasharray: 66; stroke-dashoffset: 66;
  animation: tl-draw 4s ease-in-out infinite; animation-play-state: paused;
}
.tl-step.tl-active .tl-chart-line { animation-play-state: running; }
@keyframes tl-draw { 0% { stroke-dashoffset: 66; } 55%, 100% { stroke-dashoffset: 0; } }
.tl-dot { opacity: 0.3; animation: tl-blink 4s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-dot { animation-play-state: running; }
.tl-dot-1 { animation-delay: 2.2s; } .tl-dot-2 { animation-delay: 2.5s; }
.tl-dot-3 { animation-delay: 2.8s; } .tl-dot-4 { animation-delay: 3.1s; }
.tl-dot-5 { opacity: 0.3; animation: tl-blink 4s ease-in-out infinite; animation-play-state: paused; animation-delay: 2.2s; }
.tl-step.tl-active .tl-dot-5 { animation-play-state: running; }

.tl-chat-dot { opacity: 0.3; animation: tl-blink 1.4s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-chat-dot { animation-play-state: running; }
.tl-chat-1 { animation-delay: 0s; } .tl-chat-2 { animation-delay: 0.2s; } .tl-chat-3 { animation-delay: 0.4s; }

@media (max-width: 760px) {
  .tl-track, .tl-track-fill { left: 22px; }
  .tl-step, .tl-step.tl-flip { grid-template-columns: 44px 1fr; gap: 20px; }
  .tl-col.tl-node { order: 1 !important; align-self: stretch; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; }
  .tl-col.tl-text, .tl-step.tl-flip .tl-col.tl-text { order: 2 !important; text-align: left !important; }
  .tl-col.tl-media, .tl-step.tl-flip .tl-col.tl-media { order: 3 !important; grid-column: 2; }
  .tl-num { width: 40px; height: 40px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-row, .tl-plate-dot, .tl-float, .tl-main-sq, .tl-sq, .tl-chart-line, .tl-dot, .tl-chat-dot { animation: none !important; }
}

.tl-gear-spin { animation: tl-gear-turn 12s linear infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-gear-spin { animation-play-state: running; }
@keyframes tl-gear-turn { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.tl-play-glint { fill: none; stroke: currentColor; opacity: 0.55; animation: tl-blink 1s ease-in-out infinite; animation-play-state: paused; }
.tl-step.tl-active .tl-play-glint { animation-play-state: running; }

/* 4-up testimonials */
.tms-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .tms-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tms-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.tm-quote {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.5;
  margin: 12px 0 20px;
  text-wrap: pretty;
}
