/* =============================================
   RAMPART — Static Site Styles
   Design tokens and component styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Design Tokens (CSS Variables) ---------- */
:root {
  --background: #213e66;
  --foreground: #efebe2;
  --card: hsl(215, 45%, 30%);
  --card-foreground: #efebe2;
  --primary: #f1efea;
  --primary-foreground: #213e66;
  --secondary: hsl(215, 40%, 32%);
  --secondary-foreground: hsl(42, 25%, 90%);
  --muted: hsl(215, 30%, 34%);
  --muted-foreground: hsl(42, 25%, 88%);
  --accent: #f1efea;
  --destructive: #e8433a;
  --destructive-foreground: #efebe2;
  --border: hsl(215, 30%, 36%);
  --input: hsl(215, 30%, 36%);
  --ring: #f1efea;
  --radius: 0.75rem;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

/* ---------- Logo Loading Animation ---------- */
@keyframes logoLoad {
  0% { transform: scale(3); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.logo-loading {
  animation: logoLoad 2.5s ease-out forwards;
}

/* ---------- Fade In ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ---------- Slide Transitions ---------- */
@keyframes slideInRight {
  from { transform: translateX(80px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-80px); opacity: 0; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutScale {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.98); }
}

.slide-enter {
  animation: slideInRight 0.4s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

.slide-exit {
  animation: slideOutLeft 0.4s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

.slide-fade-enter {
  animation: fadeInScale 0.4s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

.slide-fade-exit {
  animation: fadeOutScale 0.4s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

/* ---------- Blur Heading Rotation ---------- */
@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0px); }
}

@keyframes blurOut {
  from { opacity: 1; filter: blur(0px); }
  to { opacity: 0; filter: blur(8px); }
}

.blur-in {
  animation: blurIn 0.6s ease-in-out forwards;
}

.blur-out {
  animation: blurOut 0.6s ease-in-out forwards;
}

@keyframes kitBlurIn {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}

@keyframes kitBlurOut {
  from { opacity: 1; filter: blur(0); }
  to   { opacity: 0; filter: blur(6px); }
}

.kit-blur-in  { animation: kitBlurIn  0.45s ease forwards; }
.kit-blur-out { animation: kitBlurOut 0.45s ease forwards; }

/* ---------- Shake Animation ---------- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.4s ease;
}

/* ---------- Glow Effects ---------- */
@keyframes glowBox {
  0%, 100% { box-shadow: 0 0 0px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary); }
}

.glow-box {
  animation: glowBox 0.8s ease;
}

@keyframes glowDrop {
  0%, 100% { filter: drop-shadow(0 0 0px var(--primary)); }
  50% { filter: drop-shadow(0 0 16px var(--primary)); }
}

.glow-drop {
  animation: glowDrop 0.8s ease;
}

/* ---------- Word Fade In ---------- */
@keyframes wordFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Person Icon Pop ---------- */
@keyframes personPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Spring Bounce (Checkmark) ---------- */
@keyframes springBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  70% { transform: scale(0.92); }
  85% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.spring-bounce {
  animation: springBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ---------- Runway Arrows Glow Loop ---------- */
@keyframes arrowGlow {
  0%, 100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 0px var(--primary));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px var(--primary));
  }
}

/* ---------- Restart Button Glow ---------- */
@keyframes restartGlow {
  0%, 100% {
    opacity: 0.3;
    filter: drop-shadow(0 0 0px #e8433a);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px #e8433a);
  }
}

/* ---------- Label Pulse ---------- */
@keyframes labelPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---------- Fade in up (generic) ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

/* ===== Layout ===== */

.app-shell {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  background: var(--background);
}

.splash-screen {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 180px;
  max-width: 180px;
  height: auto;
}

.slide-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Homepage header — matches shared header on subpages */
.slide-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--background);
  position: relative;
  z-index: 20;
}

.slide-header img {
  width: 90px;
  height: auto;
}

.slide-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Fallback for Safari versions that don't support flexbox gap */
@supports not (gap: 8px) {
  .slide-header-nav > * + * {
    margin-left: 8px;
  }
}

@media (max-width: 640px) {
  .slide-header {
    padding: 12px 16px;
  }
  .slide-header img {
    width: 72px;
  }
  .slide-header-nav {
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .slide-header img {
    width: 110px;
  }
  .slide-header {
    padding: 20px 40px;
  }
}

/* Shared header link styles (duplicated from shared.css for homepage) */
.slide-header-nav .shared-header-link {
  font-size: 0.8rem;
  color: var(--foreground, #efebe2);
  opacity: 0.75;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: opacity 0.3s ease, background 0.3s ease;
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
}

.slide-header-nav .shared-header-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.slide-header-nav .shared-header-kit {
  background: var(--primary, #f1efea);
  border-color: var(--primary, #f1efea);
  color: var(--primary-foreground, #213e66);
  opacity: 1;
  min-width: 90px;
  text-align: center;
  font-weight: 700;
}

.slide-header-nav .shared-header-kit:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .slide-header-nav .shared-header-link {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

.slide-content {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.slide-inner {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 16px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Centers slide content vertically when it fits, scrolls when it doesn't */
.slide-inner > div {
  margin-top: auto;
  margin-bottom: auto;
}

.slide-bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 12px;
}

/* Subtle skip link below the arrows */
.skip-to-signup {
  font-size: 0.75rem;
  color: var(--foreground);
  opacity: 0.4;
  text-decoration: none;
  padding: 8px 16px;
  transition: opacity 0.3s ease;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.skip-to-signup:hover {
  opacity: 0.75;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.15s ease;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 24px;
  height: 48px;
  font-weight: 600;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0 24px;
}

.btn-outline:hover {
  opacity: 0.9;
  background: hsla(354, 70%, 50%, 0.08);
  border-color: var(--foreground);
  transform: translateY(-2px);
}

/* Ghost button — minimal, for tertiary actions */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--foreground);
  padding: 0 16px;
  opacity: 0.7;
}

.btn-ghost:hover {
  opacity: 1;
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 1.125rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background: hsla(42, 29%, 91%, 0.08);
}

/* ===== Input ===== */

.input {
  display: flex;
  height: 48px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 8px 16px;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s;
}

.input::placeholder {
  color: var(--muted-foreground);
}

.input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsla(354, 70%, 50%, 0.2);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Toast ===== */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
  animation: fadeInUp 0.3s ease forwards;
}

.toast.toast-destructive {
  border-color: var(--destructive);
  background: hsla(0, 72%, 51%, 0.12);
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px); }
}

.toast-exit {
  animation: toastOut 0.3s ease forwards;
}

/* ===== Slide: Language ===== */

.language-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 448px;
  width: 100%;
}

.language-heading-wrapper {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  width: 100%;
}

.language-heading {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.language-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.language-buttons .btn {
  width: 100%;
  height: 56px;
  font-size: 1.125rem;
  font-weight: 500;
}

.other-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.other-input-wrapper .input {
  height: 56px;
  text-align: center;
  font-size: 1.125rem;
  background: var(--card);
}

.other-input-wrapper .btn-primary {
  height: 56px;
  font-size: 1.125rem;
  font-weight: 500;
}

/* stagger anim for lang buttons */
.lang-btn-anim {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(12px);
  animation: langBtnIn 0.5s ease-out forwards;
}

@keyframes langBtnIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/* ===== Slide: Email Challenge ===== */

.challenge-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 384px;
  width: 100%;
}

.challenge-slide h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
}

.challenge-slide .instruction {
  font-size: 1rem;
  color: hsla(42, 29%, 91%, 0.92);
  margin-bottom: 24px;
}

.email-card {
  width: 100%;
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.email-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.email-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsla(354, 70%, 50%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.email-body {
  flex: 1;
  min-width: 0;
}

.email-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.email-from {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1rem;
}

.email-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.email-subject {
  font-size: 1rem;
  font-weight: 500;
  color: hsla(42, 29%, 91%, 0.95);
  margin-top: 4px;
}

.email-preview {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.email-sender {
  font-size: 0.875rem;
  color: hsla(42, 20%, 82%, 0.7);
  margin-top: 8px;
  font-family: monospace;
}

.email-sender .highlight {
  color: var(--destructive);
  font-weight: 700;
}

/* SMS Bubble */
.sms-bubble-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.sms-bubble {
  background: var(--secondary);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 16px;
  text-align: left;
}

.sms-bubble p {
  font-size: 1rem;
  color: var(--secondary-foreground);
  line-height: 1.625;
}

.sms-sender {
  font-size: 0.875rem;
  color: hsla(42, 20%, 82%, 0.7);
  margin-top: 8px;
  margin-left: 4px;
  font-family: monospace;
}

/* Challenge Buttons */
.challenge-buttons {
  display: flex;
  gap: 24px;
}

.challenge-buttons .btn {
  min-width: 130px;
  min-height: 56px;
  font-size: 1.125rem;
}

.btn-real {
  border-color: hsla(142, 60%, 40%, 0.5);
}

.btn-real:hover {
  border-color: hsl(142, 60%, 45%);
  background: hsla(142, 60%, 45%, 0.1);
}

.btn-scam {
  border-color: hsla(0, 72%, 51%, 0.5);
}

.btn-scam:hover {
  border-color: var(--destructive);
  background: hsla(0, 72%, 51%, 0.1);
}

.challenge-feedback {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

/* ===== Slide: Stats (100 icons) ===== */

.stats-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 512px;
  width: 100%;
  padding: 0 16px 16px;
}

.stats-slide h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 4px;
}

.stats-slide .stats-sub {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.person-icon {
  width: 100%;
  transition: color 0.6s ease, transform 0.4s ease, opacity 0.4s ease;
}

.person-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.person-icon.lit {
  color: hsl(168, 76%, 49%);
}

.person-icon.dim {
  color: #e8433a;
}

@keyframes personRipple {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.person-icon.ripple {
  animation: personRipple 0.4s ease forwards;
}

.stats-source {
  font-size: 0.75rem;
  color: hsla(42, 20%, 82%, 0.6);
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* ===== Slide: Gut Punch (5 icons) ===== */

.gutpunch-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 512px;
  width: 100%;
  padding: 0 16px;
}

.gutpunch-icons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.large-person-icon {
  width: 40px;
  height: 56px;
  transform: scale(0);
  opacity: 0;
  animation: personPop 0.5s ease-out forwards;
}

.gutpunch-text {
  font-size: 1rem;
  color: hsla(42, 29%, 91%, 0.92);
  padding: 0 8px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== Slide: Regional Stats ===== */

.regional-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 512px;
  width: 100%;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.regional-slide h2 {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.regional-flag {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.regional-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}

.regional-label {
  font-size: 1.125rem;
  color: hsla(42, 29%, 91%, 0.92);
  margin-top: 4px;
}

.regional-source {
  font-size: 0.75rem;
  color: hsla(42, 20%, 82%, 0.6);
  margin-top: 4px;
}

/* Regional compact grid (for "other" language) */
.regional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.regional-grid .regional-flag {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.regional-grid .regional-amount {
  font-size: 1.25rem;
}

.regional-grid .regional-label {
  font-size: 0.875rem;
  margin-top: 4px;
}

/* ===== Slide: Building ===== */

.building-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 448px;
  width: 100%;
}

.building-slide h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.625;
}

.building-word {
  display: inline-block;
  margin-right: 0.3em;
  opacity: 0;
  animation: wordFadeIn 0.5s ease-out forwards;
}

/* ===== Slide: Signup ===== */

.signup-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 448px;
  width: 100%;
  padding: 0 16px;
}

.signup-slide h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

/* Urgency line below title */
.signup-urgency {
  font-size: 0.82rem;
  color: var(--primary, #f1efea);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
  opacity: 0.9;
}

/* Goose annotation wrapper */
.signup-form-wrapper {
  position: relative;
  width: 100%;
  max-width: 448px;
}

.goose-annotation {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  animation: goose-bob 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.4s ease;
}

.goose-annotation.goose-hidden {
  opacity: 0;
  pointer-events: none;
}

.goose-arrow-img {
  width: 28px;
  height: auto;
  transform: scaleX(-1);
}

.goose-speech {
  background: var(--primary, #f1efea);
  color: var(--primary-foreground, #213e66);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  position: relative;
}

/* Arrow pointing down toward the email input */
.goose-speech::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary, #f1efea);
  border-bottom: 0;
}

/* Remove old left-pointing arrow */
.goose-speech::before {
  display: none;
}

@keyframes goose-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

@media (max-width: 640px) {
  .goose-annotation {
    top: -36px;
  }
  .goose-arrow-img {
    width: 22px;
  }
  .goose-speech {
    font-size: 0.65rem;
  }
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 448px;
}

.signup-disclaimer {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 16px;
  max-width: 320px;
}

.store-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.store-badges-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.store-badges-label .bold-teal {
  font-weight: 700;
  color: var(--primary);
}

.store-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.store-badges-row img {
  display: block;
  height: 40px;
  width: 135px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  opacity: 0.4;
  pointer-events: none;
}

/* Signup Success */
.signup-success .checkmark-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transform: scale(0);
}

.signup-success .checkmark-circle.animate {
  animation: springBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.signup-success .checkmark-circle svg {
  width: 32px;
  height: 32px;
  color: var(--primary-foreground);
}

.signup-success h2 {
  margin-bottom: 24px;
}

.signup-success .success-section {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

/* Blog CTA button at end of quiz */
.blog-cta-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--primary-foreground);
  background: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.blog-cta-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Free Kit CTA */
.free-kit-link {
  display: inline-block;
  font-size: 0.875rem;
  color: #fff;
  background: linear-gradient(135deg, #213e66 0%, #2a5298 100%);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.free-kit-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== Social Links ===== */

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-links-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 10px;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

/* ===== Runway Arrows ===== */

.runway-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  min-height: 60px;
  min-width: 200px;
  cursor: pointer;
  margin-top: -8px;
  background: none;
  border: none;
  outline: none;
}

.arrows-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.arrow-chevron {
  color: var(--primary);
  opacity: 0.5;
}

.arrow-chevron svg {
  width: 28px;
  height: 28px;
}

.arrow-chevron:nth-child(1) {
  animation: arrowGlow 0.8s ease-in-out 0s infinite;
  animation-delay: 0s;
}

.arrow-chevron:nth-child(2) {
  animation: arrowGlow 0.8s ease-in-out 0.2s infinite;
}

.arrow-chevron:nth-child(3) {
  animation: arrowGlow 0.8s ease-in-out 0.4s infinite;
}

/* Add loop delay via animation-timing */
@keyframes arrowGlowLoop {
  0%, 32% {
    opacity: 0.5;
    filter: drop-shadow(0 0 0px var(--primary));
  }
  16% {
    opacity: 1;
    filter: drop-shadow(0 0 12px var(--primary));
  }
  32%, 100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 0px var(--primary));
  }
}

.arrow-chevron:nth-child(1) {
  animation: arrowGlowLoop 2.5s ease-in-out infinite;
}
.arrow-chevron:nth-child(2) {
  animation: arrowGlowLoop 2.5s ease-in-out 0.2s infinite;
}
.arrow-chevron:nth-child(3) {
  animation: arrowGlowLoop 2.5s ease-in-out 0.4s infinite;
}

.arrow-label {
  font-size: 0.875rem;
  color: var(--foreground);
  opacity: 0.85;
  animation: labelPulse 3s ease-in-out infinite;
}

/* ===== Restart Button ===== */

.restart-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.restart-icon {
  color: var(--primary);
  animation: restartGlow 2.5s ease-in-out infinite;
}

.restart-icon svg {
  width: 20px;
  height: 20px;
}

.restart-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Spacer (for bottom bar when no arrows) ===== */

.bottom-spacer {
  height: 44px;
}

/* ===== Why We Charge Page ===== */

.why-page {
  min-height: 100vh;
  background: var(--background);
}

.why-content {
  max-width: 672px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.why-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
  margin-bottom: 48px;
}

.why-back:hover {
  color: var(--foreground);
}

.why-back svg {
  width: 16px;
  height: 16px;
}

.why-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.why-page .subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 48px;
}

.why-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.125rem;
  color: hsla(42, 29%, 91%, 0.95);
  line-height: 1.625;
  margin-bottom: 56px;
}

.why-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

.why-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--foreground);
}

.why-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.why-feature span {
  font-size: 1.125rem;
}

.why-alt-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.125rem;
  color: hsla(42, 29%, 91%, 0.95);
  line-height: 1.625;
  margin-bottom: 56px;
}

.why-pricing {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.why-pricing .pricing-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.why-pricing .pricing-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}

.why-pricing .pricing-period {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.why-pricing .pricing-annual {
  color: var(--muted-foreground);
  margin-top: 4px;
}

.why-pricing .pricing-trial {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 12px;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--border);
  background: hsla(215, 45%, 30%, 0.5);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ===== 404 Page ===== */

.not-found {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--background);
  padding: 24px;
  text-align: center;
}

.not-found img {
  width: 120px;
  margin-bottom: 40px;
}

.not-found h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
}

.not-found p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 32px;
}

.not-found a {
  color: var(--primary);
  font-size: 1rem;
}

.not-found a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */

@media (min-width: 640px) {
  .signup-form {
    flex-direction: row;
  }

  .signup-form .input {
    flex: 1;
  }
}

@media (min-width: 768px) {

  .slide-inner {
    padding: 0 64px;
  }

  .slide-bottom {
    padding-bottom: 20px;
  }

  .language-heading-wrapper {
    height: 4rem;
  }

  .language-heading {
    font-size: 2.25rem;
  }

  .challenge-slide h2 {
    font-size: 1.875rem;
  }

  .challenge-slide .instruction {
    font-size: 1.125rem;
  }

  .stats-slide h2 {
    font-size: 1.5rem;
  }

  .stats-slide .stats-sub {
    font-size: 1.125rem;
    margin-bottom: 24px;
  }

  .person-grid {
    gap: 4px;
    max-width: 320px;
  }

  .stats-source {
    margin-bottom: 24px;
  }

  .gutpunch-icons {
    gap: 24px;
    margin-bottom: 40px;
  }

  .large-person-icon {
    width: 56px;
    height: 80px;
  }

  .gutpunch-text {
    font-size: 1.25rem;
  }

  .regional-slide h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .regional-flag {
    font-size: 3rem;
  }

  .regional-amount {
    font-size: 2.25rem;
  }

  .regional-grid {
    gap: 24px;
  }

  .building-slide h2 {
    font-size: 1.875rem;
  }

  .signup-slide h2 {
    font-size: 1.5rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .why-content {
    padding-top: 128px;
    padding-bottom: 128px;
  }

  .why-page h1 {
    font-size: 3rem;
  }

  .why-page .subtitle {
    font-size: 1.5rem;
  }
}

/* Hide element utility */
.hidden {
  display: none !important;
}

/* Visibility helper for transitions */
.invisible {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

/* Text alignment utility */
.text-center {
  text-align: center;
}
