* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-yellow: #ffc425;
  --dark-blue: #f7f7f7;
  /* --text-primary: #FFD744; */
  --text-primary: #fe6007;
  --text-secondary: #c3c7ce;
  --card-bg: #fe6007;
  --white: #000000;
  --shadow: 0 4px 6px rgba(228, 219, 219, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  touch-action: manipulation;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  position: relative;
}

/* Header */
.app-header {
  padding: 1.5rem 1.5rem 1rem;
  background-color: var(--white);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 200px;
  height: auto;
  object-fit: contain;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 600px;
  margin: auto 0;
  animation: slideInUp 0.5s ease-out;
}

.page-title {
  padding-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem 1rem;
  cursor: pointer;
  border: 2px solid #d1d5db;
  position: relative;
  overflow: hidden;
  user-select: none;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover:not(.selected) {
  border-color: #9ca3af;
  box-shadow: var(--shadow);
}

.card:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.card.selected {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.card.selected .card-title {
  color: var(--white);
}

.card.selected .card-text {
  color: rgba(255, 255, 255, 0.8);
}

.card.selected::after {
  content: "✓";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--dark-blue);
  font-size: 0.875rem;
  animation: checkmark 0.3s ease-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }

  50% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.card-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Button */
.btn-primary {
  width: 100%;
  background-color: var(--primary-yellow);
  color: var(--dark-blue);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
  margin-top: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.btn-primary:hover:not(:disabled) {
  background-color: #f5b800;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow);
  opacity: 0.9;
}

.btn-primary:disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

/* Disclaimer */
.disclaimer-text {
  padding-top: 1.25rem;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.app-footer {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--white);
  /* border-top: 1px solid #fe6007; */
}

.app-footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-brand-name-span {
  color: var(--text-primary);
  font-weight: 700;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 360px) {
  .cards-container {
    gap: 0.75rem;
  }

  .card {
    padding: 1.5rem 0.75rem;
    min-height: 120px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.8rem;
  }
}

/* Accessibility */
.card:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline: 3px solid var(--dark-blue);
  outline-offset: 2px;
}