:root {
  --blue: #25257e;
  --blue-dark: #07193b;
  --blue-mid: #063b75;
  --red: #ed1c24;
  --text: #1f2933;
  --muted: #697386;
  --border: #d9dee8;
  --success: #0f766e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f2f2f2;
}

img,
svg,
video {
  max-width: 100%;
}

.site-header {
  background: var(--white);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.24);
  position: relative;
  z-index: 2;
}

.top-strip {
  min-height: 42px;
  display: grid;
  grid-template-columns: 180px 1fr 340px;
  align-items: center;
  color: var(--white);
  background: var(--blue);
}

.top-strip strong {
  text-align: center;
  font-size: 20px;
}

.accessibility-button {
  width: fit-content;
  min-height: 24px;
  margin-left: 14px;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: 15px;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 42px;
}

.social-list span {
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #f5222d;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.social-list span:first-child {
  background: #28d266;
}

.brand-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
}

.uninove-logo span {
  display: block;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  color: #004b93;
}

.uninove-logo i {
  display: inline-block;
  width: 20px;
  height: 12px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--red);
}

.student-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: #111;
  font-size: 14px;
}

.main-menu {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #cfcfcf;
}

.main-menu a {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #111;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  border-right: 1px solid #d8d8d8;
}

.hero {
  min-height: 440px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(36px, 5vw, 64px);
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 20%, rgba(73, 68, 160, 0.45), transparent 260px),
    linear-gradient(115deg, #042b57 0%, #073f76 42%, #071b45 72%, #17145f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.12), transparent 160px),
    linear-gradient(135deg, rgba(0, 0, 0, 0.18), transparent 48%);
}

.hero-copy,
.hero-callout,
.hero-logo,
.slider-dots {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy p {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.05;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.hero-copy strong {
  display: block;
  max-width: 670px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-callout {
  justify-self: start;
  max-width: 520px;
  padding-left: clamp(18px, 3vw, 34px);
  text-align: left;
  border-left: 4px solid rgba(255, 255, 255, 0.55);
}

.hero-callout p {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-callout span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  background: rgba(237, 28, 36, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero-logo {
  position: relative;
  left: auto;
  top: auto;
  width: min(100%, 320px);
  min-height: 150px;
  display: grid;
  place-items: center;
  justify-self: center;
  grid-column: 2;
  grid-row: 1;
  padding: 18px;
  transform: none;
}

.hero-logo span {
  display: block;
  color: var(--white);
  font-size: clamp(34px, 4vw, 58px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hero-logo i {
  display: inline-block;
  width: clamp(18px, 2.2vw, 30px);
  height: clamp(10px, 1.25vw, 17px);
  margin: 8px 4px 0;
  border-radius: 50%;
  background: var(--red);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.slider-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.9;
}

.page-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 4vw, 44px) 16px 48px;
}

.billing-card {
  width: min(100%, 860px);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(217, 222, 232, 0.9);
  border-radius: 4px;
  overflow: hidden;
}

.section-heading {
  padding: 28px 32px 0;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-size: 34px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
}

.form-area {
  padding: 24px 32px 32px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 12px;
}

input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 37, 126, 0.12);
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  min-height: 50px;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
  background: #c81018;
  transform: translateY(-1px);
}

.helper-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.error-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.result-panel {
  margin: 0 32px 32px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfcfe;
}

.hidden {
  display: none;
}

.student-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.student-summary span,
.debt-box p,
.debt-box span,
.pix-area p {
  color: var(--muted);
}

.student-summary strong {
  color: var(--blue);
}

.debt-box {
  margin: 22px 0;
  padding: 22px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
}

.debt-box p {
  margin: 0 0 8px;
}

.debt-box strong {
  display: block;
  font-size: clamp(34px, 7vw, 52px);
  color: var(--red);
  margin-bottom: 8px;
}

.debt-box small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
}

.debt-box em {
  display: block;
  margin: 0 0 10px;
  color: var(--success);
  font-style: normal;
  font-weight: 800;
}

.debt-details {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.debt-details h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 20px;
}

.debt-details ul {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.debt-details li,
.discount-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
}

.debt-details li span,
.discount-summary span {
  color: var(--muted);
}

.debt-details li strong,
.discount-summary strong {
  white-space: nowrap;
}

.discount-summary.discount strong {
  color: var(--success);
}

.discount-summary.final {
  margin-top: 6px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #ecfdf5;
}

.discount-summary.final span,
.discount-summary.final strong {
  color: #064e3b;
  font-weight: 900;
}

.pix-area {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pix-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pix-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-area p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.pix-code {
  padding: 16px;
  border: 1px dashed var(--success);
  border-radius: 12px;
  background: #ecfdf5;
  color: #064e3b;
  font-family: "Courier New", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.copy-button {
  width: 100%;
  margin-top: 14px;
  background: var(--success);
}

.copy-button:hover {
  background: #115e59;
}

.copy-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .top-strip {
    grid-template-columns: 150px 1fr 240px;
  }

  .top-strip strong {
    font-size: 16px;
  }

  .main-menu {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
    min-height: auto;
    gap: 28px;
  }

  .hero-copy {
    max-width: 760px;
    grid-column: 1;
    grid-row: 1;
  }

  .hero-logo {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
  }

  .hero-callout {
    justify-self: start;
    max-width: 720px;
    text-align: left;
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy,
  .hero-logo,
  .hero-callout {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-copy {
    justify-self: center;
  }

  .hero-logo {
    justify-self: center;
  }

  .hero-callout {
    justify-self: center;
    max-width: 560px;
    padding-left: 0;
    text-align: center;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .top-strip,
  .brand-header,
  .student-links,
  .main-menu,
  .hero,
  .input-row {
    display: block;
  }

  .top-strip {
    padding: 8px 12px;
    text-align: center;
  }

  .top-strip strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
  }

  .accessibility-button {
    margin: 0 0 8px;
    min-height: 28px;
  }

  .social-list {
    display: none;
  }

  .brand-header {
    height: auto;
    padding: 18px 20px;
    text-align: center;
  }

  .uninove-logo span {
    font-size: 28px;
  }

  .uninove-logo i {
    width: 16px;
    height: 10px;
    margin-right: 3px;
  }

  .student-links {
    margin-top: 12px;
  }

  .main-menu a {
    min-height: 34px;
    border-right: 0;
    border-bottom: 1px solid #d8d8d8;
  }

  .hero {
    min-height: auto;
    padding: 28px 16px 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-copy,
  .hero-logo,
  .hero-callout {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy p {
    margin-bottom: 14px;
    font-size: 24px;
  }

  .hero-copy h1 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .hero-copy strong {
    font-size: 24px;
  }

  .hero-callout {
    margin: 24px auto 0;
    padding-left: 0;
    text-align: center;
    border-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-callout p {
    font-size: 20px;
  }

  .hero-callout span {
    font-size: 14px;
    padding: 6px 12px;
  }

  .hero-logo {
    width: min(100%, 260px);
    min-height: 120px;
    padding: 16px;
    margin: 0 auto;
  }

  .hero-logo span {
    font-size: 32px;
  }

  .page-shell {
    padding: 16px 12px 32px;
  }

  .billing-card {
    border-radius: 0;
  }

  .section-heading,
  .form-area {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .result-panel {
    margin: 0 16px 20px;
    padding: 16px;
  }

  .student-summary,
  .pix-area {
    display: block;
  }

  .student-summary strong {
    display: block;
    margin-top: 6px;
  }

  .debt-box {
    padding: 16px;
  }

  .debt-box strong {
    font-size: 32px;
  }

  .debt-box small {
    font-size: 14px;
  }

  .debt-box em {
    font-size: 14px;
  }

  .debt-details {
    padding: 14px;
  }

  .debt-details h3 {
    font-size: 18px;
  }

  .debt-details li,
  .discount-summary {
    display: block;
  }

  .debt-details li strong,
  .discount-summary strong {
    display: block;
    margin-top: 5px;
  }

  .pix-icon {
    margin-bottom: 12px;
  }

  .pix-area h2 {
    font-size: 18px;
  }

  .pix-area p {
    font-size: 14px;
  }

  .pix-code {
    font-size: 12px;
    padding: 14px;
  }

  button {
    width: 100%;
    margin-top: 12px;
    font-size: 14px;
  }

  input {
    font-size: 16px;
  }

  label {
    font-size: 14px;
  }

  .helper-text {
    font-size: 13px;
  }

  .error-message {
    font-size: 13px;
  }

  .copy-feedback {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-copy strong,
  .hero-copy p {
    font-size: 20px;
  }

  .hero-callout p {
    font-size: 18px;
  }

  .debt-box strong {
    font-size: 28px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .debt-details h3 {
    font-size: 16px;
  }

  .pix-area h2 {
    font-size: 16px;
  }

  .page-shell {
    padding: 14px 10px 28px;
  }

  .section-heading,
  .form-area {
    padding-left: 14px;
    padding-right: 14px;
  }

  .result-panel {
    margin: 0 14px 18px;
    padding: 14px;
  }
}
