/* ============================================================
   HINNASTO: sivukohtaiset tyylit
   Tokenit tulevat tokens.css:stä, reset ja .container base.css:stä.
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero-page {
  --hero-fade-block: 100px;
  --hero-fade-inline: 48px;
  --crumb-offset: 96px; /* kuvakaista alkaa navin alta, murupolku silti yhteisessä kohdassa */
  margin-top: var(--crumb-offset);
  padding: 64px 0 96px;
  min-height: 640px;
  background: var(--bg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-page::before,
.hero-page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-page::before {
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(255,255,255,0.96) 43%, rgba(255,255,255,0.55) 53%, rgba(255,255,255,0) 64%);
}
.hero-page::after {
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent var(--hero-fade-block), transparent calc(100% - var(--hero-fade-block)), var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent var(--hero-fade-inline), transparent calc(100% - var(--hero-fade-inline)), var(--bg) 100%);
}
.hero-page > .container {
  position: relative;
  z-index: 2;
}
.hero-page-inner { max-width: 600px; }
.hero-page h1 {
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.hero-page h1 .gr,
.section-title .gr,
.cta-band h2 .gr {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-page p.hero-lead {
  font-size: 20px;
  color: var(--navy-dark);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 36px;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}
.kicker.orange { color: var(--orange); }
.kicker.pink   { color: var(--pink); }
.kicker.navy   { color: var(--navy); }
.kicker.red    { color: var(--red); }

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   NAPIT
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(230, 70, 68, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(230, 70, 68, 0.7);
}

/* ============================================================
   AI-HI WIDGET (vaalea tausta)
   ============================================================ */
.ai-hi {
  box-shadow: var(--sh-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ai-hi:hover, .ai-hi:focus-within {
  box-shadow: var(--sh-md);
}
.ai-hi-send {
  color: inherit;
}
/* Tumma variantti CTA-bandiin */
.ai-hi.dark {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: none;
}
.ai-hi.dark:hover, .ai-hi.dark:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.40);
  color: #fff;
}
.ai-hi.dark .ai-hi-input { color: #fff; }
.ai-hi.dark .ai-hi-input::placeholder { color: rgba(255, 255, 255, 0.55); }
.ai-hi.dark:hover .ai-hi-input,
.ai-hi.dark:focus-within .ai-hi-input { border-left-color: rgba(255, 255, 255, 0.22); }

/* ============================================================
   OSIOT
   ============================================================ */
.block { padding: 100px 0; }
.block.alt { background: var(--surface); }
.section-head {
  margin-bottom: 56px;
  max-width: 860px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.018em;
}
.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   HINNASTOTAULUKKO
   ============================================================ */
.price-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 940px;
}
.price-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.price-item:hover {
  border-color: rgba(245, 128, 36, 0.35);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.price-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.price-ico.navy   { background: var(--navy-50);   color: var(--navy); }
.price-ico.orange { background: var(--orange-50); color: var(--orange); }
.price-ico.pink   { background: var(--pink-50);   color: var(--pink); }
.price-ico.red    { background: rgba(230, 70, 68, 0.10); color: var(--red); }
.price-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin-bottom: 6px;
}
.price-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.price-tag {
  text-align: right;
  white-space: nowrap;
}
.price-tag .amount {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  line-height: 1.1;
}
.price-tag .unit {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.price-item.accent .price-tag .amount {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 940px;
  margin-top: 26px;
  padding: 20px 24px;
  background: var(--navy-50);
  border-radius: 16px;
  font-size: 15px;
  color: var(--navy-dark);
  line-height: 1.65;
}
.price-note svg { flex-shrink: 0; margin-top: 2px; color: var(--navy); }

/* ============================================================
   KIIRE JA PÄIVYSTYS
   ============================================================ */
.rush-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rush-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.rush-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(232, 30, 133, 0.20);
}
.rush-ico {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.rush-ico.orange { background: var(--orange-50); color: var(--orange); }
.rush-ico.red    { background: rgba(230, 70, 68, 0.10); color: var(--red); }
.rush-ico.navy   { background: var(--navy-50); color: var(--navy); }
.rush-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.rush-card p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.rush-price {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-dark);
}
.rush-price span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   UKK
   ============================================================ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
  border-color: var(--pink-soft);
  box-shadow: var(--sh-md);
}
.faq-item summary {
  cursor: pointer;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 26px;
  font-weight: 300;
  color: var(--pink);
  transition: transform 0.25s;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.72;
}
.faq-item p a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item p a:hover { opacity: 0.8; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy-deeper);
  padding: 110px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 128, 36, 0.20) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 30, 133, 0.20) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta-lead {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  margin-bottom: 18px;
}
.cta-band h2 {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: #fff;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin-bottom: 40px;
}
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 0.12s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 0.16s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 0.20s; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIIVISUUS
   ============================================================ */
@media (max-width: 1040px) {
  .rush-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .price-item {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      'ico body'
      'tag tag';
    gap: 16px 18px;
  }
  .price-ico  { grid-area: ico; }
  .price-body { grid-area: body; }
  .price-tag  { grid-area: tag; text-align: left; }
  .price-tag .amount { font-size: 24px; }
}
@media (max-width: 700px) {
  .block { padding: 70px 0; }
  .cta-band { padding: 80px 0; }
  .section-head { margin-bottom: 42px; }
  .hero-cta-row, .cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary { justify-content: center; }
  .ai-hi { justify-content: center; }
  .ai-hi:hover .ai-hi-input,
  .ai-hi:focus-within .ai-hi-input { width: 140px; }
  .rush-card { padding: 28px 26px; }
  .price-item { padding: 22px 22px; }
  .faq-item { padding: 20px 22px; }
  .faq-item summary { font-size: 16.5px; }
}
@media (max-width: 480px) {
  .price-note { flex-direction: column; gap: 10px; }
}
/* Chrome ei tavuta suomea, joten otsikon pisin sana ("Hakukoneoptimoinnin,", noin 10,4 kertaa
   fonttikoon levyinen) ei saa olla palstaa leveämpi. Kapealla näytöllä koko seuraa näytön
   leveyttä: 80 px on palstan reunukset ja vierityspalkki. */
@media (max-width: 400px) {
  .section-title { font-size: min(28px, calc((100vw - 80px) / 10.8)); }
  .hero-page h1 { font-size: min(36px, calc((100vw - 80px) / 7.2)); }
  .section-title,
  .hero-page h1 { overflow-wrap: break-word; }
}

/* Heron kuvakaista: vasemman reunan pikapalkki vie tilaa keskileveillä näytöillä, ja kapealla
   näytöllä kuva siirtyy tekstin alle. */
@media (min-width: 901px) and (max-width: 1440px) {
  .hero-page > .container { padding-left: 112px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .hero-page::before {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.98) 35%, rgba(255,255,255,0.88) 72%, rgba(255,255,255,0.2) 100%);
  }
}
@media (max-width: 600px) {
  .hero-page {
    --hero-fade-block: 64px;
    --hero-fade-inline: 20px;
    --crumb-offset: 104px;
    padding: 40px 0 220px;
    min-height: 0;
  }
  .hero-page::before {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.98) 42%, rgba(255,255,255,0.88) 60%, rgba(255,255,255,0.08) 100%);
  }
  .hero-photo { top: auto; height: 70%; object-position: 80% bottom; }
}
