html, body{
    height: 100%;
    overflow: hidden;
  }
/* Center the animation on the page (use on your overview main pane container) */
.overview{
    position: relative;   /* REQUIRED */
    overflow: hidden;     /* hides bottom half cleanly */
  
    min-height: calc(100vh - 64px);
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
    padding-top: 12px;
  
    /* Improvement 1: nudge content upward a bit */
    padding-bottom: 120px;
  }

  .overview-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  
    transform: translateY(-120px); /* move content up; tweak -30 to -70 */
  }
  
  
  .shuffle-stage{
    width: min(600px, 92vw);
    display: grid;
    place-items: center;
  }
  
  .shuffle-wrap{
    position: relative;
    width: 560px;
    height: 180px;
  
    /* layout variables */
    --left-x: 24px;
    --left-w: 300px;
  
    --right-x: 372px;   /* push right card away so it never touches */
    --right-w: 170px;
  
    --gap: 22px;        /* guaranteed empty space */
    --travel: calc(var(--right-x) - var(--left-x) - var(--left-w) - var(--gap));
  }
  
  /* Shared card look */
  .card, .stack{
    position: absolute;
    top: 30px;
    height: 120px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
  }
  
  /* Back stack (subtle) */
  .stack{
    left: var(--left-x);
    width: var(--left-w);
    background: #f4f4f6;
    z-index: 2;
  }
  .stack-1{ transform: translate(-10px, 10px) rotate(-2deg); opacity: 0.35; }
  .stack-2{ transform: translate(-4px, 5px)  rotate(-1deg); opacity: 0.55; }
  
  /* Left moving card */
  .card-left{
    left: var(--left-x);
    width: var(--left-w);
    background: #ffffff;
    display: grid;
    place-items: center;
  
    z-index: 3;
    transform: translate(0,0) rotate(-1deg);
    will-change: transform, z-index, opacity;
  }
  
  /* Right fixed card */
  .card-right-fixed{
    left: var(--right-x);
    width: var(--right-w);
    background: #ffffff;
    display: grid;
    place-items: center;
  
    z-index: 4; /* always on top */
    transform: rotate(1deg);
  }
  
  /* Text */
  .card-word{
    font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 44px;
    letter-spacing: -0.6px;
    color: #111827;
  }
  
  /* ---- Real shuffle animation: only left card moves ---- */
  .shuffle-wrap.shuffle .card-left{
    animation: shuffleBehind 1.05s cubic-bezier(.2,.8,.2,1);
  }
  
  /*
  We hide the text swap by fading the moving card out while it's behind.
  The right card never moves.
  The travel distance is computed to stop before the right card + gap.
  */
  @keyframes shuffleBehind{
    0%   { transform: translate(0,0) rotate(-1deg) scale(1); z-index: 3; opacity: 1; }
    30%  { transform: translate(var(--travel), -8px) rotate(2deg) scale(1); z-index: 3; opacity: 1; }
  
    /* go behind stack */
    48%  { transform: translate(calc(var(--travel) * 0.85), 26px) rotate(7deg) scale(0.96); z-index: 1; opacity: 0.96; }
    52%  { transform: translate(calc(var(--travel) * 0.85), 26px) rotate(7deg) scale(0.96); z-index: 1; opacity: 0.0; }
  
    /* return from behind (now it feels like the "new" card comes back) */
    60%  { transform: translate(18px, 14px) rotate(3deg) scale(0.98); z-index: 1; opacity: 0.0; }
    72%  { transform: translate(10px, 10px) rotate(2deg) scale(0.99); z-index: 2; opacity: 1; }
  
    100% { transform: translate(0,0) rotate(-1deg) scale(1); z-index: 3; opacity: 1; }
  }
  
  /* Accessibility: reduce motion */
  @media (prefers-reduced-motion: reduce){
    .shuffle-wrap.shuffle .card-left{ animation: none; }
  }
  .overview-text{
    margin-top: 28px;
    text-align: center;
    max-width: 720px;
  }
  
  .overview-tagline{
    color: #000;
    text-align: center;
    font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 720px;
    align-self: stretch;
  }

  .overview-cta{
    margin-top: 14px;
    margin-bottom: 18px;  /* Improvement 3: keep buttons off the curve */
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .cta-button-primary{
    font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    display: flex;
    width: 240px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 1000px;
    background: #E2BCFF;
    box-shadow: 0 4px 0 0 #B796D0;
    text-decoration: none;
    color: black;
    font-size: 20px;
  }

  .cta-button-secondary{
    font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    display: flex;
    width: 240px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 1000px;
    background: #D1EEC7;
    box-shadow: 0 4px 0 0 #B2CAAA;
    text-decoration: none;
    color: black;
    font-size: 20px;
  }
  
  .cta-button:hover{ opacity: 0.95; }
  .cta-button:active{ transform: translateY(1px); }
  
  /* pastel variants */
  .cta-purple{
    background: #d8c7ff;
  }
  .cta-purple:hover{
    background: #ccb7ff;
  }
  
  .cta-green{
    background: #cfeec3;
  }
  .cta-green:hover{
    background: #c2e7b4;
  }
  
  /* Half circle decoration at the bottom */
  .overview-halfcircle{
    position: absolute;
    bottom: -260px; /* push it down so only half shows */
    left: 50%;
    transform: translateX(-50%);
  
    width: 120%;
    height: 620px;
  
    /* Improvement 2: subtle premium gradient */
    background: radial-gradient(circle at 50% 0%,
      #eeeeee 0%,
      #e6e6e6 60%,
      #e2e2e2 100%);
  
    border-radius: 50%;
    z-index: -1; /* behind content */
  }
  
/* =========================
   Mobile / Tablet overrides
   Paste UNDER your desktop CSS
   ========================= */

/* Tablets + phones */
@media (max-width: 768px){

  /* Let the page scroll on mobile (your desktop CSS locks it) */
  html, body{
    height: auto;
    overflow: auto;
  }

  /* Overview should size naturally on mobile */
  .overview{
    height: auto;
    min-height: calc(100dvh - 64px); /* dynamic viewport unit handles mobile browser bars */
    padding-top: 12px;
    padding-bottom: 90px;            /* keep content above the half circle */
    justify-content: flex-start;      /* avoid vertical "center push" issues */
    
  }

  /* Remove the desktop nudging on mobile */
  .overview-content{
    transform: none;
    padding-top: 28px;               /* replace the removed translateY */
  }

  /* Stage fills width */
  .shuffle-stage{
    width: 100%;
    padding: 0 14px;
  }

  /* Make the shuffle area responsive */
  .shuffle-wrap{
    width: 100%;
    max-width: 560px;
    height: clamp(140px, 22vh, 180px);

    /* Responsive layout variables */
    --left-x: 4vw;
    --gap: clamp(12px, 4vw, 22px);

    --left-w: clamp(210px, 62vw, 300px);
    --right-w: clamp(120px, 30vw, 170px);

    /* Right card sits after left + gap, so it never collides */
    --right-x: calc(var(--left-x) + var(--left-w) + var(--gap));

    /* Animation travel recomputed from the above vars */
    --travel: calc(var(--right-x) - var(--left-x) - var(--left-w) - var(--gap));
  }

  /* Cards scale with viewport */
  .card, .stack{
    top: clamp(14px, 3.2vh, 30px);
    height: clamp(92px, 16vh, 120px);
    border-radius: 16px;
  }

  /* Text scales down on small screens */
  .card-word{
    font-size: clamp(26px, 7vw, 44px);
    letter-spacing: -0.4px;
  }

  /* Tagline scales + pads */
  .overview-text{
    padding: 0 16px;
    margin-top: 22px;
  }

  .overview-tagline{
    font-size: clamp(16px, 4.6vw, 24px);
    line-height: 1.25;
  }

  /* Buttons wrap nicely */
  .overview-cta{
    padding: 0 16px;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 16px;
  }

  /* Half circle: keep it visible but not intrusive */
  .overview-halfcircle{
    bottom: -360px;
    width: 160%;
    height: 560px;
  }
}

/* Small phones */
@media (max-width: 480px){

  .overview{
    padding-bottom: 110px;
  }

  .shuffle-wrap{
    height: 150px;
    --left-x: 12px;
    --gap: 12px;

    --left-w: clamp(190px, 64vw, 260px);
    --right-w: clamp(110px, 28vw, 140px);

    --right-x: calc(var(--left-x) + var(--left-w) + var(--gap));
    --travel: calc(var(--right-x) - var(--left-x) - var(--left-w) - var(--gap));
  }

  .cta-button-primary,
  .cta-button-secondary{
    width: 100%;
    max-width: 340px;
    font-size: 18px;
  }

  .overview-halfcircle{
    bottom: -420px;
    width: 190%;
    height: 620px;
  }
}

/* =========================
   SEO internal links block
   ========================= */

   .seo-links{
    max-width: 900px;
    margin: 48px auto 0;
    padding: 20px 22px;
  
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
  
    box-shadow:
      0 6px 18px rgba(0,0,0,0.05);
  }
  
  .seo-links h2{
    margin: 0 0 12px;
  
    font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
  
    color: #111827;
  }
  
  .seo-links ul{
    list-style: none;
    margin: 0;
    padding: 0;
  
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 16px;
  }
  
  .seo-links li{
    margin: 0;
  }
  
  .seo-links a{
    display: inline-block;
    padding: 8px 12px;
  
    border-radius: 999px;
  
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  
    color: #111827;
    background: #f3f4f6;
  
    transition: background-color 0.15s ease, transform 0.12s ease;
  }
  
  .seo-links a:hover{
    background: #e5e7eb;
  }
  
  .seo-links a:active{
    transform: translateY(1px);
  }
  