@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #f4f0e6;
  --card: #fffdf8;
  --border: #e3dccb;
  --text: #1e2a22;
  --muted: #5b6459;
  --accent: #2e6b3f;
  --accent-soft: #e4ede0;
  --savings: #b4461f;
  --chip: #ede6d6;
  --deep: #1f3d2a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --header: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34ch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

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

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
}

/* Sections */

.section {
  padding-block: clamp(80px, 12vw, 160px);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

/* Data band */

.data {
  background: var(--deep);
  color: #f4f0e6;
}

.data .kicker {
  color: #9fcaa9;
}

.data .section-head p {
  color: #c9d3c8;
}

.data-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
}

.data-point h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}

.data-point p {
  color: #c9d3c8;
  margin: 0;
}

.data-point::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: #9fcaa9;
  margin-bottom: 18px;
}

/* Closing */

.closing {
  text-align: center;
}

.closing img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 28px;
  box-shadow: 0 18px 40px -18px rgb(46 107 63 / 0.6);
}

.closing .lead {
  margin-inline: auto;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.soon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9fcaa9;
  box-shadow: 0 0 0 4px rgb(159 202 169 / 0.3);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px 56px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.footer-links a {
  color: var(--text);
  font-weight: 600;
}

.disclaimer {
  max-width: 70ch;
  margin: 0;
}

/* Reveal */

.anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}
