* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hahmlet', serif;
  background: linear-gradient(160deg, #ffb46b 0%, #ff8a3d 45%, #ff5f2c 100%);
}

.decor {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.55;
}

.circle {
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.s1 { width: 14px; height: 14px; top: 12%; left: 18%; }
.s2 { width: 10px; height: 10px; top: 68%; left: 14%; }
.s3 { width: 18px; height: 18px; top: 22%; right: 16%; }

.triangle {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid #ffffff;
}

.s4 { top: 16%; right: 28%; transform: rotate(15deg); }
.s5 { top: 74%; right: 20%; transform: rotate(-25deg); }

.dash {
  width: 26px;
  height: 2px;
  background: #ffffff;
}

.s6 { top: 30%; left: 10%; transform: rotate(-40deg); }
.s7 { top: 62%; right: 12%; transform: rotate(35deg); }

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.s8 { top: 40%; left: 26%; }
.s9 { top: 20%; left: 42%; }

.ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  top: 78%;
  left: 32%;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  max-width: 420px;
}

.badge {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #ffffff;
  border: 5px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.badge::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.logo {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.wordmark {
  font-family: 'Hahmlet', serif;
  font-weight: 700;
  font-size: 40px;
  color: #ffffff;
  margin: 0 0 12px;
  text-shadow: 0 4px 14px rgba(120, 40, 0, 0.25);
}

.tagline {
  font-size: 15px;
  line-height: 1.5;
  color: #fff5ec;
  margin: 0 0 36px;
}

.actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.btn {
  padding: 15px 30px;
  border-radius: 999px;
  font-family: 'Hahmlet', serif;
  font-size: 16px;
  font-weight: 600;
  color: #ff5f2c;
  cursor: pointer;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(120, 30, 0, 0.25);
  transition: transform 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.btn-full {
  width: 100%;
}

.back-link {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Hahmlet', serif;
  font-size: 22px;
  opacity: 0.85;
}

.back-link:hover {
  opacity: 1;
}

.question-content {
  align-items: stretch;
  text-align: left;
  width: 100%;
}

.step-indicator {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.question {
  font-family: 'Hahmlet', serif;
  font-weight: 700;
  font-size: 30px;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 28px;
}

.field-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: none;
  font-family: 'Hahmlet', serif;
  font-size: 17px;
  color: #1a1a1a;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(120, 30, 0, 0.2);
  margin-bottom: 10px;
}

.field-input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.55);
}

.field-error {
  display: none;
  color: #fff2e8;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  margin: 0 0 20px;
}

.field-error.visible {
  display: block;
}

/* Landing page — vouch-style redesign, scoped to body.landing only */
body.landing {
  background: #ffffff;
}

body.landing .content {
  max-width: 380px;
}

body.landing .logo-icon {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  body.landing .head-left,
  body.landing .head-right {
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    animation: logo-head-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  body.landing .head-left {
    animation-delay: 0s;
  }

  body.landing .head-right {
    animation-delay: 1.2s;
  }

  body.landing .arc-reveal {
    stroke-dasharray: 1 2; /* gap longer than the path so no dash wraps around to the far end */
    stroke-dashoffset: 1;
    animation: logo-arc-draw 0.9s ease-in-out 0.3s forwards;
  }
}

@keyframes logo-head-pop {
  to {
    transform: scale(1);
  }
}

@keyframes logo-arc-draw {
  to {
    stroke-dashoffset: 0;
  }
}

body.landing .wordmark {
  font-family: 'Hahmlet', serif;
  font-weight: 700;
  font-size: 64px;
  color: #f2754e;
  text-shadow: none;
  margin: 0 0 16px;
}

body.landing .tagline {
  font-family: 'Inter', sans-serif;
  color: #5b6472;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 32px;
}

body.landing .actions {
  gap: 14px;
}

body.landing .btn-primary {
  background: #f2754e;
  color: #ffffff;
  border: 2px solid #f2754e;
  box-shadow: none;
}

body.landing .btn-primary:hover {
  background: #e96a42;
}

body.landing .btn-outline {
  background: transparent;
  color: #f2754e;
  border: 2px solid #f2754e;
  box-shadow: none;
}

body.landing .btn-outline:hover {
  background: rgba(242, 117, 78, 0.08);
}

body.landing .field-input {
  border: 2px solid #f2e4dc;
  box-shadow: none;
  color: #1a1a1a;
}

body.landing .field-input:focus {
  outline: none;
  border-color: #f2754e;
}

body.landing .field-error {
  background: #fbe4d8;
  color: #b95a30;
  text-align: center;
}

/* vouch-brand theme for post-landing pages, e.g. add-friends — scoped to body.vouch-theme */
body.vouch-theme {
  background: #fdf2ec;
  /* base body centers content and hides overflow, which clips/traps scroll
     once content (photo grids, friend lists, etc.) grows past the viewport */
  overflow-y: auto;
  align-items: flex-start;
  padding: 40px 0;
}

body.vouch-theme .vouch-mark {
  width: 56px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

body.vouch-theme .step-indicator {
  color: #b98a6f;
  text-align: center;
}

body.vouch-theme .question {
  font-family: 'Hahmlet', serif;
  font-weight: 700;
  color: #f2754e;
  text-align: center;
  font-size: 40px;
}

body.vouch-theme .tagline {
  font-family: 'Inter', sans-serif;
  color: #5b6472;
  text-align: center;
  font-size: 15px;
}

body.vouch-theme .btn-full {
  background: #f2754e;
  color: #ffffff;
  box-shadow: none;
}

body.vouch-theme .btn-full:hover {
  background: #e96a42;
}

body.vouch-theme .field-error {
  background: #fbe4d8;
  color: #b95a30;
  text-align: center;
}
