:root {
  --ink: #e2e8f0;
  --muted: #a0aec0;
  --paper: #12131a;
  --surface: #1a1c24;
  --line: #2d3748;
  --green: #00893d;
  --green-dark: #005a36;
  --green-soft: #17392b;
  --gold: #f39200;
  --gold-dark: #d88100;
  --navy: #0d1117;
  --danger-soft: #30281c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--gold);
  background: var(--green-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  width: 188px;
  height: 58px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 32px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
}

.logo::before {
  content: "Chance";
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.button,
.button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: #12131a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(244, 153, 0, 0.24);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button-link:hover {
  background: var(--gold-dark);
  box-shadow: 0 13px 28px rgba(217, 133, 0, 0.28);
  transform: translateY(-2px);
}

.header-actions .button:first-child {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
  box-shadow: none;
}

.header-actions .button:first-child:hover {
  border-color: #006f31;
  background: #006f31;
}

.header-actions .button:last-child {
  border-color: var(--gold);
  background: var(--gold);
  color: #12131a;
}

.section > .button,
.section > .button-link {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  font-size: 16px;
}

.section {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: 28px auto;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section.banner {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: 28px auto;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(244, 153, 0, 0.72);
  border-radius: 24px;
  background: radial-gradient(circle at 8% 18%, rgba(244, 153, 0, 0.2), transparent 26%), linear-gradient(135deg, #006d43 0%, #007c4d 58%, #005d39 100%);
  box-shadow: 0 20px 48px rgba(0, 74, 46, 0.22);
  color: #ffffff;
  text-align: center;
}

.section.banner p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 22px;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.28;
  text-wrap: balance;
}

.section.banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  bottom: -112px;
  left: -62px;
  width: 260px;
  height: 260px;
}

body > section.section:first-of-type {
  margin-top: 58px;
  padding-top: clamp(34px, 5vw, 60px);
  background: var(--surface);
}

.section[data-layout~="promo-banner"] {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: 28px auto;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(244, 153, 0, 0.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 18%, rgba(244, 153, 0, 0.2), transparent 26%),
    linear-gradient(135deg, #006d43 0%, #007c4d 58%, #005d39 100%);
  box-shadow: 0 20px 48px rgba(0, 74, 46, 0.22);
  color: #ffffff;
  text-align: center;
}

.section[data-layout~="promo-banner"]::before,
.section[data-layout~="promo-banner"]::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.section[data-layout~="promo-banner"]::before {
  top: -84px;
  right: -52px;
  width: 220px;
  height: 220px;
}

.section[data-layout~="promo-banner"]::after {
  bottom: -112px;
  left: -62px;
  width: 260px;
  height: 260px;
}

.section[data-layout~="promo-banner"] p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 22px;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.28;
  text-wrap: balance;
}

.section[data-layout~="promo-banner"] .button {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  border-color: #f49900;
  background: #f49900;
  color: #151515;
  font-size: 17px;
}

.section[data-layout~="promo-banner"] .button:hover {
  background: #d98500;
}

.section:nth-of-type(4n + 2)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--green), var(--gold));
}

.section.banner::before {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  top: -84px;
  right: -52px;
  width: 220px;
  height: 220px;
  left: unset;
  background: unset;
}

h1,
h2,
h3 {
  margin: 0;
  color: #ffffff;
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  font-size: 32px;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 22px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

li {
  position: relative;
  margin: 10px 0;
  padding: 13px 16px 13px 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #1e202a;
  color: var(--muted);
  font-size: 16px;
}

ul li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

ol li {
  counter-increment: steps;
}

ol li::before {
  content: counter(steps);
  position: absolute;
  top: 11px;
  left: 13px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
}

table {
  width: 100%;
  margin: 24px 0;
  display: table;
  table-layout: fixed;
  overflow: hidden;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-top: 4px solid #f39200;
}

tr {
  width: 100%;
}

tr:first-child td {
  border-top: 0;
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 800;
}

tr:nth-child(even):not(:first-child) td {
  background: #1a1c24;
}

tr td:first-child {
  font-weight: 800;
}

td {
  min-width: 0;
  padding: 15px 17px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
  background: #1e202a;
  color: var(--ink);
  font-size: 15px;
}

td:last-child {
  border-right: 0;
}

.button-block {
  text-align: center;
}

.comparison-table {
  border-top: 4px solid var(--gold);
}

.comparison-table tr td:first-child {
  width: 30%;
}

.facts-table tr:first-child td {
  background: #1e202a;
  color: var(--ink);
  font-weight: 400;
}

.facts-table tr td:first-child {
  background: #1e202a;
  color: #ffffff;
  font-weight: 800;
}

.author-block {
  width: min(1080px, calc(100% - 40px));
  margin: 28px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.pros-cons > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #1e202a;
}

.expert-note {
  margin: 24px 0 0;
  padding: 22px 24px;
  border-left: 5px solid var(--gold);
  border-radius: 6px 16px 16px 6px;
  background: #24221e;
}

.expert-note p {
  margin: 0;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: clamp(24px, 5vw, 52px);
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1e202a;
}

.app-benefits p {
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 800;
}

.app-benefits ul {
  margin: 0;
}

.store-buttons {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--green);
  border-radius: 16px;
  background: #121212;
  box-shadow: 0 16px 28px rgba(18, 18, 18, 0.18);
}

.store-buttons button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 54px;
  align-items: center;
  justify-content: stretch;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 9px;
  background: #050505;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.store-buttons button:hover {
  border-color: #f39200;
  background: #1e1e1e;
  box-shadow: none;
  transform: translateY(-2px);
}

.store-buttons button::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  font-size: 1.65rem;
  line-height: 1;
}


.store-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 54px;
  align-items: center;
  justify-content: stretch;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 9px;
  background: #050505;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.store-button:hover {
  border-color: var(--gold);
  background: #1e1e1e;
  box-shadow: none;
  transform: translateY(-2px);
}

.store-button::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  font-size: 1.65rem;
  line-height: 1;
}

.store-button--apple::before {
  content: "";
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.store-button--google::before {
  content: "▶";
  background: conic-gradient(from 35deg, #fbbc04, #ea4335, #4285f4, #34a853, #fbbc04);
    background-clip: border-box;
  background-clip: text;
  color: transparent;
}

.store-button--appgallery::before {
  content: "▣";
  color: #e93c4d;
}

.faq-container {
  display: grid;
  gap: 12px;
}

.faq-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.faq-item:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

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

.toggle:focus-visible ~ .faq-question {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.faq-question {
  padding: 21px 10px 21px 22px;
  font-size: 1.1rem;
}

.icon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--green-soft);
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 7px;
  width: 12px;
  height: 2px;
  background: var(--green-dark);
  transition: transform 180ms ease;
}

.icon::after {
  transform: rotate(90deg);
}

.faq-answer {
  grid-column: 1 / -1;
  max-height: 0;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  color: var(--muted);
  transition:
    max-height 220ms ease,
    padding 220ms ease;
}

.toggle:checked ~ .icon::after {
  transform: rotate(0deg);
}

.toggle:checked ~ .faq-answer {
  max-height: 420px;
  padding: 0 22px 22px;
}

footer {
  margin-top: 64px;
  padding: 46px 0 30px;
  background: var(--navy);
  color: #888888;
  font-size: 14px;
  text-align: center;
}

footer p {
  color: inherit;
  font-size: inherit;
}

.footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner:last-child {
  border-bottom: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 760px) {
  header {
    position: relative;
  }

  .header-inner {
    width: min(100% - 24px, 1180px);
    padding: 14px 0;
    align-items: stretch;
  }

  .logo {
    width: 120px;
  }

  .header-actions {
    flex: 1;
  }

  .header-actions .button {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .section {
    width: min(100% - 24px, 1080px);
    margin: 16px auto;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .section[data-layout~="promo-banner"] {
    width: min(100% - 24px, 1080px);
    margin: 16px auto;
    padding: 28px 20px;
    border-radius: 18px;
  }

  body > section.section:first-of-type {
    margin-top: 24px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    text-align: center;
  }

  li {
    padding-right: 12px;
  }

  table {
    width: 100%;
  }

  td {
    min-width: 0;
    padding: 12px 10px;
  }

  .comparison-table tr td:first-child {
    width: 34%;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .store-buttons {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .footer-inner {
    width: min(100% - 24px, 1080px);
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
  }

  .logo {
    width: 100%;
  }

  .header-actions .button {
    flex: 1;
  }

  .button,
  .button-link {
    width: min(100%, 320px);
  }

  .faq-question {
    padding-left: 16px;
  }

  .faq-answer,
  .toggle:checked ~ .faq-answer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.logo img {
  display: block;
  max-height: 58px;
  width: auto;
}
