@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #101c1a;
  --surface: #172623;
  --text: #f4f4e9;
  --muted: #bdcbc4;
  --accent: #e0f2a9;
  --outline: #3e534b;
  --dark: #18251e;
  font-family: system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  scroll-padding-top: 1.25rem;
}

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

body, p, h1, h2, h3, figure, dl, dd { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.wrap {
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.header { border-bottom: 1px solid var(--outline); }

.header-inner, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4.75rem;
  flex-wrap: wrap;
}

.brand {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--text);
  font-weight: 750;
  margin-right: .35rem;
}

nav, .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
}

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

.hero {
  background: radial-gradient(ellipse at 80% 32%, #263d32, var(--background) 60%);
}

.hero-grid {
  padding-block: clamp(3.25rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
  line-height: 1.45;
}

h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.7rem, 6.35vw, 6.25rem);
  margin-block: 1.1rem 1.3rem;
}

h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
}

.hero-description, .section-intro > p:last-child, .offer-copy > p:last-child {
  max-width: 42ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

.actions { margin-top: 1.8rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 3rem;
  padding: .7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.primary { background: var(--accent); color: var(--dark); }

a.primary:hover { background: #eff9ca; }

a.primary:focus-visible { outline-color: var(--accent); }

.text-link {
  padding-block: .75rem;
  font-size: .88rem;
  text-underline-offset: .25em;
}

.demo {
  overflow: hidden;
  border: 1px solid #52675c;
  border-radius: .85rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem #07110baa;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  color: var(--muted);
  font-size: .8rem;
}

.window-dots {
  width: .35rem;
  height: .35rem;
  margin-right: .85rem;
  border-radius: 50%;
  background: #a0b3a7;
  box-shadow: .6rem 0 #a0b3a7, 1.2rem 0 #a0b3a7;
}

.demo img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .75rem;
  padding: .85rem 1rem;
  font-size: .82rem;
  color: var(--muted);
}

figcaption strong { color: var(--text); }

.features {
  border-top: 1px solid var(--outline);
  padding-block: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-block: .6rem 1rem;
}

.section-intro > p:last-child { max-width: 58ch; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: .65rem;
  padding: clamp(1.15rem, 2.5vw, 2rem);
}

h3 { font-size: 1.1rem; }

.feature-grid p {
  margin-top: .55rem;
  color: var(--muted);
  line-height: 1.55;
}

.offer {
  background: #e9eee0;
  color: var(--dark);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, .85fr);
  align-items: center;
  gap: clamp(1.8rem, 6vw, 5.5rem);
  padding-block: clamp(2.8rem, 6vw, 5.5rem);
}

.offer-copy .eyebrow, .offer-copy > p:last-child { color: #405448; }

.price-card {
  border-radius: .85rem;
  background: var(--surface);
  color: var(--text);
  padding: clamp(1.3rem, 3vw, 2.5rem);
}

.amount {
  margin-top: .45rem;
  font: 400 clamp(3.8rem, 6vw, 5.5rem)/1 "Instrument Serif", Georgia, serif;
}

.price-description { margin-top: .35rem; }

.price-card dl { margin-block: 1.35rem; }

.price-card dl div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding-block: .65rem;
  border-top: 1px solid var(--outline);
}

.price-card dt { color: var(--muted); }

.price-card dd { font-weight: 750; }

.price-card .button { width: 100%; }

@media (max-width: 52rem) {
  .hero-grid, .feature-grid, .offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .1rem 1rem; padding-block: .6rem; }
  .header-inner nav { flex-basis: 100%; }
  .actions { gap: .35rem 1rem; }
}
