/* ============================================================
   PHAKAMA ANALYTICS — phakamaanalytics.co.za
   Brand source of truth: 10_Brand/Brand_Guidelines_v1.md
   Navy #0B1F3A · Gold #F2B33D · Off-white #F4F4F2 · Charcoal #1A1A1A
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-soft: #102845;
  --gold: #F2B33D;
  --gold-deep: #D69620;
  --white: #FFFFFF;
  --off-white: #F4F4F2;
  --grey: #6B6B6B;
  --grey-light: #E5E5E0;
  --charcoal: #1A1A1A;

  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section-y: clamp(4rem, 8vw, 7rem);

  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.06), 0 4px 16px rgba(11, 31, 58, 0.05);
  --shadow-md: 0 8px 28px rgba(11, 31, 58, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max-w), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--grey-light);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.9rem;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--navy);
}
.nav-links a:hover { color: var(--gold-deep); }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--navy); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-on-dark {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55);
}
.btn-ghost-on-dark:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ============================================================
   HERO
============================================================ */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(242,179,61,0.18), transparent 45%),
    linear-gradient(140deg, var(--navy) 0%, #07172E 100%);
  color: var(--white);
  padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--gold);
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.82);
  max-width: 56ch; margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-strap {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 600;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.10);
  max-width: 800px;
}
.hero-strap span::before {
  content: "★"; color: var(--gold); margin-right: 0.5rem; opacity: 0.7;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(242,179,61,0.16);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* ============================================================
   PROBLEM / WEDGE
============================================================ */
.wedge { background: var(--off-white); border-bottom: 1px solid var(--grey-light); }
.wedge-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .wedge-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.wedge-pricing { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid var(--grey-light); }
.wedge-pricing h4 { color: var(--grey); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.2rem; }
.wedge-pricing dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.8rem 1rem; }
.wedge-pricing dt { color: var(--charcoal); }
.wedge-pricing dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.wedge-pricing dd.cross { text-decoration: line-through; color: var(--grey); font-weight: 500; }
.wedge-pricing dt small { color: var(--grey); font-size: 0.8rem; display: block; }

/* ============================================================
   WHAT — products
============================================================ */
.products { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 720px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.product-icon {
  width: 44px; height: 44px;
  background: var(--navy); color: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 1rem;
}
.product h3 { margin-bottom: 0.4rem; }
.product .cadence {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.product p { color: var(--charcoal); font-size: 0.95rem; margin-bottom: 0; }

/* ============================================================
   HOW IT WORKS
============================================================ */
.how { background: var(--navy); color: var(--white); }
.how h2 { color: var(--white); }
.how .eyebrow { color: var(--gold); }
.how p, .how li { color: rgba(255,255,255,0.78); }
.how-steps {
  margin-top: 2.5rem;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .how-steps { grid-template-columns: repeat(4, 1fr); } }
.how-step {
  background: var(--navy-soft);
  border: 1px solid rgba(242,179,61,0.18);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
}
.how-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -16px; left: 20px;
  font-size: 1.8rem; font-weight: 900; color: var(--gold);
  background: var(--navy);
  padding: 0 0.5rem; line-height: 1;
}
.how-step h3 { color: var(--white); font-size: 1.05rem; margin-top: 0.6rem; }
.how-step p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin-bottom: 0; }

/* ============================================================
   PRICING
============================================================ */
.pricing-cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 720px) { .pricing-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .pricing-cards { grid-template-columns: repeat(4, 1fr); } }
.tier {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tier.featured {
  border-color: var(--gold);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.tier.featured h3, .tier.featured .price-num { color: var(--white); }
.tier.featured p, .tier.featured .price-meta, .tier.featured .tier-target, .tier.featured ul li { color: rgba(255,255,255,0.78); }
.tier.featured ul li svg { color: var(--gold); }
.tier-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 40px;
}
.tier-name { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); margin: 0; }
.tier-name small { display: block; font-weight: 500; font-size: 0.85rem; color: var(--grey); margin-top: 0.2rem; letter-spacing: normal; text-transform: none; }
.tier-target { font-size: 0.85rem; color: var(--grey); margin: 0.6rem 0 1.2rem; min-height: 2.4em; }
.price-num { font-size: 2.6rem; font-weight: 900; color: var(--navy); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-meta { font-size: 0.85rem; color: var(--grey); margin-top: 0.3rem; }
.tier ul { list-style: none; padding: 0; margin: 1.5rem 0; flex: 1; }
.tier ul li {
  font-size: 0.92rem; padding: 0.45rem 0;
  display: flex; gap: 0.6rem; align-items: flex-start;
  border-bottom: 1px solid var(--grey-light);
}
.tier.featured ul li { border-bottom-color: rgba(255,255,255,0.08); }
.tier ul li svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--gold-deep); }
.tier .btn { width: 100%; justify-content: center; }
.tier-no-contract {
  text-align: center;
  font-size: 0.78rem; color: var(--grey); letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 1rem;
}
.tier.featured .tier-no-contract { color: rgba(255,255,255,0.52); }

/* ============================================================
   SAMPLE / EVIDENCE
============================================================ */
.sample { background: var(--off-white); }
.sample-grid {
  display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .sample-grid { grid-template-columns: 1fr 1.1fr; } }
.sample-img-wrap {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.18);
  transform: rotate(-1.5deg);
  transition: transform 0.3s;
}
.sample-img-wrap:hover { transform: rotate(0deg) scale(1.02); }
.sample-img-wrap img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-light);
}

/* ============================================================
   FAQ
============================================================ */
.faq-list { margin-top: 2rem; max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--grey-light);
  padding: 1.2rem 0;
}
.faq-item summary {
  font-weight: 700; font-size: 1.05rem; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  list-style: none;
  padding-right: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--gold-deep); font-size: 1.4rem; font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 0.7rem; color: var(--charcoal); }

/* ============================================================
   CTA STRIP
============================================================ */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  text-align: center;
  border-bottom: 4px solid var(--gold);
}
.cta h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta p { color: rgba(255,255,255,0.78); max-width: 50ch; margin: 1rem auto 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #07172E;
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-top {
  display: grid; gap: 3rem; grid-template-columns: 1fr;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand img { height: 32px; margin-bottom: 0.8rem; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.55); max-width: 28ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.3rem 0; }
.footer-col a { color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom em { color: var(--gold); font-style: italic; font-weight: 600; }

/* ============================================================
   LEGAL PAGES (privacy / terms)
============================================================ */
.legal {
  max-width: 800px; margin-inline: auto;
  padding-block: 4rem 6rem;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal p, .legal li { line-height: 1.75; color: var(--charcoal); }
.legal table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.legal table th, .legal table td {
  text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--grey-light);
  font-size: 0.95rem;
}
.legal table th { background: var(--navy); color: var(--white); border-bottom-color: var(--gold); }
.legal hr { border: 0; border-top: 1px solid var(--grey-light); margin: 2rem 0; }
.legal a { color: var(--gold-deep); }
.legal-meta { color: var(--grey); font-size: 0.9rem; margin-bottom: 2rem; }
