/* Homepage (index.php): hero, exchange rates, why TopUpGold, how it works.
   Colours: brand blue #0047AB, gold #D4AF37, ink #0F1B33. Font: Inter (loaded in Element/header.php). */

.tug-hero,
.tug-rates,
.tug-why,
.tug-how {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0F1B33;
}

.tug-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.tug-hero a:focus-visible,
.tug-why a:focus-visible,
.tug-how a:focus-visible {
  outline: 3px solid #E8C547;
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.tug-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.tug-btn:hover {
  text-decoration: none;
}

.tug-btn--gold {
  background: #D4AF37;
  color: #0F1B33;
}

.tug-btn--gold:hover {
  background: #C29F2C;
  color: #0F1B33;
}

.tug-btn--blue {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  background: #0047AB;
  color: #FFFFFF;
}

.tug-btn--blue:hover {
  background: #003A8C;
  color: #FFFFFF;
}

.tug-logo-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #E4E9F2;
  color: #0047AB;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Hero ---------- */

.tug-hero {
  position: relative;
  overflow: hidden;
  background: #0047AB;
  color: #FFFFFF;
}

.tug-hero__ring {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -140px;
  top: -180px;
  border: 36px solid rgba(212, 175, 55, 0.28);
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
}

.tug-hero__ring--small {
  width: 300px;
  height: 300px;
  right: auto;
  top: auto;
  left: -120px;
  bottom: -160px;
  border-width: 24px;
  border-color: rgba(255, 255, 255, 0.06);
}

.tug-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}

.tug-hero__text {
  min-width: 0;
}

.tug-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: #E3EAF7;
}

.tug-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
}

.tug-hero__title {
  margin: 24px 0 0;
  font-family: inherit;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.tug-hero__lead {
  margin: 20px 0 32px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.6;
  color: #D5E0F3;
}

.tug-hero__side {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.tug-supported {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-sizing: border-box;
  border-radius: 20px;
  background: #FFFFFF;
  color: #0F1B33;
  box-shadow: 0 24px 60px rgba(0, 20, 60, 0.35);
}

.tug-supported__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5B6B86;
}

.tug-supported__grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tug-supported__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #E4E9F2;
  border-radius: 12px;
}

.tug-supported__logo {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
}

.tug-supported__name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tug-supported__link {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 10px;
  background: #F5F7FB;
  color: #0047AB;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.tug-supported__link:hover {
  background: #EEF3FB;
  color: #003A8C;
  text-decoration: none;
}

/* ---------- Exchange rates ---------- */

.tug-rates {
  background: #F5F7FB;
  padding: 80px 0;
  scroll-margin-top: 48px; /* keeps the heading clear of the fixed menu bar when "Rates" is clicked */
}

.tug-rates__wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

.tug-rates__title {
  margin: 0 0 24px;
  font-family: inherit;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0F1B33;
}

.tug-rates__card {
  background: #FFFFFF;
  border: 1px solid #E4E9F2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 27, 51, 0.04), 0 8px 24px rgba(15, 27, 51, 0.06);
  overflow: hidden;
}

.tug-rates__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.tug-rates__table th {
  height: 48px;
  padding: 0 28px;
  background: #F8FAFD;
  border-bottom: 1px solid #E4E9F2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  color: #5B6B86;
}

.tug-rates__table td {
  padding: 14px 28px;
  border-bottom: 1px solid #EEF1F6;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.tug-rates__table th:first-child,
.tug-rates__table td:first-child {
  text-align: left;
  white-space: normal;
}

.tug-rates__table tbody tr:last-child td {
  border-bottom: 0;
}

.tug-rates__coin {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tug-rates__logo {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
}

.tug-rates__label {
  min-width: 0;
}

.tug-rates__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.tug-rates__price {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tug-rates__per {
  font-size: 13px;
  color: #5B6B86;
}

.tug-rates__na {
  font-size: 14px;
  color: #5B6B86;
}

.tug-rates__note {
  margin: 0;
  padding: 14px 28px;
  background: #FBFCFE;
  border-top: 1px solid #EEF1F6;
  font-size: 13px;
  line-height: 1.5;
  color: #5B6B86;
}

/* ---------- Why TopUpGold ---------- */

.tug-why {
  padding: 96px 0;
  background: #FFFFFF;
}

.tug-head {
  max-width: 640px;
}

.tug-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0047AB;
}

.tug-h2 {
  margin: 0;
  font-family: inherit;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0F1B33;
}

.tug-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.tug-card {
  padding: 28px;
  border: 1px solid #E4E9F2;
  border-radius: 16px;
  background: #FFFFFF;
}

.tug-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EEF3FB;
  color: #0047AB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tug-card__title {
  margin: 20px 0 8px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #0F1B33;
}

.tug-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4A5A75;
}

.tug-card__text a {
  color: #0047AB;
  font-weight: 600;
}

/* ---------- How it works ---------- */

.tug-how {
  padding: 0 0 96px;
  background: #FFFFFF;
}

.tug-how__panel {
  padding: 64px 56px;
  border-radius: 24px;
  background: #F5F7FB;
}

.tug-how__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.tug-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.tug-step {
  padding: 28px;
  border: 1px solid #E4E9F2;
  border-radius: 16px;
  background: #FFFFFF;
}

.tug-step__num {
  width: 44px;
  height: 44px;
  flex: none;
  border: 3px solid #D4AF37;
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #0047AB;
}

.tug-step__text {
  display: block;
  margin-top: 20px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Tablets ---------- */

@media (max-width: 991px) {
  .tug-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .tug-hero__side {
    justify-content: flex-start;
  }

  .tug-supported {
    max-width: 520px;
  }
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  .tug-wrap,
  .tug-rates__wrap {
    padding: 0 16px;
  }

  /* Hero */
  .tug-hero__ring {
    width: 320px;
    height: 320px;
    right: -150px;
    top: -130px;
    border-width: 24px;
  }

  .tug-hero__ring--small {
    display: none;
  }

  .tug-hero__grid {
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .tug-hero__badge {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
  }

  .tug-hero__title {
    margin-top: 20px;
    font-size: 38px;
    line-height: 1.08;
  }

  .tug-hero__lead {
    margin: 14px 0 24px;
    font-size: 16px;
    line-height: 1.55;
  }

  .tug-btn {
    width: 100%;
  }

  .tug-supported {
    padding: 18px;
    border-radius: 18px;
  }

  .tug-supported__label {
    font-size: 12px;
  }

  .tug-supported__grid {
    margin-top: 12px;
    gap: 8px;
  }

  .tug-supported__item {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .tug-supported__logo {
    width: 24px;
    height: 24px;
  }

  .tug-supported__name {
    font-size: 13px;
  }

  /* Rates */
  .tug-rates {
    padding: 40px 0;
  }

  .tug-rates__title {
    margin-bottom: 16px;
    font-size: 26px;
    line-height: 1.2;
  }

  .tug-rates__table th {
    height: 40px;
    padding: 0 14px;
    font-size: 11px;
  }

  .tug-rates__at {
    display: none;
  }

  .tug-rates__table td {
    padding: 12px 14px;
  }

  .tug-rates__table td + td {
    padding-left: 4px;
  }

  .tug-rates__coin {
    gap: 10px;
  }

  .tug-rates__logo {
    width: 32px;
    height: 32px;
  }

  .tug-rates__name {
    font-size: 14px;
  }

  .tug-rates__price {
    font-size: 15px;
  }

  .tug-rates__per,
  .tug-rates__na {
    font-size: 12px;
  }

  .tug-rates__note {
    padding: 12px 14px;
    font-size: 12px;
  }

  /* Why */
  .tug-why {
    padding: 48px 0;
  }

  .tug-eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .tug-h2 {
    font-size: 28px;
    line-height: 1.15;
  }

  .tug-three {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .tug-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px;
  }

  .tug-icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
  }

  .tug-card__title {
    margin: 0 0 6px;
    font-size: 17px;
  }

  .tug-card__text {
    font-size: 14px;
    line-height: 1.55;
  }

  /* How it works: heading, steps, then the button */
  .tug-how {
    padding-bottom: 48px;
  }

  .tug-how__panel {
    display: flex;
    flex-direction: column;
    padding: 32px 20px;
    border-radius: 20px;
  }

  .tug-how__head {
    display: contents;
  }

  .tug-how__head .tug-head {
    order: 1;
  }

  .tug-steps {
    order: 2;
  }

  .tug-how__head .tug-btn {
    order: 3;
    margin-top: 20px;
    height: 52px;
    font-size: 16px;
  }

  .tug-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
  }

  .tug-step__num {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .tug-step__text {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.45;
  }
}

.tug-rates__loading {
  padding: 22px 20px !important;
  color: #5B6B86;
  font-size: 14px;
  text-align: center;
}
