:root {
  --background: #0a1015;
  --surface: #121d25;
  --surface-soft: #192a35;
  --surface-raised: #203541;
  --accent: #f59e0b;
  --accent-dark: #c97706;
  --text: #f8fafc;
  --muted: #a8bac7;
  --line: rgba(255, 255, 255, 0.11);
  --success: #22c55e;
  --danger: #ef4444;
  --info: #38bdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.13), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--info);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 21, 0.95);
}

nav,
.container {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
}

nav {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03rem;
}

.brand span {
  color: var(--accent);
}

.nav-link {
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

.hero {
  padding: 66px 0 34px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 1.02;
}

h2,
h3 {
  margin-top: 0;
}

.hero p {
  max-width: 790px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  padding: 28px 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(18, 29, 37, 0.94);
  padding: 17px;
}

.card.soft {
  background: rgba(25, 42, 53, 0.82);
}

.muted {
  color: var(--muted);
}

.highlight {
  color: var(--accent);
}

.notice,
.success-box,
.error-box {
  border-radius: 12px;
  padding: 13px;
}

.notice {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}

.success-box {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.11);
}

.error-box {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

.hidden {
  display: none !important;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button,
button {
  appearance: none;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #211503;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

button.success {
  background: var(--success);
  color: #05210d;
}

button.danger {
  background: var(--danger);
  color: white;
}

button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.8rem;
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c151b;
  color: var(--text);
  font: inherit;
  padding: 11px;
}

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

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.service-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
}

.service-option input {
  width: auto;
  margin-top: 5px;
}

.service-price {
  color: var(--accent);
  font-weight: 900;
}

.ticket {
  display: grid;
  gap: 15px;
}

.ticket-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.status-pill {
  display: inline-flex;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 9px;
}

.timer {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.06rem;
}

.mini-list {
  display: grid;
  gap: 7px;
  padding-left: 19px;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-entry {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.timeline-entry small {
  display: block;
  color: var(--muted);
}

summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 5px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

video {
  max-width: 100%;
  border-radius: 12px;
}

footer {
  padding: 38px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 38px;
  }

  .ticket-head {
    display: grid;
  }

  table {
    font-size: 0.82rem;
  }
}

/* Phase-two shop dashboard upgrades */

.dashboard-nav {
  margin-top: 18px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
  display: grid;
  gap: 4px;
}

.stat-card strong {
  color: var(--accent);
  font-size: 2rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.details-space {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.checklist {
  gap: 8px;
}

.checklist-line {
  align-items: start;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.checklist-line input {
  margin-top: 4px;
  width: auto;
}

.checkbox-line {
  align-items: center;
  display: flex;
  gap: 9px;
}

.checkbox-line input {
  width: auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.photo-grid figcaption {
  color: var(--muted);
  font-size: 0.76rem;
  padding-top: 4px;
}

/* Phase-four mobile app and installation */

.install-hero {
  display: grid;
  gap: 14px;
}

.install-reminder {
  position: fixed;
  z-index: 50;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  max-width: 900px;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 14px;
  background: rgba(18, 29, 37, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  padding: 14px;
}

.install-reminder p {
  color: var(--muted);
  margin: 4px 0 0;
}

.customer-app-hero {
  display: grid;
  gap: 12px;
}

@media (max-width: 640px) {
  .install-reminder {
    display: grid;
  }
}

/* Phase-five mobile app updater */

.app-update-banner {
  position: fixed;
  z-index: 80;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  max-width: 940px;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(245, 158, 11, 0.72);
  border-radius: 15px;
  background: rgba(18, 29, 37, 0.99);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48);
  margin: 0 auto;
  padding: 15px;
}

.app-update-banner p {
  color: var(--muted);
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .app-update-banner {
    display: grid;
  }
}

/* Phase-seven Web Push */

.push-client-message {
  position: fixed;
  z-index: 95;
  right: 14px;
  bottom: 14px;
  left: 14px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

/* Phase-eight helpers and training */

.help-hero,
.training-summary {
  display: grid;
  gap: 12px;
}

.training-module {
  break-inside: avoid;
}

.helper-toggle {
  position: fixed;
  z-index: 110;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.65);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.shop-coach-toggle {
  bottom: 70px;
}

.helper-panel {
  position: fixed;
  z-index: 115;
  right: 16px;
  bottom: 70px;
  display: grid;
  width: min(410px, calc(100% - 28px));
  max-height: min(690px, calc(100vh - 90px));
  gap: 12px;
  overflow-y: auto;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 16px;
  background: rgba(18, 29, 37, 0.99);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.48);
  padding: 14px;
}

.helper-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.helper-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.helper-answer {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 16, 21, 0.7);
  padding: 11px;
}

@media print {
  header,
  .button-row,
  .helper-toggle,
  .helper-panel {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #bbb;
    background: white;
    color: black;
  }

  .muted {
    color: #333;
  }
}

/* Phase-nine daily-use polish */

.setup-logo-preview,
.print-logo {
  display: block;
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 14px;
}

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

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.calendar-heading {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.calendar-day {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 29, 37, 0.7);
  padding: 8px;
}

.calendar-day.empty {
  opacity: 0.36;
}

.calendar-entry {
  border-left: 3px solid var(--accent);
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.76rem;
  margin-top: 7px;
  padding: 6px;
}

.print-sheet {
  max-width: 900px;
  min-height: 900px;
  border: 1px solid #ddd;
  background: white;
  color: #111;
  margin: 18px auto;
  padding: 30px;
}

.print-heading,
.print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.print-heading {
  border-bottom: 2px solid #222;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.print-sheet p {
  margin: 5px 0;
}

@media (max-width: 760px) {
  .calendar-grid {
    display: block;
  }

  .calendar-heading {
    display: none;
  }

  .calendar-day {
    min-height: auto;
    margin-bottom: 8px;
  }

  .calendar-day.empty {
    display: none;
  }

  .print-heading,
  .print-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .no-print,
  header,
  footer,
  .helper-toggle,
  .helper-panel {
    display: none !important;
  }

  .print-sheet {
    min-height: 0;
    border: 0;
    margin: 0;
    padding: 0;
  }
}

/* Phase-ten transport and approval history */

.warning-box {
  border: 1px solid rgba(239, 68, 68, 0.58);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  margin: 12px 0;
  padding: 12px;
}

.warning-box p {
  color: #fecaca;
}

.transport-status-link {
  position: fixed;
  z-index: 65;
  right: 16px;
  bottom: 78px;
}

/* Phase-eleven private handoff centre */

.handoff-hero {
  display: grid;
  gap: 16px;
}

.handoff-link {
  display: grid;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.handoff-link:hover {
  border-color: rgba(245, 158, 11, 0.75);
  transform: translateY(-2px);
}

.handoff-link span {
  color: var(--muted);
  font-size: 0.92rem;
}
