:root {
  /* ===== Tuani's brand tokens (single source of truth) ===== */
  --tuanis-navy:         #061428;  /* page canvas */
  --tuanis-navy-card:    #0B1C30;  /* form card surface */
  --tuanis-teal-logo:    #00A0C2;  /* logo equalizer mark only */
  --tuanis-teal-dark:    #30889A;  /* reserved accent depth */
  --tuanis-cyan:         #32C1CC;  /* borders, checkbox fill, focus */
  --tuanis-cyan-light:   #68E7EA;  /* secondary text, inline links */
  --tuanis-orange:       #FC7342;  /* primary CTA bg */
  --tuanis-orange-dark:  #E35F32;  /* CTA hover */
  --tuanis-peach:        #FBB49A;  /* subtitles, eyebrow labels */
  --tuanis-ink:          #111111;  /* text on orange CTA */
  --tuanis-white:        #FFFFFF;  /* primary headline text */

  /* Derived helpers (keep tokens named above in components) */
  --text-secondary:   rgba(255, 255, 255, 0.7);
  --text-muted:       rgba(255, 255, 255, 0.5);
  --hairline:         rgba(255, 255, 255, 0.12);
  --cyan-border:      rgba(50, 193, 204, 0.35);
  --cyan-border-hover:rgba(50, 193, 204, 0.7);
  --cyan-ring:        rgba(50, 193, 204, 0.42);

  --danger: #ef6b6b;

  --radius:    10px;
  --radius-lg: 16px;
}

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

html, body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tuanis-white);
  background: var(--tuanis-navy);
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* ===== HEADER / LOGO ===== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
}
.header--compact { padding: 1rem 0 0.5rem; }

.tuani-logo {
  display: block;
  width: 110px;
  height: auto;
  max-width: 40vw;
}
.header--compact .tuani-logo { width: 92px; }

/* ===== LANG TOGGLE ===== */
.lang-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0.5px solid var(--cyan-border);
  color: var(--tuanis-cyan-light);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}
.lang-toggle:hover, .lang-toggle:focus {
  border-color: var(--cyan-border-hover);
  color: var(--tuanis-white);
  outline: none;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--tuanis-white);
}
h1.display {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--tuanis-white);
}
h2 {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--tuanis-peach);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.body-text {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.08s;
  -webkit-appearance: none;
}
.btn + .btn { margin-top: 10px; }

.btn-primary,
.btn-cta {
  background: var(--tuanis-orange);
  color: var(--tuanis-ink);
  font-weight: 700;
  font-size: 14px;
  padding: 16px 18px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 10px;
}
.btn-primary:hover:not(:disabled),
.btn-cta:hover:not(:disabled) {
  background: var(--tuanis-orange-dark);
}
.btn-primary:active:not(:disabled),
.btn-cta:active:not(:disabled) {
  transform: scale(0.99);
}
.btn-primary:disabled,
.btn-cta:disabled {
  background: rgba(252, 115, 66, 0.4);
  color: rgba(17, 17, 17, 0.6);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--tuanis-cyan-light);
  border: 0.5px solid var(--cyan-border);
  font-weight: 500;
  padding: 14px 16px;
}
.btn-secondary:hover {
  border-color: var(--cyan-border-hover);
  color: var(--tuanis-white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--tuanis-white); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--tuanis-peach);
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.form-helper {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--tuanis-white);
  background: var(--tuanis-navy);
  border: 0.5px solid var(--cyan-border);
  border-radius: var(--radius);
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.input::placeholder, .textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--tuanis-cyan);
}
.textarea {
  min-height: 96px;
  resize: vertical;
}
.input-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

/* Phone input */
.phone-group {
  display: flex;
  gap: 8px;
}
.phone-cc {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--tuanis-white);
  background: var(--tuanis-navy);
  border: 0.5px solid var(--cyan-border);
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%2368E7EA' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.phone-cc:focus {
  outline: none;
  border-color: var(--tuanis-cyan);
}
.phone-number { flex: 1; min-width: 0; }

/* Consent checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
  cursor: pointer;
  user-select: none;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--tuanis-cyan);
  cursor: pointer;
  border-radius: 4px;
}
.consent-label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Honeypot */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== CARDS / SECTIONS ===== */
.card {
  background: var(--tuanis-navy-card);
  border: 1px solid var(--cyan-ring);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin-bottom: 16px;
}
.reward-card {
  background: var(--tuanis-navy-card);
  border: 1px solid var(--cyan-ring);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tuanis-peach);
  font-size: 11px;
  font-weight: 500;
  margin: 22px 0;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--hairline);
}

.teaser {
  background: transparent;
  border: 0.5px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--tuanis-peach);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 16px;
}

.banner {
  background: transparent;
  border: 0.5px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tuanis-peach);
  margin-bottom: 20px;
}

.feedback-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  color: var(--tuanis-cyan-light);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: var(--radius);
}
.feedback-link:hover { color: var(--tuanis-white); }

.back-link {
  background: none;
  border: none;
  color: var(--tuanis-cyan-light);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 8px;
  align-self: flex-start;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link:hover { color: var(--tuanis-white); }

.reassurance {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* Success */
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--tuanis-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--tuanis-cyan);
  font-weight: 700;
}

.coupon-waiting {
  background: var(--tuanis-navy);
  border: 1px dashed var(--cyan-border-hover);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin: 18px 0;
}
.coupon-code {
  font-size: 22px;
  font-weight: 700;
  color: var(--tuanis-cyan);
  letter-spacing: 0.15em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.goodwill {
  background: transparent;
  border-left: 3px solid var(--tuanis-cyan);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  text-align: left;
}

/* Loading */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(17, 17, 17, 0.3);
  border-top-color: var(--tuanis-ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Responsive */
@media (max-width: 380px) {
  h1         { font-size: 20px; }
  h1.display { font-size: 28px; letter-spacing: 2px; }
  .page      { padding: 16px; }
  .card      { padding: 1.5rem 1.25rem; }
  .btn-primary, .btn-cta { letter-spacing: 2px; }
}
