/* ============================================
   InvestIQ LLC corporate site
   Single stylesheet, no framework dependency
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #0f172a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: #1e3a8a;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: #0c2461;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  color: #0f172a;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p { margin: 0 0 1rem; }

/* ============================================
   Layout container
   ============================================ */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: #0f172a;
}

.brand:hover { text-decoration: none; color: #0f172a; }

.brand-mark {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-iq {
  color: #1e3a8a;
}

.brand-suffix {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  text-transform: uppercase;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.hero .eyebrow {
  margin: 0 0 0.875rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1e3a8a;
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #1e3a8a;
  border-radius: 2px;
}

.about p {
  max-width: 720px;
  color: #334155;
}

/* ============================================
   Product card
   ============================================ */
.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  background: #ffffff;
  max-width: 720px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-head h3 {
  margin: 0;
  color: #0f172a;
}

.product-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.product-card p {
  color: #334155;
  margin-bottom: 1rem;
}

.product-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   Contact card
   ============================================ */
.contact-card {
  font-style: normal;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  max-width: 720px;
  background: #ffffff;
}

.contact-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { padding-bottom: 0; border-bottom: none; }

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  padding-top: 0.2rem;
}

.contact-value {
  color: #0f172a;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .contact-card { padding: 1.25rem 1.25rem; }
}

/* ============================================
   Legal pages (Privacy, Terms)
   ============================================ */
.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
}

.legal-meta {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.legal h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: 0;
}

.legal h2::after {
  display: none;
}

.legal p {
  max-width: 720px;
  color: #334155;
}

.legal-back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.legal-back a {
  font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.75rem 0;
  margin-top: 1.5rem;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-meta {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
