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

html,
body {
  margin: 0;
  padding: 0;
  background: #0b1f3a;
  color: #0b1f3a;
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  height: 100%;
}

.defs-only {
  position: absolute;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fdfbf2;
}

/* ---------- Background (blurred QF homepage) ---------- */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: bg-fade-in 1.4s ease-out both;
}

.bg__image {
  position: absolute;
  inset: 0;
  background-image: url('assets/qf-homepage.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  filter: blur(14px) saturate(108%) brightness(0.97);
}

@media (max-width: 700px) {
  .bg__image {
    background-image: url('assets/qf-homepage-mobile.png');
  }
}

.bg__haze {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 85% at 50% 35%, rgba(253, 251, 242, 0.18) 0%, transparent 55%);
  mix-blend-mode: screen;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 85% at 50% 45%, transparent 45%, rgba(11, 31, 58, 0.38) 100%);
}

/* ---------- Note ---------- */
.note-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-1deg);
  width: 520px;
  max-width: 92%;
  animation: note-fade-up 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.45s;
}

@media (max-width: 700px) {
  .note-wrap {
    width: 88%;
  }
}

.note {
  position: relative;
  background: #fdfbf2;
  padding: 36px 44px;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 18px 30px rgba(11, 31, 58, 0.22),
    0 40px 80px rgba(11, 31, 58, 0.32);
}

@media (max-width: 700px) {
  .note {
    padding: 32px 24px;
  }
}

.note__grain {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  filter: url(#paper-grain);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.9;
}

.note__edge {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(180, 140, 80, 0.06) 100%);
  pointer-events: none;
}

/* ---------- Tape ---------- */
.tape {
  position: absolute;
  top: -12px;
  width: 90px;
  height: 24px;
  background: linear-gradient(180deg,
      rgba(232, 220, 168, 0.78) 0%,
      rgba(220, 210, 150, 0.55) 50%,
      rgba(232, 220, 168, 0.78) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
}

.tape::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 4px, rgba(0, 0, 0, 0.04) 4px 5px);
}

.tape--left {
  left: 80px;
  transform: rotate(-6deg);
}

.tape--right {
  right: 80px;
  transform: rotate(5deg);
}

@media (max-width: 700px) {
  .tape--left {
    left: 24px;
  }

  .tape--right {
    right: 24px;
  }
}

/* ---------- Note content ---------- */
.note__logo {
  display: flex;
  justify-content: center;
  position: relative;
}

.note__logo img {
  height: 34px;
  width: auto;
  display: block;
}

@media (max-width: 700px) {
  .note__logo img {
    height: 28px;
  }
}

.note__divider {
  width: 36px;
  height: 2px;
  background: #266DD9;
  opacity: 0.5;
  margin: 20px auto 22px;
}

@media (max-width: 700px) {
  .note__divider {
    margin: 18px auto 22px;
  }
}

.note__headline {
  font-size: 30px;
  line-height: 1.18;
  margin: 0 0 14px;
  font-weight: 600;
  text-align: center;
  color: #0b1f3a;
  letter-spacing: -0.4px;
  position: relative;
}

@media (max-width: 700px) {
  .note__headline {
    font-size: 26px;
  }
}

.note__body {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto;
  color: #4a5568;
  text-align: center;
  max-width: 380px;
  font-weight: 400;
  position: relative;
}

@media (max-width: 700px) {
  .note__body {
    font-size: 14px;
  }
}

.note__footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(11, 31, 58, 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  font-size: 11px;
  color: #6b7280;
  position: relative;
}

.note__footer a {
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
  outline-offset: 3px;
  white-space: nowrap;
}

.note__footer a:hover {
  text-decoration: underline;
}

/* ---------- Gnome layer ---------- */
.gnomes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 90px;
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 700px) {
  .gnomes {
    bottom: 110px;
  }

  .gnome--small {
    display: none;
  }
}

.gnome {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 84px;
  height: 80px;
  will-change: transform;
  animation: gnome-fade-in 1.6s ease-out both;
}

.gnome--big {
  animation-delay: 0.95s;
}

.gnome--mid {
  animation-delay: 1.25s;
}

.gnome--small {
  animation-delay: 1.60s;
}

/* ---------- Animations ---------- */
@keyframes bg-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes note-fade-up {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 24px)) rotate(-1deg);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-1deg);
  }
}

@keyframes gnome-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .bg,
  .note-wrap,
  .gnome {
    animation: none;
    opacity: 1;
  }

  .note-wrap {
    transform: translate(-50%, -50%) rotate(-1deg);
  }
}

/* ================================================================
   Content pages (/contact, /privacy, /privacy/sharing,
   /privacy/terms, /accessibility, /security-program)

   Mirrors the layout and type of the previously live quotefinders.com
   pages.
   ================================================================ */
.doc-body {
  height: auto;
  min-height: 100%;
  background: #ffffff;
  color: #1f2733;
  display: flex;
  flex-direction: column;
}

/* ---------- Masthead ---------- */
.doc-head {
  padding: 26px 20px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: center;
}

.doc-head__logo {
  display: block;
  border-radius: 2px;
  outline-offset: 6px;
}

.doc-head__logo img {
  height: 30px;
  width: auto;
  display: block;
}

@media (max-width: 700px) {
  .doc-head {
    padding: 20px 16px;
  }

  .doc-head__logo img {
    height: 26px;
  }
}

/* ---------- Document column ---------- */
.doc {
  flex: 1 0 auto;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

@media (max-width: 700px) {
  .doc {
    padding: 36px 16px 52px;
  }
}

.doc__title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: #0b1f3a;
  margin: 0 0 28px;
}

@media (max-width: 700px) {
  .doc__title {
    font-size: 28px;
    margin-bottom: 22px;
  }
}

.doc__content {
  font-size: 16px;
  line-height: 1.75;
  color: #333c4a;
}

@media (max-width: 700px) {
  .doc__content {
    font-size: 15px;
  }
}

/* "Last updated …" / "Last modified …" stamp */
.doc__content h4 {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 26px;
}

.doc__content h4 strong {
  font-weight: 500;
}

.doc__content h2 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
  color: #0b1f3a;
  margin: 40px 0 12px;
}

.doc__content h3 {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: #0b1f3a;
  margin: 26px 0 8px;
}

@media (max-width: 700px) {
  .doc__content h2 {
    font-size: 19px;
    margin-top: 32px;
  }
}

.doc__content h2:first-child,
.doc__content h3:first-child,
.doc__content h4:first-child {
  margin-top: 0;
}

.doc__content p {
  margin: 0 0 16px;
}

.doc__content ul,
.doc__content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.doc__content li {
  margin-bottom: 8px;
}

.doc__content li>p {
  margin-bottom: 8px;
}

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

.doc__content a {
  color: #266DD9;
  text-decoration: underline;
  border-radius: 2px;
  outline-offset: 2px;
  overflow-wrap: anywhere;
}

.doc__content a:hover {
  color: #1b53a8;
}

.doc__content> :last-child {
  margin-bottom: 0;
}

/* ---------- Footer (mirrors kinpub-ui FooterComponent) ---------- */
.doc-foot {
  flex-shrink: 0;
  background: #f5f5f5;
  padding: 24px 20px;
}

.doc-foot__inner {
  max-width: 1050px;
  margin: 0 auto;
}

.doc-foot__logo {
  display: flex;
  justify-content: center;
  border-radius: 2px;
  outline-offset: 6px;
}

.doc-foot__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.doc-foot__nav {
  margin-top: 20px;
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  justify-content: center;
}

.doc-foot__nav a {
  margin: 4px;
  font-weight: 300;
  color: #1b53a8;
  text-decoration: underline;
  border-radius: 2px;
  outline-offset: 2px;
}

.doc-foot__nav a[aria-current='page'] {
  font-weight: 500;
}

.doc-foot__sep {
  color: #9aa1ac;
  padding: 0 2px;
}

.doc-foot__legal {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: #1f2733;
}

.doc-foot__copyright {
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 14px;
  color: #1f2733;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #266DD9;
}
