:root {
  --tv-yellow: #fbca32;
  --tv-yellow-2: #fccd2f;
  --tv-black: #000000;
  --tv-charcoal: #2c2c2c;
  --tv-gray: #6e6c6d;
  --tv-copy: #716d6e;
  --tv-light-gray: #dddddd;
  --tv-border: #cfcfcf;
  --tv-white: #ffffff;
  --danger: #b51e1e;
  --shell: 1160px;
  --font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--tv-white);
  color: var(--tv-charcoal);
  font-family: var(--font);
  font-weight: 400;
}

body.modal-open { overflow: hidden; }

button,
input,
select { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

.header-shell {
  width: min(var(--shell), calc(100% - 34px));
  margin: 0 auto;
}

.site-header {
  height: 171px;
  background: var(--tv-black);
  color: var(--tv-white);
}

.utility-row {
  height: 45px;
  border-top: 5px solid #bcbcbc;
}

.utility-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  line-height: 1;
}

.utility-left,
.utility-right,
.utility-item {
  display: flex;
  align-items: center;
}

.utility-left { gap: 28px; }
.utility-right { align-self: stretch; }
.utility-item { white-space: nowrap; }

.utility-divider {
  width: 1px;
  height: 28px;
  margin-right: 18px;
  background: #a8a8a8;
}

.utility-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 12px;
  color: var(--tv-yellow);
}

.utility-icon-chat {
  width: 18px;
  height: 18px;
  border: 2px solid var(--tv-yellow);
  border-radius: 50%;
}

.utility-icon-chat::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-left: 2px solid var(--tv-yellow);
  transform: rotate(26deg);
}

.utility-icon-phone {
  width: 12px;
  height: 20px;
  border: 2px solid var(--tv-yellow);
}

.utility-icon-phone::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 2px;
  background: var(--tv-yellow);
}

.utility-icon-user {
  width: 17px;
  height: 20px;
}

.utility-icon-user::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tv-yellow);
}

.utility-icon-user::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 13px;
  height: 10px;
  border-radius: 7px 7px 2px 2px;
  background: var(--tv-yellow);
}

.brand-row { height: 70px; }

.brand-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  width: 230px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 220px;
  height: 60px;
  object-fit: contain;
}

.main-nav { height: 56px; }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--tv-yellow);
  color: #111;
}

.caret {
  margin-left: 4px;
  font-size: 14px;
  transform: translateY(-1px);
}

.tag-page {
  min-height: calc(100vh - 171px);
  background: #fff;
}

.tag-showcase {
  width: min(1030px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 104px;
  align-items: start;
}

.tag-type {
  min-width: 0;
  text-align: center;
  color: var(--tv-copy);
}

.tag-image-wrap {
  height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 215px;
  object-fit: contain;
}

.tag-code-sample {
  width: min(374px, 100%);
  min-height: 62px;
  margin: 7px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--tv-light-gray);
  color: #111;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .20em;
  padding-left: .20em;
}

.tag-type h2 {
  margin: 4px 0 6px;
  color: var(--tv-copy);
  font-size: 31px;
  line-height: 1.08;
  font-weight: 500;
}

.tag-type p {
  width: min(390px, 100%);
  margin: 0 auto;
  color: var(--tv-copy);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 300;
}

.recharge-area {
  margin-top: 2px;
  padding: 25px 20px 34px;
  background: var(--tv-gray);
}

.recharge-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.recharge-inner h1 {
  margin: 0;
  color: var(--tv-yellow);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .02em;
}

.recharge-inner > p {
  margin: 4px 0 15px;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
}

.tag-form { margin: 0; }

.field-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--tv-border);
  border-radius: 4px;
  background: #fff;
  color: #222;
  padding: 0 15px;
  outline: none;
  font-family: var(--font);
  font-size: 17px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder { color: #8c8a8b; opacity: 1; }

input:focus,
select:focus {
  border-color: var(--tv-yellow);
  box-shadow: 0 0 0 2px rgba(251, 202, 50, .22);
}

.btn {
  min-height: 50px;
  border: 0;
  border-radius: 3px;
  padding: 0 23px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: filter .15s ease, transform .08s ease;
}

.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--tv-yellow);
  color: #171717;
}

.btn-secondary {
  background: #e2e2e2;
  color: #313131;
}

.btn-full {
  width: 100%;
  margin-top: 18px;
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: #ffdddd;
  font-size: 13px;
  text-align: left;
}

.recharge-area .field-error { padding-left: 2px; }

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 22px;
}

.modal.is-open { display: grid; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .70);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 34px 34px 30px;
  animation: modalIn .18s ease-out;
}

.modal-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--tv-yellow);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #555;
  font: 300 32px/1 var(--font);
}

.steps {
  width: min(280px, calc(100% - 50px));
  margin: 3px auto 25px;
  display: flex;
  align-items: center;
}

.step {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d7d7d7;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.step.is-active,
.step.is-done {
  background: var(--tv-yellow);
  color: #111;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #d7d7d7;
}

.step-screen { display: none; }
.step-screen.is-active { display: block; }

.eyebrow {
  margin: 0 0 4px;
  color: var(--tv-yellow);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .03em;
}

.modal-panel h2 {
  margin: 0 0 22px;
  padding-right: 32px;
  color: #222;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 500;
}

.modal-panel label:not(.accept-row) {
  display: block;
  margin: 0 0 7px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.modal-panel .field-error {
  color: var(--danger);
  min-height: 17px;
}

.tag-summary,
.mini-summary,
.confirmation-card {
  border: 1px solid #d8d8d8;
  background: #f5f5f5;
}

.tag-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 15px;
  margin-bottom: 20px;
}

.tag-summary span,
.mini-summary span,
.confirmation-row span {
  color: #787878;
  font-size: 13px;
}

.tag-summary strong,
.mini-summary strong,
.confirmation-row strong {
  color: #222;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mini-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

.mini-summary > div {
  padding: 13px 15px;
  display: grid;
  gap: 4px;
}

.mini-summary > div + div { border-left: 1px solid #ddd; }

.confirmation-card { margin-bottom: 17px; }

.confirmation-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 15px;
}

.confirmation-row + .confirmation-row { border-top: 1px solid #ddd; }

.accept-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #444;
  font-size: 14px;
  line-height: 1.3;
}

.accept-row input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 1px 0 0;
  accent-color: var(--tv-yellow);
}

.button-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1050px) {
  .main-nav a { padding: 0 10px; font-size: 12px; }
  .tag-showcase { gap: 55px; }
}

@media (max-width: 820px) {
  .site-header { height: auto; }
  .utility-row { height: auto; min-height: 45px; }
  .utility-inner { min-height: 40px; height: auto; padding: 9px 0; gap: 12px; }
  .utility-left { gap: 15px; flex-wrap: wrap; }
  .utility-item { white-space: normal; }
  .main-nav { height: auto; }
  .nav-inner { overflow-x: auto; justify-content: flex-start; }
  .main-nav a { min-height: 52px; }
  .tag-showcase { grid-template-columns: 1fr; gap: 34px; padding-top: 28px; }
  .tag-image-wrap { height: 205px; }
}

@media (max-width: 600px) {
  .header-shell { width: min(100% - 24px, var(--shell)); }
  .utility-inner { font-size: 13px; }
  .utility-left .utility-item:first-child { display: none; }
  .brand-row { height: 62px; }
  .brand { height: 56px; }
  .brand img { width: 190px; height: 52px; }
  .tag-showcase { width: min(100% - 24px, 1030px); }
  .tag-code-sample { font-size: 17px; min-height: 56px; }
  .tag-type h2 { font-size: 28px; }
  .tag-type p { font-size: 17px; }
  .recharge-area { padding-inline: 12px; }
  .field-combo { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .modal-panel { padding: 32px 20px 24px; }
  .button-group { grid-template-columns: 1fr; }
  .mini-summary { grid-template-columns: 1fr; }
  .mini-summary > div + div { border-left: 0; border-top: 1px solid #ddd; }
}
