/* WEL Transition Checker — Styles
 * constructtrackpro.com/welcheck/
 */

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

:root {
  --carbon:    #1D1D1F;
  --carbon-2:  #2C2C2E;
  --chalk:     #F5F5F7;
  --white:     #FFFFFF;
  --mid:       #86868B;
  --light:     #E8E8ED;
  --orange:    #FF6B35;
  --orange-dim: rgba(255,107,53,0.12);
  --blue:      #0071E3;
  --green:     #34C759;
  --red:       #FF3B30;
  --yellow:    #FF9F0A;
  --radius-card: 16px;
  --radius-pill: 980px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--chalk);
  color: var(--carbon);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 { font-size: clamp(28px, 4.5vw, 52px); font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 200; letter-spacing: -0.025em; line-height: 1.15; }
h3 { font-size: clamp(16px, 2vw, 22px); font-weight: 400; letter-spacing: -0.02em; }
p  { line-height: 1.65; }

/* ─── NAV ─── */
.wel-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(29,29,31,0.92);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 400; letter-spacing: -0.01em; color: rgba(255,255,255,0.9); text-decoration: none; }
.nav-brand svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav-brand .sep { color: rgba(255,255,255,0.2); margin: 0 4px; }
.nav-brand .hub { color: var(--orange); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: rgba(255,255,255,0.9); }
.nav-links a.active { color: var(--orange); }
.nav-cta { height: 30px; padding: 0 14px; background: var(--orange); color: white; border-radius: var(--radius-pill); font-size: 11px; font-weight: 500; text-decoration: none; display: flex; align-items: center; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.88; }

/* ─── BREADCRUMB ─── */
.breadcrumb { padding: 68px 0 0; background: var(--chalk); }
.breadcrumb-inner { max-width: 1000px; margin: 0 auto; padding: 16px 40px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--mid); font-family: 'DM Mono', monospace; }
.breadcrumb-inner a { color: var(--mid); text-decoration: none; transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--carbon); }

/* ─── HERO ─── */
.page-hero { background: var(--carbon); padding: 64px 40px 56px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 48px 48px; }
.page-hero::after { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,107,53,0.12) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -60%); }
.page-hero > * { position: relative; z-index: 1; }
.hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.hero-title { color: white; margin-bottom: 16px; }
.hero-title strong { font-weight: 500; }
.hero-sub { font-size: clamp(14px, 1.8vw, 17px); font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.6; max-width: 580px; margin: 0 auto 28px; }
.hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-pill { height: 32px; padding: 0 16px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 400; text-decoration: none; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.hero-pill.primary { background: var(--orange); color: white; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.hero-pill.primary:hover { background: #ff7a48; transform: translateY(-1px); }
.hero-pill.ghost { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.15); }

/* ─── COUNTDOWN ─── */
.countdown-bar {
  background: var(--carbon-2); border-bottom: 1px solid rgba(255,107,53,0.2);
  padding: 16px 40px; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.countdown-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.countdown-units { display: flex; gap: 20px; align-items: center; }
.countdown-unit { text-align: center; }
.countdown-num { display: block; font-size: 28px; font-weight: 200; letter-spacing: -0.04em; color: white; line-height: 1; }
.countdown-sub { display: block; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-top: 2px; }
.countdown-sep { font-size: 20px; color: rgba(255,255,255,0.15); font-weight: 200; }
.countdown-cta { font-size: 12px; color: rgba(255,255,255,0.5); font-family: 'DM Mono', monospace; letter-spacing: 0.04em; }
.countdown-cta strong { color: var(--orange); }

/* ─── STATS ROW ─── */
.stats-row { display: flex; background: var(--white); border-top: 1px solid var(--light); border-bottom: 1px solid var(--light); flex-wrap: wrap; }
.stat-item { padding: 18px 28px; text-align: center; border-right: 1px solid var(--light); flex: 1; min-width: 100px; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 22px; font-weight: 200; letter-spacing: -0.03em; color: var(--orange); display: block; margin-bottom: 2px; }
.stat-label { font-size: 10px; color: var(--mid); font-family: 'DM Mono', monospace; letter-spacing: 0.04em; }

/* ─── TOOL SECTION ─── */
.tool-section { max-width: 1000px; margin: 0 auto; padding: 40px 40px 64px; }

/* ─── SEARCH BAR ─── */
.search-wrap { position: relative; margin-bottom: 20px; }
.search-input {
  width: 100%; height: 52px; padding: 0 48px 0 18px;
  border: 1.5px solid var(--light); border-radius: 12px;
  background: var(--white); color: var(--carbon);
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.search-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
.search-input::placeholder { color: var(--mid); }
.search-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-clear { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--mid); font-size: 18px; line-height: 1; display: none; padding: 4px; }
.search-clear:hover { color: var(--carbon); }

/* ─── FILTER ROW ─── */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); white-space: nowrap; }
.filter-pill {
  height: 30px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 400; letter-spacing: 0.01em;
  border: 1px solid var(--light); background: var(--white); color: var(--mid);
  cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.filter-pill:hover { background: var(--chalk); border-color: #ccc; color: var(--carbon); }
.filter-pill.active { background: var(--carbon); color: white; border-color: var(--carbon); }

.toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--light); border-radius: var(--radius-pill); transition: 0.2s; }
.toggle-slider:before { position: absolute; content: ''; height: 14px; width: 14px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
input:checked + .toggle-slider { background: var(--orange); }
input:checked + .toggle-slider:before { transform: translateX(16px); }
.toggle-label { font-size: 13px; color: var(--carbon); cursor: pointer; }
.toggle-count { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--mid); margin-left: 4px; }

/* ─── RESULTS HEADER ─── */
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-count { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.results-actions { display: flex; gap: 8px; }

/* ─── SUBSTANCE CARDS ─── */
.substance-grid { display: flex; flex-direction: column; gap: 10px; }
.substance-card {
  background: var(--white); border-radius: var(--radius-card);
  border: 1px solid var(--light); padding: 20px 24px;
  transition: all 0.2s; cursor: default;
}
.substance-card:hover { border-color: #d0d0d5; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.substance-card.high-risk { border-left: 3px solid var(--orange); }

.substance-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.substance-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--carbon); margin-bottom: 3px; }
.substance-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta-tag { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--chalk); color: var(--mid); }
.meta-tag.high-risk { background: rgba(255,107,53,0.1); color: var(--orange); }
.meta-cas { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--mid); }

/* change badge */
.change-badge { height: 26px; padding: 0 12px; border-radius: var(--radius-pill); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400; display: flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0; }
.badge-tighter { background: rgba(255,59,48,0.1);   color: #c0241a; }
.badge-looser  { background: rgba(52,199,89,0.1);   color: #1d8a3c; }
.badge-same    { background: rgba(134,134,139,0.1); color: var(--mid); }
.badge-new     { background: rgba(0,113,227,0.1);   color: var(--blue); }
.badge-removed { background: rgba(134,134,139,0.1); color: var(--mid); }
.badge-pending { background: rgba(255,159,10,0.12); color: #b06800; }

/* comparison table */
.wel-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; background: var(--chalk); border-radius: 10px; overflow: hidden; border: 1px solid var(--light); }
.comparison-col { padding: 14px 16px; }
.comparison-col.old { border-right: 1px solid var(--light); }
.comparison-col.arrow { display: flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 18px; color: var(--mid); background: var(--chalk); }
.comparison-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); margin-bottom: 6px; }
.comparison-value { font-size: 18px; font-weight: 300; letter-spacing: -0.02em; color: var(--carbon); }
.comparison-value.changed { color: #c0241a; font-weight: 400; }
.comparison-value.new-listing { color: var(--blue); font-weight: 400; }
.comparison-sub { font-size: 11px; color: var(--mid); margin-top: 4px; }

/* pending note */
.pending-note { background: rgba(255,159,10,0.06); border: 1px solid rgba(255,159,10,0.2); border-radius: 8px; padding: 10px 14px; margin-top: 12px; font-size: 12px; color: #b06800; font-weight: 300; line-height: 1.5; }
.pending-note strong { font-weight: 500; }

/* substance notes */
.substance-notes { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.6; margin-top: 12px; }
.substance-notes strong { color: var(--carbon); font-weight: 500; }
.substance-notes a { color: var(--blue); text-decoration: none; }

.substance-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--light); flex-wrap: wrap; gap: 8px; }
.substance-aliases { font-size: 11px; color: var(--mid); font-weight: 300; line-height: 1.5; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state p { font-size: 14px; color: var(--mid); font-weight: 300; margin-top: 8px; }
.empty-icon { font-size: 40px; margin-bottom: 12px; }

/* ─── EMAIL CAPTURE ─── */
.email-capture-wrap { background: var(--carbon); border-radius: var(--radius-card); padding: 28px 32px; margin-top: 32px; color: white; }
.email-capture-wrap p.ec-eyebrow { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.email-capture-wrap h3 { font-size: 18px; font-weight: 400; letter-spacing: -0.02em; color: white; margin-bottom: 8px; }
.email-capture-wrap p.ec-sub { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 300; margin-bottom: 20px; }

/* ─── LEGAL REFERRAL ─── */
.legal-referral { background: linear-gradient(135deg, rgba(0,113,227,0.06) 0%, rgba(255,107,53,0.06) 100%); border: 1px solid rgba(0,113,227,0.15); border-radius: var(--radius-card); padding: 24px 28px; margin: 24px 0; }
.legal-referral h4 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.legal-referral p { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.6; margin-bottom: 16px; }
.legal-referral-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn { height: 44px; padding: 0 24px; border-radius: var(--radius-pill); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: #ff7a48; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,0.3); }
.btn-secondary { background: var(--chalk); color: var(--carbon); border: 1px solid var(--light); }
.btn-secondary:hover { background: var(--light); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── DISCLAIMER ─── */
.disclaimer { background: rgba(255,107,53,0.06); border: 1px solid rgba(255,107,53,0.15); border-radius: 10px; padding: 16px 20px; margin-top: 24px; }
.disclaimer p { font-size: 12px; color: var(--mid); line-height: 1.6; font-weight: 300; }
.disclaimer strong { color: var(--carbon); font-weight: 500; }

/* ─── AD UNIT ─── */
.ad-unit { display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 16px; background: var(--white); border-top: 1px solid var(--light); border-bottom: 1px solid var(--light); }

/* ─── CONTENT SECTION ─── */
.content-section { max-width: 1000px; margin: 0 auto; padding: 0 40px 48px; }
.content-section h2 { margin-bottom: 16px; }
.content-section p { font-size: 14px; color: var(--mid); font-weight: 300; line-height: 1.7; margin-bottom: 12px; }
.content-section a { color: var(--blue); }
.content-section strong { color: var(--carbon); font-weight: 500; }

/* ─── FAQ ─── */
.faq-section { max-width: 1000px; margin: 0 auto; padding: 0 40px 64px; }
.faq-item { border-top: 1px solid var(--light); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; color: var(--carbon); letter-spacing: -0.01em; gap: 16px; }
.faq-q svg { flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { font-size: 13px; color: var(--mid); line-height: 1.7; font-weight: 300; padding-bottom: 18px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--blue); }
.faq-a strong { color: var(--carbon); font-weight: 500; }

/* ─── HUB CARD ─── */
.hub-tools { max-width: 1000px; margin: 0 auto; padding: 0 40px 48px; }
.hub-tool-card { background: var(--white); border: 1px solid var(--light); border-radius: var(--radius-card); padding: 32px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 24px; text-decoration: none; color: var(--carbon); transition: all 0.25s; position: relative; overflow: hidden; }
.hub-tool-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s; }
.hub-tool-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.09); }
.hub-tool-card:hover::before { transform: scaleY(1); }
.hub-tool-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--orange-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hub-tool-info h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.hub-tool-info p { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.6; margin-bottom: 14px; }
.hub-tool-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.hub-chip { height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; }
.hub-chip.free   { background: rgba(52,199,89,0.1); color: #1d8a3c; }
.hub-chip.states { background: var(--chalk); color: var(--mid); }
.hub-chip.urgent { background: rgba(255,107,53,0.1); color: var(--orange); }

/* ─── CROSS-PROMO ─── */
.cross-promo { background: var(--carbon); border-radius: var(--radius-card); padding: 28px 32px; margin-top: 40px; color: white; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cross-promo-text p:first-child { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.cross-promo-text h3 { font-size: 18px; font-weight: 400; letter-spacing: -0.02em; color: white; }
.cross-promo-text p:last-child { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 300; margin-top: 4px; }

/* ─── FOOTER ─── */
.wel-footer { background: var(--carbon); border-top: 1px solid rgba(255,255,255,0.06); padding: 40px 60px; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-brand svg { width: 18px; height: 18px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.2); letter-spacing: 0.04em; line-height: 1.7; width: 100%; margin-top: 8px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ─── PRINT ─── */
@media print {
  .wel-nav, .countdown-bar, .ad-unit, .search-wrap, .filter-row, .toggle-row,
  .results-actions, .email-capture-wrap, .legal-referral, .cross-promo,
  .faq-section, .wel-footer, .breadcrumb, .hero-pills { display: none !important; }
  body { background: white; }
  .page-hero { background: white; padding: 20px 0 10px; }
  .hero-title { color: black; font-size: 22px; }
  .substance-card { border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
  .tool-section { padding: 20px 0; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .wel-nav { padding: 0 20px; }
  .nav-links .hide-mobile { display: none; }
  .page-hero { padding: 64px 24px 40px; }
  .tool-section { padding: 28px 20px 48px; }
  .countdown-bar { padding: 14px 20px; gap: 16px; }
  .countdown-num { font-size: 20px; }
  .faq-section { padding: 0 20px 48px; }
  .content-section { padding: 0 20px 40px; }
  .hub-tools { padding: 0 20px 40px; }
  .hub-tool-card { flex-direction: column; gap: 16px; }
  .wel-footer { padding: 32px 24px; }
  .cross-promo { flex-direction: column; text-align: center; }
  .breadcrumb-inner { padding: 16px 20px 0; }
  .stats-row .stat-item { min-width: 50%; }
  .wel-comparison { grid-template-columns: 1fr; }
  .comparison-col.arrow { padding: 8px; font-size: 14px; }
  .substance-top { flex-direction: column; gap: 10px; }
  .results-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
