/* AI Good to Know — shared styles. Brand colors from /workspace/shared/brand/brand.md */
:root {
  --cream: #FFF8EC;
  --navy: #1F2A44;
  --coral: #FF6B5B;
  --yellow: #FFC94A;
  --sage: #4CAF7A;
  --peach: #FFE8D6;
  --white: #FFFFFF;
  --muted: #8A8FA3;
  --line: rgba(31, 42, 68, 0.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(31, 42, 68, 0.08);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

a:focus-visible,
button:focus-visible,
.nav-toggle-label:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--peach);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-label span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.site-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: none;
}

.site-nav a.nav-cta:hover {
  background: #162033;
  color: var(--white);
  box-shadow: none;
}

/* ---------- Layout ---------- */
main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.25rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede,
.section-intro {
  color: var(--navy);
  font-size: 1.125rem;
  max-width: 38rem;
}

.muted,
.section-intro {
  color: #5c6378;
}

.section-head + .section-intro {
  margin: -0.6rem 0 1.5rem;
}

.more-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.more-link:hover {
  color: var(--coral);
}

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  max-width: 16em;
  hyphens: none;
}

.hero .lede {
  margin: 1.15rem 0 1.6rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(320px, 100%);
  height: auto;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 18px 40px rgba(31, 42, 68, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
}

.btn:hover {
  background: #162033;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--peach);
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Tested tools strip ---------- */
.tested-tools {
  margin-top: 2.4rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tested-tools-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-chips li {
  display: inline-block;
  background: var(--peach);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 68, 0.08);
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.video-card,
.pack-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.video-card:hover,
.pack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(31, 42, 68, 0.12);
  color: var(--navy);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--peach);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card h3,
.pack-card h3 {
  padding: 0.95rem 1.05rem 0.25rem;
}

.video-card p,
.pack-card .pack-meta {
  padding: 0 1.05rem 1.1rem;
  margin: 0;
  color: #5c6378;
  font-size: 0.92rem;
  font-weight: 600;
}

.pack-card {
  padding: 0 0 0.25rem;
  min-height: 100%;
}

.pack-card h3 {
  padding-top: 1.15rem;
}

.price {
  display: inline-block;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}

.badge-free {
  display: inline-block;
  background: var(--peach);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 175, 122, 0.45);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

/* ---------- About / page intro ---------- */
.page-hero {
  padding: 2.75rem 0 1rem;
}

.page-hero .lede {
  margin: 0.9rem 0 0;
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.disclosure {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 5rem 1.25rem 6rem;
}

.not-found h1 {
  max-width: none;
}

.not-found p {
  margin: 0.9rem auto 1.6rem;
  max-width: 28rem;
  color: #5c6378;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  margin-top: 2rem;
  padding: 2.5rem 0 1.75rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 0.7rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--peach);
}

.footer-tagline {
  margin: 0;
  color: #d7d0c3;
  max-width: 22rem;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 0.7rem;
}

.footer-links,
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255, 248, 236, 0.15);
  color: #c9c3b6;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0 0 0.4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: 180px;
  }

  .card-grid,
  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding-top: 0.4rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
    background: transparent;
  }

  .site-nav a.nav-cta {
    margin-top: 0.4rem;
    text-align: center;
    border-bottom: 0;
  }

  .header-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .pack-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.4rem 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .tested-tools {
    margin-top: 1.75rem;
    padding: 1rem 1rem 1.1rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
