/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 1s var(--ease-material);
}

body[data-state="success"] {
  background: linear-gradient(135deg, #FFF0F0 0%, #FFE0E8 50%, #FFD0D0 100%);
}

/* Custom cursor - heart */
@media (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-1-1-3-3C6 15 3 12 3 9a4.5 4.5 0 0 1 9 0 4.5 4.5 0 0 1 9 0c0 3-3 6-6 9-2 2-3 3-3 3z' fill='%23FF6B6B' stroke='%23E84545' stroke-width='0.5'/%3E%3C/svg%3E") 12 12, auto;
  }
  a, button, [role="button"], .clickable {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-1-1-3-3C6 15 3 12 3 9a4.5 4.5 0 0 1 9 0 4.5 4.5 0 0 1 9 0c0 3-3 6-6 9-2 2-3 3-3 3z' fill='%23E84545' stroke='%23c62828' stroke-width='0.5'/%3E%3C/svg%3E") 14 14, pointer;
  }
}

/* ========== VIEWS ========== */
.view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-material);
  z-index: 1;
}

[data-state="landing"] #landing {
  opacity: 1;
  pointer-events: all;
}

[data-state="captcha"] #captcha-view {
  opacity: 1;
  pointer-events: all;
}

[data-state="success"] #success-view {
  opacity: 1;
  pointer-events: all;
}

/* ========== DECORATIONS ========== */
.decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.deco {
  position: absolute;
  opacity: 0.5;
  will-change: transform;
}

.deco-1  { top: 8%;  left: 5%;  animation: float 6s ease-in-out infinite; }
.deco-2  { top: 15%; right: 8%; animation: float 5s ease-in-out infinite 0.5s; }
.deco-3  { top: 45%; left: 3%;  animation: float 7s ease-in-out infinite 1s; }
.deco-4  { top: 20%; left: 20%; animation: float 4s ease-in-out infinite 0.3s; }
.deco-5  { bottom: 20%; right: 5%; animation: float 5.5s ease-in-out infinite 1.5s; }
.deco-6  { top: 60%; right: 15%; animation: float 4.5s ease-in-out infinite 0.8s; }
.deco-7  { bottom: 10%; left: 10%; animation: float 6.5s ease-in-out infinite 2s; }
.deco-8  { top: 5%;  right: 25%; animation: float 5s ease-in-out infinite 1.2s; }
.deco-9  { top: 70%; left: 25%; animation: float 7s ease-in-out infinite 0.6s; }
.deco-10 { bottom: 30%; right: 30%; animation: float 4s ease-in-out infinite 1.8s; }
.deco-11 { top: 35%; right: 3%; animation: float 5.5s ease-in-out infinite 2.2s; }
.deco-12 { bottom: 5%; left: 40%; animation: float 6s ease-in-out infinite 0.4s; }

@media (max-width: 480px) {
  .deco-4, .deco-6, .deco-8, .deco-9, .deco-10, .deco-11, .deco-12 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deco {
    animation: none !important;
  }
}

/* ========== LANDING ========== */
#landing {
  z-index: 2;
}

.landing-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-medium);
  text-align: center;
  animation: wobbleIn 0.7s var(--ease-spring) 0.2s both;
  position: relative;
}

.lock-icon {
  margin-bottom: var(--space-md);
}

.lock-icon svg {
  display: inline-block;
}

.lock-shackle {
  transform-origin: 12px 11px;
  animation: unlockShackle 0.8s var(--ease-spring) 1s both;
}

.landing-title {
  font-family: var(--font-system);
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.landing-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.landing-fine-print {
  font-family: var(--font-system);
  font-size: 10px;
  color: #aaa;
  margin-top: var(--space-md);
}

.landing-fine-print a {
  color: #aaa;
  text-decoration: none;
}

.landing-fine-print a:hover {
  text-decoration: underline;
}

/* ========== reCAPTCHA ANCHOR (checkbox) ========== */
.rc-anchor {
  background: #fff;
  border: 1px solid var(--captcha-border);
  border-radius: 3px;
  height: 78px;
  width: 304px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  user-select: none;
  transition: border-color 0.2s;
}

.rc-anchor:hover {
  border-color: var(--captcha-hover);
}

.rc-anchor-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-anchor-checkbox-holder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-checkbox {
  width: 28px;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-checkbox-border {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  transition: border-color 0.15s;
  position: absolute;
}

.rc-checkbox:hover .rc-checkbox-border {
  border-color: #a0a0a0;
}

.rc-checkbox-spinner,
.rc-checkbox-checkmark {
  position: absolute;
  display: none;
}

.rc-checkbox.spinning .rc-checkbox-border { display: none; }
.rc-checkbox.spinning .rc-checkbox-spinner { display: flex; }
.rc-checkbox.spinning .rc-checkbox-spinner svg { animation: spin 1.2s linear infinite; }

.rc-checkbox.checked .rc-checkbox-border { display: none; }
.rc-checkbox.checked .rc-checkbox-checkmark { display: flex; animation: popIn 0.3s var(--ease-spring); }

.rc-anchor-label {
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: 500;
  color: #000;
}

.rc-anchor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rc-anchor-logo-img svg {
  display: block;
}

.rc-anchor-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rc-logo-name {
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: 700;
  color: #555;
  transition: color 0.3s;
}

.rc-anchor:hover .rc-logo-name {
  color: var(--rose);
}

.rc-logo-links {
  font-family: var(--font-system);
  font-size: 8px;
  color: #aaa;
}