:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --text: #242424;
  --muted: #6f6f69;
  --border: #e7e7e3;
  --link: #111111;

  --page-max: 1180px;
  --content-max: 760px;
  --page-padding: 24px;
  --radius: 20px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.content-container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.surface {
  background: var(--surface);
  border-radius: var(--radius);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
}



.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-image {
  display: block;
  width: auto;
  height: 22px;
}

@media (max-width: 700px) {
  .site-logo-image {
    height: 18px;
  }
}
/* Shared flashes */

.flash {
  margin-bottom: 20px;
  padding: 14px 16px;

  border-radius: 12px;

  font-size: 14px;
  line-height: 1.5;
}

.flash-error {
  background: #fff0f0;
  border: 1px solid #f0cccc;
  color: #7a2525;
}

/* Shared buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 14px 18px;

  border: 0;
  border-radius: 12px;

  font: inherit;
  font-size: 16px;
  font-weight: 650;

  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--text);
  color: var(--surface);
}

.button-primary:hover {
  opacity: 0.86;
}

.home-page {
  padding: 96px 0;
}

.home-hero {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.home-hero h1 {
  margin: 0 0 20px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.home-hero p {
  margin: 0 auto 32px;
  max-width: 600px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.home-actions .button {
  width: auto;
  min-width: 150px;
}

@media (max-width: 700px) {
  .home-page {
    padding: 64px 0;
  }

  .home-hero h1 {
    font-size: 38px;
  }

  .home-hero p {
    font-size: 18px;
  }

  .home-actions {
    flex-direction: column;
  }

  .home-actions .button {
    width: 100%;
  }
}

.home-page {
  min-height: calc(100vh - 128px);
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.home-hero {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.home-eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.home-hero p {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.home-coming-soon {
  display: inline-block;
  margin-top: 36px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.site-footer-nav {
  display: flex;
  gap: 20px;
}

.site-footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--text);
}

.header-upload-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.header-upload-link:hover {
  background: var(--bg);
  color: var(--text);
}

.header-upload-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 700px) {
  .header-upload-label {
    display: none;
  }

  .header-upload-link {
    padding: 8px;
  }
}

@media (max-width: 700px) {
  .home-page {
    min-height: calc(100vh - 120px);
    padding: 56px 0;
  }

  .home-hero p {
    font-size: 18px;
  }

  .header-upload-label {
    display: none;
  }
}

/* Payment page */

.payment-page {
  min-height: calc(100vh - 64px);
  padding: 48px 0 80px;
}

.payment-card {
  width: 100%;
  max-width: 480px;

  margin: 0 auto;
  padding: 32px;
}

.payment-price {
  margin-bottom: 8px;

  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.payment-part {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
}

.payment-vehicle {
  margin-top: 4px;
  margin-bottom: 28px;

  color: var(--muted);
  font-size: 16px;
}

.payment-actions {
  display: grid;
  gap: 12px;
}

.payment-sold {
  margin-top: 24px;
  padding: 20px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;

  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.payment-cash {
  padding: 16px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;

  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 700px) {
  .payment-page {
    padding: 24px 0 60px;
  }

  .payment-card {
    padding: 28px 22px;
  }

  .payment-price {
    font-size: 34px;
  }
}

/* TOS Pages */


.legal-page {
  padding: 48px 0 80px;
}

.legal-container {
  padding: 48px 52px;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin: 0 0 10px;
  font-size: 36px;
}

.legal-effective-date {
  margin: 0;
  color: var(--muted);
}

.legal-index {
  display: grid;
  gap: 12px;
}

.legal-link {
  display: block;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}

.legal-link strong {
  display: block;
  margin-bottom: 4px;
}

.legal-link span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Public listing page */

.public-listing-page {
  padding: 48px 0 80px;
}

.public-listing-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

.public-listing-photo {
  display: block;
  width: 100%;
  height: 420px;

  object-fit: cover;
  background: var(--bg);
}

.public-listing-content {
  padding: 32px;
}

.public-listing-price {
  margin: 0 0 6px;

  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.public-listing-part {
  margin: 0 0 6px;

  font-size: 24px;
  line-height: 1.3;
  font-weight: 650;
}

.public-listing-vehicle {
  margin-bottom: 18px;

  color: var(--muted);
  font-size: 18px;
}

.public-listing-detail {
  margin: 10px 0;
  color: var(--muted);
}

.public-listing-status {
  display: inline-block;

  margin-top: 8px;
  padding: 6px 10px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.public-listing-app-card {
  margin-top: 30px;
  padding: 22px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;

  text-align: center;
}

.public-listing-app-title {
  margin-bottom: 8px;

  font-size: 20px;
  font-weight: 700;
}

.public-listing-app-copy {
  margin-bottom: 18px;

  color: var(--muted);
  line-height: 1.5;
}


/* Shared secondary button */

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

.button-secondary:hover {
  background: var(--bg);
}


@media (max-width: 700px) {
  .public-listing-page {
    padding: 0 0 60px;
  }

  .public-listing-page .site-container {
    padding-left: 0;
    padding-right: 0;
  }

  .public-listing-card {
    max-width: none;
    border-radius: 0;
  }

  .public-listing-photo {
    height: 360px;
  }

  .public-listing-content {
    padding: 24px 22px;
  }

  .public-listing-price {
    font-size: 34px;
  }

  .public-listing-part {
    font-size: 22px;
  }
}



/* Bulk upload */

.bulk-page {
  padding: 64px 0 80px;
}

.bulk-card {
  width: 100%;
  max-width: 460px;

  margin: 0 auto;
  padding: 36px;
}

.bulk-header {
  margin-bottom: 24px;
}

.bulk-header h1 {
  margin: 0 0 8px;

  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bulk-header p {
  margin: 0;

  color: var(--muted);
  line-height: 1.5;
}

.bulk-code-form {
  display: grid;
  gap: 14px;
}

.bulk-code-input {
  width: 100%;
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);

  color: var(--text);

  font: inherit;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 8px;
  text-align: center;

  outline: none;
}

.bulk-code-input:focus {
  border-color: var(--text);
}

.bulk-code-input::placeholder {
  color: #b5b5af;
}


@media (max-width: 700px) {
  .bulk-page {
    padding: 24px 0 60px;
  }

  .bulk-card {
    padding: 30px 22px;
  }

  .bulk-header h1 {
    font-size: 28px;
  }
}

/* Bulk upload form */

.bulk-upload-card {
  width: 100%;
  max-width: 700px;

  margin: 0 auto;
  padding: 36px;
}

.bulk-info {
  margin-bottom: 34px;
}

.bulk-info p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.bulk-info a {
  color: var(--link);
  text-underline-offset: 3px;
}

.bulk-requirements {
  margin-top: 24px;
  padding: 20px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.bulk-requirements p:last-child {
  margin-bottom: 0;
}

.bulk-upload-section {
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.bulk-upload-section h2 {
  margin: 0 0 8px;

  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
}

.bulk-upload-section > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.bulk-upload-form {
  display: grid;
  gap: 18px;
}

.bulk-file-input {
  width: 100%;
  padding: 16px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;

  font: inherit;
}

.flash-success {
  background: #eef8ef;
  border: 1px solid #cce5cf;
  color: #285c31;
}

@media (max-width: 700px) {
  .bulk-upload-card {
    padding: 30px 22px;
  }
}

/* Bulk preview */

.bulk-preview-page {
  padding: 48px 0 80px;
}

.bulk-preview-header {
  margin-bottom: 36px;
}

.bulk-preview-header h1 {
  margin: 0 0 8px;

  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bulk-preview-header p {
  margin: 0;
  color: var(--muted);
}

.bulk-preview-section {
  margin-bottom: 44px;
}

.bulk-preview-section h2 {
  margin: 0 0 16px;

  font-size: 22px;
  font-weight: 650;
}

.bulk-validation-summary {
  margin: 0 0 16px;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

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

.data-table th,
.data-table td {
  padding: 12px 14px;

  border-bottom: 1px solid var(--border);

  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.data-table th {
  background: var(--bg);

  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.data-table td {
  font-size: 14px;
}

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

.data-table-wide {
  min-width: 900px;
}

.bulk-ignored {
  margin-top: 14px;

  color: var(--muted);
  font-size: 14px;
}

.status-ready {
  font-weight: 650;
}

.status-error {
  color: #9a3030;
  font-weight: 650;
}

.bulk-import-actions {
  max-width: 360px;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .bulk-preview-page {
    padding: 30px 0 60px;
  }

  .bulk-preview-header h1 {
    font-size: 30px;
  }

  .bulk-preview-section {
    margin-bottom: 36px;
  }
}

.bulk-preview-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.bulk-preview-actions form {
  margin: 0;
  flex: 1;
}

.bulk-preview-actions .button {
  width: auto;
  min-width: 190px;
}

@media (max-width: 700px) {
  .bulk-preview-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-preview-actions .button,
  .bulk-preview-actions form {
    width: 100%;
  }
}