:root {
  --background: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f7eee3;
  --text: #173523;
  --text-soft: #5d6d62;
  --primary: #194f2c;
  --primary-dark: #103a1f;
  --accent: #d84d2a;
  --line: #e5ddd3;
  --shadow: 0 22px 60px rgba(25, 79, 44, 0.12);
  --radius-large: 28px;
  --radius-medium: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(228, 222, 234, 0.85);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
}

.hero {
  overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(circle at 8% 8%, rgba(216, 77, 42, 0.15), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(25, 79, 44, 0.16), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.hero-copy .eyebrow,
.section-heading .eyebrow,
.callout .eyebrow,
.legal-card > .eyebrow {
  margin-bottom: 18px;
}

.hero-logo {
  width: min(100%, 560px);
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 12px;
}

.lead {
  max-width: 650px;
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: 1.22rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.button-secondary {
  flex: 0 0 auto;
  background: #fff;
  color: var(--primary);
}

.button-secondary:hover {
  color: #fff;
}

.route-card {
  padding: 30px;
  border: 1px solid rgba(25, 79, 44, 0.16);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.route-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: start;
  gap: 16px;
}

.route-step strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.06rem;
}

.route-step p {
  margin: 0;
  color: var(--text-soft);
}

.route-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-line {
  width: 2px;
  height: 34px;
  display: block;
  margin: 4px 0 4px 22px;
  background: linear-gradient(var(--primary), var(--accent));
  opacity: 0.35;
}

.section {
  padding: 92px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

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

.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.feature-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.callout h2 {
  margin-bottom: 12px;
}

.callout p {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 54px 0 24px;
  background: #12321f;
  color: #d7d0e2;
}

.brand-footer {
  color: #fff;
}

.brand-footer:hover {
  color: #fff;
}

.site-footer p {
  margin: 14px 0 0;
  color: #aaa1b9;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links a {
  color: #d7d0e2;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #91889f;
  font-size: 0.88rem;
}

.legal-main {
  padding: 72px 0 90px;
  background:
    radial-gradient(circle at 90% 0%, rgba(25, 79, 44, 0.1), transparent 28%),
    var(--background);
}

.legal-card {
  max-width: 860px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(25, 79, 44, 0.08);
}

.legal-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.legal-card h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.legal-card p,
.legal-card li {
  color: #514a5b;
}

.legal-card li + li {
  margin-top: 9px;
}

.legal-date {
  margin-top: 0;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.confirmation-main {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0 90px;
  background:
    radial-gradient(circle at 8% 8%, rgba(216, 77, 42, 0.14), transparent 27%),
    radial-gradient(circle at 92% 8%, rgba(25, 79, 44, 0.15), transparent 30%),
    var(--background);
}

.confirmation-card {
  max-width: 760px;
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirmation-logo {
  width: min(100%, 390px);
  height: auto;
  display: block;
  margin: 0 auto 34px;
  border-radius: 10px;
}

.confirmation-symbol {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(25, 79, 44, 0.18);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
}

.confirmation-card .eyebrow {
  margin-bottom: 14px;
}

.confirmation-card h1 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 6vw, 4rem);
}

.confirmation-copy {
  max-width: 590px;
  margin: 0 auto 30px;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.confirmation-note {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.recovery-main {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 64px 0 80px;
  background:
    radial-gradient(circle at 8% 8%, rgba(216, 77, 42, 0.12), transparent 27%),
    radial-gradient(circle at 92% 8%, rgba(25, 79, 44, 0.14), transparent 30%),
    var(--background);
}

.recovery-card {
  max-width: 680px;
  padding: clamp(32px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  text-align: center;
}

.recovery-logo {
  width: min(100%, 330px);
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 10px;
}

.recovery-card .eyebrow {
  margin-bottom: 12px;
}

.recovery-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.recovery-copy {
  max-width: 540px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.password-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.password-form label {
  display: block;
  margin: 16px 0 7px;
  color: var(--text);
  font-weight: 750;
}

.password-form input {
  width: 100%;
  min-height: 50px;
  padding: 11px 54px 11px 14px;
  border: 1px solid #bcb5ad;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.password-form input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(25, 79, 44, 0.13);
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(25, 79, 44, 0.2);
}

.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.password-toggle[aria-pressed="true"]::after {
  position: absolute;
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
}

.password-rules {
  margin: 16px 0 20px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.password-rules li + li {
  margin-top: 4px;
}

.status-message {
  max-width: 500px;
  margin: 18px auto;
  padding: 13px 16px;
  border: 1px solid rgba(25, 79, 44, 0.18);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
}

.status-error {
  border-color: rgba(170, 46, 28, 0.25);
  background: #fff0ec;
  color: #872b1d;
}

.recovery-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.recovery-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.recovery-success h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.recovery-success p {
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--text-soft);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 72px;
  }

  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .callout,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-wrap {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
    gap: 14px;
  }

  .nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero,
  .section {
    padding-block: 64px;
  }

  .route-card,
  .feature-card {
    padding: 24px;
  }

  .legal-main {
    padding: 34px 0 60px;
  }

  .legal-card {
    border-radius: 20px;
  }

  .confirmation-main {
    padding: 34px 0 60px;
  }

  .confirmation-card {
    border-radius: 20px;
  }

  .recovery-main {
    padding: 34px 0 60px;
  }

  .recovery-card {
    border-radius: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
