/* ============================================================
   YourIQ.AI — Public Brand Stylesheet
   Loads after theme.css. All colors come from theme.css variables.
   Owner: Bret Fencl — wellness/lifestyle/technology brand
   Visual: premium, calm, elegant, human, welcoming
   ============================================================ */

/* === ALIAS MAP — bridge legacy page vars to approved palette === */
:root {
  --primary:   var(--gold);       /* purple → gold */
  --accent:    var(--pink);       /* cyan  → pink  */
  --text-muted: var(--muted);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* === OUTER BAND — luxury thin accent frame at top and bottom === */
/* The "outer band": a hair-fine gradient stripe across top and bottom of every page.
   Signals premium brand immediately. Visible in both light and dark mode. */
body::before,
body::after {
  content: '';
  display: block;
  position: fixed;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--gold) 0%,
    var(--pink) 40%,
    var(--silver) 70%,
    var(--gold) 100%
  );
  z-index: 10000;
  pointer-events: none;
}
body::before { top: 0; }
body::after  { bottom: 0; }

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; opacity: .85; }

/* === NAV === */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  height: 60px;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 800;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap; margin-right: auto;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang-toggle {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; font-size: .85rem;
  transition: border-color .2s, color .2s; font-family: var(--font);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--text); }

/* === BUTTONS === */
.btn-nav, .btn-signup {
  background: var(--gold); color: #000;
  border: none; border-radius: 8px;
  padding: 8px 18px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s; white-space: nowrap;
  font-family: var(--font);
}
.btn-nav:hover, .btn-signup:hover { opacity: .88; }

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #000; border-radius: 10px;
  padding: 14px 32px; font-size: 1.05rem; font-weight: 700;
  transition: transform .2s, opacity .2s;
  border: none; cursor: pointer; font-family: var(--font);
}
.btn-cta:hover { transform: translateY(-2px); opacity: .92; text-decoration: none; }

.btn-outline-gold {
  display: inline-block; background: transparent;
  border: 1.5px solid var(--gold); color: var(--gold);
  border-radius: 8px; padding: 10px 24px; font-size: .95rem;
  font-weight: 600; cursor: pointer; transition: all .2s;
  font-family: var(--font);
}
.btn-outline-gold:hover { background: rgba(var(--gold-rgb),.1); text-decoration: none; }

/* === HERO === */
.hero {
  max-width: 900px; margin: 0 auto;
  padding: 5.5rem 1.5rem 3.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.15;
  background: linear-gradient(135deg, var(--text), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted); max-width: 680px; margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-tag {
  display: inline-block;
  background: rgba(var(--gold-rgb), .08);
  border: 1px solid rgba(var(--gold-rgb), .25);
  color: var(--gold); border-radius: 20px;
  padding: .3rem .9rem; font-size: .82rem; font-weight: 600;
  margin-bottom: 1.5rem; letter-spacing: .05em;
}

/* === SECTIONS === */
section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; text-align: center; margin-bottom: .5rem;
}
.section-sub {
  text-align: center; color: var(--muted);
  margin-bottom: 2.5rem; font-size: 1rem;
}

/* === FEATURE CARDS === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--text); }
.feature-card p { color: var(--muted); font-size: .93rem; }

/* === AGENTS SECTION === */
.agents-section { background: var(--surface); }
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.agent-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: border-color .2s, transform .2s;
}
.agent-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.agent-num {
  font-size: .75rem; color: var(--gold);
  font-weight: 700; margin-bottom: .3rem;
}
.agent-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.agent-card p { color: var(--muted); font-size: .85rem; }

/* === QUOTE === */
.quote-section { text-align: center; }
.quote-box {
  max-width: 700px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 2rem;
}
.quote-box blockquote {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic; line-height: 1.6;
}
.quote-attr { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

/* === PRICING TEASER === */
.pricing-teaser {
  background: var(--surface);
  border: 1px solid rgba(var(--gold-rgb), .3);
  border-radius: var(--radius);
  max-width: 600px; margin: 0 auto; text-align: center; padding: 2.5rem;
}
.price-big { font-size: 3.5rem; font-weight: 800; color: var(--gold); }
.price-label { color: var(--muted); margin-bottom: 1.5rem; }

/* === PLAN CARDS === */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-bottom: 3rem;
}
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem; position: relative;
  transition: border-color .2s, transform .2s;
}
.plan-card:hover { transform: translateY(-2px); }
.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(var(--gold-rgb), .12);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; border-radius: 20px;
  padding: .25rem .85rem; font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; margin: .75rem 0 .25rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; min-height: 2.5rem; }
.plan-features { list-style: none; margin-bottom: 1.75rem; }
.plan-features li { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; color: var(--muted); margin-bottom: .45rem; }
.plan-features li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }
.btn-plan {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #000; border: none; border-radius: 8px;
  padding: .8rem; font-size: .95rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: opacity .2s;
}
.btn-plan:hover { opacity: .9; text-decoration: none; }
.btn-plan-outline {
  background: transparent; border: 1.5px solid var(--gold); color: var(--gold);
}
.btn-plan-outline:hover { background: rgba(var(--gold-rgb), .1); }

/* === COMPARISON TABLE === */
.comparison-wrap { overflow-x: auto; margin-bottom: 3rem; }
.cmp-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; min-width: 500px; }
.cmp-table th { background: rgba(var(--gold-rgb), .06); padding: .85rem 1rem; font-size: .82rem; text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.cmp-table th:first-child { text-align: left; }
.cmp-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--muted); text-align: center; }
.cmp-table td:first-child { text-align: left; color: var(--text); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-yes { color: var(--green); font-weight: 700; }
.cmp-no { color: var(--border); }

/* === TRIAL PILL === */
.trial-note {
  display: inline-block;
  background: rgba(var(--green-rgb), .1); border: 1px solid rgba(var(--green-rgb), .3);
  color: var(--green); border-radius: 20px; padding: .35rem 1.1rem;
  font-size: .88rem; font-weight: 600; margin-bottom: 2rem;
}

/* === FOOTER === */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 2rem 1.5rem; text-align: center;
  color: var(--muted); font-size: .88rem;
}
footer a { color: var(--muted); margin: 0 .5rem; }
footer a:hover { color: var(--text); text-decoration: none; }
.footer-links { margin-top: .5rem; }

/* === LIGHT MODE ADJUSTMENTS — white-background card depth === */
[data-theme="light"] .feature-card { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
[data-theme="light"] .agent-card { box-shadow: 0 2px 8px rgba(0,0,0,.05); }
[data-theme="light"] .quote-box { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
[data-theme="light"] .pricing-teaser { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* === DARK MODE ADJUSTMENTS === */
[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, #ffffff, var(--gold));
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="dark"] .nav-logo {
  background: linear-gradient(90deg, var(--gold), var(--pink));
  -webkit-background-clip: text; background-clip: text;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 1.25rem 2.5rem; }
  section { padding: 3rem 1.25rem; }
}
