/* ============================================================
   coming-soon.css — TireGuy App / Tire Data Metrics
   Pre-launch coming soon page
   ============================================================ */

/* ── PAGE LAYOUT ── */
.cs-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 3rem;
}

/* Gear texture */
.cs-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/bg4.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
}

/* Radial glows */
.cs-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 65% 10%, rgba(139, 92, 246, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(16, 185, 129, 0.07) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.cs-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── THEME TOGGLE ── */
.cs-theme-wrap {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 100;
}

.cs-theme-menu {
  background: var(--tdm-elevated);
  border: 1px solid var(--tdm-border);
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cs-theme-menu .dropdown-item {
  color: var(--tdm-text);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: 'Barlow', sans-serif;
  padding: 0.45rem 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.cs-theme-menu .dropdown-item:hover,
.cs-theme-menu .dropdown-item:focus {
  background: rgba(139, 92, 246, 0.12);
  color: var(--tdm-white);
}

/* ── LOGO ── */
.cs-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.8rem;
}

.cs-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.5));
}

.cs-brand {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.cs-brand-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tdm-white);
}

.cs-brand-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--tdm-text);
  letter-spacing: 0.04em;
}

/* ── BADGE ── */
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tdm-purple);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 24px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.6rem;
}

/* ── HEADLINE ── */
.cs-headline {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--tdm-white);
  margin: 0 0 1.2rem;
}

.cs-chrome {
  background: var(--tdm-stat-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SUBTEXT ── */
.cs-sub {
  font-size: 1rem;
  color: var(--tdm-text);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 0 2.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── COUNTDOWN ── */
.cs-countdown {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.cs-count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 74px;
  background: var(--tdm-elevated);
  border: 1px solid var(--tdm-border);
  border-radius: 10px;
  padding: 0.8rem 0.5rem 0.65rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cs-count-num {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tdm-white);
  letter-spacing: -0.02em;
}

.cs-count-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tdm-text);
}

.cs-count-sep {
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tdm-purple);
  line-height: 1;
  margin-bottom: 1.1rem;
  opacity: 0.55;
}

/* ── EMAIL FORM ── */
.cs-form {
  width: 100%;
  max-width: 460px;
  margin-bottom: 2rem;
}

.cs-input-row {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: #20203c;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-input-row:focus-within {
  border-color: var(--tdm-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.cs-email {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.8rem 1.1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: var(--tdm-white);
  min-width: 0;
}

.cs-email::placeholder { color: var(--tdm-text); }

.cs-btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 1.3rem;
  background: var(--tdm-purple);
  border: none;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

.cs-btn-notify:hover {
  background: var(--tdm-purple-hi);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.cs-btn-notify:active { opacity: 0.9; }

.cs-btn-notify:focus-visible {
  outline: 2px solid var(--tdm-purple-hi);
  outline-offset: 2px;
}

.cs-btn-notify:disabled {
  opacity: 0.5;
  cursor: default;
}

.cs-form-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--tdm-text);
  text-align: center;
  margin-top: 0.65rem;
  min-height: 1.2rem;
  transition: color 0.2s ease;
}

/* ── FOOTER NOTE ── */
.cs-footer-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(136, 136, 170, 0.35);
}

/* ── LIGHT MODE ── */
[data-bs-theme="light"] .cs-page::before {
  background-image: url('/images/bg3.png');
  opacity: 0.07;
}

[data-bs-theme="light"] .cs-page::after {
  background:
    radial-gradient(ellipse 80% 55% at 65% 10%, rgba(109, 40, 217, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(15, 118, 110, 0.05) 0%, transparent 60%);
}

[data-bs-theme="light"] .cs-input-row {
  background: #f0f0fa;
  border-color: rgba(109, 40, 217, 0.28);
}

[data-bs-theme="light"] .cs-email {
  color: var(--tdm-white);
}

[data-bs-theme="light"] .cs-badge {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.08);
  border-color: rgba(109, 40, 217, 0.22);
}

[data-bs-theme="light"] .cs-count-item {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .cs-page { padding: 4.5rem 1.5rem 2.5rem; }
  .cs-headline { font-size: 2.4rem; }
  .cs-sub { font-size: 0.92rem; }
  .cs-count-item { min-width: 58px; padding: 0.65rem 0.3rem 0.55rem; }
  .cs-count-num { font-size: 1.5rem; }
  .cs-count-sep { font-size: 1.2rem; }
  .cs-countdown { gap: 0.4rem; }
  .cs-input-row { flex-direction: column; }
  .cs-btn-notify { justify-content: center; width: 100%; }
}
