/* PalmTreeIQ — shared styles
   Corporate credibility, purple/teal palette with approachable San Diego roots */

:root {
  --navy: #4b2e97;
  --navy-deep: #352070;
  --slate: #6a5d92;
  --sand: #f8f7fc;
  --white: #ffffff;
  --palm: #0e8f86;
  --deep-green: #166534;
  --deep-green-soft: #e3f2e7;
  --palm-soft: #dcf1ee;
  --sunset: #14b8a6;
  --sunset-soft: #d9f4ef;
  --line: #e5e2ef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(75, 46, 151, 0.08);
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: #ffffff;
  line-height: 1.65;
  font-size: 17px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand svg { width: 34px; height: 34px; }

.brand-mark { height: 44px; width: auto; }
.brand-word { height: 19px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand-name .iq { color: var(--sunset); }

nav.links { display: flex; gap: 28px; align-items: center; }

nav.links a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav.links a:hover, nav.links a.active { color: var(--navy); }

nav.links a.active { border-bottom: 2px solid var(--sunset); padding-bottom: 3px; }

/* Keep the header CTA text light on the navy button (override nav link color) */
nav.links a.btn,
nav.links a.btn:hover,
nav.links a.btn.active { color: var(--white); border-bottom: none; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }

.btn.gold { background: var(--sunset); color: var(--navy-deep); }
.btn.gold:hover { background: #0ea394; }

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn.ghost:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  padding: 88px 0 72px;
  text-align: center;
}

.hero .eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--palm);
  background: var(--palm-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 820px;
  margin: 0 auto 20px;
}

h1 .accent { color: var(--sunset); }

.tagline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.tagline .t-map { color: var(--navy); }
.tagline .t-std { color: var(--palm); }
.tagline .t-mult { color: #8b5cf6; }

.hero p.lead, p.lead {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 680px;
  margin: 0 auto 34px;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Power hero (homepage) ---------- */
.hero-power {
  background: #2f1c66;
  text-align: left;
  padding: clamp(76px, 10vw, 124px) 0;
}
.hero-power .eyebrow {
  background: transparent;
  color: #14b8a6;
  padding-left: 0;
  margin-bottom: 20px;
}
.hero-power h1 {
  color: #ffffff;
  margin: 0 0 20px;
  max-width: 860px;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
}
.hero-power h1 .accent { color: #14b8a6; }
.hero-power .tagline { color: #ffffff; }
.hero-power .tagline .t-map { color: #ffffff; }
.hero-power .tagline .t-std { color: #14b8a6; }
.hero-power .tagline .t-mult { color: #b9a5ff; }
.hero-power p.lead { color: #c9c2e6; margin: 0 0 34px; max-width: 660px; text-align: left; }
.hero-power .tagline { text-align: left; margin-left: 0; }
.hero-power .hero-ctas { justify-content: flex-start; }
.hero-power .btn { background: #ffffff; color: #2f1c66; }
.hero-power .btn:hover { background: #ece9f6; }
.hero-power .btn.ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.55); }
.hero-power .btn.ghost:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }

section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.section-intro { color: var(--slate); max-width: 640px; margin-bottom: 44px; font-size: 1.08rem; }

.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p { color: var(--slate); font-size: 0.98rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sunset-soft);
  color: var(--sunset);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ---------- Branded card icons ---------- */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-head .step-num { margin-bottom: 0; }
.card-head .card-icon { margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--sunset-soft);
  margin-bottom: 18px;
}

.card-icon svg { width: 30px; height: 30px; display: block; }

/* ---------- Credibility strip ---------- */
.cred-strip { background: var(--navy-deep); color: var(--white); }

.cred-strip h2 { color: var(--white); }

.cred-strip .grid .item { text-align: center; padding: 8px; }

.cred-strip .big {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5vw, 3.7rem);
  font-weight: 700;
  color: #14b8a6;
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cred-strip .item p { color: #bfb9d9; font-size: 0.95rem; }

/* ---------- Story page ---------- */
.story-block { max-width: 720px; margin: 0 auto; }

.story-block p { margin-bottom: 22px; color: #453a68; font-size: 1.08rem; }

.story-block .drop {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
}

.tree-letters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0;
  flex-wrap: wrap;
}

.tree-letters .letter {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  text-align: center;
  min-width: 78px;
}

.tree-letters .letter .char {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--palm);
  display: block;
}

.tree-letters .letter .who { font-size: 0.72rem; color: var(--slate); }

.team-card { display: flex; flex-direction: column; }

.team-card .role {
  color: var(--sunset);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  background: var(--palm-soft);
  color: var(--palm);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 4px 4px 0 0;
}

.team-card .li-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.team-card .li-link:hover { color: var(--sunset); }

.team-card .li-link svg { flex-shrink: 0; }

/* ---------- Products ---------- */
.product-hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) { .product-hero-card { grid-template-columns: 1fr; } }

.status-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.status-pill.live { background: var(--palm-soft); color: var(--palm); }
.status-pill.soon { background: #ece8fa; color: #6b59c8; }

.gantt-visual {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.gantt-visual .bar {
  height: 22px;
  border-radius: 6px;
  margin-bottom: 12px;
  position: relative;
}

.gantt-visual .bar span {
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: #2f1c66;
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 64px 32px;
  margin: 0 24px;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: #bfb9d9; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #9f97bd;
  padding: 44px 0;
  margin-top: 72px;
  font-size: 0.92rem;
}

footer .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }

footer a { color: #d6d1e8; text-decoration: none; }
footer a:hover { color: var(--white); }

footer .brand-name { color: var(--white); font-size: 1.1rem; }

@media (max-width: 640px) {
  nav.links { gap: 16px; }
  nav.links .btn { padding: 9px 18px; }
  section { padding: 52px 0; }
  .hero { padding: 64px 0 52px; }
}

/* ---------- Left-aligned hero content (Story, Products) ---------- */
.hero { text-align: left; }
.hero h1 { margin-left: 0; margin-right: 0; }
.hero .tagline { text-align: left; margin-left: 0; }
.hero p.lead { margin-left: 0; margin-right: 0; text-align: left; }
