/* ReservePlus mock — shared style for in-app WebView screens.
   Matches the e-Ukraine design language: bone background, dark green/black accents,
   rounded continue button. Designed for 360-420dp wide screens (Android phones). */

@font-face {
  font-family: 'e-Ukraine';
  font-weight: 400;
  font-style: normal;
  src: url('/static/fonts/e-ukraine-regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #f1ecd9;
  --bg-card: #ffffff;
  --fg: #111111;
  --fg-muted: #5a5a5a;
  --fg-faded: #9a9a9a;
  --accent: #1a1a1a;
  --accent-fg: #ffffff;
  --warn: #d97706;
  --error: #b91c1c;
  --success: #15803d;
  --border: rgba(0, 0, 0, 0.08);
  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-input: 16px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'e-Ukraine', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: 100vh;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  padding: 28px 20px 32px;
  min-height: 100vh;
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  gap: 20px;
}

.screen-title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}

.screen-subtitle {
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg-muted);
}

.screen-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  margin: 4px 0;
}

.screen-icon svg, .screen-icon img {
  width: 56px;
  height: 56px;
}

.spacer { flex: 1; min-height: 12px; }

/* Card list (e.g. role picker, banks) */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border);
  transition: transform 80ms ease;
}

.card:active { transform: scale(0.98); }

.card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card-body { flex: 1; }
.card-title { font-size: 16px; font-weight: 500; line-height: 1.2; }
.card-sub { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }
.card-chevron { color: var(--fg-faded); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 22px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease, opacity 120ms ease;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--fg-muted); }

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* PIN keypad */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 32px 0 24px;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  transition: background 100ms ease;
}

.pin-dot.filled { background: var(--accent); }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.key {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  font-family: inherit;
  font-size: 26px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 80ms ease, background 100ms ease;
}

.key:active { transform: scale(0.94); background: var(--bg); }
.key.key-action { background: transparent; border: none; font-size: 20px; color: var(--fg-muted); }

/* Banner / hint */
.banner {
  background: rgba(217, 119, 6, 0.08);
  color: var(--warn);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.demo-pill {
  display: inline-block;
  background: rgba(0,0,0,0.06);
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.center { text-align: center; }
.muted { color: var(--fg-muted); }
.small { font-size: 13px; }
