:root {
  --bg: #f7f1e6;
  --bg-raised: #fffdf8;
  --surface-alt: #efe4cd;
  --border: rgba(42, 30, 17, 0.12);
  --border-strong: rgba(42, 30, 17, 0.18);
  --text: #2a1f14;
  --text-dim: #7a6c58;
  --accent: #d2601c;
  --accent-hover: #b54f14;
  --accent-dim: rgba(210, 96, 28, 0.12);
  --amber: #b5790f;
  --footer-bg: #182a1d;
  --footer-text: #e7e2d2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
}

/* ---- topbar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(247, 241, 230, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent-hover);
}

/* ---- hero ---- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 760px;
  margin-inline: auto;
  color: var(--text);
}

.subhead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.1s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-ghost {
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---- how it works ---- */
.how {
  padding: 40px 0 96px;
  border-top: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.how-step h3 {
  font-size: 16px;
  margin: 12px 0 8px;
  color: var(--text);
}

.how-step p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.how-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ---- pricing ---- */
.pricing {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.pricing h2 {
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--text);
}

.pricing-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 40px;
}

.pricing-loading {
  color: var(--text-dim);
  font-size: 14px;
  padding: 40px 0;
}

.price-card {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow:
    0 1px 2px rgba(42, 30, 17, 0.04),
    0 20px 50px -25px rgba(210, 96, 28, 0.35);
}

.price-amount {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.price-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  margin-top: 8px;
}

.price-features {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.price-features .check {
  color: var(--accent);
  font-weight: 700;
}

.price-features .cross {
  color: var(--text-dim);
  font-weight: 700;
}

.price-buy {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#buy-email {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s ease;
}

#buy-email:focus {
  outline: none;
  border-color: var(--accent);
}

#buy-email::placeholder {
  color: var(--text-dim);
}

.buy-error {
  color: #b0402a;
  font-size: 13px;
  margin: 6px 0 0;
  min-height: 18px;
  text-align: left;
}

.tier-slider {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.tier-track {
  display: flex;
  align-items: center;
  gap: 0;
}

.tier-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-alt);
  position: relative;
}

.tier-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-alt);
}

.tier-dot.sold_out::after {
  background: var(--text-dim);
}

.tier-dot.active {
  background: var(--accent);
}

.tier-dot.active::after {
  background: var(--accent);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.tier-labels {
  display: flex;
  margin-top: 12px;
}

.tier-label-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tier-label-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.tier-label-price.strike {
  text-decoration: line-through;
  color: var(--text-dim);
  font-weight: 500;
}

.tier-label-status {
  font-size: 11px;
  color: var(--text-dim);
}

.tier-label-item.active .tier-label-status {
  color: var(--amber);
  font-weight: 600;
}

/* ---- footer ---- */
.footer {
  background: var(--footer-bg);
  padding: 32px 0;
  text-align: center;
  color: var(--footer-text);
  font-size: 13px;
}

@media (max-width: 640px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .price-card {
    padding: 28px 20px 22px;
  }
}
