:root {
  --blue: #185ac4;
  --blue-dark: #0f3e8e;
  --blue-soft: #eaf2ff;
  --ink: #172033;
  --muted: #617086;
  --line: #d8e0eb;
  --page: #f5f7fb;
  --green: #15965d;
}

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

body {
  background-color: var(--page);
  color: var(--ink);
  font:
    16px/1.65 Arial,
    Helvetica,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 58px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 58px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: var(--blue-soft);
  color: var(--blue) !important;
}

.button-secondary:hover {
  background: #d8e6ff;
}

.rofus-container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Hero */
.rofus-hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background:
    radial-gradient(
      circle at 85% 25%,
      rgba(255, 255, 255, 0.2),
      transparent 25%
    ),
    linear-gradient(118deg, var(--blue-dark), var(--blue) 68%, #4a92ef);
  display: flex;
  align-items: center;
  border-radius: 12px;
  margin-top: 20px;
}
.rofus-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, #000, transparent);
}
.rofus-hero-inner {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
}
.rofus-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

/* Toplist */
.rofus-ranking {
  position: relative;
  z-index: 3;
  margin-top: 24px;
  margin-bottom: 24px;
}
.rofus-offers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rofus-offer {
  position: relative;
  display: grid;
  grid-template-columns: 145px 1fr 1.25fr 82px 150px;
  gap: 20px;
  align-items: center;
  min-height: 120px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(22, 45, 82, 0.08);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.rofus-offer:hover {
  transform: translateY(-2px);
  border-color: #aac6ee;
  box-shadow: 0 14px 32px rgba(22, 45, 82, 0.12);
}
.rofus-offer:first-child {
  border: 2px solid var(--blue);
}
.rofus-position {
  position: absolute;
  top: -1px;
  left: 18px;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.rofus-logo {
  display: grid;
  width: 138px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #b8c4d5;
  border-radius: 9px;
  background: linear-gradient(145deg, #f8faff, #eef3fa);
}
.rofus-logo img {
  display: block;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}
.rofus-brand h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.rofus-brand ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}
.rofus-brand li::before {
  margin-right: 7px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}
.rofus-bonus small,
.rofus-bonus strong {
  display: block;
}
.rofus-bonus small {
  color: #738095;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rofus-bonus strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.rofus-score {
  display: grid;
  width: 68px;
  height: 68px;
  margin: auto;
  place-items: center;
  border: 5px solid #dce9fc;
  border-top-color: var(--blue);
  border-radius: 50%;
  background: #fff;
}
.rofus-score strong {
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
}
.rofus-score span {
  color: #7e8a9b;
  font-size: 9px;
}
.rofus-cta {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.rofus-cta:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}
.rofus-age {
  display: block;
  margin-top: 5px;
  color: #8d97a5;
  font-size: 10px;
  text-align: center;
}

/* Author & Intro Card */
.rofus-author-intro-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(22, 45, 82, 0.04);
}
.rofus-author-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
  flex-shrink: 0;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.rofus-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid var(--blue);
}
.rofus-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rofus-author-meta strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}
.rofus-author-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.rofus-intro-content p {
  margin: 0;
  color: #334157;
  font-size: 16px;
  line-height: 1.7;
}

/* Table of Contents */
.rofus-toc {
  margin-bottom: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.rofus-toc h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.rofus-toc ol {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rofus-toc li {
  border-bottom: 1px solid #e7ebf1;
}
.rofus-toc li:last-child {
  border-bottom: 0;
}
.rofus-toc a {
  display: block;
  padding: 9px 0;
  color: #34435a;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}
.rofus-toc a:hover {
  color: var(--blue);
}

/* Section Structure */
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 32px 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.section h2,
.section h3 {
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.25;
  scroll-margin-top: 80px;
}
.section h2 {
  margin: 0 0 16px;
  font-size: 26px;
}
.section h3 {
  margin: 24px 0 12px;
  font-size: 20px;
}
.section p {
  margin: 0 0 16px;
  color: #334157;
}
.section p:last-child {
  margin-bottom: 0;
}

.rofus-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}
.rofus-list li {
  position: relative;
  padding-left: 28px;
  color: #334157;
}
.rofus-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}

/* Tables */
.rofus-table {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
}
td {
  padding: 12px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: #3e4c60;
  font-size: 14px;
}
td:last-child {
  border-right: 0;
}
tr:last-child td {
  border-bottom: 0;
}
tr:first-child td {
  background: #edf4ff;
  color: #2f4f7d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
tr:nth-child(even) td {
  background: #fafbfe;
}

/* App Download Button */
.rofus-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 850;
  transition: background 0.2s ease;
}
.rofus-download:hover {
  background: var(--blue-dark);
}

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.faq-question {
  margin: 0;
  padding: 18px 45px 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.icon {
  position: absolute;
  right: 10px;
  top: 18px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.icon::before {
  content: "+";
  font-size: 22px;
  line-height: 20px;
  color: var(--blue);
  font-weight: 700;
  display: block;
  text-align: center;
}

.faq-answer {
  display: none;
  padding-right: 35px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.toggle:checked ~ .faq-answer {
  display: block;
}

.toggle:checked ~ .icon::before {
  content: "–";
}

/* Minimalist Clean Footer */
footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 48px;
  text-align: center;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .rofus-offer {
    grid-template-columns: 125px 1fr 1fr 75px;
  }
  .rofus-logo {
    width: 118px;
  }
  .rofus-actions {
    grid-column: 4;
    grid-row: 1;
  }
}

@media (max-width: 680px) {
  .rofus-hero-inner {
    padding: 24px 20px;
  }
  .rofus-hero h1 {
    font-size: 28px;
  }

  .rofus-offer {
    grid-template-columns: 82px 1fr 52px;
    gap: 12px;
    padding: 16px 13px;
  }
  .rofus-logo {
    width: 82px;
    height: 58px;
  }
  .rofus-brand h2 {
    font-size: 17px;
  }
  .rofus-brand li:nth-child(2) {
    display: none;
  }
  .rofus-bonus {
    grid-column: 2 / 4;
  }
  .rofus-score {
    grid-column: 3;
    grid-row: 1;
    width: 52px;
    height: 52px;
    border-width: 4px;
  }
  .rofus-actions {
    grid-column: 1 / 4;
    grid-row: auto;
  }

  .rofus-author-intro-card {
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }
  .rofus-author-sidebar {
    width: 100%;
    flex-direction: row;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    text-align: left;
    gap: 16px;
  }
  .rofus-avatar {
    margin-bottom: 0;
    width: 52px;
    height: 52px;
  }

  .rofus-toc {
    padding: 18px;
  }
  .section {
    padding: 24px 18px;
  }
  .section h2 {
    font-size: 22px;
  }
  .section h3 {
    font-size: 18px;
  }
}

body > header,
body > section.section,
body > footer {
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
body > section.section {
  margin-top: 24px;
  margin-bottom: 24px;
}
body > section.section[data-layout~="rofus-hero"] {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background:
    radial-gradient(
      circle at 85% 25%,
      rgba(255, 255, 255, 0.2),
      transparent 25%
    ),
    linear-gradient(118deg, var(--blue-dark), var(--blue) 68%, #4a92ef);
  display: flex;
  align-items: center;
  border-radius: 12px;
}
body > section.section[data-layout~="rofus-ranking"],
body > section.section[data-layout~="toc-wrapper"] {
  padding: 0;
  border: 0;
  background: transparent;
}
@media (max-width: 680px) {
  body > section.section {
    width: min(100% - 24px, 1120px);
  }
}
