@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #f7faf8;
  --bg-dark: #1f3329;
  --text: #1c2e25;
  --accent: #3d9e6a;
  --accent-light: #5abf84;
  --border: #d0e6d8;
  --card: #ffffff;
  --muted: #557a6e;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── LAYOUT ── */
.pg-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── INFO BANNER ── */
.info-banner {
  background: #e8f3ec;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.info-banner__text {
}
.info-banner__link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}

/* ── RISK BANNER ── */
.risk-banner {
  background: #fff8e8;
  border-bottom: 1px solid #f0ddb0;
  padding: 9px 0;
  font-size: 0.78rem;
  color: #6b5a2a;
  text-align: center;
}
.risk-banner__link {
  font-weight: 700;
  color: #8a6a10;
  text-decoration: underline;
}

/* ── MASTHEAD ── */
.pg-masthead {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.masthead-shell {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logotype__img {
  height: 40px;
  width: auto;
}
.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--accent);
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.ham-line {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 767px) {
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 9999;
  }
  .nav-links.nav-links--open {
    display: flex;
  }
}

/* ── HERO ── */
.hero-zone {
  background: var(--bg-dark);
  padding: 60px 0 50px;
}
.hero-zone__caption {
  max-width: 700px;
}
.hero-zone__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-zone__title span {
  color: var(--accent-light);
}
.hero-zone__body {
  font-size: 1rem;
  color: #a8c4b0;
  line-height: 1.7;
  margin-bottom: 12px;
}
.hero-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #7a9e88;
  margin-bottom: 16px;
}
.hero-date img {
  width: 14px;
  height: 14px;
}

/* ── PLATFORM SECTION ── */
.platform-section {
  padding: 40px 0;
}
.platform-section__heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.platform-section__subtext {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 680px;
  line-height: 1.6;
}

/* ── ENTRY ROW ── */
.entry-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.entry-row:hover {
  box-shadow: 0 4px 20px rgba(61, 158, 106, 0.1);
}
.entry-row--hidden {
  display: none;
}

.rank-marker {
  display: flex;
  align-items: center;
  gap: 0;
}
.rank-marker__num {
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-marker__tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 10px;
  height: 32px;
  display: flex;
  align-items: center;
  border-radius: 0 4px 4px 0;
}

.entry-core {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.entry-core__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}
.brand-logo-img {
  max-height: 40px;
  width: auto;
}

/* ── SCORE WIDGET ── */
.score-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.score-widget__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}
.score-widget__stars-img {
  width: 70px;
}
.score-widget__label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.score-widget__caret {
  width: 8px;
  height: 8px;
  transition: transform 0.3s;
}
.score-widget.score-widget--open .score-widget__caret {
  transform: rotateX(180deg);
}

/* ── SCORE PANEL ── */
.score-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--text);
  border-radius: var(--radius);
  width: 260px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.score-panel--active {
  opacity: 1;
  visibility: visible;
}
.score-panel__list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-panel__item {
  padding: 8px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}
.score-panel__item:last-child {
  border-bottom: none;
}
.score-panel__cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.score-panel__desc {
  font-size: 0.7rem;
  color: #aaa;
  margin-bottom: 6px;
}
.progress-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.progress-bar__track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
}
.progress-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 5px;
  border-radius: 3px;
  width: 0;
  transition: width 0.4s ease;
}
.progress-bar__fill--a {
  background: var(--accent-light);
}
.progress-bar__fill--b {
  background: #f7d060;
}
.progress-bar__fill--c {
  background: var(--accent-light);
}
.progress-bar__score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* ── ENTRY DESCRIPTION ── */
.entry-desc {
  flex: 1;
  min-width: 200px;
}
.desc-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.desc-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.desc-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.feature-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── ENTRY LINK ── */
.entry-link-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.entry-primary-link {
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}
.entry-primary-link:hover {
  background: var(--accent);
}
.entry-primary-link__arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.entry-primary-link:hover .entry-primary-link__arrow {
  transform: translateX(4px);
}

.entry-toggle-btn {
  width: 100%;
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
  transition: background 0.2s;
}
.entry-toggle-btn:hover {
  background: #e8f5ee;
}

/* ── INFO ZONE ── */
.info-zone {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.info-zone__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.info-zone__text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 780px;
}
.info-zone__text:not(:last-child) {
  margin-bottom: 12px;
}

/* ── FAQ ZONE ── */
.faq-zone {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.faq-zone__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.faq-zone__subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.accordion-row {
  border-bottom: 1px solid var(--border);
}
.accordion-row__img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.accordion-row__btn {
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.accordion-row__btn:hover {
  background: #edf6f1;
}
.accordion-row__question {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
}
.accordion-row__arrow {
  width: 10px;
  height: 10px;
  margin-left: auto;
  transition: transform 0.3s;
}
.accordion-row--open .accordion-row__arrow {
  transform: rotate(180deg);
}
.accordion-row__panel {
  overflow: hidden;
  max-height: 0;
  padding: 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  transition: max-height 0.3s ease;
  background: transparent;
}
.accordion-row__panel p {
  margin: 10px 0;
}

/* ── SCROLL TO TOP ── */
.scroll-up-btn {
  position: fixed;
  bottom: -20px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  transition: all 0.3s;
}
.scroll-up-btn.scroll-up-btn--visible {
  bottom: 16px;
  opacity: 1;
  visibility: visible;
}
.scroll-up-btn:hover {
  background: var(--accent);
}
.scroll-up-btn img {
  width: 14px;
  transform: rotateX(180deg);
}

/* ── FOOTER ── */
.pg-footer {
  background: var(--bg-dark);
  padding: 40px 0 0;
  color: #a0c8b0;
}
.footer-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-col-left {
  min-width: 220px;
}
.footer-col-right {
  flex: 1;
}
.footer-brand-img {
  height: 36px;
  margin-bottom: 12px;
}
.footer-copy {
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.footer-policy-text {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 8px;
}
.footer-policy-text a {
  color: #fff;
  font-weight: 600;
}
.footer-nav-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-nav-group a {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.footer-nav-group a:hover {
  text-decoration: underline;
}
.footer-disc-block {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.disc-label {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}
.disc-text {
  font-size: 0.78rem;
  color: #7a9e88;
  line-height: 1.55;
}
.disc-text a {
  color: #a0c8b0;
}

/* ── COOKIE NOTICE (see cookies.css) ── */

/* ── TERMS / POLICY PAGES ── */
.pg-doc-section {
  padding: 48px 0;
  max-width: 820px;
}
.pg-doc-section h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  padding-bottom: 3rem;
  position: relative;
  margin-bottom: 0;
}
.pg-doc-section h1::before {
  content: '';
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
}
.pg-doc-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.pg-doc-section p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.pg-doc-section a {
  color: var(--accent);
  text-decoration: underline;
}
.pg-doc-section span {
  display: block;
}
.pg-doc-section span:not(:last-child) {
  margin-bottom: 10px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .footer-grid {
    flex-direction: column;
  }
}
@media (max-width: 767px) {
  .hero-zone {
    padding: 40px 0 32px;
  }
  .entry-core {
    flex-direction: column;
    align-items: flex-start;
  }
  .entry-link-zone {
    align-items: stretch;
  }
  .entry-primary-link {
    justify-content: center;
  }
  .pg-doc-section {
    padding: 32px 0;
  }
}
@media (max-width: 480px) {
  .pg-shell {
    padding: 0 16px;
  }
}
