/*
Theme Name: Trade Start Lab
Theme URI: https://tradestartlab.com/
Author: Trade Start Lab
Description: A fast, accessible block theme for trading education, tools, and transparent affiliate content.
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: trade-start-lab
*/

:root {
  --tsl-navy-950: #07111f;
  --tsl-navy-900: #0b1728;
  --tsl-navy-800: #14243a;
  --tsl-teal: #22c7a9;
  --tsl-teal-dark: #0b8f7c;
  --tsl-amber: #f5b942;
  --tsl-sky: #7dd3fc;
  --tsl-ink: #172033;
  --tsl-muted: #5d687a;
  --tsl-line: #dce4ee;
  --tsl-surface: #ffffff;
  --tsl-soft: #f3f7fb;
  --tsl-radius: 18px;
  --tsl-shadow: 0 18px 55px rgba(7, 17, 31, .12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--tsl-soft);
  color: var(--tsl-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a { color: var(--tsl-teal-dark); text-underline-offset: .18em; }
a:hover { color: #076d61; }

.wp-site-blocks { min-height: 100vh; }

.home .wp-block-post-content { margin-block-start: 0; }

.tsl-shell,
.wp-block-group.alignwide,
.wp-block-columns.alignwide {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  background: rgba(7, 17, 31, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
  min-height: 76px;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  gap: 28px;
}

.tsl-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 800;
  gap: 11px;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.tsl-brand:hover { color: #fff; }

.tsl-brand__mark {
  align-items: center;
  background: linear-gradient(135deg, var(--tsl-teal), var(--tsl-sky));
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(34, 199, 169, .25);
  color: var(--tsl-navy-950);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  letter-spacing: -.04em;
  width: 38px;
}

.tsl-nav { align-items: center; display: flex; gap: 24px; }
.tsl-nav a { color: #dbe7f5; font-size: .93rem; font-weight: 650; text-decoration: none; }
.tsl-nav a:hover { color: #fff; }
.tsl-nav__cta {
  background: var(--tsl-amber);
  border-radius: 999px;
  color: var(--tsl-navy-950) !important;
  padding: 9px 15px;
}

.tsl-hero {
  background:
    radial-gradient(circle at 78% 15%, rgba(34, 199, 169, .2), transparent 32%),
    radial-gradient(circle at 18% 75%, rgba(125, 211, 252, .12), transparent 30%),
    var(--tsl-navy-950);
  color: #fff;
  overflow: hidden;
  padding: 104px 0 92px;
}

.tsl-eyebrow {
  align-items: center;
  color: #9be9dc;
  display: flex;
  font-size: .78rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: .12em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.tsl-eyebrow::before {
  background: var(--tsl-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(34, 199, 169, .1);
  content: "";
  height: 8px;
  width: 8px;
}

.tsl-hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  letter-spacing: -.055em;
  line-height: .98;
  margin: 0;
  max-width: 920px;
}

.tsl-hero h1 strong { color: var(--tsl-teal); font-weight: 850; }

.tsl-hero__copy {
  color: #c4d3e4;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  margin: 28px 0 34px;
  max-width: 690px;
}

.tsl-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tsl-button {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  padding: 12px 20px;
  text-decoration: none;
}
.tsl-button:hover { color: #fff; transform: translateY(-1px); }
.tsl-button--primary { background: var(--tsl-teal); border-color: var(--tsl-teal); color: var(--tsl-navy-950); }
.tsl-button--primary:hover { color: var(--tsl-navy-950); }

.tsl-proof {
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #9fb0c4;
  display: flex;
  flex-wrap: wrap;
  font-size: .88rem;
  gap: 24px;
  margin-top: 52px;
  padding-top: 24px;
}
.tsl-proof span::before { color: var(--tsl-teal); content: "✓"; font-weight: 900; margin-right: 8px; }

.tsl-section { padding: 88px 0; }
.tsl-section--white { background: #fff; }
.tsl-section--dark { background: var(--tsl-navy-900); color: #fff; }

.tsl-section__head { margin-bottom: 34px; max-width: 760px; }
.tsl-kicker { color: var(--tsl-teal-dark); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tsl-section--dark .tsl-kicker { color: #7ce4d1; }
.tsl-section h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; line-height: 1.08; margin: 8px 0 14px; }
.tsl-section--dark h2 { color: #fff; }
.tsl-section__intro { color: var(--tsl-muted); font-size: 1.08rem; }
.tsl-section--dark .tsl-section__intro { color: #b7c6d8; }

.tsl-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tsl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tsl-card {
  background: #fff;
  border: 1px solid var(--tsl-line);
  border-radius: var(--tsl-radius);
  box-shadow: 0 10px 34px rgba(7, 17, 31, .06);
  padding: 28px;
}
.tsl-card:hover { box-shadow: var(--tsl-shadow); transform: translateY(-3px); }
.tsl-card__number { color: var(--tsl-teal-dark); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.tsl-card h3 { font-size: 1.35rem; line-height: 1.2; margin: 15px 0 10px; }
.tsl-card p { color: var(--tsl-muted); margin: 0 0 17px; }
.tsl-card a { font-weight: 800; text-decoration: none; }

.tsl-standard {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--tsl-radius);
  padding: 30px;
}
.tsl-standard h3 { color: #fff; margin-top: 0; }
.tsl-standard p { color: #b7c6d8; margin-bottom: 0; }

.tsl-disclaimer {
  background: #fff8e9;
  border: 1px solid #f4d28b;
  border-radius: 14px;
  color: #684915;
  font-size: .93rem;
  margin: 34px auto;
  padding: 18px 20px;
  width: min(1180px, calc(100% - 40px));
}

.tsl-content {
  background: #fff;
  border: 1px solid var(--tsl-line);
  border-radius: var(--tsl-radius);
  box-shadow: 0 12px 40px rgba(7, 17, 31, .06);
  margin: 54px auto 72px;
  padding: clamp(28px, 5vw, 64px);
  width: min(900px, calc(100% - 40px));
}
.tsl-content h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.05; }
.tsl-content h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.03em; margin-top: 2.2em; }
.tsl-content h3 { margin-top: 1.8em; }
.tsl-content li { margin-bottom: .55em; }
.tsl-content .wp-block-query { margin-top: 32px; }

.site-footer { background: var(--tsl-navy-950); color: #aebdd0; padding: 60px 0 28px; }
.site-footer__grid { display: grid; gap: 42px; grid-template-columns: 1.3fr 1fr 1fr; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { font-size: 1.25rem; margin: 0 0 12px; }
.site-footer h3 { font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #d5e1ee; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; margin-top: 42px; padding-top: 22px; }

@media (max-width: 900px) {
  .tsl-nav { gap: 15px; }
  .tsl-nav a:not(.tsl-nav__cta) { display: none; }
  .tsl-grid, .tsl-grid--2, .site-footer__grid { grid-template-columns: 1fr; }
  .tsl-hero { padding: 78px 0 70px; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (prefers-reduced-motion: no-preference) {
  .tsl-card, .tsl-button { transition: transform .2s ease, box-shadow .2s ease; }
}
