  /* ============================================================
     DESIGN TOKENS
     ============================================================ */
  :root {
    --navy: #2d3a7d;
    --navy-dark: #232e66;
    --navy-deeper: #1a2452;
    --navy-50: #eef0f8;
    --pink: #e91e85;
    --pink-soft: #ffb3d9;
    --pink-50: #fdeaf3;
    --orange: #f58024;
    --orange-soft: #fcb549;
    --orange-50: #fff2e6;
    --red: #e64644;
    --magenta: #d823cd;
    --mads-blue: #0866ff;
    --mads-blue-soft: #cfe0ff;
    --mads-blue-50: #eef4ff;

    --grad: linear-gradient(90deg, #fcb549 0%, #e64644 50%, #d823cd 100%);
    --grad-tilt: linear-gradient(135deg, #fcb549 0%, #e64644 50%, #d823cd 100%);
    --grad-soft: linear-gradient(135deg, #fff2e6 0%, #fdeaf3 100%);
    --grad-blue: linear-gradient(135deg, #0866ff 0%, #1a2452 100%);

    --bg: #ffffff;
    --surface: #f7f8fc;
    --surface-2: #f2f4f8;
    --border: #e8eaef;
    --text: #151515;
    --text-muted: #6f6f6f;

    --font: 'Figtree', system-ui, -apple-system, sans-serif;

    --sh-md: 0 4px 8px rgba(35, 46, 102, 0.06), 0 8px 24px rgba(35, 46, 102, 0.08);
    --sh-lg: 0 12px 24px -8px rgba(35, 46, 102, 0.12), 0 24px 64px -12px rgba(35, 46, 102, 0.18);
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
  img, video, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }
  ::selection { background: var(--pink); color: #fff; }

  .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ============================================================
     HERO
     ============================================================ */
  .hero-page {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #edf3fe 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
  }
  .hero-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(8, 102, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 30, 133, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-page-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .hero-page-inner { max-width: 640px; }
  .hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .hero-page .kicker {
    color: var(--mads-blue);
    margin-bottom: 20px;
  }
  .hero-page h1 {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
  }
  .hero-page h1 .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-page p {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 36px;
  }
  .hero-page p + p { margin-top: -16px; margin-bottom: 36px; }
  .hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .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;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -8px rgba(230, 70, 68, 0.7);
  }

  /* ============================================================
     HERO VISUAL: kuvitteellinen syötemainos leijuvana korttina
     ============================================================ */
  .mads-visual {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin: 0;
    padding: 56px 48px 64px;
    border-radius: 28px;
    background:
      radial-gradient(circle at 18% 12%, rgba(8, 102, 255, .35) 0%, transparent 46%),
      radial-gradient(circle at 88% 92%, rgba(216, 35, 205, .28) 0%, transparent 50%),
      var(--navy-deeper);
    box-shadow: var(--sh-lg);
  }
  .mads-post {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 30px 60px -18px rgba(5, 10, 40, .55);
    transform: rotate(-1.5deg);
  }
  .mads-post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
  .mads-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #1d1d1b;
    color: #f3ede2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink);
  }
  .mads-post-name { display: block; color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.2; }
  .mads-post-meta { display: block; color: var(--text-muted); font-size: 12px; }
  .mads-post-more { margin-left: auto; color: var(--text-muted); }
  .mads-post-more svg { width: 20px; height: 20px; }
  .mads-post-img { width: 100%; height: auto; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 62%; }
  .mads-post-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--mads-blue-50);
  }
  .mads-post-cta span { color: var(--navy-dark); font-size: 13px; font-weight: 700; }
  .mads-post-cta strong {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--mads-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }
  .hero-page .mads-post-text { max-width: none; margin: 0; padding: 12px 16px 16px; color: var(--text); font-size: 13.5px; line-height: 1.5; }
  .mads-post-text b { font-weight: 800; }
  .mads-pill {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy-dark);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: var(--sh-md);
    animation: madsPillFloat 6s ease-in-out infinite;
  }
  .mads-pill--live { top: 22px; right: -18px; }
  .mads-pill--test { bottom: 50px; left: -22px; animation-delay: -3s; }
  .mads-pill-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 4px rgba(47, 179, 107, .18); }
  .mads-pill-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
  }
  .mads-visual figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    text-align: center;
  }
  @keyframes madsPillFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .mads-pill { animation: none; }
  }

  /* ============================================================
     SECTION HEAD
     ============================================================ */
  .block { padding: 100px 0; }
  .block.alt { background: var(--surface); }
  .section-head {
    margin-bottom: 64px;
    max-width: 880px;
  }
  .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
  }
  .kicker.orange { color: var(--orange); }
  .kicker.pink { color: var(--pink); }
  .kicker.navy { color: var(--navy); }
  .kicker.blue { color: var(--mads-blue); }
  .section-title {
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.015em;
  }
  .section-title .gr {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .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; }

  /* ============================================================
     WHEN-TO-USE: käyttötapausruudukko
     ============================================================ */
  .use-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
  .use-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px 28px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
  }
  .use-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--mads-blue-soft);
  }
  .use-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .use-card:hover::before { transform: scaleX(1); }
  .use-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--mads-blue-50);
    color: var(--mads-blue);
  }
  .use-icon.orange { background: var(--orange-50); color: var(--orange); }
  .use-icon.pink { background: var(--pink-50); color: var(--pink); }
  .use-icon.navy { background: var(--navy-50); color: var(--navy); }
  .use-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .use-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
  }

  /* ============================================================
     INLINE KIPINA CTA
     ============================================================ */
  .inline-cta {
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 26px 32px;
    background: var(--grad-soft);
    border: 1px solid var(--pink-soft);
    border-radius: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
  }
  .inline-cta::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(232, 30, 133, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .inline-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 240px;
    position: relative;
    z-index: 2;
  }
  .inline-cta-text strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.01em;
    line-height: 1.3;
  }
  .inline-cta-text span {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.55;
  }
  .inline-cta-text a {
    color: var(--pink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--pink-soft);
    text-underline-offset: 3px;
  }
  .inline-cta-text a:hover { text-decoration-color: var(--pink); }
  .inline-cta .ai-hi { position: relative; z-index: 2; flex-shrink: 0; }

