:root {
  --bg-ink: #0f1b4b;
  --bg-navy: #233c98;
  --bg-blue: #3f63c9;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(255, 255, 255, 0.35);
  --text: #12305b;
  --muted: #41608d;
  --accent: #39a1d8;
  --accent-dark: #2478a8;
  --accent2: #6bc74c;
  --accent2-dark: #4aa33a;
  --warm: #e85f45;
  --warm-soft: #f6d9d1;
  --shadow: 0 24px 70px rgba(11, 24, 62, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(180deg, var(--bg-blue) 0%, var(--bg-navy) 100%);
  overflow-x: hidden;
}

.bg-watermark {
  position: fixed;
  inset: 0;
  background-image: url("solid.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(72vw, 860px);
  opacity: 0.14;
  filter: saturate(0.92) brightness(1.1);
  pointer-events: none;
  transform: scale(1.02);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 20px;
  padding: 28px 16px 36px;
}

.brand-panel,
.card {
  width: min(100%, 560px);
}

.brand-panel {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.brand-logo {
  width: 110px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d8f4ff;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.subcopy {
  max-width: 42rem;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246, 250, 255, 0.82));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 24px;
}

.display {
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 20px 18px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: inset 0 0 0 1px rgba(36, 120, 168, 0.16);
  margin-bottom: 18px;
}

.display::placeholder {
  color: #7a8fb2;
  font-weight: 500;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.keypad button,
.primary,
.secondary {
  border: 0;
  border-radius: 16px;
  min-height: 62px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.keypad button {
  color: #fff;
  background: linear-gradient(180deg, rgba(78, 179, 219, 0.82), rgba(36, 120, 168, 0.82));
  box-shadow: 0 10px 22px rgba(33, 118, 160, 0.2);
  backdrop-filter: blur(4px);
}

.keypad button:hover,
.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.keypad button:active,
.primary:active,
.secondary:active {
  transform: translateY(1px) scale(0.99);
}

.keypad .secondary {
  background: linear-gradient(180deg, rgba(122, 211, 94, 0.82), rgba(74, 163, 58, 0.82));
}

.keypad .primary {
  background: linear-gradient(180deg, rgba(232, 95, 69, 0.82), rgba(216, 75, 43, 0.82));
}

.options-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(63, 99, 201, 0.07);
  border: 1px solid rgba(63, 99, 201, 0.12);
}

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.option-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--warm);
}

.other-input {
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(36, 120, 168, 0.2);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}

.success-card {
  text-align: center;
}

.success-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #72d96b, #2f9a53);
  font-size: 2rem;
  box-shadow: 0 14px 30px rgba(47, 154, 83, 0.3);
}

.success-card h2 {
  margin: 0;
  font-size: 1.9rem;
}

.success-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.large {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .app-shell {
    padding: 18px 12px 28px;
  }

  .card {
    border-radius: 24px;
    padding: 18px;
  }

  .brand-logo {
    width: 92px;
  }

  .keypad button,
  .primary,
  .secondary {
    min-height: 58px;
    border-radius: 14px;
  }
}
