/* ---------------------------------------------------------------
   Loopy-landers — jaettu tyylipohja
   Kolme brand-ländäriä: facediili.fi, kimppadiili.fi, offeriumdiili.fi
   Väripaletti tulee per-sivun :root-lohkosta (index.html <style>).

   Suunnitteluperiaate: uskottavuus > myyvyys. Vastaanottaja ei odota
   viestiä, joten sivun pitää näyttää huolitellulta ja rehelliseltä,
   ei kampanjasivulta. Väljyys ja typografia kantavat, ei tehosteet.
   --------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header ------------------------------------------------- */

.site-header {
  padding: 28px 0 0;
}

.site-header img {
  height: 34px;
  width: auto;
  display: block;
}

/* --- Hero --------------------------------------------------- */

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg, var(--surface-alt));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 52px;
  align-items: center;
  padding: 64px 0 72px;
}

.hero-art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px -22px rgba(16, 24, 32, 0.42);
  aspect-ratio: 3 / 2;
  background: var(--surface);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero {
  padding: 56px 0 8px;
}

h1 {
  font-size: clamp(32px, 5.4vw, 46px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
}

/* --- Eyebrow ------------------------------------------------ */

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  margin: 0 0 20px;
}

.lead {
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.55;
  margin: 0 0 12px;
  color: var(--text);
}

.lead-muted {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

/* --- CTA ---------------------------------------------------- */

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 8px;
  transition: background-color 140ms ease, transform 140ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.cta-note {
  font-size: 15px;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* --- Sections ----------------------------------------------- */

section { padding: 44px 0; }

h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Steps -------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 22px;
}

.steps li:last-child { margin-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Stores (logokortit) ------------------------------------ */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px 16px;
  text-align: center;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.store-card:hover {
  box-shadow: 0 10px 26px -16px rgba(16, 24, 32, 0.4);
  transform: translateY(-2px);
}

/* Logot on rajattu valmiiksi (valkoinen marginaali poistettu), joten
   ne skaalataan tässä vain laatikon sisään ilman zoomia. */
.store-card .logo-box {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.store-card .logo-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.store-card .rate {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.25;
}

.store-card .rate-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.stores-note {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Tilastonostot ------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}

.stats .num {
  display: block;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 4px;
}

.stats .cap {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Sitaatti ----------------------------------------------- */

.quote {
  margin: 0;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
}

.quote p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.quote footer {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Alt-taustainen lohko ----------------------------------- */

.band {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --- FAQ ---------------------------------------------------- */

.faq-item { margin-bottom: 26px; }
.faq-item:last-child { margin-bottom: 0; }

.faq-item p {
  color: var(--text-muted);
  margin: 0;
}

/* --- Loppu-CTA ---------------------------------------------- */

.closing { text-align: center; }
.closing h2 { margin-bottom: 14px; }
.closing p { color: var(--text-muted); margin-bottom: 26px; }

/* --- Footer ------------------------------------------------- */

.site-footer {
  padding: 34px 0 48px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--text-muted); }

/* --- Placeholder-merkintä (POISTETAAN ENNEN JULKAISUA) ------ */

.ph {
  background: #FFF3CD;
  border-bottom: 1px dashed #C79100;
  padding: 0 3px;
  font-weight: 600;
  color: #6B4E00;
}

.draft-banner {
  background: #C79100;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
}

/* --- Mobiili ------------------------------------------------ */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0 52px;
  }
  .hero-art { order: -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .hero { padding: 40px 0 4px; }
  section { padding: 36px 0; }
  .cta { display: block; text-align: center; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stats li { padding: 18px; }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quote { padding: 22px; }
  .quote p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover { transform: none; }
}
