/* Parametric Messe-Kiosk — Design System
   32" 16:9 touch kiosk, Android Chrome. Built to run full-screen, no scrolling. */

@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  font-style: normal;
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-style: normal;
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-style: normal;
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 800;
  font-style: normal;
  src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 900;
  font-style: normal;
  src: url('../fonts/Poppins-Black.ttf') format('truetype');
  font-display: swap;
}

:root {
  --pm-pink: #f50050;
  --pm-pink-dark: #c1003e;
  --pm-pink-light: #ff3d7d;
  --pm-ink: #14151a;
  --pm-ink-soft: #4a4d59;
  --pm-anthracite: #24252c;
  --pm-anthracite-light: #35373f;
  --pm-gray-100: #f4f5f8;
  --pm-gray-200: #e7e9f0;
  --pm-gray-300: #d3d6e0;
  --pm-white: #ffffff;
  --pm-radius: 28px;
  --pm-radius-lg: 40px;
  --pm-shadow: 0 18px 40px rgba(20, 21, 26, 0.12);
  --pm-shadow-lg: 0 28px 60px rgba(20, 21, 26, 0.18);
  --pm-topbar-h: 10.5vh;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--pm-white);
  color: var(--pm-ink);
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.app {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.topbar {
  height: var(--pm-topbar-h);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.4vw;
  background: var(--pm-pink);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.topbar-logo {
  height: 42%;
  display: block;
}

.topbar-actions {
  display: flex;
  gap: 1.1vw;
}

.pill-btn {
  display: flex;
  align-items: center;
  gap: 0.7vw;
  border: none;
  border-radius: 999px;
  background: var(--pm-anthracite);
  color: var(--pm-white);
  font-weight: 800;
  font-size: clamp(21px, 2vw, 32px);
  padding: 1.7vh 2.4vw;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pill-btn:active { transform: scale(0.94); background: var(--pm-anthracite-light); }
.pill-btn i { font-size: 1.05em; }
.pill-btn[hidden] { display: none !important; }

/* ---------- Screens ---------- */
.screens {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3vh 4vw;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.screen-eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-pink);
  font-size: clamp(17px, 1.7vw, 25px);
  margin: 0 0 0.6vh;
}

.screen-title {
  font-weight: 900;
  font-size: clamp(42px, 5.8vw, 82px);
  margin: 0 0 1vh;
  text-align: center;
  line-height: 1.05;
}

.screen-subtitle {
  font-weight: 600;
  color: var(--pm-ink-soft);
  font-size: clamp(19px, 1.9vw, 30px);
  margin: 0 0 3.2vh;
  text-align: center;
  max-width: 60vw;
}

/* ---------- Language screen ---------- */
.language-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3vh;
  margin-bottom: 4vh;
}
.language-welcome span {
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.15;
}
.language-welcome span:nth-child(1) { color: var(--pm-ink); }
.language-welcome span:nth-child(2) { color: var(--pm-pink); }
.language-welcome span:nth-child(3) { color: var(--pm-ink); }

.language-grid {
  display: flex;
  gap: 3.2vw;
}

.lang-card {
  width: 23vw;
  max-width: 360px;
  min-width: 230px;
  background: var(--pm-anthracite);
  border: 3px solid transparent;
  border-radius: var(--pm-radius-lg);
  padding: 4.2vh 1.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  box-shadow: var(--pm-shadow);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.lang-card:active {
  transform: scale(0.96);
  background: var(--pm-anthracite-light);
  border-color: var(--pm-pink);
  box-shadow: var(--pm-shadow-lg);
}
.lang-card svg { width: 8vw; max-width: 120px; min-width: 70px; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.lang-card-label {
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 36px);
  color: var(--pm-white);
}

/* ---------- Segment screen ---------- */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 1.8vw 2vw;
  width: 100%;
  max-width: 1200px;
}

.segment-card {
  background: var(--pm-anthracite);
  border: 3px solid transparent;
  border-radius: var(--pm-radius-lg);
  padding: 2.4vh 1vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6vh;
  text-align: center;
  min-height: 22vh;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.segment-card:active {
  transform: scale(0.96);
  background: var(--pm-anthracite-light);
  border-color: var(--pm-pink);
  box-shadow: var(--pm-shadow);
}
.segment-icon {
  width: 6vw;
  height: 6vw;
  max-width: 88px;
  max-height: 88px;
  min-width: 62px;
  min-height: 62px;
  border-radius: 50%;
  background: var(--pm-pink);
  color: var(--pm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(25px, 2.7vw, 38px);
}
.segment-label {
  font-weight: 800;
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.2;
  color: var(--pm-white);
}

/* ---------- Menu (connect/understand/control/services) screen ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2vw 2.2vw;
  width: 100%;
  max-width: 1400px;
}

.menu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6vw;
  background: var(--pm-anthracite);
  color: var(--pm-white);
  border-radius: var(--pm-radius-lg);
  padding: 4vh 2.8vw;
  min-height: 23vh;
  overflow: hidden;
  box-shadow: var(--pm-shadow);
  transition: transform 0.14s ease, background 0.14s ease;
}
.menu-card:active { transform: scale(0.97); background: var(--pm-anthracite-light); }
.menu-card-icon {
  position: relative;
  z-index: 1;
  width: 6.8vw;
  height: 6.8vw;
  max-width: 100px;
  max-height: 100px;
  min-width: 68px;
  min-height: 68px;
  border-radius: 50%;
  background: var(--pm-pink);
  color: var(--pm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(30px, 3.2vw, 46px);
  flex-shrink: 0;
}
.menu-card-text {
  position: relative;
  z-index: 1;
  text-align: left;
}
.menu-card-title {
  font-weight: 900;
  font-size: clamp(31px, 3.8vw, 52px);
  margin: 0 0 0.4vh;
  text-transform: lowercase;
}
.menu-card-desc {
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 22px);
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ---------- Presentation screen ---------- */
.screen--presentation { padding: 0; }
#presentation-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: var(--pm-white);
}

/* ---------- Register modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 26, 0.55);
}
.modal-panel {
  position: relative;
  width: min(64vw, 980px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--pm-white);
  border-radius: var(--pm-radius-lg);
  padding: 3.4vh 3vw 3vh;
  box-shadow: var(--pm-shadow-lg);
}
.modal-close {
  position: absolute;
  top: 1.6vh;
  right: 1.6vw;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--pm-anthracite);
  font-size: 26px;
  font-weight: 800;
  color: var(--pm-white);
  line-height: 1;
  transition: background 0.12s ease;
}
.modal-close:active { background: var(--pm-anthracite-light); }
.modal-title {
  font-weight: 900;
  font-size: clamp(27px, 2.9vw, 40px);
  margin: 0 0 0.6vh;
}
.modal-subtitle {
  font-weight: 600;
  color: var(--pm-ink-soft);
  font-size: clamp(16px, 1.3vw, 20px);
  margin: 0 0 2.4vh;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6vh 1.6vw;
}
.form-field { display: flex; flex-direction: column; gap: 0.6vh; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--pm-ink);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  border: 2px solid var(--pm-gray-300);
  border-radius: 14px;
  padding: 1.5vh 1vw;
  font-size: clamp(17px, 1.25vw, 21px);
  font-family: inherit;
  font-weight: 600;
  color: var(--pm-ink);
  background: var(--pm-white);
}
.form-field input:focus { outline: 3px solid var(--pm-pink-light); border-color: var(--pm-pink); }

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9vh 1vw;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.6vw;
  background: var(--pm-gray-100);
  border-radius: 12px;
  padding: 1.3vh 0.8vw;
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 19px);
}
.check-item input { width: 24px; height: 24px; accent-color: var(--pm-pink); flex-shrink: 0; }

.radio-row { display: flex; gap: 1.4vw; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  font-weight: 700;
  font-size: clamp(17px, 1.3vw, 21px);
}
.radio-item input { width: 24px; height: 24px; accent-color: var(--pm-pink); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1vw;
  margin-top: 2.6vh;
}
.btn-primary, .btn-secondary {
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(18px, 1.4vw, 23px);
  padding: 1.9vh 2.8vw;
  transition: background 0.12s ease;
}
.btn-primary { background: var(--pm-anthracite); color: var(--pm-white); }
.btn-primary:active { background: var(--pm-anthracite-light); }
.btn-secondary { background: var(--pm-anthracite); color: var(--pm-white); }
.btn-secondary:active { background: var(--pm-anthracite-light); }

.form-error {
  color: var(--pm-pink-dark);
  font-weight: 700;
  font-size: clamp(13px, 1vw, 16px);
  min-height: 1.4em;
  margin: 0.6vh 0 0;
}

.thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4vh;
  padding: 4vh 1vw;
}
.thankyou[hidden] { display: none; }
.thankyou-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--pm-pink);
  color: var(--pm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.thankyou-title { font-weight: 900; font-size: clamp(22px, 2.2vw, 32px); margin: 0; }
.thankyou-text { font-weight: 600; color: var(--pm-ink-soft); font-size: clamp(14px, 1.1vw, 18px); margin: 0; max-width: 46vw; }

@media (max-width: 900px) {
  .segment-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: 1fr; }
  .language-grid { flex-direction: column; }
  .form-grid, .check-grid { grid-template-columns: 1fr; }
  .modal-panel { width: 92vw; }
}
