/* Goldbird Creations — lead magnet landing pages */
:root {
  --blue: #4f7da5;
  --blue-light: #6fafc5;
  --cream: #f5dec1;
  --orange: #ee7540;
  --teal: #75cacd;
  --yellow: #f6c652;
  --green: #94b984;
  --teal-gray: #639395;
  --ink: #3b5353;
  --paper: #f5f0ea;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(59, 83, 83, 0.12);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px 0;
}

.lang-select {
  border: 1px solid rgba(59, 83, 83, 0.25);
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 13px;
}

main {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 4px 20px 40px;
  flex: 1;
}

.logo {
  display: block;
  width: 150px;
  margin: 4px auto 10px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  text-align: center;
  color: var(--blue);
  letter-spacing: 1px;
}

.subtitle {
  text-align: center;
  font-size: 16px;
  margin: 6px 0 18px;
  color: var(--ink);
}

/* long titles (warranty / support) */
h1.page-title { font-size: 26px; line-height: 1.25; }

.intro {
  text-align: center;
  font-size: 14px;
  color: var(--teal-gray);
  margin: -8px 0 18px;
}

.field-help {
  font-size: 12px;
  color: var(--teal-gray);
  margin-top: 4px;
}

/* ---------- Wheel ---------- */
.wheel-wrap {
  position: relative;
  width: min(320px, 82vw);
  margin: 0 auto 20px;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--orange);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
  z-index: 3;
}

#wheel-svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(0deg);
}

#wheel-svg.spinning {
  transition: transform 5.2s cubic-bezier(0.12, 0.62, 0.06, 1);
}

.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--cream), 0 2px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.wheel-hub img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Card / form ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 18px;
}

.field { margin-bottom: 14px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

input[type="email"], select, input[type="text"], textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid rgba(59, 83, 83, 0.25);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(111, 175, 197, 0.25);
}

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}

.btn:hover { background: #d9662f; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--teal-gray); cursor: wait; }

.fine-print {
  font-size: 12px;
  color: var(--teal-gray);
  text-align: center;
  margin-top: 10px;
}

.error-msg {
  display: none;
  color: #c0392b;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

.error-msg.show { display: block; }

/* honeypot — hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Result ---------- */
#result-card { display: none; text-align: center; }
#result-card.show { display: block; animation: pop 0.45s ease; }

@keyframes pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-emoji { font-size: 44px; }

.result-title {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--blue);
  margin: 6px 0 4px;
}

.result-prize {
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}

.code-box {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 300px;
  margin: 0 auto 10px;
}

.code-value {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--paper);
  border: 2px dashed var(--blue-light);
  border-radius: 10px;
  padding: 10px;
  overflow-wrap: anywhere;
}

.copy-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover { background: #3f6a8f; }

.result-note { font-size: 14px; color: var(--ink); margin-top: 8px; }
.amazon-note { font-size: 13px; color: var(--teal-gray); margin-top: 10px; }

.demo-badge {
  display: none;
  margin: 10px auto 0;
  font-size: 11px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 20px;
  padding: 2px 12px;
  width: fit-content;
}

.demo-badge.show { display: block; }

/* ---------- Footer / terms ---------- */
footer {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 30px;
  font-size: 12px;
  color: var(--teal-gray);
  text-align: center;
}

footer details {
  text-align: left;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0;
}

footer summary {
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

footer details p { margin-top: 8px; }

.no-purchase { font-weight: 600; margin-bottom: 4px; }

@media (min-width: 560px) {
  h1 { font-size: 40px; }
  .logo { width: 170px; }
  .wheel-wrap { width: 340px; }
}
