.hg-home-overline {
  display: block;
  margin-bottom: 14px;
  color: var(--hg-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hg-btn-large {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 10px;
}

.hg-text-link {
  color: var(--hg-navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.hg-flash-stack {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.hg-flash {
  border: 1px solid var(--hg-border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--hg-navy);
  background: #fff;
  box-shadow: var(--hg-shadow-sm);
  font-size: 0.88rem;
  font-weight: 650;
}

.hg-flash-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.hg-flash-danger {
  border-color: #fecdd3;
  background: #fff1f2;
}

.hg-flash-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.hg-content-hero {
  padding: 92px 0 76px;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 178, 104, 0.22), transparent 26%),
    linear-gradient(135deg, #081a31, var(--hg-navy-2));
}

.hg-content-hero .hg-home-overline {
  color: #9df4c7;
}

.hg-content-hero h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

.hg-content-hero p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.hg-policy-meta {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 600;
}

.hg-content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 70px;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 92px;
}

.hg-content-nav {
  position: sticky;
  top: 100px;
  display: grid;
  align-self: start;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--hg-border);
  border-radius: 14px;
  background: #fff;
}

.hg-content-nav strong {
  margin-bottom: 8px;
  color: var(--hg-navy);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hg-content-nav a {
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--hg-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.hg-content-nav a:hover {
  color: var(--hg-green-dark);
  background: var(--hg-mint);
}

.hg-prose {
  min-width: 0;
}

.hg-prose section {
  padding-bottom: 34px;
  scroll-margin-top: 100px;
}

.hg-prose section + section {
  padding-top: 34px;
  border-top: 1px solid var(--hg-border);
}

.hg-prose h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.hg-prose p,
.hg-prose li {
  color: #4b5d70;
  line-height: 1.78;
}

.hg-prose li + li {
  margin-top: 9px;
}

.hg-content-section {
  background: #f7fafc;
}

.hg-faq-list {
  display: grid;
  gap: 12px;
}

.hg-faq-list details {
  overflow: hidden;
  border: 1px solid var(--hg-border);
  border-radius: 14px;
  background: #fff;
}

.hg-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  color: var(--hg-navy);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.hg-faq-list summary::-webkit-details-marker {
  display: none;
}

.hg-faq-list summary span {
  color: var(--hg-green);
  font-size: 1.4rem;
}

.hg-faq-list details[open] summary span {
  transform: rotate(45deg);
}

.hg-faq-list details div {
  padding: 0 22px 20px;
}

.hg-faq-list details p {
  margin: 0;
  color: var(--hg-muted);
  line-height: 1.7;
}

.hg-help-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding: 30px;
  border-radius: 18px;
  background: var(--hg-navy);
}

.hg-help-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.hg-help-cta .hg-home-overline {
  color: #9df4c7;
}

.hg-form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
  align-items: start;
}

.hg-form-aside {
  padding-top: 18px;
}

.hg-form-aside h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.hg-form-aside > p {
  color: var(--hg-muted);
  line-height: 1.75;
}

.hg-process-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hg-process-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
}

.hg-process-list li > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--hg-green);
  font-size: 0.8rem;
  font-weight: 800;
}

.hg-process-list strong {
  color: var(--hg-navy);
}

.hg-process-list p {
  margin: 4px 0 0;
  color: var(--hg-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.hg-public-form-card,
.hg-login-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--hg-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hg-shadow-md);
}

.hg-label span {
  color: var(--hg-muted);
  font-weight: 500;
}

.hg-textarea-small {
  min-height: 88px;
}

.hg-form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hg-form-errors,
.hg-form-success {
  border-radius: 12px;
  padding: 18px;
}

.hg-form-errors {
  margin-bottom: 22px;
  color: #9f1239;
  border: 1px solid #fecdd3;
  background: #fff1f2;
}

.hg-form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.hg-form-success {
  text-align: center;
}

.hg-form-success > span {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--hg-green);
  font-size: 1.5rem;
}

.hg-form-success h2 {
  margin-top: 18px;
}

.hg-form-success p {
  color: var(--hg-muted);
}

.hg-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
}

.hg-form-submit p,
.hg-login-security {
  margin: 0;
  color: var(--hg-muted);
  font-size: 0.72rem;
}

.hg-login-page {
  min-height: 720px;
  padding: 84px 0;
  background:
    linear-gradient(90deg, rgba(7, 25, 48, 0.94), rgba(7, 25, 48, 0.42)),
    url("../img/brand/haven-go-driver-app.png") center / cover no-repeat;
}

.hg-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 80px;
  align-items: center;
}

.hg-login-story {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.78);
}

.hg-login-story .hg-home-overline {
  color: #9df4c7;
}

.hg-login-story h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hg-login-story > p {
  max-width: 560px;
  line-height: 1.75;
}

.hg-login-points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
}

.hg-login-card h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.hg-login-card > p {
  margin-bottom: 24px;
  color: var(--hg-muted);
}

.hg-code-input {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
}

.hg-login-secondary-form,
.hg-login-register {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--hg-muted);
  font-size: 0.82rem;
}

.hg-login-secondary-form button {
  border: 0;
  padding: 0;
  color: var(--hg-teal);
  background: none;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hg-content-layout,
  .hg-form-layout,
  .hg-login-grid {
    grid-template-columns: 1fr;
  }

  .hg-content-nav {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .hg-content-nav strong {
    grid-column: 1 / -1;
  }

  .hg-login-grid {
    gap: 42px;
  }
}

@media (max-width: 720px) {
  .hg-content-hero {
    padding: 66px 0 56px;
  }

  .hg-content-layout {
    gap: 38px;
    padding-top: 44px;
    padding-bottom: 60px;
  }

  .hg-content-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .hg-help-cta,
  .hg-form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .hg-help-cta .hg-btn,
  .hg-form-submit .hg-btn {
    width: 100%;
  }

  .hg-login-page {
    padding: 58px 0;
  }

  .hg-login-story h1 {
    font-size: 3.2rem;
  }
}
