/**
 * not-found block styles — branded 404 (404 template body).
 * Gradient / navy / orange / muted values match the site's conversion cards
 * (fg-line-entry, cta-plan) so the page reads as part of the same system.
 */
@layer spk-block {
  .spk-x-not-found {
    font-family: var(--wp--preset--font-family--primary, "Helvetica Neue", Arial, sans-serif);
    background: #fff;
  }
  .spk-x-not-found__shell {
    width: min(100% - clamp(32px, 7vw, 120px), 1250px);
    margin-inline: auto;
  }
  .spk-x-not-found__band {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 120px);
    color: #fff;
    background: linear-gradient(120deg, #08a8d2 0%, #087eae 30%, #064a7d 62%, #062b5c 100%);
  }
  .spk-x-not-found__band::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 70%);
    pointer-events: none;
  }
  .spk-x-not-found__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
  }
  .spk-x-not-found__code {
    display: block;
    font-size: clamp(128px, 19vw, 280px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
    text-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    user-select: none;
  }
  .spk-x-not-found__eyebrow {
    margin: 0 0 14px;
    color: #b8f4ff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .spk-x-not-found__heading {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 3.8vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 900;
  }
  .spk-x-not-found__text {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.6;
  }
  .spk-x-not-found__text p { margin: 0 0 10px; }
  .spk-x-not-found__text p:last-child { margin-bottom: 0; }

  .spk-x-not-found__search {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 28px 0 0;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
  }
  .spk-x-not-found__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .spk-x-not-found__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #062b5c;
    font: inherit;
    font-size: 16px;
  }
  .spk-x-not-found__input::placeholder { color: #8a97a6; }
  .spk-x-not-found__input:focus { outline: 2px solid #f28a2e; outline-offset: 1px; }

  .spk-x-not-found__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    background: #f28a2e;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .spk-x-not-found__btn:hover { background: #e07a1f; transform: translateY(-1px); }
  .spk-x-not-found__btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
  }
  .spk-x-not-found__btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
  .spk-x-not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
  }

  .spk-x-not-found__links {
    padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 7vw, 104px);
  }
  .spk-x-not-found__links-label {
    margin: 0 0 22px;
    color: #637083;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .spk-x-not-found__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .spk-x-not-found__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 24px;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  a.spk-x-not-found__card:hover {
    transform: translateY(-3px);
    border-color: #b7d3e3;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  }
  .spk-x-not-found__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef6fb;
    color: #062b5c;
  }
  .spk-x-not-found__icon .spk-x-icon { width: 22px; height: 22px; }
  .spk-x-not-found__card-title {
    margin: 6px 0 0;
    color: #062b5c;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 900;
  }
  .spk-x-not-found__card-text {
    margin: 0;
    color: #637083;
    font-size: 15px;
    line-height: 1.55;
    flex: 1 1 auto;
  }
  .spk-x-not-found__card-link {
    margin-top: 6px;
    color: #f28a2e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}

@layer spk-responsive {
  @media (max-width: 980px) {
    .spk-x-not-found__hero {
      grid-template-columns: 1fr;
      gap: 12px;
      text-align: left;
    }
    .spk-x-not-found__code {
      font-size: clamp(96px, 22vw, 180px);
      -webkit-text-stroke-width: 1.5px;
    }
    .spk-x-not-found__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 640px) {
    .spk-x-not-found__search {
      flex-direction: column;
      padding: 8px;
    }
    .spk-x-not-found__btn { width: 100%; }
    .spk-x-not-found__grid { grid-template-columns: 1fr; }
  }
}
