/* IQ Option Review — simplified DailyForex-inspired layout */
:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --text: #1b2330;
  --text-muted: #667284;
  --text-soft: #7f8a9b;
  --line: #e0e7f0;
  --line-strong: #d3dbe7;
  --accent: #245aa6;
  --accent-dark: #1e4b89;
  --accent-soft: rgba(36, 90, 166, 0.08);
  --gold: #ffbf2f;
  --gold-dim: #dfe6ef;
  --positive: #15905f;
  --negative: #d6435e;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 56, 0.05);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --toc-width: 235px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  background: #f5f7fb;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem;
}

.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand__logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand__separator {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--line-strong);
  line-height: 1;
}

.brand__region {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.lang-switch {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  color: var(--text);
}

.lang-switch a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 740px) {
  .site-header__inner {
    justify-content: center;
    padding-bottom: 1.3rem;
  }

  .lang-switch {
    position: static;
    margin-left: 0.6rem;
  }
}

.layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.toc {
  display: none;
}

.sidebar-right {
  display: block;
  order: 99;
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: var(--toc-width) minmax(0, 1fr);
    align-items: start;
  }

  .toc {
    display: block;
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    font-size: 0.84rem;
  }

  .sidebar-right {
    grid-column: 2;
    max-width: 380px;
  }
}

@media (min-width: 1200px) {
  .layout {
    grid-template-columns: var(--toc-width) minmax(0, 1fr) 220px;
  }

  .sidebar-right {
    grid-column: 3;
    max-width: none;
    position: sticky;
    top: 1rem;
    align-self: start;
    order: unset;
  }
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.2rem 2.4rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 700px) {
  article {
    padding: 2rem 2.2rem 2.5rem;
  }
}

article p,
article li,
article details,
article .author-block__role,
article .author-block__dates {
  max-width: 68ch;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.author-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
  margin: 0 0 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.author-block__avatars {
  display: flex;
  gap: 0.5rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef3fa, #d7e1ef);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
  flex-shrink: 0;
  object-fit: cover;
}

.author-block__names a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}
.author-block__names a:hover {
  border-color: var(--accent);
}

.author-block__text {
  flex: 1;
  min-width: 220px;
}

.author-block__names {
  font-size: 0.96rem;
  line-height: 1.45;
  margin: 0 0 0.3rem;
}

.author-block__dates,
.author-block__role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin: 0 0 1.2rem;
}

.snapshot {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
}

.snapshot__top {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

@media (min-width: 760px) {
  .snapshot__top {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
  }
}

.snapshot__brand,
.snapshot__features {
  padding: 0.35rem 0;
}

@media (min-width: 760px) {
  .snapshot__brand {
    border-right: 1px solid var(--line);
    padding-right: 1rem;
  }
}

.snapshot__logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8d2d, #f06f14);
  margin-bottom: 0.6rem;
}

.snapshot__brand-name {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.snapshot__score-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.snapshot__score-value {
  font-weight: 800;
  font-size: 1rem;
}

.stars {
  --rating: 4;
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.14em;
}

.stars::before,
.stars::after {
  content: "★★★★★";
}

.stars::before {
  color: var(--gold-dim);
}

.stars::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--rating) / 5) * 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

.snapshot__feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.snapshot__feature-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
}

.snapshot__feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.snapshot__feature-list li.is-negative::before {
  background: var(--negative);
}

.snapshot__meta {
  display: grid;
  gap: 0;
  background: linear-gradient(180deg, #edf3fb 0%, #e7effb 100%);
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .snapshot__meta {
    grid-template-columns: repeat(4, 1fr);
  }
}

.snapshot-chip {
  padding: 0.95rem 1rem;
  border-right: 1px solid rgba(29, 78, 137, 0.1);
}

.snapshot-chip:last-child {
  border-right: 0;
}

.snapshot-chip__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.snapshot-chip__value {
  font-size: 0.95rem;
  font-weight: 700;
}

.disclosure {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  margin: 0 0 1.6rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-top: 0.4rem;
  scroll-margin-top: 5rem;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.38rem;
}

.verdict {
  background: linear-gradient(135deg, #fbfdff 0%, #f1f6fd 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.2rem;
  margin: 1rem 0 0;
}

.verdict__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.verdict__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0;
}

.verdict__score {
  font-weight: 800;
  color: var(--accent-dark);
}

.ratings-grid {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

@media (min-width: 600px) {
  .ratings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rating-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
}

.rating-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.rating-card__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.rating-card__score {
  font-size: 0.9rem;
  font-weight: 800;
}

.rating-card__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pros-cons {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0;
}

@media (min-width: 760px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pc-card {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid var(--line);
}

.pc-card--pro {
  background: linear-gradient(180deg, rgba(11, 138, 91, 0.06), rgba(11, 138, 91, 0.03));
  border-color: rgba(11, 138, 91, 0.18);
}

.pc-card--con {
  background: linear-gradient(180deg, rgba(196, 59, 77, 0.06), rgba(196, 59, 77, 0.03));
  border-color: rgba(196, 59, 77, 0.15);
}

.pc-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.pc-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.pc-card li {
  position: relative;
  padding-left: 1.4rem;
}

.pc-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pc-card--pro h3 {
  color: var(--positive);
}

.pc-card--pro li::before {
  background: var(--positive);
}

.pc-card--con h3 {
  color: var(--negative);
}

.pc-card--con li::before {
  background: var(--negative);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 1rem 0 1.4rem;
}

th,
td {
  text-align: left;
  padding: 0.72rem 0.75rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f2f6fb;
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: #fafcff;
}

@media (max-width: 720px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.table-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.8rem;
  margin-bottom: 1.2rem;
}

.callout {
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  margin: 1.15rem 0;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

details.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 0.55rem;
  background: #fafcff;
}

details.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 800;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 500;
  color: var(--text-muted);
}

details.faq-item[open] summary::after {
  content: "-";
}

details.faq-item .faq-body {
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
}

.footnotes {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.compact-section h2 {
  margin-top: 2rem;
}

.compact-section p + p {
  margin-top: 0;
}

.footnotes ol {
  padding-left: 1.2rem;
}

.footnotes li {
  margin-bottom: 0.55rem;
  word-break: break-word;
}

.site-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer p {
  margin: 0 auto;
  max-width: 58ch;
}

/* ── Useful links (under TOC) ── */
.toc-links {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.toc-links h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.toc-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-links li {
  margin-bottom: 0.4rem;
}

.toc-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.toc-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  flex-shrink: 0;
}

.toc-links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ── Right sidebar: demo banner ── */
.demo-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
}

.demo-banner__badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: #00c853;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
}

.demo-banner__icon {
  margin-bottom: 0.75rem;
}

.demo-banner__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.demo-banner__text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.demo-banner__perks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}

.demo-banner__perks li {
  font-size: 0.76rem;
  color: var(--text);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-banner__perks li:last-child {
  border-bottom: none;
}

.demo-banner__perks li::before {
  content: "✓";
  color: #00c853;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.demo-banner__cta {
  display: block;
  width: 100%;
  padding: 0.6rem 0.5rem;
  background: #00c853;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}

.demo-banner__cta:hover {
  background: #00a844;
  transform: translateY(-1px);
}

.demo-banner__fine {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ── Mobile: demo banner as horizontal card ── */
@media (max-width: 979px) {
  .sidebar-right {
    padding: 0 0.25rem;
  }

  .demo-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 1.25rem;
    text-align: left;
    padding: 1.2rem 1.25rem;
  }

  .demo-banner__icon {
    grid-row: 1 / 3;
    align-self: start;
    margin-bottom: 0;
  }

  .demo-banner__title {
    align-self: end;
  }

  .demo-banner__text {
    margin-bottom: 0.5rem;
  }

  .demo-banner__perks {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0.75rem;
  }

  .demo-banner__perks li {
    flex: 1 1 45%;
    border-bottom: none;
    padding: 0.2rem 0;
    font-size: 0.78rem;
  }

  .demo-banner__cta {
    grid-column: 1 / -1;
    max-width: 260px;
  }

  .demo-banner__fine {
    grid-column: 1 / -1;
  }

  .demo-banner__badge {
    top: -8px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .demo-banner {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .demo-banner__perks {
    flex-direction: column;
  }

  .demo-banner__perks li {
    flex: none;
    border-bottom: 1px solid var(--line);
    padding: 0.3rem 0;
  }

  .demo-banner__perks li:last-child {
    border-bottom: none;
  }

  .demo-banner__cta {
    max-width: 100%;
    width: 100%;
  }
}

/* ── Mobile: useful links inline under article ── */
.mobile-useful-links {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.mobile-useful-links h3 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 800;
}

.mobile-useful-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}

.mobile-useful-links a {
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
}

.mobile-useful-links a:hover {
  text-decoration: underline;
}

@media (min-width: 980px) {
  .mobile-useful-links {
    display: none;
  }
}

@media (max-width: 400px) {
  .mobile-useful-links ul {
    grid-template-columns: 1fr;
  }
}
