:root {
  --pp-bg: #263238;
  --pp-bg-deep: #1E282D;
  --pp-black: #000000;
  --pp-card: #2E3C43;
  --pp-card-2: #37474F;
  --pp-line: #455A64;
  --pp-accent: #FF7043;
  --pp-accent-soft: #FF8A65;
  --pp-accent-hover: #FF8A65;
  --pp-on-accent: #1B2429;
  --pp-green: #2E7D32;
  --pp-green-soft: #81C784;
  --pp-red-soft: #FF8A80;
  --pp-text: #FFFFFF;
  --pp-muted: #B0BEC5;
  --pp-muted-2: #90A4AE;
  --pp-cta-band: #BF360C;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--pp-bg);
  color: var(--pp-text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pp-accent-soft); }
a:hover { color: #FFAB91; }

/* ---------- Helpers ---------- */
.bg-pp       { background: var(--pp-bg); }
.bg-pp-deep  { background: var(--pp-bg-deep); }
.bg-pp-black { background: var(--pp-black); }
.text-pp-muted { color: var(--pp-muted) !important; }
.text-pp-muted-2 { color: var(--pp-muted-2) !important; }
.text-accent { color: var(--pp-accent-soft) !important; }

.section { padding: 64px 0; }
@media (min-width: 992px) { .section { padding: 104px 0; } }

.eyebrow {
  color: var(--pp-accent);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.h-section {
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.15;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

/* ---------- Buttons ---------- */
.btn-pp {
  background: var(--pp-accent);
  color: var(--pp-on-accent);
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: .9rem 1.6rem;
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-pp:hover, .btn-pp:focus-visible { background: var(--pp-accent-hover); color: var(--pp-on-accent); }
.btn-pp-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #546E7A;
  border-radius: 10px;
  padding: .9rem 1.6rem;
  min-height: 48px;
  font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-pp-outline:hover { background: var(--pp-card-2); color: #fff; border-color: #78909C; }
.btn-pp-dark {
  background: var(--pp-bg); color: #fff; font-weight: 700;
  border-radius: 10px; padding: .9rem 1.8rem; min-height: 48px;
}
.btn-pp-dark:hover { background: #1B2429; color: #fff; }

/* ---------- Navbar ---------- */
.navbar-pp {
  background: rgba(38, 50, 56, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pp-card-2);
}
.navbar-pp .nav-link { color: #CFD8DC; font-size: .95rem; padding: .75rem 1rem; }
.navbar-pp .nav-link:hover { color: #fff; }
.navbar-pp .navbar-toggler { border-color: #546E7A; padding: .5rem .65rem; }
.navbar-pp .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,112,67,.35); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--pp-accent); color: var(--pp-on-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-img { height: 36px; width: auto; display: block; }
@media (max-width: 575.98px) { .logo-img { height: 32px; } }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -.2px; color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; }
@media (min-width: 992px) { .hero { padding-top: 88px; } }
.hero h1 {
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.08;
  font-size: clamp(2.1rem, 7vw, 4rem);
}
.hero .lead { color: var(--pp-muted); font-size: clamp(1.05rem, 2.6vw, 1.2rem); line-height: 1.6; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pp-card-2); color: #ECEFF1;
  font-size: .85rem; font-weight: 500;
  padding: .45rem .9rem; border-radius: 999px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #66BB6A; }

/* ---------- POS mock ---------- */
.pos-mock {
  max-width: 1040px; margin: 40px auto 0;
  border: 1px solid var(--pp-line); border-bottom: 0;
  border-radius: 14px 14px 0 0; overflow: hidden;
  background: #000; text-align: left;
  font-size: .8rem;
}
@media (min-width: 768px) { .pos-mock { font-size: .85rem; } }
.pos-top { background: var(--pp-bg); height: 40px; display: flex; align-items: center; justify-content: center; color: #ECEFF1; border-bottom: 2px solid #000; }
.pos-body { display: flex; gap: 4px; padding: 4px; height: 320px; }
@media (min-width: 768px) { .pos-body { height: 380px; } }
.pos-order { flex: 1.6 1 0; min-width: 0; background: var(--pp-bg); display: flex; flex-direction: column; padding: 10px; gap: 8px; }
.pos-cats  { flex: .8 1 0; min-width: 0; background: var(--pp-bg); flex-direction: column; }
.pos-items { flex: 1.5 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pos-chip { background: var(--pp-card-2); font-weight: 700; padding: 6px 10px; border-radius: 3px; font-size: .75rem; }
.pos-group { background: var(--pp-card-2); padding: 8px 10px; border-radius: 3px; }
.pos-line { display: flex; justify-content: space-between; gap: 8px; padding: 2px 4px; }
.pos-line span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-actions { display: flex; gap: 4px; margin: 0 -10px -10px; }
.pos-actions span { text-align: center; padding: 12px 0; font-weight: 700; }
.pos-cat { text-align: center; padding: 20px 0; border-bottom: 1px solid #546E7A; }
.pos-seat { background: var(--pp-bg); display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--pp-muted); flex-wrap: wrap; }
.seat-btn { font-weight: 700; padding: 5px 12px; border-radius: 6px; }
.pos-tile { background: var(--pp-card); text-align: center; padding: 24px 6px; }

/* ---------- Cards ---------- */
.pp-card {
  background: var(--pp-card);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}
.pp-card-dark { background: var(--pp-bg); }
.pp-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; }
.pp-card p  { color: var(--pp-muted); margin: 0; line-height: 1.6; }
.icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--pp-card-2); color: var(--pp-accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stat {
  background: var(--pp-card-2); border-radius: 12px; padding: 22px 20px; height: 100%;
}
.stat b { display: block; font-size: clamp(1.9rem, 6vw, 2.5rem); font-weight: 900; color: var(--pp-accent-soft); line-height: 1.1; }
.stat span { color: #CFD8DC; font-size: .95rem; }

.testimonial {
  background: var(--pp-card); border-radius: 12px; padding: 24px; margin: 0;
}
.testimonial blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; color: #ECEFF1; }
.testimonial figcaption { margin-top: 14px; color: var(--pp-muted-2); font-size: .9rem; }

.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pp-accent); color: var(--pp-on-accent);
  font-weight: 900; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.promise { border-radius: 14px; padding: 28px; display: flex; gap: 18px; align-items: flex-start; height: 100%; }
.promise h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .4rem; }
.promise p { margin: 0; line-height: 1.6; }
.promise svg { flex: none; width: 36px; height: 36px; }

.compare { border-radius: 14px; padding: 28px; height: 100%; }
.compare-bad  { background: #212121; border: 1px solid var(--pp-card-2); }
.compare-good { background: var(--pp-bg); border: 1px solid var(--pp-green); }
.compare h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; line-height: 1.5; }
.check-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.price-card {
  background: var(--pp-card); border: 2px solid var(--pp-accent);
  border-radius: 16px; padding: 28px; max-width: 520px; margin: 0 auto;
}
@media (min-width: 576px) { .price-card { padding: 40px; } }
.price { font-size: clamp(2.5rem, 9vw, 3.25rem); font-weight: 900; letter-spacing: -1px; line-height: 1; }

.cta-band { background: var(--pp-cta-band); }

/* Mobile sticky buy bar */
.mobile-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  background: rgba(30, 40, 45, .97); border-top: 1px solid var(--pp-card-2);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-buy.show { transform: translateY(0); }
@media (max-width: 767.98px) { body { padding-bottom: 76px; } }

:focus-visible { outline: 3px solid var(--pp-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-buy { transition: none; }
}

/* ---------- Buy modal ---------- */
.modal-pp .modal-content {
  background: var(--pp-card);
  color: var(--pp-text);
  border: 1px solid var(--pp-line);
  border-radius: 16px;
}
@media (max-width: 575.98px) {
  .modal-pp .modal-content { border-radius: 0; border: 0; }
}
.modal-pp .modal-header,
.modal-pp .modal-footer { border-color: var(--pp-card-2); }

/* Scroll fix: the form wrappers sit between .modal-content and .modal-body,
   so pass the flex layout down. Header + footer stay fixed, body scrolls. */
.modal-pp .modal-dialog { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
.modal-pp .modal-content { max-height: 100%; overflow: hidden; }
.modal-pp #buyFormView,
.modal-pp #buyDoneView,
.modal-pp #buyForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.modal-pp #buyFormView.d-none,
.modal-pp #buyDoneView.d-none { display: none !important; }
.modal-pp .modal-body {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-pp .modal-header,
.modal-pp .modal-footer { flex-shrink: 0; }

@media (max-width: 575.98px) {
  .modal-pp .modal-dialog { max-height: none; }
}

/* Short laptop screens (e.g. 1366×768): tighter spacing */
@media (min-width: 576px) and (max-height: 820px) {
  .modal-pp .modal-header { padding: .85rem 1.25rem; }
  .modal-pp .modal-body { padding: 1rem 1.25rem; }
  .modal-pp .modal-footer { padding: .75rem 1.25rem; }
  .modal-pp .modal-body > p:first-of-type { margin-bottom: 1rem !important; }
  .modal-pp .mb-3 { margin-bottom: .75rem !important; }
  .modal-pp .form-control-pp { min-height: 44px; padding: .55rem .85rem; }
  .modal-pp textarea.form-control-pp { min-height: 84px; }
}
.modal-pp .modal-title { font-weight: 800; letter-spacing: -.3px; }
.modal-pp .btn-close { filter: invert(1) grayscale(1); opacity: .8; }
.modal-price-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pp-card-2); color: #ECEFF1;
  border-radius: 999px; padding: .35rem .85rem; font-size: .85rem;
}
.modal-price-badge b { color: var(--pp-accent-soft); }

.form-label { color: #CFD8DC; font-weight: 500; font-size: .9rem; margin-bottom: .35rem; }
.form-control-pp {
  background: var(--pp-bg);
  color: #fff;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  min-height: 48px;
  font-size: 16px; /* prevents iOS zoom on focus */
  padding: .7rem .9rem;
}
.form-control-pp::placeholder { color: #78909C; }
.form-control-pp:focus {
  background: var(--pp-bg);
  color: #fff;
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 3px rgba(255,112,67,.25);
}
textarea.form-control-pp { min-height: 110px; resize: vertical; }
.form-control-pp.is-invalid { border-color: #FF8A80; }
.invalid-feedback { color: #FF8A80; }

.form-check-pp .form-check-input {
  width: 1.3rem; height: 1.3rem; margin-top: .1rem;
  background-color: var(--pp-bg); border-color: #78909C;
}
.form-check-pp .form-check-input:checked { background-color: var(--pp-accent); border-color: var(--pp-accent); }
.form-check-pp .form-check-input:focus { box-shadow: 0 0 0 3px rgba(255,112,67,.25); }
.form-check-pp .form-check-label { color: #CFD8DC; font-size: .92rem; padding-left: .35rem; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  background: rgba(255,138,128,.12); color: #FFCDD2;
  border: 1px solid rgba(255,138,128,.4); border-radius: 10px;
  padding: .75rem 1rem; font-size: .92rem;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--pp-green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.flash-success {
  background: var(--pp-green); color: #fff;
  border-radius: 12px; padding: 1rem 1.25rem;
  max-width: 520px; margin: 0 auto 1.5rem;
}
