:root {
  --navy: #14264a;
  --navy2: #0e1c38;
  --green: #2e9e6b;
  --green-lt: #5fd3a0;
  --gold: #b8923b;
  --paper: #f3f6f9;
  --line: #d9e1ea;
  --ink: #14264a;
  --mut: #5b6b80;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.topbar {
  background: var(--navy2);
  color: #b9c6da;
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.topbar a {
  color: var(--green-lt);
  text-decoration: none;
  font-weight: 600;
}

.navbar {
  background: #fff;
  box-shadow: 0 2px 12px rgba(20, 38, 74, 0.08);
}

.navbar-brand img {
  height: 54px;
}

.nav-link {
  font-weight: 600;
  color: var(--navy);
  padding: 0.5rem 1rem !important;
}

.nav-link.active {
  color: var(--green);
  box-shadow: inset 0 -3px 0 var(--green);
}

.btn-ric {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}

.btn-ric:hover {
  background: #237a53;
  border-color: #237a53;
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  border: 0;
}

.btn-gold:hover {
  background: #9c7a2e;
  color: #fff;
}

.ticker {
  background: #fff;
  /* border-bottom: 1px solid var(--line); */
  overflow: hidden;
}

.ticker .inner {
  display: flex;
  gap: 2.5rem;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow-x: auto;
}

.tk b {
  color: var(--navy);
}

.up {
  color: var(--green);
}

.down {
  color: #c0392b;
}

.hero {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1.1;
  max-width: 15ch;
}

.hero p {
  max-width: 52ch;
  color: #c9d5e8;
  font-size: 1.05rem;
}

.hero svg {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: min(560px, 55%);
  opacity: 0.9;
}

.badge-ric {
  background: rgba(95, 211, 160, 0.15);
  color: var(--green-lt);
  border: 1px solid rgba(95, 211, 160, 0.4);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.calc-wrap {
  display: grid;

  gap: 1.5rem;
  margin-top: 6.5rem;
  position: relative;
}

.side {
  border: 2px dashed var(--line);
  border-radius: 10px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9aa8b8;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
}

.calc {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 18px 50px rgba(20, 38, 74, 0.18);
  border-top: 5px solid var(--green);
}

.calc h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.calc label {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.form-control {
  padding: 0.65rem 0.8rem;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(46, 158, 107, 0.2);
}

.chart-box {
  height: 190px;
  margin-top: 1rem;
  position: relative;
}

.result {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.result .big {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green-lt);
  line-height: 1;
}

.stack {
  display: flex;
  height: 14px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  margin: 1rem 0 0.6rem;
}

.stack i {
  display: block;
  transition: width 0.3s;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.78rem;
  color: #c9d5e8;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  background: var(--c);
}

.result table {
  color: #fff;
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.result td {
  border-color: rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0;
}

.sect {
  padding: 4rem 0;
}

.sect h2 {
  font-weight: 800;
}

.fcard {
  background: #fff;
  border-radius: 12px;
  padding: 1.6rem;
  height: 100%;
  border: 1px solid var(--line);
}

.fcard .ic {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.strip {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
}

.strip b {
  font-size: 1.9rem;
  color: var(--green-lt);
  display: block;
  font-weight: 800;
}

.accordion-button:not(.collapsed) {
  background: #eaf6f0;
  color: var(--navy);
}

.accordion-button {
  font-weight: 600;
}

.grid-ads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "a b c" "d x e" "f x g" "h i j";
  gap: 1.25rem;
}

.slot {
  background: #fff;
  border: 2px dashed #aebbcb;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--mut);
  font-size: 0.8rem;
  /* padding: 0.75rem; */
  min-height: 92px;
  transition: 0.2s;
}

.slot:hover {
  border-color: var(--green);
  color: var(--green);
  background: #f2faf6;
}

.slot strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.slot.tall {
  min-height: 210px;
}

.slot.xl {
  min-height: 270px;
}

.slot.main {
  grid-area: x;
  border: 2px solid var(--gold);
  background: linear-gradient(#fff, #fbf7ec);
  text-decoration: none;
  min-height: 360px;
  position: relative;
  box-shadow: 0 10px 30px rgba(184, 146, 59, 0.2);
}

.slot.main img {
  max-width: 100%;
  height: auto;
}

.slot img {
  width: 100%;
  height: auto;
}

.slot.main .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.a {
  grid-area: a;
}

.b {
  grid-area: b;
}

.c {
  grid-area: c;
}

.d {
  grid-area: d;
}

.e {
  grid-area: e;
}

.f {
  grid-area: f;
}

.g {
  grid-area: g;
}

.h {
  grid-area: h;
}

.i {
  grid-area: i;
}

.j {
  grid-area: j;
}

.contact {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  /* border-left: 6px solid var(--gold); */
  box-shadow: 0 10px 30px rgba(20, 38, 74, 0.08);
}

.contact p a {
  color: var(--green);
  font-weight: 600;
}

.g-list {
  list-style: none;
  padding: 0;
}

.g-list li {
  margin-bottom: 8px;
}

.g-list li span {
  font-size: 14px;
  padding: 3px 8px;
  border: 1px solid #237a533b;
  display: inline-block;
  border-radius: 50px;
  background-color: #f3f2f1;
}

footer {
  background: var(--navy2);
  color: #b9c6da;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--green-lt);
  text-decoration: none;
}

footer img {
  height: 80px;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .calc-wrap {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .hero svg {
    display: none;
  }

  .grid-ads {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "x x" "a b" "c d" "e f" "g h" "i j";
  }
}

@media (max-width: 575px) {
  .grid-ads {
    grid-template-columns: 1fr;
    grid-template-areas: "x" "a" "b" "c" "d" "e" "f" "g" "h" "i" "j";
  }

  .calc {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
}

/* ---- Client update: top ad, RIC Score calculator, counter ---- */
.adtop {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .7rem 0
}

.adtop a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto;
  border: 2px dashed #aebbcb;
  border-radius: 8px;
  text-decoration: none;
  color: var(--mut);
  font-size: .85rem;
  text-align: center;
  padding: .5rem
}

.adtop a:hover {
  border-color: var(--green);
  color: var(--green);
  background: #f2faf6
}

.adtop small {
  display: block;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa8b8;
  text-align: center;
  margin-bottom: .25rem
}

.hero {
  padding: 3.5rem 0 4rem
}

.hero .lead2 {
  color: var(--green-lt);
  font-weight: 700;
  margin-top: 1rem
}

.calc-wrap {
  display: block;
  max-width: 920px;
  margin: 2.5rem auto 0
}

.input-group .form-control {
  font-size: 1.05rem;
  text-transform: uppercase
}

.result .formula {
  color: #c9d5e8;
  font-size: .85rem;
  margin-top: .5rem
}

.result .vs {
  margin-top: .4rem;
  font-weight: 600
}

.tile {
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: .8rem 1rem;
  height: 100%
}

.tile span {
  display: block;
  font-size: .72rem;
  color: #c9d5e8;
  text-transform: uppercase;
  letter-spacing: .04em
}

.tile b {
  font-size: 1.15rem;
  color: #fff
}

.chart-box {
  height: 320px
}

.win .btn {
  font-weight: 600;
  font-size: .8rem
}

.win .btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff
}

.win .btn {
  border-color: var(--navy);
  color: var(--navy)
}

.placeholder-box {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--mut)
}

.callout {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  margin-top: 100px;
}

.callout h3 {
  font-weight: 800;
  color: var(--green-lt)
}

.counter b {
  font-size: 2.6rem
}

/* ---- Full-width live ticker (scrolling) ---- */
.ticker {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.ticker .track {
  display: flex;
  width: max-content;
  animation: tkscroll 60s linear infinite
}

.ticker:hover .track {
  animation-play-state: paused
}

.ticker .set {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2.5rem;
  min-width: 100vw;
  padding: .7rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap
}

@keyframes tkscroll {
  to {
    transform: translateX(-50%)
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    overflow-x: auto
  }

  .ticker .track {
    animation: none
  }

  .ticker .set+.set {
    display: none
  }
}

.ad-label {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa8b8;
  text-align: center;
  margin-bottom: .5rem
}