/* PolicyPack theme — Instrument Serif + Satoshi, dark warm palette */

:root {
  --bg:        #0d0c0b;
  --bg-2:      #141210;
  --bg-card:   #1a1815;
  --bg-card-h: #221f1b;
  --text:      #f5f0ea;
  --text-2:    #a89e90;
  --text-3:    #6b6258;
  --accent:    #e8a046;
  --accent-d:  #c4783a;
  --accent-g:  rgba(232, 160, 70, 0.12);
  --border:    #2a2520;
  --border-h:  #3d3630;
  --r:         14px;
  --r-sm:      8px;
  --serif:     'Instrument Serif', Georgia, serif;
  --sans:      'Satoshi', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ──────────────────────────────────────────────────── */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--accent-g), transparent),
    var(--bg);
  position: relative;
}

.hero-inner {
  max-width: 780px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 18px;
  background: var(--accent-g);
  border: 1px solid rgba(232, 160, 70, 0.3);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: var(--accent);
  color: #0d0c0b;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.18s, transform 0.18s;
  margin-bottom: 48px;
}

.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.stat { text-align: center; }

.stat-n {
  display: block;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-l {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── PROOF STRIP ───────────────────────────────────────────── */

.proof-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  overflow: hidden;
}

.proof-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.proof-item {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.proof-sep {
  color: var(--border-h);
  font-size: 1.1rem;
}

/* ── FORM SECTION ──────────────────────────────────────────── */

.form-section {
  padding: 100px 24px 80px;
  background: var(--bg);
}

.form-inner {
  max-width: 820px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 56px;
}

.form-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.form-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.form-desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ── FORM CONTROLS ─────────────────────────────────────────── */

.the-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px 40px 36px;
}

.form-row {
  margin-bottom: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-val {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group select {
  background: var(--bg);
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.field-group input[type="text"]::placeholder,
.field-group input[type="email"]::placeholder {
  color: var(--text-3);
}

.field-group input[type="text"]:focus,
.field-group input[type="email"]:focus,
.field-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-g);
}

.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6258' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.field-group select option {
  background: var(--bg-card);
  color: var(--text);
}

/* Slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-h);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 6px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 0 0 3px var(--accent-g);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider:hover::-webkit-slider-thumb { transform: scale(1.15); }

/* Toggle buttons */
.toggle-row, .tone-row {
  display: flex;
  gap: 8px;
}

.toggle-btn, .tone-btn {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s;
  text-align: center;
}

.toggle-btn:hover, .tone-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.toggle-btn.active, .tone-btn.active {
  background: var(--accent-g);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Preview button */
.btn-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #0d0c0b;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  margin-top: 8px;
}

.btn-preview:hover:not(:disabled) {
  background: var(--accent-d);
  transform: translateY(-1px);
}

.btn-preview:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0,0,0,0.3);
  border-top-color: #0d0c0b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── PREVIEW SECTION ───────────────────────────────────────── */

.preview-section {
  padding: 80px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.preview-inner {
  max-width: 820px;
  margin: 0 auto;
}

.preview-header {
  text-align: center;
  margin-bottom: 40px;
}

.preview-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}

.preview-desc {
  font-size: 0.97rem;
  color: var(--text-2);
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-2);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Policy content area */
.tab-content.policy-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  padding: 36px 40px;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-h) transparent;
}

.policy-body h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.3;
}

.policy-body h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--accent);
}

.policy-body p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.policy-body ul, .policy-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.policy-body li {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.policy-body a {
  color: var(--accent);
  text-decoration: none;
}

.policy-body a:hover {
  text-decoration: underline;
}

.policy-body em {
  color: var(--text-3);
  font-style: italic;
}

/* ── BUY BLOCK ─────────────────────────────────────────────── */

.buy-block {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px 44px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(232, 160, 70, 0.08) 100%);
  border: 1px solid rgba(232, 160, 70, 0.3);
  border-radius: var(--r);
}

.buy-price {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.buy-note {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

.buy-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buy-list li {
  font-size: 0.88rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}

.buy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.buy-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  text-align: center;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 15px 32px;
  background: var(--accent);
  color: #0d0c0b;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}

.btn-buy:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
}

.buy-disclaimer {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 180px;
}

/* ── HOW IT WORKS ──────────────────────────────────────────── */

.how-section {
  padding: 100px 24px;
  background: var(--bg);
}

.how-inner {
  max-width: 680px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 56px;
  color: var(--text);
}

.steps {
  display: flex;
  flex-direction: column;
}

.step-card {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.step-card:last-child {
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.45;
  min-width: 48px;
  line-height: 1;
  padding-top: 4px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-card p {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── CLOSING CTA ───────────────────────────────────────────── */

.closing-section {
  padding: 120px 24px;
  background: var(--bg-2);
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 620px;
  margin: 0 auto;
}

.closing-section h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.closing-section p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 44px;
}

/* ── SITE FOOTER ───────────────────────────────────────────── */

.site-footer {
  padding: 48px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-trust {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .buy-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px;
  }

  .buy-action {
    width: 100%;
  }

  .btn-buy {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 14px;
    padding: 18px 24px;
  }

  .stat-sep {
    width: 40px;
    height: 1px;
  }

  .the-form {
    padding: 28px 20px 24px;
  }

  .tab-content.policy-body {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 16px 60px;
    min-height: auto;
  }

  .form-section,
  .preview-section,
  .how-section,
  .closing-section {
    padding: 72px 16px;
  }

  .tab-btn {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .proof-sep {
    display: none;
  }
}
