.ivory-check-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 13% 24%, rgba(231, 190, 119, 0.18), transparent 27%),
    radial-gradient(circle at 85% 17%, rgba(108, 139, 255, 0.23), transparent 29%),
    linear-gradient(118deg, #040818 0%, #10183b 47%, #2a2449 100%);
}

.ivory-check-page textarea,
.ivory-check-page button {
  font: inherit;
}

.check-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 142px 0 82px;
}

.check-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(6, 8, 22, 0.8) 0%, rgba(10, 15, 36, 0.58) 52%, rgba(18, 20, 46, 0.68) 100%),
    radial-gradient(circle at 80% 25%, rgba(244, 188, 110, 0.22), transparent 36%),
    radial-gradient(circle at 22% 78%, rgba(108, 134, 255, 0.16), transparent 40%),
    url('../assets/hero-galaxy-bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

.check-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 1px, transparent 1.7px);
  background-size: 3px 3px;
  opacity: 0.08;
  z-index: 0;
}

.check-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 58px;
  align-items: center;
}

.check-hero-copy,
.check-panel {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-reveal 0.8s ease forwards;
}

.check-panel {
  animation-delay: 0.14s;
}

.check-eyebrow,
.section-kicker,
.result-kicker {
  color: var(--ivory-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.check-title {
  max-width: 680px;
  margin: 12px 0 22px;
  color: var(--ivory-light);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.1vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.check-title span {
  color: rgba(255, 255, 255, 0.96);
}

.check-subtitle {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 18px;
  color: rgba(240, 228, 199, 0.9);
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.check-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(100%, 450px);
  height: 2px;
  background: linear-gradient(90deg, rgba(244, 219, 165, 0.9), rgba(244, 219, 165, 0));
}

.check-intro {
  max-width: 590px;
  color: rgba(232, 237, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.check-benefits {
  display: grid;
  gap: 14px;
  max-width: 610px;
  margin-top: 30px;
  list-style: none;
}

.check-benefits li {
  position: relative;
  padding: 0 0 12px 48px;
  color: rgba(245, 247, 255, 0.96);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.check-benefits li::before {
  content: '\2713';
  position: absolute;
  top: -4px;
  left: 0;
  color: var(--ivory-light);
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.check-benefits li:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 48px;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 218, 166, 0.45), rgba(243, 218, 166, 0));
}

.check-panel,
.result-card {
  width: 100%;
  border: 1px solid rgba(218, 186, 125, 0.34);
  border-radius: 22px;
  background: linear-gradient(156deg, rgba(19, 22, 46, 0.94) 0%, rgba(18, 17, 45, 0.95) 100%);
  box-shadow: var(--shadow-card);
  color: var(--white);
}

.check-panel {
  padding: 26px;
}

.check-panel h2,
.result-header h2,
.how-it-works h2,
.join-strip h2 {
  font-family: var(--font-display);
}

.check-panel h2 {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.42rem, 2vw, 1.72rem);
  line-height: 1.2;
}

.check-panel-intro {
  margin-bottom: 18px;
  color: rgba(232, 237, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.5;
}

.check-form {
  display: grid;
  gap: 13px;
}

.check-form > label:first-child {
  color: rgba(240, 244, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.check-form textarea {
  display: block;
  width: 100%;
  min-height: 148px;
  resize: vertical;
  border: 1px solid rgba(214, 220, 236, 0.86);
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: #171a2b;
  padding: 13px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.check-form textarea::placeholder {
  color: #7a8298;
}

.check-form textarea:focus {
  border-color: var(--ivory-dark);
  box-shadow: 0 0 0 3px rgba(208, 189, 148, 0.26);
}

.public-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.public-consent input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--ivory);
  justify-self: center;
}

.security-check {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(221, 190, 135, 0.24);
  border-radius: 14px;
  background: rgba(7, 12, 35, 0.45);
}

.security-check[hidden] {
  display: none;
}

.security-check p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.public-consent span {
  color: rgba(236, 242, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.42;
}

#checkButton,
.primary-download,
.load-more,
.secondary-button,
.join-strip a {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(110deg, #f3deac 0%, #d4b273 100%);
  color: #171a2b;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.2s ease;
}

#checkButton {
  min-height: 47px;
  margin-top: 2px;
  padding: 13px 16px;
  font-size: 0.98rem;
}

#checkButton:hover:not(:disabled),
.primary-download:hover,
.load-more:hover:not(:disabled),
.secondary-button:hover,
.join-strip a:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

#checkButton:disabled {
  cursor: wait;
  opacity: 0.74;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ivory-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.feed-cta-panel {
  overflow: hidden;
  position: relative;
}

.feed-cta-panel::after {
  content: '';
  position: absolute;
  right: -72px;
  bottom: -92px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 208, 145, 0.2), transparent 68%);
  pointer-events: none;
}

.app-feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.app-feature-list span {
  position: relative;
  padding-left: 27px;
  color: rgba(242, 245, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 650;
}

.app-feature-list span::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--ivory-light);
  font-weight: 800;
}

.primary-download {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

.panel-note {
  max-width: 370px;
  margin-top: 14px;
  color: rgba(225, 231, 245, 0.68);
  font-size: 0.76rem;
  line-height: 1.5;
}

.form-note {
  color: rgba(225, 231, 245, 0.76);
  font-size: 0.76rem;
  line-height: 1.4;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(201, 214, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.status-card strong {
  color: var(--ivory-light);
}

.status-card p {
  margin-top: 2px;
  color: rgba(229, 235, 248, 0.82);
  font-size: 0.84rem;
}

.loader {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--ivory);
  border-radius: 50%;
  animation: check-spin 0.9s linear infinite;
}

@keyframes check-spin {
  to { transform: rotate(360deg); }
}

.error-message {
  margin-top: 15px;
  color: #ffb9be;
  font-size: 0.86rem;
  font-weight: 700;
}

.dossier-feed {
  padding: 82px 0 88px;
  border-top: 1px solid rgba(239, 228, 199, 0.14);
  background:
    radial-gradient(circle at 86% 12%, rgba(78, 103, 201, 0.16), transparent 30%),
    rgba(7, 11, 29, 0.7);
}

.feed-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.feed-heading h2 {
  margin: 8px 0 7px;
  color: rgba(255, 255, 255, 0.97);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1.16;
}

.feed-heading > div:first-child > p:last-child {
  max-width: 650px;
  color: rgba(230, 235, 249, 0.76);
  line-height: 1.55;
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.feed-filter {
  min-height: 38px;
  border: 1px solid rgba(231, 218, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 240, 252, 0.82);
  cursor: pointer;
  padding: 8px 13px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.feed-filter:hover,
.feed-filter.is-active {
  border-color: rgba(239, 216, 166, 0.54);
  background: rgba(218, 187, 126, 0.16);
  color: var(--ivory-light);
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dossier-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  border: 1px solid rgba(201, 214, 255, 0.18);
  border-radius: 19px;
  background:
    linear-gradient(155deg, rgba(29, 35, 68, 0.94), rgba(15, 19, 44, 0.94));
  box-shadow: 0 16px 42px rgba(3, 6, 20, 0.22);
  color: inherit;
  padding: 21px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dossier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 203, 147, 0.48);
  box-shadow: 0 22px 54px rgba(3, 6, 20, 0.34);
}

.dossier-card:focus-visible {
  outline: 3px solid rgba(239, 216, 166, 0.72);
  outline-offset: 3px;
}

.dossier-card-top {
  display: flex;
  min-height: 34px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dossier-type {
  color: rgba(221, 228, 249, 0.66);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-card .verdict {
  padding: 6px 9px;
  font-size: 0.64rem;
}

.dossier-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 17px 0 10px;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dossier-summary {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(225, 231, 247, 0.76);
  font-size: 0.86rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.dossier-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: rgba(218, 225, 244, 0.62);
  font-size: 0.7rem;
  font-weight: 650;
}

.dossier-open {
  margin-top: 13px;
  color: var(--ivory-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.feed-loading,
.feed-message {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px dashed rgba(222, 207, 169, 0.2);
  border-radius: 18px;
  color: rgba(232, 237, 250, 0.76);
  text-align: center;
}

.feed-loading .loader {
  width: 23px;
  height: 23px;
}

.load-more {
  display: block;
  min-width: 210px;
  min-height: 46px;
  margin: 28px auto 0;
  padding: 12px 20px;
}

.load-more:disabled {
  cursor: wait;
  opacity: 0.7;
}

.result-section {
  padding: 72px 0;
  border-top: 1px solid rgba(239, 228, 199, 0.14);
  background: rgba(8, 12, 30, 0.5);
}

.result-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.result-header h2 {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.verdict {
  flex: 0 0 auto;
  border: 1px solid rgba(239, 228, 199, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ivory-light);
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.verdict.good {
  border-color: rgba(119, 225, 163, 0.32);
  background: rgba(54, 152, 96, 0.18);
  color: #b0f3cc;
}

.verdict.warn {
  border-color: rgba(243, 203, 115, 0.34);
  background: rgba(176, 117, 30, 0.18);
  color: #f7d998;
}

.verdict.bad {
  border-color: rgba(255, 143, 153, 0.32);
  background: rgba(174, 54, 65, 0.18);
  color: #ffb9be;
}

.result-summary {
  margin-top: 22px;
  color: rgba(232, 237, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.7;
}

.result-meta {
  margin-top: 8px;
  color: rgba(220, 227, 246, 0.62);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finding {
  padding: 22px 0;
  border-top: 1px solid rgba(201, 214, 255, 0.18);
}

.finding:first-child {
  margin-top: 12px;
}

.finding h3 {
  margin-bottom: 8px;
  color: var(--ivory-light);
  font-size: 1rem;
  line-height: 1.5;
}

.finding-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.finding-heading h3 {
  flex: 1 1 auto;
}

.finding-verdict {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.finding-verdict.good {
  background: rgba(54, 152, 96, 0.18);
  color: #b0f3cc;
}

.finding-verdict.warn {
  background: rgba(176, 117, 30, 0.18);
  color: #f7d998;
}

.finding-verdict.bad {
  background: rgba(174, 54, 65, 0.18);
  color: #ffb9be;
}

.source-title {
  display: block;
  margin-bottom: 9px;
  color: rgba(238, 226, 196, 0.8);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.finding p {
  margin-bottom: 12px;
  color: rgba(229, 235, 248, 0.82);
  line-height: 1.58;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sources a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(239, 228, 199, 0.24);
  border-radius: 999px;
  color: var(--ivory-light);
  padding: 7px 11px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.secondary-button,
.text-button {
  padding: 12px 18px;
  font-weight: 800;
}

.text-button {
  border: 1px solid rgba(239, 228, 199, 0.28);
  border-radius: 10px;
  background: transparent;
  color: var(--ivory-light);
  cursor: pointer;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.how-it-works {
  padding: 76px 0 82px;
  border-top: 1px solid rgba(239, 228, 199, 0.14);
  background: rgba(8, 12, 30, 0.34);
  text-align: center;
}

.how-it-works h2 {
  margin: 10px 0 32px;
  color: var(--ivory-light);
  font-size: clamp(1.84rem, 3.5vw, 2.9rem);
  line-height: 1.2;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  min-height: 215px;
  padding: 26px 22px;
  border: 1px solid rgba(201, 214, 255, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(26, 32, 61, 0.88), rgba(19, 22, 45, 0.86));
  box-shadow: var(--shadow-soft);
}

.steps article > span {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid rgba(239, 228, 199, 0.3);
  border-radius: 50%;
  background: rgba(208, 189, 148, 0.12);
  color: var(--ivory-light);
  font-weight: 800;
}

.steps h3 {
  margin: 15px 0 7px;
  color: var(--ivory-light);
  font-size: 1.08rem;
}

.steps p {
  color: rgba(229, 235, 248, 0.84);
  font-size: 0.95rem;
  line-height: 1.55;
}

.join-strip-wrap {
  padding: 68px 0;
  background: rgba(7, 10, 26, 0.72);
}

.join-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(218, 186, 125, 0.34);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(208, 189, 148, 0.17), rgba(23, 31, 66, 0.9)),
    rgba(13, 19, 45, 0.78);
  box-shadow: var(--shadow-soft);
}

.join-strip h2 {
  max-width: 720px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.22;
}

.join-strip a {
  flex: 0 0 auto;
  padding: 13px 19px;
}

.ivory-check-page .footer {
  padding: 52px 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .check-hero {
    min-height: auto;
  }

  .check-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .check-hero-copy {
    max-width: 720px;
    text-align: center;
    justify-self: center;
  }

  .check-subtitle::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .check-intro {
    margin-inline: auto;
  }

  .check-benefits {
    width: min(100%, 620px);
    margin-inline: auto;
    text-align: left;
  }

  .check-panel {
    max-width: 720px;
    margin: 0 auto;
  }

  .feed-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-filters {
    justify-content: flex-start;
  }

  .dossier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .check-hero {
    padding: calc(114px + env(safe-area-inset-top, 0px)) 0 52px;
  }

  .check-hero-grid {
    gap: 26px;
  }

  .check-title {
    margin: 10px 0 16px;
    font-size: clamp(1.78rem, 8vw, 2.5rem);
    line-height: 1.18;
  }

  .check-subtitle {
    font-size: 0.78rem;
  }

  .check-intro {
    font-size: 0.98rem;
  }

  .check-benefits {
    margin-top: 22px;
    gap: 10px;
  }

  .check-benefits li {
    padding-left: 38px;
    font-size: 0.9rem;
  }

  .check-benefits li::before {
    font-size: 1.5rem;
  }

  .check-benefits li:not(:last-child)::after {
    left: 38px;
  }

  .check-panel {
    padding: 18px 16px;
  }

  .check-panel h2 {
    font-size: 1.22rem;
  }

  .check-form textarea {
    min-height: 132px;
    font-size: 16px;
  }

  .public-consent {
    grid-template-columns: 20px 1fr;
  }

  .public-consent span {
    font-size: 0.84rem;
  }

  #checkButton {
    width: 100%;
  }

  .result-section,
  .dossier-feed,
  .how-it-works,
  .join-strip-wrap {
    padding: 52px 0;
  }

  .result-header,
  .join-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .verdict {
    align-self: flex-start;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .dossier-grid {
    grid-template-columns: 1fr;
  }

  .dossier-card {
    min-height: 285px;
  }

  .steps article {
    min-height: auto;
  }

  .join-strip a {
    align-self: flex-start;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .check-hero {
    padding-top: calc(104px + env(safe-area-inset-top, 0px));
  }

  .check-panel {
    padding: 15px 13px;
    border-radius: 18px;
  }

  .primary-download,
  .load-more {
    width: 100%;
  }

  .feed-filters {
    width: 100%;
  }

  .feed-filter {
    flex: 1 1 calc(50% - 8px);
  }

  .finding-heading {
    flex-direction: column;
    gap: 4px;
  }

  .result-actions {
    display: grid;
  }

  .secondary-button,
  .text-button,
  .join-strip a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .check-hero-copy,
  .check-panel {
    opacity: 1;
    transform: none;
  }
}
