:root {
  --bg: #f6f8f5;
  --ink: #17211b;
  --muted: #66736b;
  --line: #dce4dc;
  --green: #0f6b4f;
  --green-dark: #0a4b39;
  --mint: #dff3e8;
  --cream: #fffdf5;
  --coral: #e66b55;
  --shadow: 0 24px 60px rgba(23, 33, 27, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 228, 220, .85);
  background: rgba(246, 248, 245, .88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 18vw, 245px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 24px;
}

.hero {
  min-height: calc(100vh - 71px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(15, 107, 79, .1), rgba(255, 253, 245, .5)),
    url("data:image/svg+xml,%3Csvg width='1200' height='700' viewBox='0 0 1200 700' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M872 58C1018 90 1119 213 1132 361C1147 532 991 635 820 642C668 648 586 554 496 453C398 342 282 257 320 111C355 -24 492 -76 621 -36C722 -4 765 35 872 58Z' fill='%23dff3e8'/%3E%3Cpath d='M211 334C302 354 378 431 366 522C354 612 264 660 173 642C81 624 16 552 30 461C44 367 119 313 211 334Z' fill='%23fff4d8'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.7;
}

.hero-actions,
.oauth-grid,
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.oauth-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--green-dark);
  border-color: var(--line);
  background: white;
}

.hero-panel,
.panel-form,
.status-card,
.profile-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.status-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  box-shadow: none;
}

.status-card span:last-child,
.steps span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(230, 107, 85, .14);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.metric-grid div {
  padding: 16px;
  border-radius: 8px;
  background: var(--mint);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.slide-section {
  overflow: hidden;
  padding: clamp(64px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  transition: transform .8s ease, opacity .8s ease;
}

.slide-left .section-inner {
  transform: translateX(-80px);
  opacity: .25;
}

.slide-right .section-inner {
  transform: translateX(80px);
  opacity: .25;
}

.slide-section.in-view .section-inner {
  transform: translateX(0);
  opacity: 1;
}

.feature-grid,
.account-grid,
.form-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.feature-grid p,
.section-inner > p,
.legal p {
  color: var(--muted);
  line-height: 1.7;
}

.two-column,
.form-layout,
.account-grid {
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 20px 20px 20px 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 800;
}

.notice {
  padding: 16px;
  border-left: 4px solid var(--coral);
  background: white;
}

.panel-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.panel-form.compact {
  box-shadow: none;
}

.auth-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-area-hidden {
  display: none;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.login-actions .text-link {
  margin-left: auto;
  align-self: flex-end;
}

.text-link {
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 27, .48);
}

.modal-panel {
  position: relative;
  width: min(440px, 100%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.extra-uploads {
  display: grid;
  gap: 14px;
}

.extra-uploads-hidden,
.more-uploads-button.is-hidden {
  display: none !important;
}

.more-uploads-button {
  justify-self: start;
}

.upload-label-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.help-tooltip {
  position: relative;
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  background: white;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.help-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  width: min(280px, 80vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.help-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 11;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity .18s ease;
}

.help-tooltip:hover::after,
.help-tooltip:focus::after,
.help-tooltip:hover::before,
.help-tooltip:focus::before {
  opacity: 1;
}

.help-tooltip:hover::after,
.help-tooltip:focus::after {
  transform: translateX(-50%) translateY(0);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 107, 79, .18);
  border-color: var(--green);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

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

.oauth-grid {
  margin-top: 22px;
}

.oauth-button {
  width: min(100%, 260px);
  border-color: var(--line);
  background: white;
}

.microsoft {
  color: #2f5faa;
}

.google {
  color: #b84232;
}

.facebook {
  color: #2457a6;
}

.dashboard {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.dashboard-header {
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  box-shadow: none;
}

.request-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.request-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.request-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.request-details div {
  display: grid;
  grid-template-columns: minmax(120px, .28fr) 1fr;
  gap: 12px;
}

.request-details dt {
  color: var(--muted);
  font-weight: 800;
}

.request-details dd {
  margin: 0;
  line-height: 1.5;
}

.customer-updates {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.customer-updates h4 {
  margin: 0;
}

.customer-update {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.customer-update p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.customer-update small {
  color: var(--muted);
  font-weight: 700;
}

.payment-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.payment-box h4,
.payment-box p {
  margin: 0;
}

.paypal-payment {
  display: grid;
  gap: 8px;
}

.additional-documents-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.additional-documents-form button {
  justify-self: start;
}

.badge {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: .82rem;
  font-weight: 800;
}

.legal {
  max-width: 820px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.activation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.activation-panel {
  width: min(640px, 100%);
}

.activation-panel h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .feature-grid,
  .two-column,
  .form-layout,
  .account-grid,
  .auth-panels,
  .profile-form,
  .request-item,
  .request-details div {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-inner {
    transition: none;
  }
}
