/* NiCE Brand Guidelines 2025 v2: Be Vietnam Pro, charcoal and white with NiCE blue as the accent. Warm white is for
   panels only, never a page background. Secondary colours appear only as their official tints behind charcoal text. */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/be-vietnam-pro-300.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/be-vietnam-pro-400.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/be-vietnam-pro-500.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/be-vietnam-pro-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --blue: #3694fc; --blue-hover: #1c7fea; --blue-tint: #a7d0fe;
  --charcoal: #21212b; --white: #ffffff; --warm-white: #f2f0eb;
  --emerald-tint: #9ceed2; --coral-tint: #f3b1c4;
  --muted: #4a494f; --line: #dcd9d3;
  --shadow: 0 12px 40px rgba(33, 33, 43, .18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--charcoal); font: 300 16px/1.45 "Be Vietnam Pro", Arial, sans-serif; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.08; margin: 0 0 .6rem; }
h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1rem; line-height: 1.3; margin: 1.1rem 0 .35rem; }
p { margin: .25rem 0; }
strong { font-weight: 500; }
.muted { color: var(--muted); }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 960px; margin: 0 auto; padding: 18px 16px; }
.logo { display: block; height: 34px; width: auto; }
.who { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 400; color: var(--muted); }
.hero { background: var(--blue-tint) url("/gradient.jpg") center / cover no-repeat; }
.hero-inner { max-width: 960px; margin: 0 auto; padding: 44px 16px 48px; }
.hero p { max-width: 36rem; font-size: 1.05rem; font-weight: 400; }

main { max-width: 960px; margin: 0 auto; padding: 8px 16px 3rem; }
section { background: var(--warm-white); border-radius: 20px; padding: 1.5rem; margin-top: 1rem; }
ul { margin: .25rem 0; padding-left: 1.25rem; }
li { margin: .25rem 0; overflow-wrap: anywhere; }

button { font: inherit; letter-spacing: inherit; cursor: pointer; transition: background-color .15s, border-color .15s; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.choice { display: flex; flex-direction: column; gap: .2rem; text-align: left; padding: 1rem; min-height: 96px; background: var(--white); color: var(--charcoal); border: 2px solid transparent; border-radius: 16px; }
.choice strong { font-weight: 600; font-size: 1.05rem; }
.choice span { color: var(--muted); font-size: .9rem; font-weight: 400; }
.choice:hover:not(:disabled) { border-color: var(--blue); }
.choice.all { background: var(--blue); }
.choice.all span { color: var(--charcoal); }
.choice.all:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }

.primary, .danger { padding: .65rem 1.4rem; border: 0; border-radius: 999px; font-weight: 500; }
.primary { background: var(--blue); color: var(--charcoal); width: 100%; margin-top: 1.25rem; }
.primary:hover:not(:disabled) { background: var(--blue-hover); }
.danger { background: var(--charcoal); color: var(--white); }
.danger:hover:not(:disabled) { background: #3a3a48; }
.link { background: none; border: 0; color: var(--charcoal); padding: .35rem; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }

label { display: block; font-weight: 500; margin: .9rem 0 .3rem; }
input { font: inherit; letter-spacing: inherit; width: 100%; padding: .6rem .8rem; color: var(--charcoal); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row input { flex: 1 1 140px; width: auto; }

.status { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: 12px; background: var(--blue-tint); font-weight: 500; }
.status:empty { display: none; }
.status.error, p.error, li.error { background: var(--coral-tint); }
.status.ok { background: var(--emerald-tint); }
p.error { margin: 1rem 0 0; padding: .6rem .9rem; border-radius: 12px; font-weight: 500; }
p.error:empty { display: none; }
li.error { padding: .3rem .6rem; border-radius: 8px; font-weight: 500; list-style-position: inside; margin-left: -1.25rem; }

.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; }
td:first-child, td:last-child { white-space: nowrap; }

.center { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--blue-tint) url("/gradient.jpg") center / cover no-repeat fixed; }
.center main { width: 100%; max-width: 400px; padding: 2rem; }
.card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.card .logo { margin-bottom: 1.5rem; }
.card h1 { font-size: 1.6rem; margin-bottom: .25rem; }

/* Narrow screens show only the gradient's left side, so charcoal text never sits on its deep blue. */
@media (max-width: 900px) {
  .hero { background-size: 220% auto; background-position: 0 15%; }
}
@media (max-width: 480px) {
  .hero-inner { padding: 32px 16px 36px; }
  section { padding: 1.1rem; }
  .center main { padding: 1.5rem; }
}
