/* SOPAHub — Shared Styles */
/* constructtrackpro.com/sopa/ */

*, *::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;
}

/* ─── TYPOGRAPHY ─── */
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 ─── */
.sopa-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: 860px; 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); }
.breadcrumb-inner span { color: var(--light); }

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--carbon);
  padding: 80px 40px 64px;
  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: 20px;
}
.hero-title { color: white; margin-bottom: 20px; }
.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: 560px; margin: 0 auto 32px;
}
.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); }
.hero-pill.ghost:hover { border-color: rgba(255,255,255,0.3); color: white; }

/* ─── TOOL CARD ─── */
.tool-section {
  max-width: 860px; margin: 0 auto;
  padding: 48px 40px 80px;
}
.tool-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--light);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.tool-card-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--light);
  background: linear-gradient(135deg, #fff 0%, var(--chalk) 100%);
}
.tool-card-header h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--carbon); }
.tool-card-header p { font-size: 13px; color: var(--mid); margin-top: 4px; font-weight: 300; }
.tool-card-body { padding: 32px; }

/* ─── FORM ELEMENTS ─── */
.form-row { margin-bottom: 24px; }
.form-row:last-child { margin-bottom: 0; }
.form-label {
  display: block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--carbon); margin-bottom: 8px;
}
.form-label .req { color: var(--orange); }
.form-hint { font-size: 11px; color: var(--mid); margin-top: 4px; font-weight: 300; }
.form-select, .form-input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--light); border-radius: var(--radius-sm);
  background: var(--white); color: var(--carbon);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-select:focus, .form-input:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.form-textarea {
  width: 100%; padding: 12px 14px; min-height: 80px;
  border: 1.5px solid var(--light); border-radius: var(--radius-sm);
  background: var(--white); color: var(--carbon);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400;
  resize: vertical; line-height: 1.5; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.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-ghost { background: transparent; color: var(--mid); border: 1px solid var(--light); font-size: 13px; height: 38px; }
.btn-ghost:hover { color: var(--carbon); border-color: var(--carbon); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 12px; }

/* ─── RESULTS PANEL ─── */
.results-panel {
  background: var(--chalk);
  border-radius: var(--radius-card);
  border: 1px solid var(--light);
  padding: 28px;
  margin-top: 28px;
}
.results-panel.hidden { display: none; }
.results-title {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 20px;
}
.deadline-row {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--light); padding: 18px 20px;
  margin-bottom: 10px; display: flex;
  align-items: flex-start; justify-content: space-between;
  gap: 16px;
}
.deadline-row:last-child { margin-bottom: 0; }
.deadline-label { font-size: 12px; font-weight: 500; color: var(--mid); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; font-family: 'DM Mono', monospace; }
.deadline-date { font-size: 17px; font-weight: 400; letter-spacing: -0.02em; color: var(--carbon); }
.deadline-badge {
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400;
  padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap;
  flex-shrink: 0;
}
.deadline-ok    { background: rgba(52,199,89,0.1); color: #1d8a3c; }
.deadline-warning { background: rgba(255,159,10,0.12); color: #b06800; }
.deadline-critical { background: rgba(255,59,48,0.1); color: #c0241a; }
.deadline-passed  { background: rgba(134,134,139,0.12); color: var(--mid); }

.results-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}

/* ─── 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; }

/* ─── INFO BOX ─── */
.info-box {
  background: rgba(0,113,227,0.05); border: 1px solid rgba(0,113,227,0.15);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 20px;
}
.info-box p { font-size: 13px; color: var(--carbon); line-height: 1.6; }
.info-box a { color: var(--blue); text-decoration: none; }
.info-box a:hover { text-decoration: underline; }

.state-notes { list-style: none; margin: 0; padding: 0; }
.state-notes li {
  font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.6;
  padding: 6px 0 6px 20px; position: relative;
}
.state-notes li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-size: 12px; top: 7px; }

/* ─── CLAIM ITEMS ─── */
.claim-item-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: start; margin-bottom: 10px;
}
.claim-total {
  text-align: right; font-size: 18px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--carbon);
  padding: 16px 0 0; border-top: 1px solid var(--light);
  margin-top: 8px;
}
.claim-total span { font-size: 13px; color: var(--mid); font-weight: 300; margin-right: 8px; }

/* ─── PDF PREVIEW ─── */
.pdf-preview {
  background: var(--white); border: 1px solid var(--light);
  border-radius: 12px; padding: 32px; margin-top: 24px;
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--carbon); line-height: 1.8;
  max-height: 400px; overflow-y: auto;
}
.pdf-preview .pdf-title {
  font-size: 16px; font-weight: 500; letter-spacing: 0.08em;
  text-align: center; margin-bottom: 24px; font-family: 'DM Sans', sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.pdf-preview .pdf-section { margin-bottom: 20px; }
.pdf-preview .pdf-section-title {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); border-bottom: 1px solid var(--light);
  padding-bottom: 6px; margin-bottom: 12px;
}
.pdf-preview table { width: 100%; border-collapse: collapse; font-size: 11px; }
.pdf-preview th { text-align: left; padding: 6px 8px; background: var(--chalk); font-weight: 500; }
.pdf-preview td { padding: 6px 8px; border-bottom: 1px solid var(--light); }
.pdf-preview .total-row td { font-weight: 500; border-top: 2px solid var(--carbon); border-bottom: none; }
.pdf-preview .endorsement {
  font-size: 11px; color: var(--mid); font-style: italic;
  border: 1px solid var(--light); padding: 10px 14px; border-radius: 6px; margin-top: 16px;
}

/* ─── EMAIL GATE MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-card);
  padding: 40px; max-width: 440px; width: 90%; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.modal-icon { font-size: 36px; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-sub { font-size: 13px; color: var(--mid); font-weight: 300; line-height: 1.6; margin-bottom: 24px; }
.modal-eo { margin-bottom: 16px; }
.modal-skip { font-size: 12px; color: var(--mid); cursor: pointer; text-decoration: none; display: block; }
.modal-skip:hover { color: var(--carbon); }

/* ─── FAQ ─── */
.faq-section { max-width: 860px; margin: 0 auto; padding: 0 40px 64px; }
.faq-title { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 20px; }
.faq-item {
  border-top: 1px solid var(--light); padding: 0;
}
.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; }

/* ─── STATE GRID ─── */
.state-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-top: 20px;
}
.state-card {
  background: var(--white); border: 1px solid var(--light);
  border-radius: 12px; padding: 16px 20px;
  text-decoration: none; color: var(--carbon);
  transition: all 0.2s; display: flex; flex-direction: column; gap: 4px;
}
.state-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.state-card.active { border-color: var(--orange); background: var(--orange-dim); }
.state-card .s-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.state-card .s-days { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--mid); }
.state-card .s-model { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }

/* ─── CROSS-PROMO ─── */
.cross-promo {
  background: var(--carbon); border-radius: var(--radius-card);
  padding: 28px 32px; margin: 40px 0 0; 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; }

/* ─── 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; }

/* ─── ADSENSE ─── */
.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: 860px; 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); }

/* ─── HUB TOOL CARDS ─── */
.hub-tools { max-width: 860px; 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.export { background: rgba(0,113,227,0.08); color: var(--blue); }

/* ─── FOOTER ─── */
.sopa-footer {
  background: var(--carbon); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 60px;
}
.footer-inner {
  max-width: 860px; 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; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .sopa-nav { padding: 0 20px; }
  .nav-links .hide-mobile { display: none; }
  .page-hero { padding: 80px 24px 48px; }
  .tool-section { padding: 32px 20px 60px; }
  .tool-card-body { padding: 20px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .deadline-row { flex-direction: column; gap: 8px; }
  .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; }
  .sopa-footer { padding: 32px 24px; }
  .results-actions { flex-direction: column; }
  .cross-promo { flex-direction: column; text-align: center; }
  .breadcrumb-inner { padding: 16px 20px 0; }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .claim-item-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 400px) {
  .state-grid { grid-template-columns: 1fr; }
}
