/* Sylotech LLC */

:root {
  --bg: #0c1114;
  --bg-2: #10171b;
  --surface: #151c21;
  --ink: #e8eef0;
  --muted: #8b9aa0;
  --line: rgba(18, 184, 168, 0.16);
  --line-2: #2a353b;
  --teal: #12b8a8;
  --teal-2: #7ee8dc;
  --header: 64px;
  --wrap: 1120px;
  --radius: 12px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + env(safe-area-inset-top, 0px) + 10px);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100%;
  min-height: -webkit-fill-available;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.bg-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  animation: bgDrift 16s ease-in-out infinite alternate;
}

.bg-video video.is-live {
  animation: none;
}

@keyframes bgDrift {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(12, 17, 20, 0.28) 0%, rgba(12, 17, 20, 0.55) 70%, rgba(12, 17, 20, 0.72) 100%);
}

.site-header,
main,
.site-footer,
.bottom-bar,
.mobile-nav,
.modal {
  position: relative;
  z-index: 1;
}

.site-header { z-index: 50; }
.mobile-nav { z-index: 49; }
.bottom-bar { z-index: 55; }
.modal { z-index: 80; }

.bg-video video.is-live {
  opacity: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 90;
  background: var(--teal);
  color: #04110f;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  overflow: visible;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 20, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  overflow: visible;
}

.brand-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.brand-word {
  height: 22px;
  width: auto;
  max-width: 46vw;
  flex-shrink: 1;
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.62rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
}

.nav-links a:hover { color: var(--ink); background: var(--surface); }

.nav-cta { display: none !important; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header) 0 0 0;
  z-index: 49;
  background: #0c1114;
  padding: 0.75rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
}

.mobile-nav.is-open {
  display: flex;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.mobile-nav a,
.mobile-nav button {
  text-align: left;
  padding: 0.9rem 0.4rem;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.mobile-nav a.btn-primary,
.mobile-nav a.btn-ghost {
  text-align: center;
  height: 42px;
  margin: 0.35rem 0;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
}

.mobile-nav a.btn-primary {
  border: 1px solid #0e9a8e;
  background: var(--teal);
  color: #04110f;
}

.mobile-nav a.btn-ghost {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
}

html.menu-open,
html.modal-open {
  overflow: hidden;
  scroll-behavior: auto;
  overscroll-behavior: none;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.menu-open .site-header,
html.modal-open .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

@media (max-width: 1099px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow: visible;
    height: calc(var(--header) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  body { padding-top: calc(var(--header) + env(safe-area-inset-top, 0px)); }
  .mobile-nav { top: calc(var(--header) + env(safe-area-inset-top, 0px)); }
  .lead { font-size: 0.94rem; }
}

@media (min-width: 1100px) {
  .nav-links { display: flex; align-items: center; flex-shrink: 0; }
  .nav-cta { display: inline-flex !important; flex-shrink: 0; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: var(--teal);
  color: #04110f;
  border-color: #0e9a8e;
}

.btn-primary:hover { background: var(--teal-2); }

.btn-primary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--teal);
}

.btn-ghost:hover {
  border-color: var(--teal-2);
  background: rgba(18, 184, 168, 0.12);
  color: var(--teal-2);
}

.btn-sm { height: 36px; padding: 0 12px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 2.2rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 1.1rem 1.25rem;
  align-items: center;
}

.hero .kicker { margin-bottom: 0.55rem; }

.hero h1 {
  font-size: clamp(1.45rem, 4.2vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
  max-width: 18rem;
  min-height: 2.4em;
}

.hero h1.is-typed {
  text-shadow: 0 0 10px rgba(18, 184, 168, 0.55), 0 0 24px rgba(0, 240, 255, 0.25);
}

.hero h1.is-typing::after {
  content: "▋";
  margin-left: 0.12em;
  color: var(--teal);
  animation: caret 0.8s step-end infinite;
}

@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal-2);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.logo-plate {
  max-width: 340px;
  margin: 0;
  background: transparent;
}

.logo-plate img { width: 100%; height: auto; }

/* Phone: logo + buttons up top, even empty stretch, then cards */
@media (max-width: 1099px) {
  .hero {
    --hero-band: clamp(5.5rem, 14vh, 8.5rem);
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: var(--hero-band) 0 0;
  }
  .hero::after {
    content: "";
    display: block;
    height: var(--hero-band);
  }
  .hero .wrap,
  .hero-grid {
    max-width: 100%;
  }
  .hero .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }
  .hero-grid {
    width: 100%;
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    gap: 0.4rem 0.5rem;
    align-items: center;
  }
  .logo-plate {
    min-width: 0;
    max-width: none;
  }
  .logo-plate img {
    width: 100%;
    height: auto;
    max-height: min(28vh, 190px);
    object-fit: contain;
    object-position: center;
  }
  .hero-copy {
    min-width: 0;
    max-width: 100%;
  }
  .hero-copy > *:not(.hero-actions) { max-width: 100%; }
  .hero .kicker { margin-bottom: 0.25rem; font-size: 0.72rem; }
  .hero h1 {
    font-size: clamp(1.05rem, 4.4vw, 1.45rem);
    line-height: 1.15;
    max-width: 100%;
    min-height: 0;
    overflow-wrap: anywhere;
  }
  .lead {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
  }
  .hero-actions .btn {
    width: 100%;
    flex: 0 0 auto;
    height: 44px;
    min-height: 44px;
    padding: 0 0.7rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: visible;
  }
  .hero-meta { display: none; }
  .trust { padding: 0 0 1.5rem; }
}

@media (max-width: 420px) {
  .hero { --hero-band: clamp(4.2rem, 12vh, 6.5rem); }
  .hero-grid { gap: 0.35rem 0.4rem; }
  .logo-plate img { max-height: min(24vh, 160px); }
  .hero h1 { font-size: 1.05rem; }
  .lead { font-size: 0.8125rem; }
  .hero-actions .btn { font-size: 0.84rem; }
}

@media (max-width: 1099px) and (max-height: 700px) {
  .hero { --hero-band: clamp(2rem, 6vh, 3.2rem); }
  .logo-plate img { max-height: min(22vh, 130px); }
  .hero-meta { display: none; }
  .hero-actions { margin-top: 0.3rem; }
}

@media (max-width: 1099px) and (max-height: 520px) {
  .hero { --hero-band: 0px; padding-top: 0.4rem; }
  .hero::after { display: none; }
  .logo-plate img { max-height: 88px; }
  .hero h1 { font-size: 1rem; }
  .lead {
    font-size: 0.8125rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions { margin-top: 0.28rem; gap: 0.28rem; }
  .hero-actions .btn { height: 40px; min-height: 40px; }
}

@media (min-width: 700px) and (max-width: 1099px) and (min-height: 521px) {
  .hero-grid {
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
    gap: 1rem 1.4rem;
  }
  .hero .kicker { font-size: 0.8rem; }
  .hero h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
  .lead { font-size: 1.05rem; line-height: 1.5; display: block; -webkit-line-clamp: unset; overflow: visible; }
  .hero-meta { display: flex; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn {
    width: auto;
    height: 48px;
    min-height: 48px;
    font-size: 1rem;
    padding: 0 1.1rem;
  }
  .logo-plate img { max-height: min(34vh, 280px); }
}

@media (min-width: 1100px) {
  .hero { padding: 3.4rem 0 3.6rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.7fr);
    gap: 1.1rem 3rem;
    align-items: center;
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .logo-plate {
    grid-column: 2;
    grid-row: 1;
    margin-left: auto;
    max-width: 280px;
    align-self: center;
  }
  .logo-plate img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
  }
  .hero-actions { margin-top: 1.1rem; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-meta { margin-top: 0.85rem; }
}

/* Pillars */
.trust {
  padding: 1.4rem 0 1.7rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1099px) {
  .trust { padding: 0 0 1.5rem; }
}

.pillars {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1020px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
}

.pillar {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 190px;
}

.pillar img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.pillar-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 14, 0.92) 55%);
}

.pillar-copy strong {
  display: block;
  font-size: 1.02rem;
}

.pillar-copy span {
  display: block;
  color: #b7c4c8;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.pillar:hover { border-color: rgba(18, 184, 168, 0.45); }

/* Sections */
.section { padding: 3.1rem 0; }

.section.alt {
  background: rgba(16, 23, 27, 0.82);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  max-width: 40rem;
}

.kicker {
  font-family: var(--mono);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }

h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

.sub { color: var(--muted); margin: 0; }

.cards {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1020px) {
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover { border-color: rgba(18, 184, 168, 0.4); }

.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body { padding: 1rem 1.05rem 1.1rem; }

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.offer .bill {
  margin: 0 0 0.1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.offer .amt {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.4rem;
  line-height: 1.1;
}

.feature {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.feature img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

@media (min-width: 880px) {
  .feature { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
  .feature img { height: 320px; }
}

.price-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.price-table th {
  text-align: left;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  background: var(--bg-2);
}

.price-table td {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  font-size: 0.94rem;
}

.price-table tr:last-child td { border-bottom: 0; }

@media (max-width: 699px) {
  .price-wrap { overflow: visible; }
  .price-table { min-width: 0; }
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: auto; }
  .price-table tr {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line-2);
  }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td { border: 0; padding: 0.12rem 0; }
  .price-table td.amt { font-size: 1.15rem; }
}

.price-table td.amt {
  font-weight: 600;
  white-space: nowrap;
  color: var(--teal-2);
}

.price-foot {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.85rem 0 0;
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.about-panel img {
  width: min(180px, 70%);
  max-height: 220px;
  object-fit: contain;
  margin: 0 auto 0.9rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0.7rem;
}

.stat b { display: block; font-size: 0.95rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }

.about-copy p { color: var(--muted); }
.about-copy p + p { margin-top: 0.75rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.86rem;
  background: var(--bg-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  align-items: center;
  justify-content: space-between;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-links { display: flex; align-items: center; gap: 1rem; }
.footer-links a:hover { color: var(--teal-2); }

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--teal);
  background: var(--surface);
  color: var(--teal-2);
  font-weight: 600;
  font-size: 0.88rem;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-link:hover {
  background: rgba(18, 184, 168, 0.14);
  color: #fff;
}

.mobile-nav .nav-contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1rem;
}

.bottom-bar {
  display: none;
}

@media (max-width: 1099px) {
  .bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(12, 17, 20, 0.94);
    border-top: 1px solid var(--line);
  }
  .bottom-bar .icon-link {
    justify-content: center;
    height: 46px;
    width: 100%;
  }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 1.4rem; }
}

@media (max-width: 360px) {
  .brand-mark { height: 28px; }
  .brand-word { height: 16px; max-width: 42vw; }
  .hero-actions .btn { font-size: 0.84rem; padding: 0 0.55rem; }
}

@media (min-width: 1100px) and (max-height: 800px) {
  .hero { padding: 1.8rem 0 2rem; }
  .logo-plate { max-width: 220px; }
  .logo-plate img { max-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1.is-typing::after { animation: none; }
}

.page-main { padding: 3.2rem 0 4rem; }
.page-main h1 { margin-bottom: 0.9rem; max-width: 20ch; }
.page-main p, .page-main li { color: var(--muted); }
.page-main ul { padding-left: 1.1rem; }
.page-main h2 { font-size: 1.15rem; margin: 1.5rem 0 0.45rem; }

.thanks { text-align: center; padding: 4.5rem 0 5.5rem; }
.thanks h1 { margin: 0 auto 0.8rem; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 10, 0.62);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #12191e;
  border: 1px solid #2a353b;
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.4rem;
  max-height: min(90vh, 680px);
  max-height: min(90dvh, 680px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.modal-panel h2 {
  font-size: 1.2rem;
  margin: 0 1.8rem 0.35rem 0;
}

.modal-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.45rem;
  height: 44px;
  min-width: 44px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.modal-close:hover { color: var(--ink); background: #1a2228; }

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  color: #9aa7ac;
  font-weight: 500;
}

.form-2 { display: grid; gap: 0.7rem; }

@media (min-width: 520px) {
  .form-2 { grid-template-columns: 1fr 1fr; }
}

input, select, textarea {
  width: 100%;
  background: #0c1114;
  border: 1px solid #2a353b;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  outline: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #e8eef0;
  caret-color: #e8eef0;
  box-shadow: 0 0 0 1000px #0c1114 inset;
  transition: background-color 9999s ease-out;
}

input::placeholder,
textarea::placeholder { color: #6b787e; }

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 184, 168, 0.16);
}

textarea { min-height: 88px; resize: vertical; }

select {
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  background-color: #0c1114;
  background-image: linear-gradient(45deg, transparent 50%, #8b9aa0 50%), linear-gradient(135deg, #8b9aa0 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

select:invalid,
select option[disabled] { color: #6b787e; }

select option { color: var(--ink); background: #12191e; }

.honey { display: none !important; }

.modal-panel .btn-block { margin-top: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Pay page and billing desk */
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.pay-page h1,
.bill-page h1 { max-width: 16ch; }

.pay-layout { max-width: 640px; }

.panel {
  background: rgba(18, 24, 28, 0.92);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.2rem;
  margin: 1.25rem 0;
}

.panel h2 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.gate { max-width: 440px; }

.fine {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.35rem 0 0.85rem;
}

.form-error,
.form-ok {
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.page-main p.form-error,
p.form-error { color: #ffb4a8; }
.page-main p.form-ok { color: var(--teal-2); }

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.15rem 0 0.9rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.check input {
  width: auto;
  margin-top: 0.2rem;
}

.money-input { font-family: var(--mono); }

.desk-split {
  display: grid;
  gap: 0.2rem;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.list-head h2 { margin: 0; }

.invoice-card {
  border-top: 1px solid var(--line-2);
  padding: 0.9rem 0;
}

.invoice-card p { margin: 0.3rem 0; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.row-actions .btn {
  height: 36px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line-2);
}

.btn-quiet:hover { color: var(--ink); border-color: var(--muted); }

.desk-more { margin: 0.5rem 0 1rem; }
.desk-more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.desk-more .panel { margin-top: 0.8rem; }

.lock-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-2);
  font-weight: 600;
}

.desk-foot { margin-top: 0.4rem; }

.bill-sheet {
  background: #f4f7f6;
  color: #142026;
  border-radius: 16px;
  border-top: 4px solid var(--teal);
  padding: 1.45rem 1.35rem 1.3rem;
  margin-top: 0.4rem;
}

.bill-sheet h2 {
  color: #142026;
  font-size: 1.35rem;
  margin: 0.35rem 0 0.2rem;
}

.bill-sheet p { color: #3e4d53; }

.bill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.bill-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #142026;
}

.bill-kicker {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  color: #5c6c72;
}

.bill-due-amt {
  font-family: var(--mono);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  color: #0c3d38;
  margin: 0.15rem 0 1rem;
}

.bill-muted {
  margin: 0.15rem 0 0.7rem;
  color: #5c6c72;
  font-size: 0.88rem;
}

.bill-line {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-top: 1px solid #e1e8e6;
  font-size: 0.95rem;
}

.bill-line span { color: #5c6c72; }
.bill-line strong { color: #142026; font-weight: 600; }

.bill-sheet .btn { margin-top: 0.35rem; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pill-open { background: rgba(18, 184, 168, 0.16); color: var(--teal-2); }
.pill-paid { background: rgba(126, 232, 220, 0.16); color: #d8fff6; }
.pill-void { background: #1c2429; color: var(--muted); }

.bill-sheet .pill-open { background: #d7f6f2; color: #0c5c54; }
.bill-sheet .pill-paid { background: #d9f5df; color: #146232; }
.bill-sheet .pill-void { background: #ece7e4; color: #6a5e58; }

@media (min-width: 960px) {
  .desk-split {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .bill-sheet { padding: 1.05rem 0.95rem 1rem; }
  .bill-due-amt { font-size: 1.65rem; }
  .bill-line { grid-template-columns: 4.6rem 1fr; }
  .list-head { align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .skip, .nav-toggle, .mobile-nav, #lookupForm { display: none !important; }
  body { background: #fff; }
  .page-main { padding-top: 0; }
  .bill-sheet { border: 1px solid #ccc; }
}
