@font-face {
  font-family: "Degular";
  src: local("Degular"), local("Degular Regular");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --ink: #3e4637;
  --leaf: #4e5944;
  --sage: #abcc8e;
  --white: #fff;
  font-family: "Degular", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }

html, body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper) url("assets/hero-desktop.jpg") center / cover fixed no-repeat;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, rgba(243, 239, 230, .97) 0 43%, rgba(243, 239, 230, .75) 72%, rgba(78, 89, 68, .28));
}

.thanks-page {
  color: var(--white);
  background: #4e5944;
}

.thanks-page::before {
  background:
    linear-gradient(90deg, rgba(119, 139, 94, .88) 0 50%, rgba(53, 75, 59, .72) 50% 100%),
    radial-gradient(circle at 18% 15%, rgba(171, 204, 142, .55), transparent 42%);
}

a { color: inherit; }

.page-shell {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 48px 0 60px;
}

.page-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  min-height: 74px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--leaf);
}

.page-logo img {
  display: block;
  width: 128px;
  height: 55px;
}

.thanks-content {
  padding-top: clamp(54px, 8vh, 90px);
}

.thanks-page .page-shell {
  width: min(100% - 40px, 800px);
}

.thanks-page .page-logo {
  width: 164px;
  padding: 0;
  background: transparent;
}

.thanks-page .eyebrow,
.thanks-page .intro,
.thanks-page .page-links {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.035em;
}

.intro {
  max-width: 700px;
  margin: 26px 0 36px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
}

.access-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 820px;
  padding: 26px;
  border: 1px solid rgba(78, 89, 68, .18);
  border-radius: 24px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 24px 70px rgba(62, 70, 55, .13);
  backdrop-filter: blur(18px);
}

.thanks-page .access-card {
  grid-template-columns: 1fr;
  max-width: 760px;
  padding: 32px;
  border-color: rgba(255, 255, 255, .12);
  color: var(--white);
  background: rgba(31, 50, 38, .54);
  box-shadow: 0 24px 70px rgba(21, 35, 25, .22);
}

.thanks-page .access-card > img {
  display: none;
}

.thanks-page .access-card h2 {
  font-size: clamp(27px, 3.4vw, 40px);
}

.access-card > img {
  width: 210px;
  height: 252px;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 62%;
}

.access-card h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
}

.access-card p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.35;
}

.primary-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-bottom: 2px solid #556c41;
  border-radius: 12px;
  color: var(--leaf);
  background: var(--sage);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(62, 70, 55, .16);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
}

.page-shell--legal { width: min(100% - 40px, 900px); }

.legal-card {
  margin-top: 44px;
  padding: clamp(26px, 5vw, 64px);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 70px rgba(62, 70, 55, .13);
  backdrop-filter: blur(20px);
}

.legal-card h1 { margin-bottom: 14px; }

.updated {
  margin: 0 0 42px;
  color: #697061;
}

.legal-card h2 {
  margin: 30px 0 8px;
  font-size: 24px;
}

.legal-card p {
  font-size: 18px;
  line-height: 1.55;
}

.back-link {
  display: inline-block;
  margin-top: 36px;
  font-weight: 700;
}

@media (max-width: 640px) {
  body {
    background-image: url("assets/hero-mobile.jpg");
  }

  .page-shell {
    width: min(100% - 28px, 1040px);
    padding-top: 20px;
  }

  .page-logo {
    width: 132px;
    min-height: 62px;
  }

  .page-logo img { width: 106px; height: auto; }

  .thanks-page {
    background: #4e5944;
  }

  .thanks-page::before {
    background:
      linear-gradient(165deg, rgba(119, 139, 94, .9) 0 46%, rgba(53, 75, 59, .78) 46% 100%),
      radial-gradient(circle at 20% 8%, rgba(171, 204, 142, .5), transparent 42%);
  }

  .thanks-page .page-logo {
    width: 126px;
    min-height: 56px;
  }

  .thanks-content { padding-top: 42px; }

  h1 { font-size: clamp(40px, 13vw, 58px); }

  .access-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .access-card > img {
    width: 100%;
    height: 260px;
  }

  .primary-button { width: 100%; }

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

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
