/* ============================================================
  index.css.scss
  ------------------------------------------------------------
  - Neutral black & white baseline
  - System fonts only
  - Bootstrap-first buttons
  - Minimal decoration
============================================================ */
:root {
  --main-bg: #ffffff;
  --main-bg2: #fafafa;
  --body-text: #111111;
  --muted-text: #555555;
  --accent-color: #111111;
  --accent-hover: #333333;
  --border-color: #e5e5e5;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  background: var(--main-bg);
  color: var(--body-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

#main {
  min-height: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#app {
  width: 100%;
  min-height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

#app.inited {
  opacity: 1;
  visibility: visible;
}

#app.inited + #loading-spinner {
  display: none !important;
}

.demo-notice-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 8px 16px;
  background: #111827;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  line-height: 1.3;
}

.demo-notice-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.demo-notice-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.demo-notice-text {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.demo-notice-cta,
.demo-waiting-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.demo-notice-cta:hover,
.demo-notice-cta:focus,
.demo-waiting-cta-button:hover,
.demo-waiting-cta-button:focus {
  background: #e5e7eb;
  color: #111827;
  transform: translateY(-1px);
}

.demo-waiting-cta,
.demo-result-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.04);
  color: #111827;
  text-align: left;
}

.demo-waiting-cta {
  margin: 16px 0 0;
  padding: 16px 18px;
}

.demo-result-cta {
  margin: 18px 0 0;
  padding: 18px;
}

.demo-result-cta .demo-notice-label {
  border-color: rgba(17, 24, 39, 0.16);
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

.demo-result-cta-copy,
.demo-waiting-cta > div {
  min-width: 0;
}

.demo-waiting-cta-title,
.demo-result-cta h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
  white-space: normal;
}

.demo-result-cta h3 {
  margin-top: 10px;
  font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.28rem);
}

.demo-waiting-cta-text,
.demo-result-cta p {
  margin: 0;
  color: rgba(17, 24, 39, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo-waiting-cta-button {
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: #111827;
  color: #ffffff;
}

.demo-waiting-cta-button:hover,
.demo-waiting-cta-button:focus {
  background: #000000;
  color: #ffffff;
}

.pricing-tag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  border: 1px solid #0a0a0a;
  background: #f4f4f1;
  color: #0a0a0a;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.pricing-tag--top {
  position: relative;
  z-index: 10;
  border-width: 0 0 1px;
  padding: 10px 20px;
}

.pricing-tag--waiting {
  margin-top: 16px;
  box-shadow: 7px 7px 0 #0a0a0a;
}

.pricing-tag--result {
  margin-top: 22px;
}

.pricing-tag-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  min-width: 0;
}

.pricing-tag-eyebrow {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.25;
  text-transform: uppercase;
}

.pricing-tag-message {
  color: rgba(10, 10, 10, 0.72);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pricing-tag-message strong {
  color: #0a0a0a;
  font-size: 1.05rem;
  font-weight: 900;
}

.pricing-tag-link {
  color: #0a0a0a;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-tag-link:hover,
.pricing-tag-link:focus {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#loading-spinner {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}

header {
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

h1,
h2,
h3,
h4,
h5,
p,
li {
  color: var(--body-text);
  font-family: inherit;
}

h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  margin: 0;
}

h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 0.8rem 0 0.4rem;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.3;
  font-weight: 700;
  margin: 0.6rem 0 0.35rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.container {
  margin: 1rem auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  width: clamp(150px, 32vw, 210px);
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(224, 208, 165, 0.2)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.section {
  flex: 1 1 auto;
  padding: 8px 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-intro {
  text-align: center;
  color: var(--muted-text);
  margin: 0 auto;
  max-width: 38rem;
}

.section-copy,
.small {
  color: var(--muted-text);
  line-height: 1.65;
}

.sponsor {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.sponsor-content {
  padding: 1rem;
  color: var(--body-text);
  background-color: var(--main-bg2);
  text-align: left;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.hero-card,
.panel,
.status-card {
  background: var(--main-bg2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: none;
}

.file-input {
  cursor: pointer;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.file-input:hover {
  background-color: #f3f3f3;
}

.file-input.dragging {
  border-color: var(--accent-color);
  background: var(--main-bg2);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--body-text);
}

.preview-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.delete-image {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--body-text);
  font-size: 1.6rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

.image-shell {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: 0;
  background: #000000;
  border: 1px solid var(--border-color);
}

.image-shell img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.result-header {
  text-align: left;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

form {
  margin-bottom: 1rem;
}

.form-label,
.form-check-label {
  font-size: 1rem;
}

.btn {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary {
  --bs-btn-bg: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-hover-bg: #000000;
  --bs-btn-hover-border-color: #000000;
  --bs-btn-color: #ffffff;
}

.btn-secondary {
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #111111;
  --bs-btn-hover-bg: #f5f5f5;
  --bs-btn-hover-border-color: #000000;
  --bs-btn-color: #111111;
}

.form-control {
  border-radius: var(--radius-sm);
  min-height: 48px;
  border-color: var(--border-color);
  color: var(--body-text);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

.form-check-input {
  margin-top: 0.32em;
}

.error-text {
  color: #cc0000;
  display: inline-block;
  margin-top: 0.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.modal-content {
  border-radius: var(--radius-md);
  border-color: var(--border-color);
}

body.modal-open #loading-spinner {
  display: none !important;
  pointer-events: none;
}

.modal-backdrop {
  z-index: 10040;
}

.modal {
  z-index: 10050;
  pointer-events: auto;
}

.modal-header,
.modal-footer {
  border-color: var(--border-color);
}

.modal-header .btn-close {
  box-shadow: none;
}

.policy-modal .modal-dialog {
  max-height: calc(100dvh - 1.5rem);
  margin: 0.75rem auto;
  display: flex;
  pointer-events: auto;
}

.policy-modal .modal-content {
  max-height: calc(100dvh - 3rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}

.policy-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.policy-modal .modal-footer {
  flex: 0 0 auto;
}

.policy-modal .modal-body h1,
.policy-modal .modal-body h2,
.policy-modal .modal-body h3,
.policy-modal .modal-body h4,
.policy-modal .modal-body h5 {
  margin: 0.8rem 0 0.4rem;
  color: #111111;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  text-align: start;
  font-weight: 800;
  text-shadow: none;
}

.policy-modal .modal-body h1 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
}

.policy-modal .modal-body h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.25;
}

.policy-modal .modal-body h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.3;
}

.face-detection-modal .modal-dialog {
  margin: 0.75rem;
}

.face-detection-modal .modal-content {
  border-radius: 18px;
}

.face-detection-modal .modal-header,
.face-detection-modal .modal-body,
.face-detection-modal .modal-footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

.face-detection-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.face-detection-modal .modal-title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-right: auto;
}

.face-detection-modal .modal-body {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
  font-size: 0.95rem;
}

.face-detection-preview {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #f8fafc;
}

.face-detection-preview-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 320px);
  object-fit: contain;
  margin: 0 auto;
}

.face-detection-preview-canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.face-detection-modal-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.face-detection-modal-footer .btn {
  width: 100%;
  margin: 0;
}

.alert-danger {
  color: #7f1d1d;
  background-color: #fef2f2;
  border-color: #fecaca;
}

footer {
  margin-top: auto;
}

#footer {
  max-width: 680px;
  font-size: 0.85rem;
  text-align: left;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-color);
  color: var(--muted-text);
}

#footer .container {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  padding-bottom: 1rem;
  align-items: center;
  flex-flow: wrap;
}

.footer-links a {
  padding: 0.25rem 0.5rem;
}

.socials {
  text-decoration: none;
}

.language-selector {
  display: flex;
  justify-content: center;
}

.lang-select {
  padding: 6px 10px;
  border: 1px solid var(--accent-color);
  background: #ffffff;
  color: #111111;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
  outline: none;
  min-width: 80px;
  text-align: center;
}

.lang-select:hover {
  background: #f4f4f4;
}

.lang-select:focus {
  border-color: #000000;
  box-shadow: none;
}

.lang-select option {
  background: #ffffff;
  color: #111111;
  padding: 4px 8px;
}

.transition-opacity {
  transition: opacity 0.3s ease-in-out;
}

.opacity-0 {
  opacity: 0;
}

.opacity-1 {
  opacity: 1;
}

@media (max-width: 420px) {
  .demo-notice-bar,
  .demo-waiting-cta,
  .demo-result-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .demo-notice-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .demo-notice-content {
    flex-wrap: wrap;
    gap: 6px;
  }
  .demo-notice-cta,
  .demo-waiting-cta-button {
    width: 100%;
  }
  .demo-waiting-cta-title,
  .demo-result-cta h3 {
    text-align: center;
  }

  .pricing-tag {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 16px;
  }

  .pricing-tag--top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 48px;
    padding: 7px 12px;
  }

  .pricing-tag--top .pricing-tag-copy {
    display: flex;
    align-items: center;
  }

  .pricing-tag--top .pricing-tag-eyebrow {
    display: none;
  }

  .pricing-tag--top .pricing-tag-message {
    display: block;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .pricing-tag--top .pricing-tag-message strong {
    font-size: 0.9rem;
  }

  .pricing-tag--top .pricing-tag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    font-size: 0.68rem;
    line-height: 1;
  }

  .pricing-tag--waiting {
    box-shadow: 5px 5px 0 #0a0a0a;
  }

  .pricing-tag-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pricing-tag:not(.pricing-tag--top) .pricing-tag-link {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
  }
}
@media (min-width: 576px) {
  #footer {
    font-size: 1rem;
  }
  .footer-links a {
    padding: 0 0.5rem;
  }
}
@media (min-width: 768px) {
  .face-detection-modal .modal-dialog {
    margin: 1.75rem auto;
  }
  .face-detection-modal .modal-header,
  .face-detection-modal .modal-body,
  .face-detection-modal .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .face-detection-modal .modal-title {
    font-size: 1.2rem;
  }
  .face-detection-modal .modal-body {
    font-size: 1rem;
  }
  .face-detection-preview-image {
    max-height: 400px;
  }
  .face-detection-modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }
  .face-detection-modal-footer .btn {
    width: auto;
  }
}

/* Vintage Drive campaign skin */
:root {
  --main-bg: #f2eadb;
  --main-bg2: #e8ddca;
  --body-text: #251c16;
  --muted-text: #67594d;
  --accent-color: #7a211f;
  --accent-hover: #571513;
  --border-color: rgba(72, 49, 32, 0.22);
  --cream: #f7f0e3;
  --wine: #741f1d;
  --tobacco: #9a673c;
  --ink: #211a15;
  --radius-sm: 2px;
  --radius-md: 4px;
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.72), transparent 34rem),
    #d8c6aa;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

#main {
  max-width: 760px;
  min-height: 100svh;
  background: var(--main-bg);
  box-shadow: 0 0 80px rgba(43, 28, 18, 0.22);
}

header {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 50%;
  width: min(100%, 760px);
  transform: translateX(-50%);
  padding: 20px 14px;
  border: 0;
}

.brand-logo img {
  width: 148px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.hero-section {
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}

.hero-photo,
.hero-wash,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-photo {
  z-index: -3;
  background-image: url("images/vintage-drive-hero.png");
  background-position: 58% center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-wash {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(16, 12, 9, 0.58) 0%, rgba(36, 24, 15, 0.06) 36%, rgba(24, 16, 12, 0.16) 57%, rgba(19, 13, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(36, 22, 14, 0.42), transparent 68%);
}

.hero-grain {
  z-index: -1;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

.hero-content {
  min-height: 100svh;
  margin: 0 auto;
  padding: 116px 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
}

.hero-kicker,
.step-label {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-kicker {
  padding-left: 3px;
  color: rgba(255, 246, 230, 0.84);
}

.hero-title-lockup {
  position: relative;
  margin-top: 12px;
  align-self: flex-start;
}

.hero-title-small {
  display: block;
  margin: 0 0 -2px 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.48em;
}

.hero-title-lockup h1 {
  color: var(--cream);
  font-size: clamp(4rem, 17vw, 7.2rem);
  font-weight: 400;
  line-height: 0.73;
  letter-spacing: -0.075em;
  text-align: left;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.22);
  white-space: normal;
}

.hero-title-script {
  position: absolute;
  right: -20px;
  bottom: -22px;
  color: #e3b568;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.1rem, 10vw, 4rem);
  font-style: italic;
  line-height: 1;
  transform: rotate(-7deg);
}

.hero-intro {
  max-width: 29rem;
  margin: auto 0 0;
  color: rgba(255, 246, 230, 0.94);
  font-size: 1.04rem;
  line-height: 1.55;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.hero-action {
  margin-top: 22px;
}

.hero-cta {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 15px 22px;
  border: 1px solid rgba(255, 244, 224, 0.78);
  background: rgba(117, 31, 29, 0.94);
  color: #fff7e8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note {
  margin: 10px 0 0;
  color: rgba(255, 246, 230, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.campaign-surface {
  position: relative;
  min-height: 100svh;
  padding: 84px 22px 34px;
  background:
    linear-gradient(rgba(242, 234, 219, 0.94), rgba(242, 234, 219, 0.98)),
    url("images/vintage-drive-hero.png") center / cover fixed;
}

.campaign-surface > .container {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem !important;
}

.campaign-surface h2,
.campaign-surface h3,
.campaign-surface h4 {
  font-weight: 400;
  letter-spacing: -0.035em;
}

.campaign-surface h2 {
  font-size: clamp(2rem, 8vw, 3.25rem);
}

.step-label {
  color: var(--wine);
}

.file-input {
  min-height: 330px;
  border: 1px solid var(--border-color);
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(229, 215, 192, 0.62));
  box-shadow: 0 16px 40px rgba(54, 35, 21, 0.08);
}

.file-input:hover {
  background-color: #eadcc5;
}

.upload-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wine);
  border-radius: 50%;
  color: var(--wine);
  font-size: 1.2rem;
}

.form-label {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.form-select,
.form-control {
  min-height: 54px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background-color: rgba(255, 252, 246, 0.76);
  font-family: Arial, Helvetica, sans-serif;
}

.btn {
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  --bs-btn-bg: var(--wine);
  --bs-btn-border-color: var(--wine);
  --bs-btn-hover-bg: #541614;
  --bs-btn-hover-border-color: #541614;
}

.btn-secondary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-color: var(--ink);
  --bs-btn-hover-color: var(--cream);
}

.status-card,
.panel,
.sponsor-content {
  border: 1px solid var(--border-color);
  border-radius: 0;
  background: rgba(250, 244, 233, 0.78);
  box-shadow: 0 16px 40px rgba(54, 35, 21, 0.08);
}

.spinner-border {
  color: var(--wine);
}

.image-shell {
  border: 8px solid #f8f1e5;
  border-radius: 1px;
  box-shadow: 0 18px 50px rgba(49, 31, 19, 0.2);
}

#footer {
  border-top-color: var(--border-color);
  background: var(--ink);
  color: rgba(255, 246, 230, 0.7);
}

#footer .container,
#footer a {
  color: rgba(255, 246, 230, 0.78);
}

.lang-select {
  border-color: rgba(255, 246, 230, 0.5);
  background: transparent;
  color: #fff6e6;
}

.lang-select:hover,
.lang-select:focus {
  border-color: #ffffff;
  background: #ffffff;
  color: #0b0b0b;
}

.lang-select option {
  background: #ffffff;
  color: #0b0b0b;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 128px 54px 42px;
  }

  .hero-title-lockup h1 {
    font-size: 7.3rem;
  }

  .hero-action {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    align-items: center;
    gap: 24px;
  }

  .hero-note {
    margin: 0;
    text-align: left;
  }

  .campaign-surface {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Black-and-white automotive editorial direction */
:root {
  --main-bg: #f3f3f0;
  --main-bg2: #e8e8e4;
  --body-text: #0b0b0b;
  --muted-text: #595959;
  --accent-color: #0b0b0b;
  --accent-hover: #333333;
  --border-color: rgba(0, 0, 0, 0.24);
  --cream: #f5f5f2;
  --wine: #0b0b0b;
  --tobacco: #777777;
  --ink: #090909;
}

body {
  background: #c7c7c4;
  color: var(--ink);
}

#main {
  background: var(--main-bg);
  box-shadow: 0 0 64px rgba(0, 0, 0, 0.2);
}

header {
  position: relative;
  z-index: 6;
  top: auto;
  left: auto;
  width: 100%;
  transform: none;
  padding: 18px 26px 0;
  border: 0;
  background: var(--main-bg);
}

header .container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 16px;
  border-bottom: 1px solid #111111;
}

.header--landing {
  background: #090909;
}

.header--landing .container {
  border-bottom-color: transparent;
}

.header--landing .brand-logo {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.brand-logo {
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.9);
}

.brand-logo img {
  width: 132px;
  filter: brightness(0) invert(1);
}

.hero-section {
  min-height: 100svh;
  background: #090909;
}

.editorial-spread {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #090909;
}

.editorial-frame {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #222222;
}

.editorial-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.editorial-frame--man img {
  object-position: 49% center;
}

.editorial-frame--woman img {
  object-position: 58% center;
}

.editorial-frame figcaption {
  position: absolute;
  right: 12px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.12) 54%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
  padding: 20px 20px 24px;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-topline .hero-kicker {
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.hero-title-lockup {
  align-self: stretch;
  margin-top: 18px;
}

.hero-title-small {
  margin: 0 0 3px;
  font-size: 0.62rem;
  letter-spacing: 0.55em;
}

.hero-title-lockup h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.8rem, 17vw, 7.4rem);
  font-weight: 400;
  line-height: 0.77;
  letter-spacing: -0.075em;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.44);
}

.hero-title-lockup p {
  margin: 8px 0 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.37em;
  text-align: center;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 31rem;
  margin-top: auto;
  padding-top: 42px;
  color: rgba(255, 255, 255, 0.88);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-cta {
  min-height: 54px;
  border-color: #ffffff;
  background: #f5f5f2;
  color: #0a0a0a;
}

.hero-cta:hover,
.hero-cta:focus {
  border-color: #ffffff;
  background: #0a0a0a;
  color: #ffffff;
}

.hero-note {
  color: rgba(255, 255, 255, 0.62);
}

.campaign-surface {
  padding-top: 24px;
  background:
    linear-gradient(rgba(244, 244, 241, 0.95), rgba(244, 244, 241, 0.98)),
    url("images/editorial-man.jpg") center / cover fixed;
}

.campaign-surface::before {
  content: none;
}

.campaign-surface h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 3.25rem);
  letter-spacing: -0.045em;
}

.step-label {
  color: #111111;
  letter-spacing: 0.24em;
}

.file-input {
  min-height: 330px;
  border: 1px solid #111111;
  outline: 0;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
}

.upload-icon {
  border-color: #111111;
  color: #111111;
}

.form-select,
.form-control {
  border-color: #111111;
  background: rgba(255, 255, 255, 0.76);
}

.btn-primary {
  --bs-btn-bg: #0a0a0a;
  --bs-btn-border-color: #0a0a0a;
  --bs-btn-hover-bg: #333333;
  --bs-btn-hover-border-color: #333333;
  --bs-btn-disabled-bg: #222222;
  --bs-btn-disabled-border-color: #222222;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-opacity: 0.78;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #222222;
  border-color: #222222;
  color: #ffffff;
  opacity: 0.78;
  cursor: not-allowed;
}

.btn-primary:disabled .spinner-border,
.btn-primary.disabled .spinner-border {
  color: #ffffff;
}

.status-card,
.panel,
.sponsor-content {
  border-color: #111111;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.image-shell {
  border: 10px solid #ffffff;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
}

.spinner-border {
  color: #111111;
}

.campaign-surface--waiting {
  display: flex;
  min-height: calc(100svh - 77px);
  padding-top: clamp(38px, 8vh, 84px);
  padding-bottom: clamp(38px, 8vh, 84px);
  background:
    linear-gradient(rgba(244, 244, 241, 0.7), rgba(244, 244, 241, 0.8)),
    url("images/editorial-man.jpg") center 28% / cover fixed;
}

.campaign-surface--waiting > .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin-top: 0 !important;
}

.waiting-stage {
  width: 100%;
}

.waiting-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid #0a0a0a;
  background: rgba(9, 9, 9, 0.96);
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.waiting-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.waiting-card-copy {
  padding: clamp(28px, 6vw, 48px) 0;
}

.waiting-card-copy h2 {
  max-width: 11ch;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.25rem, 9vw, 4.25rem);
  line-height: 0.98;
}

.waiting-card-copy p {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.92rem, 2.7vw, 1.08rem);
  line-height: 1.55;
}

.waiting-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.waiting-progress .spinner-border {
  width: 2.25rem;
  height: 2.25rem;
  color: #ffffff;
  border-width: 0.16em;
}

.waiting-progress-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.waiting-progress-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.waiting-progress-status {
  margin-top: 3px;
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.35;
}

#footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
  background: #0b0b0b;
}

#footer .container {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 420px) {
  .campaign-surface--waiting {
    min-height: calc(100svh - 77px);
    padding: 30px 20px 36px;
    background:
      linear-gradient(rgba(244, 244, 241, 0.68), rgba(244, 244, 241, 0.82)),
      url("images/editorial-man.jpg") 48% 22% / cover;
  }

  .waiting-card {
    padding: 24px 22px;
  }

  .waiting-card-copy {
    padding: 34px 0 38px;
  }

  .waiting-card-copy h2 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .hero-section {
    min-height: auto;
  }

  .editorial-spread {
    height: 62svh;
    bottom: auto;
  }

  .editorial-frame--man img {
    object-position: 45% center;
  }

  .editorial-frame--woman img {
    object-position: 56% center;
  }

  .hero-section::after {
    height: 62svh;
    bottom: auto;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0.9) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 48%, rgba(0, 0, 0, 0.14));
  }

  .hero-content {
    min-height: auto;
    padding: 20px 20px 28px;
  }

  .hero-title-lockup {
    width: calc(100% + 40px);
    margin: calc(62svh - 190px) -20px 0;
    padding: 22px 20px 20px;
    align-self: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.46);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    background: #090909;
  }

  .hero-title-lockup h1 {
    font-size: clamp(3rem, 15vw, 4.15rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  .hero-title-lockup p {
    margin-top: 10px;
    line-height: 1.4;
  }

  .hero-intro {
    margin-top: 0;
    padding-top: 24px;
  }

  .hero-action {
    margin-top: 20px;
  }
}

@media (min-width: 640px) {
  .hero-content {
    padding: 24px 42px 34px;
  }

  .hero-title-lockup h1 {
    font-size: 7rem;
  }

  .hero-section.lang-zh-cn .hero-title-small {
    margin-bottom: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.36em;
  }

  .hero-section.lang-zh-cn .hero-title-lockup h1 {
    font-size: clamp(4.15rem, 9.6vw, 4.65rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .hero-section.lang-zh-cn .hero-title-lockup p {
    margin-top: 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    letter-spacing: 0.24em;
  }
}
