@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&display=swap');

:root {
  --bg: #f5f3ef;
  --ink: #1f1f23;
  --brand: #f27d68;
  --brand-dark: #e3644f;
  --surface: rgba(255, 255, 255, 0.85);
  --line: #e4dcd1;
  --ok: #1f7a57;
  --danger: #9e2222;
  --shadow: 0 18px 30px rgba(63, 36, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  min-height: 100vh;
}

.landing-page {
  text-wrap: pretty;
}

.landing-page main.container {
  margin-top: 0.75rem;
  margin-bottom: 3rem;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 20%, rgba(242, 125, 104, 0.26) 0, transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(66, 119, 99, 0.18) 0, transparent 30%),
    linear-gradient(120deg, #f6f1ea, #f2f2ef 60%, #ecf3f1);
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.container.narrow {
  width: min(760px, calc(100% - 2rem));
}

.hero h1,
.card h2 {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  margin: 0 0 0.6rem;
}

.hero {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.hero.compact {
  padding-top: 0.5rem;
}

.hero p {
  max-width: 60ch;
  margin: 0;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.feature-grid {
  align-items: stretch;
}

.feature-grid .card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.feature-grid .card p {
  margin-bottom: 1rem;
  flex: 1;
}

.feature-grid .card .btn {
  align-self: flex-start;
}

.top-strip {
  padding-top: 0.45rem;
}

.top-strip .container,
.site-nav .container {
  margin-top: 0;
  margin-bottom: 0;
}

.top-strip-inner {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  border: 1px solid rgba(120, 130, 145, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.top-strip a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
}

.site-nav {
  position: sticky;
  top: 0.35rem;
  z-index: 20;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  padding: 0.4rem 0;
}

.site-nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(120, 130, 145, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  text-transform: lowercase;
}

.brand-logo {
  display: block;
  width: 160px;
  height: 35px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav-links a {
  color: #4b4f58;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: #23252b;
}

.nav-toggle {
  display: none;
  border: 1px solid #d7d1c8;
  background: #fff;
  color: #31333a;
  border-radius: 10px;
  min-width: 42px;
  min-height: 42px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mobile-only {
  display: none !important;
}

.hero-v2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 1.2rem;
  margin-top: 0.85rem;
}

.hero-side {
  align-self: center;
}

.hero-main .actions .btn {
  font-size: 1rem;
  line-height: 1.2;
}

.hero-main h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 17ch;
}

.hero-side h2 {
  margin-bottom: 0.8rem;
}

.list-clean {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.landing-section {
  margin-top: 1.1rem;
}

.landing-cards .card {
  min-height: 220px;
}

.steps-grid article {
  border: 1px dashed #d8d2ca;
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.56);
}

.landing-hero {
  padding: 1.8rem 1.5rem;
}

.landing-hero h1 {
  font-size: clamp(2rem, 4.3vw, 3.25rem);
  max-width: 18ch;
}

.pricing-grid .price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
  min-height: 190px;
}

.pricing-grid .price-card.featured {
  border-color: rgba(242, 125, 104, 0.55);
  background: linear-gradient(160deg, rgba(242, 125, 104, 0.15), #fff 60%);
}

.plan {
  margin: 0 0 0.35rem;
  color: #60626a;
  font-weight: 700;
}

.price {
  margin: 0 0 0.45rem;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.price span {
  font-size: 1rem;
  color: #6a6b73;
}

.signup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#signupResult {
  margin-top: 1rem;
}

.landing-page .landing-section {
  margin-top: 1.1rem;
}

.landing-page .card {
  padding: 1.35rem;
}

.landing-page .feature-grid {
  gap: 1.45rem;
}

.landing-page .feature-grid .card {
  min-height: 290px;
}

.faq-grid {
  margin-top: 0.4rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.faq-item h3 {
  margin: 0 0 0.55rem;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  color: #454852;
}

.blog-preview-grid {
  margin-top: 0.4rem;
}

.blog-carousel {
  margin-top: 0.65rem;
  position: relative;
}

.blog-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
}

.blog-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.blog-carousel-track::-webkit-scrollbar-thumb {
  background: #d2c9be;
  border-radius: 999px;
}

.blog-carousel .blog-item {
  scroll-snap-align: start;
}

.blog-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid #d3cabb;
  background: #fff;
  color: #2b2f38;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
}

.blog-carousel-btn-prev {
  left: -8px;
}

.blog-carousel-btn-next {
  right: -8px;
}

.blog-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.blog-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.blog-item h3 {
  margin: 0 0 0.55rem;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.08rem;
}

.blog-item h3 a {
  color: #1d2028;
  text-decoration: none;
}

.blog-item h3 a:hover {
  text-decoration: underline;
}

.blog-item p {
  margin: 0;
  color: #4f5461;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  border-top: 1px solid rgba(120, 130, 145, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  color: #5b606a;
  font-size: 0.95rem;
}

.footer a {
  color: #4d535e;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-icon {
  vertical-align: middle;
  margin-left: 0.18rem;
}

.legal-wrap {
  max-width: 860px;
}

.legal-card p,
.legal-card li {
  color: #4a4d56;
  line-height: 1.65;
}

.legal-card ul {
  padding-left: 1.1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 24, 0.62);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #d8d2ca;
  background: #fcfbfa;
  padding: 1.2rem;
  box-shadow: 0 26px 50px rgba(10, 14, 18, 0.35);
  position: relative;
  color: #1f1f23;
}

.modal-card h2,
.modal-card h3 {
  color: #1f1f23;
}

.modal-close {
  position: absolute;
  right: 0.7rem;
  top: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #636872;
}

.btn {
  cursor: pointer;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.68rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 120ms ease, background 120ms ease;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #2f5d53;
}

.btn.danger {
  background: var(--danger);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.field-error {
  min-height: 1rem;
  color: #b3271f;
  font-size: 0.8rem;
  font-weight: 600;
}

.field-hint {
  color: #67707c;
  font-size: 0.78rem;
}

.signup-grid input.input-invalid,
.signup-grid select.input-invalid {
  border-color: rgba(179, 39, 31, 0.52);
  box-shadow: 0 0 0 3px rgba(179, 39, 31, 0.12);
}

.signup-grid input.input-valid,
.signup-grid select.input-valid {
  border-color: rgba(24, 133, 84, 0.5);
  box-shadow: 0 0 0 3px rgba(24, 133, 84, 0.12);
}

.signup-company-preview {
  margin-top: 0.85rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  margin-top: 0.2rem;
}

.consent-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}

.consent-row label {
  display: block;
  margin: 0;
  font-weight: 500;
  line-height: 1.45;
}

.inline-link {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
}

.kiosk-form .consent-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3b4555;
}

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.small-note {
  margin-top: 0.8rem;
  color: #5a5c63;
}

.queue-status-badge {
  display: inline-block;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.queue-status-waiting {
  background: #fff5d8;
  border-color: #f0d487;
  color: #7a5b08;
}

.queue-status-called {
  background: #def8e8;
  border-color: #89d6a7;
  color: #0f6a3b;
}

.queue-status-left {
  background: #edf0f5;
  border-color: #c8d0dc;
  color: #425166;
}

.queue-status-removed {
  background: #fde6e6;
  border-color: #efb0b0;
  color: #8a1f1f;
}

.text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.platform-page .platform-hero {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

.platform-page {
  display: grid;
  gap: 1.2rem;
}

.platform-header-logo {
  display: block;
  width: 160px;
  height: 35px;
}

.platform-card-grid {
  align-items: stretch;
  margin-top: 0;
  gap: 1.2rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.85rem;
}

.platform-card p {
  flex: 0;
  margin: 0;
}

.platform-card .btn {
  margin-top: 0.15rem;
  align-self: flex-start;
}

.platform-back-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 0;
}

.platform-page[aria-busy='true'] .platform-hero,
.platform-page[aria-busy='true'] .platform-card-grid,
.platform-page[aria-busy='true'] .platform-stats-section,
.platform-page[aria-busy='true'] .platform-back-link {
  opacity: 0;
  pointer-events: none;
}

.platform-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.platform-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.platform-stats-header h2 {
  margin: 0;
}

.platform-kpi-grid {
  margin-top: 1rem;
  gap: 1rem;
}

.platform-kpi-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
}

.platform-kpi-label {
  margin: 0;
  color: #626771;
  font-size: 0.92rem;
}

.platform-kpi-value {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.platform-charts-grid {
  margin-top: 1rem;
  gap: 1rem;
}

.platform-chart-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.platform-chart-card h3 {
  margin: 0 0 0.75rem;
}

.platform-bar-list {
  display: grid;
  gap: 0.65rem;
}

.platform-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.platform-bar-row span {
  color: #484d57;
  font-weight: 600;
  font-size: 0.92rem;
}

.platform-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #ece9e4;
  overflow: hidden;
}

.platform-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 280ms ease;
}

.platform-bar-fill.brand {
  background: linear-gradient(90deg, #f49a83, #f27d68);
}

.platform-bar-fill.danger {
  background: linear-gradient(90deg, #f46f6f, #d64848);
}

.platform-bar-fill.neutral {
  background: linear-gradient(90deg, #4f7ea3, #2f5d82);
}

.platform-pie-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.platform-pie-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid #e1dbd2;
  background: conic-gradient(
    #f7ca73 0% 20%,
    #8ec5a2 20% 40%,
    #5da979 40% 60%,
    #8eb3d1 60% 80%,
    #e78484 80% 100%
  );
}

.platform-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.platform-legend li {
  font-size: 0.92rem;
  color: #3c424d;
}

.platform-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}

.platform-legend .dot.waiting { background: #f7ca73; }
.platform-legend .dot.called { background: #8ec5a2; }
.platform-legend .dot.seated { background: #5da979; }
.platform-legend .dot.left { background: #8eb3d1; }
.platform-legend .dot.removed { background: #e78484; }

.login-page {
  display: grid;
  gap: 1.2rem;
}

.login-hero {
  margin-bottom: 0;
  padding: 0 0.25rem;
}

.login-header-logo {
  display: block;
  width: 160px;
  height: 35px;
  margin-bottom: 0.7rem;
}

.login-card {
  padding: 1.25rem;
}

.login-form-grid {
  gap: 1rem;
}

.login-form-grid label {
  gap: 0.45rem;
}

.dashboard-queue-top {
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

.dashboard-queue-back-link {
  display: inline-block;
  padding: 0.45rem 0;
}

.settings-page {
  display: grid;
  gap: 1.15rem;
}

.settings-hero {
  padding: 0;
  margin-bottom: 0;
}

.settings-page .card {
  padding: 1.25rem;
}

.settings-page .form-grid {
  gap: 1rem;
}

.settings-page .small-note {
  margin-top: 0.35rem;
}

.settings-logo-note {
  margin-top: 0;
}

.settings-logo-preview {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem;
}

.hidden {
  display: none;
}

.kiosk-screen {
  background: radial-gradient(circle at 50% 0%, #1d2731, #10161d 62%, #0a1016);
  color: #eaf2ff;
  min-height: 100dvh;
  overflow: hidden;
}

.kiosk-screen .page-bg {
  display: none;
}

.kiosk-shell {
  width: 100vw;
  height: 100dvh;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(150deg, #1b252f, #111920);
  border: 1px solid rgba(142, 165, 196, 0.18);
  box-shadow: none;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.kiosk-topbar {
  padding: max(0.8rem, env(safe-area-inset-top)) clamp(1rem, 2vw, 2rem) 0.9rem;
  border-bottom: 1px solid rgba(142, 165, 196, 0.25);
  background: rgba(8, 11, 15, 0.55);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.kiosk-logo {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.kiosk-logo-mark {
  display: block;
}

.kiosk-restaurant-name {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 2.2vh, 1.5rem);
  font-weight: 700;
  color: #ffcabf;
  letter-spacing: 0.01em;
}

.kiosk-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  height: 100%;
}

.kiosk-left {
  padding: clamp(1.2rem, 2.8vh, 2.3rem) clamp(1rem, 2.2vw, 2rem);
  border-right: 1px solid rgba(142, 165, 196, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.35rem, 1vh, 0.7rem);
}

.kiosk-label {
  margin: 0;
  color: #a9b8cc;
  font-size: clamp(1.15rem, 2.6vh, 1.8rem);
  font-weight: 600;
}

.kiosk-big-number {
  margin: 0;
  line-height: 1;
  font-size: clamp(5.8rem, 20vh, 11.5rem);
  font-weight: 700;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #ff7d66;
}

.kiosk-estimate {
  margin: 0;
  color: #ffd8d1;
  font-size: clamp(1.45rem, 3.3vh, 2.35rem);
  font-weight: 600;
}

.kiosk-help {
  margin: 0;
  color: #a8b5c7;
  max-width: 34ch;
  font-size: clamp(1.12rem, 2.6vh, 1.85rem);
  line-height: 1.25;
}

.kiosk-qr-panel {
  margin-top: clamp(0.7rem, 1.9vh, 1.1rem);
  padding: clamp(0.65rem, 1.5vh, 1rem);
  border: 1px solid rgba(142, 165, 196, 0.32);
  border-radius: 12px;
  background: rgba(11, 18, 25, 0.25);
  width: min(100%, 340px);
  max-width: min(46vw, 340px);
  align-self: center;
}

.kiosk-qr-title {
  margin: 0 0 0.5rem;
  color: #d5e4f7;
  font-size: clamp(0.95rem, 1.9vh, 1.25rem);
  font-weight: 700;
}

.kiosk-qr-wrap {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.kiosk-qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.kiosk-qr-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.kiosk-qr-note {
  margin: 0.55rem 0 0;
  color: #b9c8db;
  font-size: clamp(0.86rem, 1.6vh, 1.05rem);
  line-height: 1.3;
  text-align: center;
}

.kiosk-right {
  background: #f4f7fb;
  color: #101319;
  padding: clamp(0.8rem, 2.2vh, 1.5rem) clamp(0.8rem, 1.8vw, 1.3rem);
  overflow: auto;
}

.kiosk-form {
  display: grid;
  gap: clamp(0.3rem, 0.8vh, 0.55rem);
}

.kiosk-form label {
  font-size: 0.92rem;
  font-weight: 700;
}

.kiosk-form input {
  border: 1px solid #ccd7e6;
  border-radius: 10px;
  padding: clamp(0.62rem, 1.4vh, 0.95rem) 0.75rem;
  font-size: clamp(1rem, 2.5vh, 1.45rem);
}

.kiosk-form select {
  border: 1px solid #ccd7e6;
  border-radius: 10px;
  padding: clamp(0.62rem, 1.4vh, 0.95rem) 0.75rem;
  font-size: clamp(1rem, 2.5vh, 1.3rem);
  background: #fff;
}

.kiosk-keypad {
  margin-top: clamp(0.25rem, 0.7vh, 0.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.9vh, 0.6rem);
}

.kiosk-key {
  border: 1px solid #d3deec;
  background: #fff;
  border-radius: 10px;
  min-height: clamp(48px, 8.4vh, 82px);
  font-size: clamp(1.25rem, 3.2vh, 2rem);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.kiosk-key.secondary {
  background: #eaf1fb;
}

.kiosk-submit {
  margin-top: clamp(0.3rem, 1vh, 0.6rem);
  border: 0;
  border-radius: 10px;
  min-height: clamp(50px, 8vh, 80px);
  cursor: pointer;
  background: #1f2f43;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 2.6vh, 1.55rem);
  touch-action: manipulation;
}

.kiosk-form-note {
  margin: 0.2rem 0 0;
  color: #5d6c80;
  min-height: 1.2rem;
  font-size: clamp(0.9rem, 2vh, 1.2rem);
}

.kiosk-submit.done {
  background: #27415d;
}

.kiosk-ticket {
  margin-top: 0.8rem;
  border: 1px solid #ccd7e6;
  border-radius: 12px;
  background: #fff;
  padding: clamp(0.65rem, 1.5vh, 1rem);
}

.kiosk-ticket p {
  margin: 0 0 0.45rem;
}

.kiosk-footer {
  border-top: 1px solid rgba(142, 165, 196, 0.2);
  padding: 0.55rem clamp(1rem, 2vw, 2rem) max(0.7rem, env(safe-area-inset-bottom));
}

.kiosk-footer a {
  color: #c7d6eb;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vh, 1.5rem);
}

.kiosk-mode .kiosk-footer {
  display: none;
}

@media (min-aspect-ratio: 4/3) {
  .kiosk-shell {
    border-radius: 0;
  }
}

@media (orientation: portrait) {
  .kiosk-screen {
    overflow: auto;
  }

  .kiosk-shell {
    height: auto;
    min-height: 100dvh;
  }

  .kiosk-layout {
    grid-template-columns: 1fr;
  }

  .kiosk-left {
    border-right: 0;
    border-bottom: 1px solid rgba(142, 165, 196, 0.2);
  }
}

@media (orientation: landscape) and (max-width: 1180px) {
  .kiosk-layout {
    grid-template-columns: 1fr 1fr;
  }

  .kiosk-left {
    padding: clamp(0.9rem, 2vh, 1.4rem) clamp(0.8rem, 1.4vw, 1.2rem);
  }

  .kiosk-right {
    padding: clamp(0.6rem, 1.6vh, 1rem) clamp(0.6rem, 1.3vw, 1rem);
  }

  .kiosk-big-number {
    font-size: clamp(4.8rem, 17vh, 8.5rem);
  }

  .kiosk-help {
    font-size: clamp(1.02rem, 2.25vh, 1.42rem);
  }

  .kiosk-qr-panel {
    max-width: min(44vw, 300px);
    padding: 0.7rem;
  }

  .kiosk-qr-image {
    width: 100%;
  }

  .kiosk-qr-brand {
    width: 40px;
    height: 40px;
  }

  .kiosk-qr-wrap {
    width: min(100%, 240px);
  }

  .kiosk-key {
    min-height: clamp(42px, 7.2vh, 66px);
    font-size: clamp(1.1rem, 2.8vh, 1.6rem);
  }

  .kiosk-submit {
    min-height: clamp(46px, 7vh, 70px);
  }
}

.fade-up {
  animation: fadeUp 450ms ease both;
}

.delay-1 {
  animation-delay: 110ms;
}

.delay-2 {
  animation-delay: 210ms;
}

.delay-3 {
  animation-delay: 310ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .site-nav-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .hero-main .actions .btn {
    width: 100%;
    text-align: center;
  }

  .platform-pie-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .platform-bar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 0.5rem;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .site-nav.nav-open .nav-links {
    display: flex;
  }

  .mobile-only {
    display: inline-flex !important;
  }

  .nav-cta {
    display: none;
  }

  .hero-v2 {
    grid-template-columns: 1fr;
  }

  .signup-grid {
    grid-template-columns: 1fr;
  }

  .top-strip-inner {
    font-size: 0.86rem;
    padding: 0.42rem 0.7rem;
  }

  .blog-carousel-btn {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
