/* HEnRY farewell page, styled after the original henry.idcohorts.net (saasland theme) */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }

:root {
  --blue: #0063c1;
  --blue-blob: #1772cd;
  --blue-footer: #135ec8;
  --blue-deep: #0048ae;
  --orange: #fba820;
  --navy: #2c2c51;
  --text: #677294;
  --tint: #f3f7fc;
  --line: #e3e9f3;
  --maxw: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 300 16px/1.75 "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.hero::before {
  content: "";
  position: absolute;
  width: 920px; height: 920px; left: -340px; top: -300px;
  background: var(--blue-blob);
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  transform: rotate(-18deg);
  pointer-events: none;
}
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand img { width: 46px; }
.topnav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 400; }
.topnav a { color: #fff; text-decoration: none; }
.topnav a:hover { text-decoration: underline; text-underline-offset: 7px; }
.lang { display: flex; gap: 10px; }
.lang a { opacity: .75; }
.lang a[aria-current] { opacity: 1; font-weight: 600; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
  padding-block: 48px 112px;
}
.hero h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.25rem, 4.6vw, 3.125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lead { margin: 0 0 40px; max-width: 32em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 36px;
  border-radius: 5px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 50px rgba(10, 92, 80, .2);
  transition: transform .15s ease;
}
.button:hover { transform: translateY(-2px); }
.status { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: 14px; font-weight: 500; }
.status svg { flex: none; }

.farewell-art {
  margin: 0;
  padding: clamp(10px, 1.8vw, 22px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 30, 80, .35);
  transform: rotate(-2deg);
  animation: card-lands .9s cubic-bezier(.2, .7, .2, 1) .15s both;
}
.farewell-art img { border-radius: 10px; }
@keyframes card-lands {
  from { opacity: 0; transform: translateY(28px) rotate(-7deg); }
  to   { opacity: 1; transform: rotate(-2deg); }
}

/* compact hero for the legal pages */
.hero--page .page-title { position: relative; padding-block: 32px 72px; }
.hero--page h1 { margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.2; }

/* ---- sections ---- */
.section { padding-block: 96px; }
.section h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.25; }
.section h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.section p { margin: 0 0 1em; }

.thanks { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.thanks p { max-width: 38em; font-size: 1.0625rem; }

.changes { background: var(--tint); }
.changes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.change { padding-top: 20px; border-top: 3px solid var(--blue); }

.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 32px 56px; margin-top: 40px; }
.dl-list { list-style: none; margin: 12px 0 0; padding: 0; }
.dl-list li { border-bottom: 1px solid var(--line); }
.dl-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; color: var(--navy); font-weight: 400; text-decoration: none; }
.dl-list a:hover .dl-name { color: var(--blue); text-decoration: underline; }
.dl-meta { flex: none; color: var(--text); font-size: 14px; font-weight: 300; }

.prose { max-width: 46em; }
.prose h2 { margin-top: 48px; font-size: 1.375rem; }
.prose h2:first-child { margin-top: 0; }

/* ---- footer ---- */
.site-footer {
  padding-block: 80px 24px;
  background: linear-gradient(190deg, var(--blue-footer) 58%, var(--blue-deep) 100%);
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.footer-grid p { margin: 0; max-width: 34em; }
.site-footer h2 { margin: 0 0 16px; color: #fff; font-size: 1.125rem; font-weight: 600; }
.site-footer a { color: #fff; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 8px; }
.copyright { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; }
.copyright p { margin: 0; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .thanks, .changes-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 56px; padding-block: 24px 80px; }
  .thanks { gap: 8px; }
  .section { padding-block: 72px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .topnav { gap: 20px; font-size: 14px; }
  .nav-extra { display: none; }
  .button { padding-inline: 28px; }
  .farewell-art { margin-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .farewell-art { animation: none; }
  .button { transition: none; }
}
