/* =============================================================
   ITS America Interactive Demo — styles
   Brand values sampled directly from the vis|ability logo art.
   Change the palette/font in :root and everything follows.
   ============================================================= */

:root {
  /* ---- brand palette (from viz2024 logo) ---- */
  --marigold:        #FFB71B;   /* primary accent */
  --marigold-bright: #F9B83D;   /* lighter marigold for gradients/hover */
  --slate:           #293341;   /* Activu dark base */
  --slate-deep:      #1B222C;   /* a step darker, for depth */
  --slate-raised:    #313D4D;   /* card / input surface */
  --white:           #FFFFFF;
  --white-dim:       rgba(255,255,255,0.66);
  --white-faint:     rgba(255,255,255,0.40);
  --hairline:        rgba(255,255,255,0.10);
  --danger:          #FF6B5E;

  /* ---- type ---- */
  /* Placeholder face — swap --font here + the <link> in the HTML
     once Activu's real typeface (or its open sub) is chosen.     */
  --font-family: "Sora", system-ui, -apple-system, sans-serif;

  /* ---- spacing/shape ---- */
  --radius:   14px;
  --radius-sm: 10px;
  --maxw:     520px;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-family);
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,183,27,0.10), transparent 60%),
    linear-gradient(180deg, var(--slate) 0%, var(--slate-deep) 100%);
  background-attachment: fixed;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 5vw, 48px) 20px 40px;
}

/* faint grain for depth on big phone screens */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- header / logo ---- */
.brand {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 6vw, 44px);
}
.brand img {
  width: min(72%, 320px);
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}

/* ---- card / panel ---- */
.card {
  width: 100%;
  max-width: var(--maxw);
  background: linear-gradient(180deg, var(--slate-raised), rgba(49,61,77,0.72));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(22px, 6vw, 34px);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

/* staggered entrance */
.screen { animation: rise 0.5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform:none;} }

h1 {
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
h1 .accent { color: var(--marigold); }

.sub {
  color: var(--white-dim);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ---- form fields ---- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--slate-deep);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--white-faint); }
.field input:focus {
  outline: none;
  border-color: var(--marigold);
  box-shadow: 0 0 0 3px rgba(255,183,27,0.18);
}

/* ---- buttons ---- */
.btn {
  width: 100%;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--slate-deep);
  background: linear-gradient(180deg, var(--marigold-bright), var(--marigold));
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: transform .08s, filter .15s, box-shadow .15s;
  box-shadow: 0 10px 24px -10px rgba(255,183,27,0.7);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(0.995); }
.btn.secondary {
  color: var(--white);
  background: transparent;
  border: 1.5px solid var(--hairline);
  box-shadow: none;
  font-weight: 600;
}
.btn.secondary:hover { border-color: var(--marigold); color: var(--marigold); }
.btn + .btn { margin-top: 12px; }

/* ---- scenario chooser ---- */
.scenarios { display: grid; gap: 12px; margin-bottom: 18px; }
.scenario {
  font-family: inherit;
  text-align: left;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  background: var(--slate-deep);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 18px 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, background .15s, transform .08s;
}
.scenario:hover { border-color: var(--marigold-bright); }
.scenario:active { transform: scale(0.99); }
.scenario.selected {
  border-color: var(--marigold);
  background: linear-gradient(180deg, rgba(255,183,27,0.16), rgba(255,183,27,0.06));
}
.scenario .dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--white-faint);
  flex: none; transition: all .15s;
}
.scenario.selected .dot { border-color: var(--marigold); background: var(--marigold); box-shadow: 0 0 0 4px rgba(255,183,27,0.2); }

.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--white-faint); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 20px 0 14px;
}
.divider::before, .divider::after {
  content:""; height:1px; flex:1; background: var(--hairline);
}

textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--white);
  background: var(--slate-deep);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  resize: vertical;
  min-height: 76px;
  margin-bottom: 20px;
  transition: border-color .15s, box-shadow .15s;
}
textarea::placeholder { color: var(--white-faint); }
textarea:focus { outline:none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(255,183,27,0.18); }

/* ---- progress / spinner ---- */
.center { text-align: center; }
.spinner {
  width: 54px; height: 54px; margin: 8px auto 22px;
  border: 4px solid var(--hairline);
  border-top-color: var(--marigold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-msg { color: var(--white-dim); font-size: 1.02rem; min-height: 1.5em; transition: opacity .3s; }

/* ---- result ---- */
.result-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,183,27,0.14);
  border: 2px solid var(--marigold);
}
.result-icon svg { width: 32px; height: 32px; stroke: var(--marigold); }
.result-icon.error { background: rgba(255,107,94,0.12); border-color: var(--danger); }
.result-icon.error svg { stroke: var(--danger); }

.muted { color: var(--white-dim); font-size: 0.92rem; margin-top: 16px; line-height:1.5; }
.staff-hint {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline);
  color: var(--white-faint); font-size: 0.8rem;
}

.hidden { display: none !important; }

/* ============================================================
   /wall page — big QR for the video wall web source
   ============================================================ */
body.wall {
  justify-content: center;
  padding: 4vh 4vw;
}
.wall-stage {
  width: 100%; max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.wall-copy h1 { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.05; }
.wall-copy .sub { font-size: clamp(1rem, 1.8vw, 1.5rem); margin-top: 14px; }
.wall-copy .brand { justify-content: flex-start; margin-bottom: 30px; }
.wall-copy .brand img { width: min(100%, 420px); }
.qr-frame {
  background: var(--white);
  border-radius: 22px;
  padding: clamp(18px, 2.5vw, 34px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  display: grid; place-items: center;
  aspect-ratio: 1;
}
.qr-frame canvas, .qr-frame img { width: 100%; height: 100%; }
.wall-session {
  text-align: center; margin-top: 16px;
  color: var(--white-faint); font-size: 0.95rem; letter-spacing: 0.05em;
}
@media (max-width: 760px) {
  .wall-stage { grid-template-columns: 1fr; text-align: center; }
  .wall-copy .brand { justify-content: center; }
}
