:root {
  --ink: #16303f;
  --muted: #4a6674;
  --surface: rgba(255, 252, 247, 0.72);
  --btn-a: #0f7a6b;
  --btn-a-hover: #0b5f54;
  --btn-b: #c45c26;
  --btn-b-hover: #a44b1d;
  --btn-c: #2563eb;
  --btn-c-hover: #1d4ed8;
  --status: #245064;
  --shadow: 0 18px 40px rgba(22, 48, 63, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, #9fd7c8 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, #f2c39a 0%, transparent 50%),
    linear-gradient(160deg, #e8f4f1 0%, #f7efe6 45%, #dcecf0 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}

.brand {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: rise 0.7s ease-out both;
}

.hint {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
  animation: rise 0.7s ease-out 0.08s both;
}

.trip-type {
  display: flex;
  gap: 0.75rem;
  width: min(100%, 28rem);
  margin: 0;
  padding: 0;
  border: none;
  animation: rise 0.7s ease-out 0.12s both;
}

.trip-type-legend {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.trip-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(22, 48, 63, 0.14);
  border-radius: 0.9rem;
  background: var(--surface);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.trip-option:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 122, 107, 0.45);
}

.trip-option:has(input:checked) {
  border-color: var(--btn-a);
  background: rgba(15, 122, 107, 0.12);
}

.trip-option input {
  accent-color: var(--btn-a);
  width: 1.05rem;
  height: 1.05rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(100%, 28rem);
  margin-top: 0.75rem;
  animation: rise 0.7s ease-out 0.16s both;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 1.1rem;
  padding: 1.35rem 1.5rem;
  font: inherit;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

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

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-a {
  background: var(--btn-a);
}

.btn-a:hover:not(:disabled) {
  background: var(--btn-a-hover);
}

.btn-b {
  background: var(--btn-b);
}

.btn-b:hover:not(:disabled) {
  background: var(--btn-b-hover);
}

.btn-c {
  background: var(--btn-c);
}

.btn-c:hover:not(:disabled) {
  background: var(--btn-c-hover);
}

.status {
  min-height: 1.5rem;
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--status);
  animation: rise 0.7s ease-out 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .trip-type {
    width: min(100%, 40rem);
  }

  .actions {
    flex-direction: row;
    width: min(100%, 40rem);
  }

  .btn {
    flex: 1;
    min-height: 6.5rem;
  }
}
