/* style.css
   Design grounded in the audience: elderly users, often low-vision,
   low digital literacy. One typeface (Atkinson Hyperlegible - built
   by the Braille Institute for low-vision readability), one screen,
   one job. Color palette literal to "Sky Blue": a clear-sky primary,
   a warm sun-glow used once as the signature element, and a distinct
   urgent color reserved only for "I need help" so urgency reads as
   color, not just text.
*/

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

:root {
  --sky-primary: #1B6FA8;
  --sky-primary-dark: #14568A;
  --sky-bg: #EAF4FB;
  --sky-deep-text: #16324A;
  --sun-glow: #F5A623;
  --urgent: #D64545;
  --urgent-dark: #B33636;
  --success: #2F9E56;
  --card-bg: #FFFFFF;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Atkinson Hyperlegible', -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--sky-bg) 0%, #FFFFFF 60%);
  color: var(--sky-deep-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.sb-banner {
  width: 100%;
  background: var(--sky-primary-dark);
  color: #FFFFFF;
  text-align: center;
  padding: 20px 16px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px rgba(20, 86, 138, 0.25);
}

.sb-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#app {
  width: 100%;
  max-width: 460px;
}

.sb-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 8px 30px rgba(22, 50, 74, 0.08);
  position: relative;
  overflow: hidden;
}

.sb-card--error {
  text-align: center;
}

/* Signature element: a soft sun-glow bloom behind the button area,
   the one deliberate accent moment - everything else stays quiet. */
.sb-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.35) 0%, rgba(245, 166, 35, 0) 70%);
  pointer-events: none;
}

.sb-greeting {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--sky-primary-dark);
}

.sb-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 92px;
  border: none;
  border-radius: 18px;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sb-button:active {
  transform: scale(0.98);
}

.sb-button--normal {
  background: var(--sky-primary);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(27, 111, 168, 0.35);
}

.sb-button--normal:hover,
.sb-button--normal:focus-visible {
  background: var(--sky-primary-dark);
}

.sb-button--urgent {
  background: var(--urgent);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(214, 69, 69, 0.35);
}

.sb-button--urgent:hover,
.sb-button--urgent:focus-visible {
  background: var(--urgent-dark);
}

.sb-button:focus-visible {
  outline: 3px solid var(--sky-deep-text);
  outline-offset: 3px;
}

.sb-button__icon {
  font-size: 32px;
  line-height: 1;
}

.sb-help-note {
  font-size: 15px;
  color: #55707F;
  margin: 20px 0 0;
  text-align: center;
}

.sb-status {
  margin-top: 20px;
  min-height: 28px;
  font-size: 17px;
  text-align: center;
}

.sb-status--pending {
  color: var(--sky-primary-dark);
}

.sb-status--queued {
  color: #8A6D1D;
}

.sb-status--success {
  color: var(--success);
  font-weight: 700;
}

.sb-status__spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--sky-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: sb-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes sb-spin {
  to { transform: rotate(360deg); }
}

.sb-body {
  font-size: 18px;
  margin: 8px 0;
}

@media (prefers-reduced-motion: reduce) {
  .sb-button {
    transition: none;
  }
  .sb-status__spinner {
    animation: none;
  }
}
