:root {
  --paper: #fff8ee;
  --ink: #211f1a;
  --muted: #746b5e;
  --line: rgb(33 31 26 / 12%);
  --brand: #0f9f73;
  --brand-soft: color-mix(in oklch, var(--brand) 12%, white);
  --brand-border: color-mix(in oklch, var(--brand) 34%, white);
  --brand-shadow: color-mix(in oklch, var(--brand) 20%, transparent);
  --orange: #ec8b34;
  --shadow: 0 30px 90px rgb(92 62 27 / 15%);
  color-scheme: light;
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 10%, rgb(15 159 115 / 18%), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgb(236 139 52 / 16%), transparent 30rem),
    linear-gradient(135deg, #fff4e6 0%, var(--paper) 52%, #eee6d8 100%);
  overflow-x: hidden;
}

input {
  font: inherit;
}

.page {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0;
}

.page > *,
.demo-shell,
.stage,
.plan-grid,
.plan-card,
.code-card,
.takeaway {
  min-width: 0;
  max-width: 100%;
}

h1,
p,
pre {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 2px 2px 0 var(--orange);
  content: "";
}

h1 {
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 800;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.demo-shell {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgb(255 248 238 / 78%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.demo-head span,
.code-card span,
.plan-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.code-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
}

.stage {
  display: grid;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(rgb(33 31 26 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(33 31 26 / 5%) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 270px;
  padding: 26px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: rgb(255 255 255 / 88%);
  cursor: pointer;
  box-shadow: 0 18px 48px rgb(33 31 26 / 8%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    translate 180ms ease;
}

.plan-card:hover {
  translate: 0 -3px;
}

.plan-card:has(input:checked) {
  border-color: var(--brand);
  background:
    radial-gradient(circle at 100% 0%, var(--brand-soft), transparent 230px),
    rgb(255 255 255 / 92%);
  box-shadow: 0 24px 70px var(--brand-shadow);
}

.plan-card input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.radio-dot {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
}

.radio-dot::before {
  width: 16px;
  height: 16px;
  border-radius: inherit;
  background: transparent;
  content: "";
}

.plan-card:has(input:checked) .radio-dot {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.plan-card:has(input:checked) .radio-dot::before {
  background: var(--brand);
}

.plan-card strong {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.price {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.desc {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
}

.code-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  color: white;
  background: #0d3f32;
  box-shadow: 0 20px 50px rgb(15 79 61 / 16%);
}

.code-card span {
  color: #9ce7c5;
}

.code-card pre {
  overflow-x: auto;
}

.code-card code {
  display: block;
  color: #fff8ee;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.65;
  white-space: pre;
}

.takeaway {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 255 255 / 70%);
}

.takeaway span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.takeaway p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 28px, 640px);
    padding: 24px 0;
  }

  .demo-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .page {
    width: min(100% - 20px, 420px);
  }

  h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 15px;
  }

  .stage {
    padding: 14px;
  }

  .plan-card {
    min-height: auto;
    padding: 22px;
  }

  .code-card code {
    font-size: 12px;
  }
}

