:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #5d625f;
  --paper: #f7f4ec;
  --panel: #fffdf7;
  --line: #d8d0bf;
  --green: #1f6b4e;
  --green-dark: #134432;
  --gold: #d9a441;
  --blue: #245b8f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(31, 107, 78, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(217, 164, 65, 0.22), transparent 38%),
    var(--paper);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.intro,
.purchase,
.preview {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(47, 42, 32, 0.12);
}

.intro {
  min-height: 430px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.button,
.text-button {
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.button {
  min-height: 46px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.primary {
  width: 100%;
  color: white;
  background: var(--green);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  color: var(--green-dark);
  border: 1px solid var(--line);
  background: white;
}

.purchase {
  padding: 24px;
}

.price {
  display: flex;
  align-items: end;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.price span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.82;
}

.price p,
.note {
  color: var(--muted);
}

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

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.preview {
  grid-column: 1 / -1;
  overflow: hidden;
}

.preview-head {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.text-button {
  color: var(--blue);
  background: transparent;
  font-weight: 800;
}

pre {
  max-height: 520px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #21322b;
  background: #fbfaf5;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .intro {
    min-height: 360px;
  }
}
