:root {
  --paper: #f3ece1;
  --ink: #1c1612;
  --muted: #6b5f55;
  --line: #d8cfc3;
  --accent: #9c3b24;
  --accent-deep: #7c2c1b;
  --sheet: #fffaf3;
  --shadow: 0 24px 60px rgba(28, 22, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3,
.mark,
.amount em {
  font-family: "Fraunces", serif;
  font-weight: 480;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.site-header,
main,
.site-footer,
.sheet {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer,
.hero,
.strip,
.split,
#curriculum,
.plan {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header,
.site-footer,
.strip,
.hero-actions,
.receipt div,
.lessons li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  align-items: center;
  padding: 28px 0 8px;
}

.site-header nav,
.hero-actions,
.strip {
  align-items: center;
}

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

.site-header a,
.text-btn {
  color: var(--muted);
  text-decoration: none;
}

.mark {
  font-size: 1.35rem;
  text-decoration: none;
}

.hero {
  padding: 72px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0 0 20px;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.lede,
.plan-copy,
.success-copy,
.fine {
  max-width: 38rem;
  color: var(--muted);
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 36px;
}

.price-note {
  margin: 0;
  color: var(--muted);
}

.price-note span {
  color: var(--ink);
  font-weight: 600;
}

.btn,
.text-btn,
.close {
  border: 0;
  background: none;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
}

.btn.primary {
  color: #fffaf3;
  background: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.btn.primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn.wide {
  width: 100%;
}

.strip {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip div {
  display: grid;
  gap: 4px;
}

.strip span,
.lessons p,
.curriculum p,
.site-footer p {
  color: var(--muted);
}

.split,
#curriculum,
.plan {
  padding: 88px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

.lessons,
.curriculum,
.plan-card ul,
.receipt,
form {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lessons {
  display: grid;
  gap: 22px;
}

.lessons li {
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.lessons span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.lessons h3,
.curriculum h3,
.receipt dd {
  margin: 0 0 6px;
}

.curriculum {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 24px;
  margin-top: 36px;
  counter-reset: session;
}

.curriculum li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.curriculum li::before {
  counter-increment: session;
  content: counter(session, decimal-leading-zero);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-card {
  width: min(520px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 16px;
}

.amount em {
  font-size: 4rem;
  font-style: normal;
  line-height: 1;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}

.plan-card li {
  padding-left: 18px;
  position: relative;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.site-footer {
  align-items: end;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 22, 18, 0.42);
}

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

.sheet {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.close {
  float: right;
  color: var(--muted);
}

.receipt {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
}

.receipt div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.receipt dt,
label,
.fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.receipt dd {
  margin: 0;
  font-weight: 600;
}

.receipt .total dd {
  color: var(--accent);
}

form {
  display: grid;
  gap: 10px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.form-error {
  margin: 0;
  color: var(--accent);
}

@media (max-width: 760px) {
  .site-header nav a:not(.mark) {
    display: none;
  }

  .split,
  .strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}
