/* kpe.dddev.ro — stilurile paginii. Font de sistem: nimic de încărcat în afară de acest fișier. */

:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --text: #0d1b33;
  --muted: #475571;
  --border: #d3dcea;
  --primary: #1546b0;
  --primary-hover: #0f3a96;
  --primary-ink: #ffffff;
  --ok: #0b7a43;
  --warn: #a14700;
  --focus: #3fa3ff;
  --radius: 1rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07101e;
    --surface: #0f1b30;
    --text: #edf2fb;
    --muted: #a9b6cd;
    --border: #23344f;
    --primary: #7fb3ff;
    --primary-hover: #a3c8ff;
    --primary-ink: #06122a;
    --ok: #5fd99a;
    --warn: #ffb067;
    --focus: #7fb3ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

main {
  flex: 1;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
}

h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
}

h2 {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
}

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

.hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-eye {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 .5rem 1rem rgb(13 60 158 / .25));
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: balance;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 2px solid var(--primary);
  border-radius: .75rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}

.btn:active {
  transform: scale(.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-big {
  min-height: 4rem;
  font-size: 1.3rem;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: rgb(127 179 255 / .12);
}

.emoji {
  font-size: 1.5em;
  line-height: 1;
}

.status {
  min-height: 1.55em;
  margin-top: .6rem;
  text-align: center;
  font-weight: 600;
  color: var(--ok);
}

.status.is-error {
  color: var(--warn);
}

.fallback {
  width: 100%;
  margin-top: .6rem;
  padding: .6rem;
  border: 1px dashed var(--border);
  border-radius: .5rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.5rem;
  text-align: center;
}

label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: .9rem;
}

.field {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.preview {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin: .75rem 0;
  overflow-wrap: anywhere;
}

.preview-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.counter {
  flex: none;
  color: var(--muted);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

.counter.is-over {
  color: var(--warn);
  font-weight: 700;
}

.steps {
  margin: 0;
  padding-left: 1.4rem;
}

.steps li + li {
  margin-top: .35rem;
}

.steps strong {
  white-space: nowrap;
}

.note {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer {
  padding: 1.25rem 1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

/* Spațiu între legăturile DDDev: țintele de atingere rămân la cel puțin 24px una de alta. */
.site-footer > div + div {
  margin-top: 1rem;
}

.not-found {
  text-align: center;
}

.not-found .btn {
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
