* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  color: var(--color-dark-gray);
  background: var(--color-light-gray);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-blue); line-height: 1.25; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }

p { font-size: 15px; line-height: 1.5; }

@media (min-width: 992px) {
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  p  { font-size: 16px; }
}

button { font-family: var(--font-heading); cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
textarea, select, input { font-family: var(--font-body); }

/* App shell: selalu centered, max-width, terasa "app-like" bahkan di desktop */
#app {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px var(--color-shadow);
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
}

.screen-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* Accessibility: visible focus ring */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.option-card:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
