:root {
  --ink: #15211c;
  --muted: #5f6b63;
  --canopy: #0f533d;
  --canopy-dark: #0c342a;
  --leaf: #5c8d55;
  --sun: #d69a2a;
  --mist: #f5f8f3;
  --paper: #ffffff;
  --line: rgba(21, 33, 28, 0.13);
  --shadow: 0 28px 90px rgba(13, 31, 24, 0.16);
  --radius: 8px;
  --page-pad: clamp(18px, 4vw, 52px);
  --card-pad: clamp(24px, 4vw, 44px);
  --section-gap: clamp(24px, 4vw, 34px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 33, 28, 0.035) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(180deg, #ffffff, var(--mist));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.checkout-page {
  display: grid;
  min-height: 100dvh;
  padding: var(--page-pad);
}

.checkout-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  min-width: 0;
  width: min(1240px, 100%);
  margin: auto;
}

.checkout-copy,
.checkout-panel,
.complete-panel {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

p,
li,
dd,
dt,
strong,
span {
  overflow-wrap: break-word;
}

.checkout-copy {
  padding: var(--card-pad);
}

.checkout-panel {
  padding: clamp(18px, 3vw, 28px);
}

.brand {
  display: inline-flex;
  width: min(260px, 74vw);
  margin-bottom: clamp(28px, 5vw, 64px);
}

.brand img {
  width: 100%;
  height: auto;
}

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

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

h1 {
  max-width: 13ch;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 58ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.plain-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--section-gap);
  padding: 18px 0;
}

.plain-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--canopy-dark);
  font-size: 1rem;
}

.plain-summary p {
  max-width: 64ch;
  margin-bottom: 14px;
  color: var(--muted);
}

.jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--canopy);
  color: var(--paper);
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
}

.jump-link:hover,
.jump-link:focus-visible {
  background: var(--canopy-dark);
  outline: none;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 var(--section-gap);
}

.terms-grid div {
  min-height: 88px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
  padding: 16px;
}

.terms-grid div:nth-child(2n) {
  border-right: 0;
}

.terms-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.terms-grid dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.terms-grid dd {
  margin: 0;
  color: var(--canopy-dark);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
}

.scope {
  border-top: 1px solid var(--line);
  padding-top: var(--section-gap);
}

.scope + .scope {
  margin-top: var(--section-gap);
}

.scope h2 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.scope ul,
.scope ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.scope-intro {
  max-width: 62ch;
  margin-bottom: 18px;
  color: var(--muted);
}

.install-stack ol {
  gap: 12px;
  padding-left: 0;
  list-style: none;
  counter-reset: stack-item;
}

.install-stack li {
  position: relative;
  min-height: 46px;
  padding-left: 54px;
  color: var(--muted);
}

.install-stack li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 83, 61, 0.22);
  border-radius: 50%;
  background: rgba(92, 141, 85, 0.1);
  color: var(--canopy-dark);
  content: counter(stack-item);
  counter-increment: stack-item;
  font-size: 0.86rem;
  font-weight: 800;
}

.install-stack strong,
.rollout-stack strong,
.project-start-stack strong,
.success-next strong {
  color: var(--ink);
}

.rollout-stack ul {
  padding-left: 0;
  list-style: none;
}

.rollout-stack li {
  border-top: 1px solid rgba(21, 33, 28, 0.1);
  padding: 12px 0;
}

.rollout-stack li:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-start-stack ol,
.success-next ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.project-start-stack li,
.success-next li {
  padding-left: 2px;
}

.success-next {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
}

.success-next h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.panel-heading div {
  display: grid;
  gap: 3px;
}

.panel-heading b {
  color: var(--ink);
  font-size: 1rem;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-heading strong {
  color: var(--canopy-dark);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1;
}

.notice {
  border: 1px solid rgba(214, 154, 42, 0.32);
  border-radius: var(--radius);
  background: rgba(214, 154, 42, 0.09);
  color: #604411;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.notice.is-ready {
  border-color: rgba(92, 141, 85, 0.32);
  background: rgba(92, 141, 85, 0.1);
  color: var(--canopy-dark);
}

.whop-checkout-frame {
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.fallback-copy {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.fallback-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.fallback-button {
  width: 100%;
  border: 1px solid var(--canopy);
  background: var(--canopy);
  color: var(--paper);
  padding: 12px 16px;
}

.fallback-button:hover,
.fallback-button:focus-visible {
  background: var(--canopy-dark);
  outline: none;
}

.completion-page {
  place-items: center;
}

.complete-panel {
  width: min(620px, 100%);
  padding: clamp(26px, 5vw, 48px);
}

.complete-panel h1 {
  max-width: none;
  font-size: clamp(2rem, 7vw, 4rem);
}

.complete-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.complete-actions .fallback-button {
  width: auto;
}

.text-link {
  color: var(--canopy);
  padding: 10px 4px;
}

@media (max-width: 1100px) {
  .checkout-wrap {
    grid-template-columns: 1fr;
    align-content: start;
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 560px) {
  :root {
    --section-gap: 24px;
    --card-pad: 16px;
  }

  .checkout-page {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .checkout-copy,
  .checkout-panel,
  .complete-panel {
    padding: var(--card-pad);
  }

  .checkout-copy,
  .checkout-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .checkout-wrap {
    display: block;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }

  .checkout-copy,
  .checkout-panel {
    width: 100%;
    max-width: 100%;
  }

  .lede,
  .plain-summary,
  .terms-grid,
  .scope {
    max-width: 100%;
  }

  .brand {
    width: min(220px, 74vw);
    margin-bottom: 28px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.4rem, 15vw, 3.55rem);
  }

  .plain-summary {
    margin-bottom: 24px;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  .terms-grid div,
  .terms-grid div:nth-child(2n),
  .terms-grid div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .terms-grid div:last-child {
    border-bottom: 0;
  }

  .terms-grid div {
    min-height: 76px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .whop-checkout-frame {
    min-height: 700px;
  }
}
