/* UniMate Landing – Mobile-first, UniMate blue & white */

:root {
  --site-header-h: 92px;
  --unimate-blue: #2563eb;
  --unimate-blue-dark: #1d4ed8;
  --unimate-blue-light: #e8f0fe;
  --purple: #6366f1;
  --purple-dark: #4f46e5;
  --purple-soft: #eef2ff;
  --navy-card: #1e1b4b;
  --navy-band: #0f172a;
  --navy-footer: #020617;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.08);
  --font: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.nav-drawer-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--unimate-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.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;
}

.container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
}

@media (min-width: 480px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 900px) {
  .container {
    max-width: 1000px;
    padding: 0 2.5rem;
  }
}

.container-wide {
  max-width: 1140px;
}

@media (min-width: 900px) {
  .container-wide {
    max-width: 1140px;
    padding: 0 2rem;
  }
}

.container-narrow {
  max-width: 100%;
}

@media (min-width: 480px) {
  .container-narrow {
    max-width: 820px;
  }
}

@media (min-width: 900px) {
  .container-narrow {
    max-width: 920px;
  }
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--site-header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 96px;
  width: auto;
}

/* Nav: desktop = horizontal flex row; mobile = full-screen overlay when .open */
.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-list {
    flex-wrap: nowrap;
  }
}

.nav-list a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.25rem 0;
}

.nav-list a:hover {
  color: var(--unimate-blue);
  text-decoration: none;
}

.btn-header-cta {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .btn-header-cta {
    display: inline-flex;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 101;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--unimate-blue);
  border-radius: 1px;
}

/* Mobile menu overlay (flexbox column) */
@media (max-width: 767px) {
  .nav.open {
    display: flex !important;
    position: fixed;
    top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem max(1rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
    background: var(--white);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav.open .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav.open .nav-list li {
    border-bottom: 1px solid var(--gray-200);
  }

  .nav.open .nav-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .nav.open .btn-header-cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.875rem 1.25rem;
  }
}

/* ----- Sections ----- */
.section {
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-lead {
  font-size: 1.15rem;
  color: var(--gray-500);
  margin: 0 0 2.5rem;
  max-width: 56ch;
  line-height: 1.65;
}

.section-title-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-lead-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
}

.how-header {
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-title-br {
    display: none;
  }
}

/* ----- Hero ----- */
.hero {
  background: var(--white);
  padding: 4rem 0 5rem;
}

.container-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
}

@media (min-width: 480px) {
  .container-hero {
    padding: 0 1.5rem;
  }
}

@media (min-width: 992px) {
  .container-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    padding: 0 3rem;
    min-height: 75vh;
  }
}

.hero-content {
  text-align: left;
  width: 100%;
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: var(--unimate-blue-light);
  color: var(--unimate-blue);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  margin: 0 0 1.75rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--unimate-blue);
  border-radius: 50%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.hero-title-black {
  color: var(--gray-900);
}

.hero-title-blue {
  color: var(--unimate-blue);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4.25rem;
  }
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin: 0 0 2.25rem;
  max-width: 48ch;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-ctas .btn {
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
}

.hero-visual {
  margin-top: 3rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .hero-visual {
    margin-top: 0;
    width: 100%;
    justify-self: stretch;
  }
}

.hero-image-wrap {
  position: relative;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .hero-image-wrap {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
    padding: 1.35rem;
    transform: rotate(2deg) scale(1.04);
    transform-origin: center center;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}


.hero-quote {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--gray-900);
  color: var(--white);
  font-size: 1.05rem;
  font-style: italic;
  border-radius: 10px;
}

.hero-quote cite {
  display: block;
  font-size: 0.95rem;
  font-style: normal;
  opacity: 0.9;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--unimate-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--unimate-blue-dark);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--unimate-blue);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  text-decoration: none;
}

.btn-pill {
  border-radius: 999px;
}

.btn-shadow {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
}

.btn-purple:hover {
  background: var(--purple-dark);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

/* ----- How it works + mission ----- */
.how {
  background: var(--gray-50);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0;
}

@media (min-width: 900px) {
  .features {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.feature {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  flex: 1 1 0;
  min-width: 0;
}

.feature-icon {
  color: var(--unimate-blue);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-card);
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.mission-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

@media (min-width: 900px) {
  .mission-card {
    flex-direction: row;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
  }
}

.mission-card__media {
  flex: 1 1 45%;
  min-width: 0;
}

.mission-card__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.mission-card__body {
  flex: 1 1 55%;
  min-width: 0;
}

.mission-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-card);
  margin: 0 0 1rem;
}

.mission-card__text {
  margin: 0 0 1.5rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.mission-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}

.mission-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--unimate-blue);
}

.mission-stat__label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ----- Split sections (Earn + Study abroad) ----- */
.split-section {
  position: relative;
  overflow: hidden;
}

.split-section--light {
  background: var(--white);
}

.split-section__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .split-section__inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}

.split-section__content {
  flex: 1 1 50%;
  min-width: 0;
}

.split-section__aside {
  flex: 1 1 50%;
  min-width: 0;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tag--purple {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.split-section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-card);
  margin: 0 0 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .split-section__title {
    font-size: 2.5rem;
  }
}

.split-section__lead {
  color: var(--gray-600);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.split-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.split-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.split-list--purple li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.split-section--blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  color: var(--white);
}

.split-section--blue .split-section__inner {
  position: relative;
  z-index: 1;
}

.split-section__waves {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  pointer-events: none;
}

.tag--on-blue {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.split-section__title--white {
  color: var(--white);
}

.split-section__lead--white {
  color: rgba(255, 255, 255, 0.92);
}

.split-section__content--on-blue {
  position: relative;
  z-index: 1;
}

.split-list--white li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.split-list--white li {
  color: rgba(255, 255, 255, 0.95);
}

/* Single-column benefits (no side card) */
.split-section--single-col .split-section__inner {
  flex-direction: column;
  align-items: center;
}

.split-section__content--solo {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
}

/* Savings card */
.savings-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.savings-card__title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1.25rem;
}

.savings-card__rows {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.savings-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--gray-700);
}

.savings-card__row--highlight {
  background: var(--unimate-blue-light);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: var(--radius);
  border-bottom: none;
}

.savings-card__bad {
  color: #dc2626;
  font-weight: 600;
}

.savings-card__good {
  color: #16a34a;
  font-weight: 600;
}

.savings-card__rebate {
  color: var(--unimate-blue);
  font-weight: 700;
}

.savings-card__total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--unimate-blue);
}

.savings-card__btn {
  width: 100%;
}

/* ----- Application form card ----- */
.form-section {
  background: linear-gradient(180deg, #e8f0fe 0%, #f0f7ff 40%, #f8fafc 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
}

@media (min-width: 480px) {
  .form-card {
    padding: 2.5rem 2.25rem;
  }
}

.form-card__header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
}

.form-card__subtitle {
  margin: 0;
  color: var(--gray-500);
  font-size: 1rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .form-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .form-row .form-field {
    flex: 1 1 50%;
    min-width: 0;
  }
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.required {
  color: #b91c1c;
}

input,
select,
textarea {
  font-family: var(--font);
  font-size: 1rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-900);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--unimate-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-submit-btn {
  width: 100%;
}

.form-legal {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 1rem 0 0;
}

.form-legal a {
  color: var(--unimate-blue);
}

.form-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.4em;
  text-align: center;
}

.form-message.error {
  color: #b91c1c;
}

/* Newsletter band */
.newsletter-band {
  background: var(--navy-band);
  color: var(--white);
  padding: 4rem 0;
}

.newsletter-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.newsletter-band__icon {
  color: var(--unimate-blue);
  margin-bottom: 1rem;
}

.newsletter-band__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.newsletter-band__text {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.newsletter-inline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .newsletter-inline {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
  }
}

.newsletter-inline__input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
}

.newsletter-inline__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-inline__input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-inline__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.form-message--on-dark.error {
  color: #fca5a5;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-footer);
  color: var(--gray-400);
  padding: 2.5rem 0 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }
}

.footer-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-icons a {
  display: flex;
  color: var(--gray-400);
}

.footer-icons a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-nav {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.footer-nav a {
  color: var(--gray-400);
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-nav__contact {
  color: var(--gray-400);
  cursor: default;
  user-select: none;
}

.footer-copy {
  margin: 2rem 0 0;
  padding: 1.5rem max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ----- Success signup modal ----- */
body.success-modal-open {
  overflow: hidden;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.35s, opacity 0.35s ease;
}

.success-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.success-modal.is-open .success-modal__backdrop {
  opacity: 1;
}

.success-modal__panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.88) translateY(1rem);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.35s ease;
}

.success-modal.is-open .success-modal__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.success-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.success-modal__close:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.success-modal__icon-wrap {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-modal__icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.2));
  transform: scale(1);
  opacity: 1;
}

.success-modal.is-open .success-modal__icon-ring {
  animation: successRingPulse 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 0.15s both;
}

.success-modal__check {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--unimate-blue);
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.success-modal.is-open .success-modal__check {
  animation: successCheckDraw 0.5s ease-out 0.35s forwards;
}

@keyframes successRingPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes successCheckDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.success-modal__title {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--gray-900);
}

.success-modal__body {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.success-modal__btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .success-modal {
    transition: none;
  }

  .success-modal__backdrop {
    transition: none;
  }

  .success-modal__panel {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .success-modal.is-open .success-modal__icon-ring {
    animation: none;
  }

  .success-modal.is-open .success-modal__check {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ----- Responsive: small phones (max-width 479px) ----- */
@media (max-width: 479px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .hero-pill {
    font-size: 0.875rem;
  }

  .hero-ctas .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-image-wrap {
    transform: rotate(-1deg);
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-lead {
    font-size: 1.05rem;
  }

  .logo {
    height: 80px;
  }

  .form-actions .btn {
    width: 100%;
  }

  input,
  select,
  textarea {
    min-height: 44px;
  }

  textarea {
    min-height: 120px;
  }

  .split-section__title {
    font-size: 1.65rem;
  }

  .form-card {
    padding: 1.5rem 1.1rem;
  }
}

/* ----- Tablet portrait: tighten hero grid gap ----- */
@media (min-width: 768px) and (max-width: 991px) {
  .container-hero {
    gap: 2.5rem;
  }
}
