/* ==============================================
   AI Finance Weekly — Shared Stylesheet
   aifinanceweekly.co.uk
   ============================================== */

/* Design Tokens */
:root {
  --navy:        #0f172a;
  --navy-mid:    #1e293b;
  --emerald:     #10b981;
  --emerald-dk:  #059669;
  --emerald-lt:  #d1fae5;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ==============================================
   Layout
   ============================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================
   Navigation
   ============================================== */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--emerald);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--emerald {
  background: var(--emerald);
  color: var(--navy);
}
.btn--emerald:hover { background: var(--emerald-dk); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--lg {
  font-size: 1rem;
  padding: 13px 26px;
}

/* Nav mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s;
}

/* ==============================================
   Hero
   ============================================== */
.hero {
  background: var(--navy);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.15);
  color: var(--emerald);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,.25);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero__title span { color: var(--emerald); }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-bottom: 14px;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: .95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,.35); }
.subscribe-form input[type="email"]:focus { border-color: var(--emerald); }
.hero__trust {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trust::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
}

/* ==============================================
   Section headings
   ============================================== */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section--navy .section__title { color: var(--white); }
.section__lead {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 540px;
  line-height: 1.65;
}
.section--navy .section__lead { color: rgba(255,255,255,.6); }

/* ==============================================
   Feature cards (3-col)
   ============================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card__text {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ==============================================
   Article cards
   ============================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__badge {
  background: var(--emerald-lt);
  color: var(--emerald-dk);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}
.article-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.article-card__date { font-size: .8rem; color: var(--gray-500); }
.article-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card__excerpt {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.article-card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--emerald-dk);
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-card__link:hover { gap: 8px; }
.article-card__link::after { content: '→'; transition: margin .15s; }

/* ==============================================
   Inline CTA strip
   ============================================== */
.cta-strip {
  background: var(--navy);
  padding: 56px 0;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-strip__text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  max-width: 500px;
  line-height: 1.35;
}
.cta-strip__text span { color: var(--emerald); }
.cta-strip__form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cta-strip__form input[type="email"] {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font-sans);
  width: 240px;
  outline: none;
  transition: border-color .15s;
}
.cta-strip__form input[type="email"]::placeholder { color: rgba(255,255,255,.35); }
.cta-strip__form input[type="email"]:focus { border-color: var(--emerald); }

/* ==============================================
   Stat bar
   ============================================== */
.stats {
  display: flex;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: 48px 0;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat__number span { color: var(--emerald); }
.stat__label {
  font-size: .8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ==============================================
   Blog article layout
   ============================================== */
.article-header {
  background: var(--navy);
  padding: 64px 0 56px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.article-header__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 700px;
}
.article-header__intro {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 600px;
  line-height: 1.65;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
  margin: 40px 0 14px;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
.article-body p { margin-bottom: 18px; font-size: 1rem; line-height: 1.75; }
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
.article-body li { margin-bottom: 6px; line-height: 1.7; }
.article-body strong { font-weight: 700; color: var(--navy); }
.article-body a { color: var(--emerald-dk); text-decoration: underline; }
.article-body a:hover { color: var(--emerald); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: .875rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-body table th {
  background: var(--gray-50);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.article-body table td {
  padding: 12px 14px;
  border-top: 1px solid var(--gray-200);
  vertical-align: top;
}
.article-body table tr:hover td { background: var(--gray-50); }
.disclosure {
  background: var(--gray-50);
  border-left: 3px solid var(--emerald);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  line-height: 1.6;
}
.inline-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.inline-cta__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.inline-cta__text {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.affiliate-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 4px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.affiliate-box__name {
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
}
.affiliate-box__desc {
  font-size: .85rem;
  color: var(--gray-500);
}

/* ==============================================
   Page hero (non-home)
   ============================================== */
.page-hero {
  background: var(--navy);
  padding: 56px 0 52px;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero__title span { color: var(--emerald); }
.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 500px;
  line-height: 1.6;
}

/* ==============================================
   Advertise page
   ============================================== */
.ad-formats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.ad-format-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
}
.ad-format-card__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--emerald-dk);
  margin-bottom: 10px;
}
.ad-format-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.ad-format-card__desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
}
.ad-format-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}
.ad-format-card__price span {
  font-size: .75rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* ==============================================
   About page
   ============================================== */
.about-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.about-body p { font-size: 1rem; line-height: 1.8; margin-bottom: 20px; }
.about-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
}
.about-body strong { font-weight: 700; color: var(--navy); }
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}
.value-item {
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.value-item__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.value-item__text { font-size: .875rem; color: var(--gray-500); line-height: 1.55; }

/* ==============================================
   Footer
   ============================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__brand-desc { font-size: .85rem; line-height: 1.6; }
.footer__col-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 14px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: .8rem; }
.footer__legal {
  display: flex;
  gap: 18px;
  list-style: none;
}
.footer__legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: color .15s;
}
.footer__legal a:hover { color: rgba(255,255,255,.8); }

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav__links.open .nav__cta-mobile { display: block; margin-top: 8px; width: 100%; }

  .features { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { width: 100%; }
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .cta-strip__form { flex-direction: column; width: 100%; }
  .cta-strip__form input[type="email"] { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .values { grid-template-columns: 1fr; }
  .stats { justify-content: center; gap: 32px; }
}
