/* AutoStatus Brand Palette — sampled directly from the AutoStatus emblem */
:root {
  --charcoal: #282d31;
  --charcoal-deep: #1b1f22;
  --charcoal-card: #22272b;
  --charcoal-elevated: #2d3338;
  --teal: #2aa6b0;
  --teal-light: #46c1cb;
  --cream: #f2ead3;
  --rust: #c46635;
  --ok: #2fb872;
  --warn: #d99b38;
  --danger: #df5b57;
  --text: #f3f5f7;
  --muted: #a6b0b8;
  --border: rgba(242, 234, 211, 0.14);
  --border-strong: rgba(42, 166, 176, 0.42);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--charcoal-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-track {
  max-width: 580px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

/* Header / Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 31, 34, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

nav.nav-links a:hover,
nav.nav-links a.active {
  color: var(--cream);
  text-decoration: none;
}

.nav-cta {
  padding: 8px 15px;
  border-radius: 10px;
  background: var(--teal);
  color: #101618 !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  opacity: 0.92;
}

/* Typography & Hero */
.hero {
  padding: 56px 0 44px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(42, 166, 176, 0.12), transparent 62%);
}

.hero-logo {
  width: 156px;
  height: 156px;
  border-radius: 34px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(42, 166, 176, 0.16);
  color: var(--teal-light);
  border: 1px solid rgba(42, 166, 176, 0.36);
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  color: var(--cream);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  color: var(--cream);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--cream);
}

.lead {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.06rem;
}

.lead-flush {
  margin: 0;
  max-width: none;
  color: var(--muted);
}

/* Buttons */
.btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-row-start {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  font-family: inherit;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--teal);
  color: #0e1618;
}

.btn-secondary {
  background: var(--charcoal-elevated);
  color: var(--cream);
  border: 1px solid var(--border);
}

.btn-rust {
  background: var(--rust);
  color: #fff;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.86rem;
  border-radius: 9px;
}

/* Sections & Cards */
section.band {
  padding: 42px 0;
  border-top: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.card {
  background: var(--charcoal-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

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

.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pricing-card {
  background: linear-gradient(145deg, var(--charcoal-card) 0%, var(--charcoal) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 30px;
  margin-top: 20px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.price-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cream);
}

.price-sub {
  color: var(--teal-light);
  font-weight: 600;
}

ul.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

ul.check-list li::before {
  content: "✓ ";
  color: var(--teal-light);
  font-weight: 800;
}

.mt-md {
  margin-top: 20px;
}

.mt-sm {
  margin-top: 12px;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Legal & Document Pages */
main.doc {
  padding: 44px 0 64px;
}

.doc-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.doc h2 {
  margin-top: 30px;
  font-size: 1.32rem;
}

.doc p,
.doc li {
  color: #d6dde3;
}

.doc ul {
  padding-left: 20px;
}

.callout {
  background: var(--charcoal-card);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 15px 18px;
  margin: 18px 0;
  color: var(--muted);
}

.callout-warn {
  border-left-color: var(--rust);
}

/* Forms & Inputs (Portal + Tracking) */
.auth-shell {
  max-width: 480px;
  margin: 36px auto 56px;
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--charcoal-deep);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.tab-btn {
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.active {
  background: var(--teal);
  color: #0e1618;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.role-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--charcoal-deep);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.role-btn.selected {
  border-color: var(--teal);
  background: rgba(42, 166, 176, 0.14);
}

.role-title {
  display: block;
  font-weight: 700;
  color: var(--cream);
  font-size: 0.95rem;
}

.role-sub {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--charcoal-deep);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.input:focus {
  outline: 2px solid var(--teal);
  border-color: transparent;
}

textarea.input {
  min-height: 78px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 12px 0 16px;
}

.form-msg {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.form-msg.error {
  background: rgba(223, 91, 87, 0.16);
  border: 1px solid rgba(223, 91, 87, 0.45);
  color: #ffb4b2;
}

.form-msg.ok {
  background: rgba(47, 184, 114, 0.16);
  border: 1px solid rgba(47, 184, 114, 0.45);
  color: #a4f0c7;
}

.btn-full {
  width: 100%;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.inline-form .input {
  flex: 1;
}

/* Portal Dashboard (Customer + Mechanic PC Workspace) */
.portal-main {
  padding: 28px 0 64px;
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.role-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(196, 102, 53, 0.22);
  color: #f3a982;
  border: 1px solid rgba(196, 102, 53, 0.45);
}

.portal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 840px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.job-list {
  display: grid;
  gap: 10px;
}

.job-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--charcoal-card);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.job-item.active {
  border-color: var(--teal);
  background: rgba(42, 166, 176, 0.12);
}

.job-item-title {
  font-weight: 700;
  color: var(--cream);
  font-size: 0.98rem;
}

.job-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.status-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(42, 166, 176, 0.18);
  color: var(--teal-light);
  font-weight: 700;
  font-size: 0.8rem;
}

.status-pill.ready {
  background: rgba(47, 184, 114, 0.18);
  color: #6ee7a8;
}

/* Native Progress Bar (CSP-safe: no inline style="width:...") */
progress.progress-bar {
  width: 100%;
  height: 10px;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: var(--charcoal-deep);
  margin: 14px 0 18px;
}

progress.progress-bar::-webkit-progress-bar {
  background: var(--charcoal-deep);
  border-radius: 999px;
}

progress.progress-bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 999px;
  transition: width 0.3s ease;
}

progress.progress-bar::-moz-progress-bar {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 999px;
}

/* 6-stage checklist & timeline */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.steps li.done,
.steps li.active {
  color: var(--cream);
  font-weight: 600;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--charcoal-elevated);
  border: 1px solid var(--border);
}

.steps li.done .dot {
  background: var(--ok);
  border-color: var(--ok);
}

.steps li.active .dot {
  background: var(--teal);
  border-color: var(--teal-light);
  box-shadow: 0 0 0 4px rgba(42, 166, 176, 0.22);
}

.timeline-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.timeline-item:last-child {
  border-bottom: none;
}

/* Chat / Messages inside Portal */
.chat-log {
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--charcoal-deep);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.chat-bubble {
  padding: 10px 13px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.92rem;
}

.chat-bubble.mine {
  justify-self: end;
  background: rgba(42, 166, 176, 0.2);
  border: 1px solid rgba(42, 166, 176, 0.35);
}

.chat-bubble.theirs {
  justify-self: start;
  background: var(--charcoal-elevated);
  border: 1px solid var(--border);
}

.chat-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.topbar-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lang-select {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--charcoal-card);
  color: var(--cream);
  font-size: 0.88rem;
  font-family: inherit;
}

.section-heading {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--cream);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-stack {
  display: grid;
  gap: 16px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
