:root {
  --bg: #f5f8f6;
  --ink: #1a2b22;
  --muted: #5d7166;
  --line: rgba(26, 43, 34, 0.1);
  --green: #1f8a5b;
  --green-soft: #dff3e8;
  --card: #ffffff;
  --shadow: 0 12px 32px rgba(26, 43, 34, 0.07);
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1rem, 4.5vw, 1.5rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(880px 460px at 88% -8%, #dff3e8 0%, transparent 58%),
    radial-gradient(720px 400px at -5% 105%, #e6eef8 0%, transparent 52%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(920px, calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(0.7rem + var(--safe-top)) 0 0.7rem;
  background: rgba(245, 248, 246, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.top.is-on {
  border-bottom-color: var(--line);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  letter-spacing: -0.02em;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top__link--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.top__link:active,
.top__link:focus-visible {
  color: var(--ink);
  border-color: rgba(31, 138, 91, 0.35);
  outline: none;
}

.top__link--solid:active,
.top__link--solid:focus-visible {
  color: #fff;
  border-color: var(--ink);
}

.hero {
  padding: 2.4rem 0 calc(2.75rem + var(--safe-bottom));
}

.hero__inner {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: rise 0.55s ease both;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  animation: rise 0.65s ease both 0.05s;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.55rem, 11vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--green);
}

.motto {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-items: start;
  max-width: min(100%, 34rem);
  min-width: min(100%, 16rem);
  min-height: 2.7rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(26, 43, 34, 0.05);
  overflow: hidden;
}

.motto::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 0deg,
    rgba(31, 138, 91, 0.05),
    rgba(31, 138, 91, 0.55),
    rgba(218, 240, 228, 0.9),
    rgba(42, 157, 104, 0.45),
    rgba(31, 138, 91, 0.05)
  );
  animation: motto-spin 5.5s linear infinite;
  z-index: 0;
}

.motto::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: inherit;
  background: var(--card);
  z-index: 0;
}

.motto__text {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.92rem, 3.2vw, 1.08rem);
  letter-spacing: -0.015em;
  color: var(--green);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(2px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.motto__text.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.motto__text.is-leave {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(2px);
}

.lede {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 3.4vw, 1.18rem);
  line-height: 1.55;
  max-width: 26rem;
  font-weight: 400;
  animation: rise 0.65s ease both 0.1s;
}

.cta {
  margin-top: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: rise 0.7s ease both 0.16s;
}

.btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 68px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.btn__label {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.btn__meta {
  font-size: 0.84rem;
  opacity: 0.78;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(160deg, #2a9d68 0%, var(--green) 100%);
  box-shadow: var(--shadow);
}

.btn--secondary {
  color: var(--ink);
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.access {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 560px;
  padding: 0.9rem 1.05rem;
  border-radius: 16px;
  background: #eaf3ff;
  border: 1px solid rgba(37, 99, 160, 0.12);
  color: #1d4f78;
  animation: rise 0.65s ease both 0.2s;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.access__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2aabee;
  color: #fff;
  flex-shrink: 0;
}

.access__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.access__text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #153a57;
}

.access__text span {
  font-size: 0.86rem;
  color: #4a6d88;
}

.access:active {
  transform: scale(0.985);
}

.release {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
  animation: rise 0.65s ease both 0.18s;
}

.release[hidden] {
  display: none !important;
}

.hint {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  animation: rise 0.65s ease both 0.22s;
}

.how {
  padding: 0 0 calc(2.75rem + var(--safe-bottom));
}

.how__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 43, 34, 0.04);
}

.step__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.step__body strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.step__body p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.step__body a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot {
  padding: 1.25rem 0 calc(1.5rem + var(--safe-bottom));
  border-top: 1px solid var(--line);
}

.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot__row > span:first-child {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.foot__links a {
  color: var(--muted);
  font-weight: 500;
}

.foot__links a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes motto-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .hero__title,
  .lede,
  .cta,
  .access,
  .hint {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .motto::before {
    animation: none !important;
    display: none;
  }

  .motto {
    border: 1.5px solid rgba(31, 138, 91, 0.28);
  }

  .motto__text {
    transition: none !important;
    filter: none !important;
  }
}

@media (min-width: 560px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .hero__inner {
    padding-top: min(6vh, 2.5rem);
  }

  .cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1 1 220px;
    width: auto;
    max-width: 280px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .step {
    flex-direction: column;
    min-height: 100%;
  }
}

@media (max-width: 420px) {
  .top__nav .top__link:not(.top__link--solid) {
    display: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .cta {
    flex-direction: row;
  }
}

@media (hover: hover) {
  .btn--primary:hover {
    filter: brightness(1.04);
    box-shadow: 0 16px 36px rgba(31, 138, 91, 0.22);
  }

  .btn--secondary:hover {
    border-color: rgba(31, 138, 91, 0.35);
    transform: translateY(-1px);
  }

  .access:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(42, 171, 238, 0.12);
  }

  .top__link:hover {
    color: var(--ink);
    border-color: rgba(31, 138, 91, 0.35);
  }

  .top__link--solid:hover {
    color: #fff;
    filter: brightness(1.08);
    border-color: var(--ink);
  }
}
