/* ============================================================================
 * MyGrow Toolkit — scoped to .mgc-toolkit
 *
 * Stays inside the .app-shell grid (no min-height:100vh leaks). Brand stays
 * warm/earthy/garden — uses the existing CSS vars from main.css.
 * Mobile breakpoint matches the app-shell drawer at 1100px.
 * ============================================================================ */

.mgc-toolkit {
  padding: 92px 1.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--text-dark, #2a2118);
}
.mgc-toolkit .hero { min-height: 0; } /* defuse main.css .hero leak */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.mgc-toolkit .tk-hero {
  background: linear-gradient(135deg, #f4ead5 0%, #e8dcc0 100%);
  border: 1px solid rgba(90, 60, 40, 0.08);
  border-radius: 24px;
  padding: 3rem 2.4rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 24px rgba(60, 40, 20, 0.06);
}
.mgc-toolkit .tk-hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  color: #6b4f2a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.mgc-toolkit .tk-hero-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #3d2b14;
  font-weight: 700;
}
.mgc-toolkit .tk-hero-sub {
  font-size: 1.05rem;
  max-width: 640px;
  color: #5c4527;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.mgc-toolkit .tk-hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.mgc-toolkit .tk-hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(90, 60, 40, 0.12);
  padding-top: 1.2rem;
}
.mgc-toolkit .tk-hero-stats > div {
  display: flex;
  flex-direction: column;
}
.mgc-toolkit .tk-hero-stats strong {
  font-size: 1.6rem;
  color: #3d2b14;
  font-weight: 700;
}
.mgc-toolkit .tk-hero-stats span {
  font-size: 0.82rem;
  color: #6b4f2a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Category tiles ──────────────────────────────────────────────────── */
.mgc-toolkit .tk-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}
.mgc-toolkit .tk-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 16px;
  padding: 1rem 0.8rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.15s;
  text-align: center;
}
.mgc-toolkit .tk-cat-tile:hover {
  border-color: rgba(60, 110, 60, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 90, 40, 0.1);
}
.mgc-toolkit .tk-cat-tile.active {
  background: #e9f3df;
  border-color: rgba(60, 110, 60, 0.5);
}
.mgc-toolkit .tk-cat-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.mgc-toolkit .tk-cat-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #3d2b14;
}
.mgc-toolkit .tk-cat-count {
  font-size: 0.74rem;
  color: #6b4f2a;
  margin-top: 0.2rem;
}

/* ── Section heads ───────────────────────────────────────────────────── */
.mgc-toolkit .tk-section {
  margin-bottom: 2.4rem;
}
.mgc-toolkit .tk-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.mgc-toolkit .tk-section-head h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #3d2b14;
}
.mgc-toolkit .tk-section-head p {
  margin: 0.3rem 0 0;
  color: #6b4f2a;
  font-size: 0.92rem;
}
.mgc-toolkit .tk-search {
  display: flex;
  gap: 0.4rem;
}
.mgc-toolkit .tk-search input[type="search"] {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(90, 60, 40, 0.18);
  border-radius: 100px;
  background: #fff;
  font-size: 0.92rem;
  min-width: 220px;
}

/* ── Card grid ───────────────────────────────────────────────────────── */
.mgc-toolkit .tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.mgc-toolkit .tk-card {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
}
.mgc-toolkit .tk-card:hover {
  border-color: rgba(60, 110, 60, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(60, 40, 20, 0.1);
}
.mgc-toolkit .tk-card-ai {
  background: linear-gradient(180deg, #fff 0%, #f3edff 100%);
}
.mgc-toolkit .tk-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4ead5;
  overflow: hidden;
}
.mgc-toolkit .tk-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mgc-toolkit .tk-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #f4ead5 0%, #e8dcc0 100%);
}
.mgc-toolkit .tk-card-flag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mgc-toolkit .tk-card-flag-featured {
  background: #f7d358;
  color: #3d2b14;
}
.mgc-toolkit .tk-card-flag-ai {
  background: #8b5cf6;
  color: #fff;
  top: 0.6rem;
  left: auto;
  right: 0.6rem;
}
.mgc-toolkit .tk-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mgc-toolkit .tk-card-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.mgc-toolkit .tk-card-cat {
  font-size: 0.72rem;
  color: #6b4f2a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.mgc-toolkit .tk-card-tier {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
}
.mgc-toolkit .tk-tier-free            { background: #e9f3df; color: #2f5b1f; }
.mgc-toolkit .tk-tier-grower_plus     { background: #dbe9ff; color: #1e3d80; }
.mgc-toolkit .tk-tier-grower_pro      { background: #f1e0ff; color: #5b1e80; }
.mgc-toolkit .tk-tier-organization_plus { background: #ffe9d6; color: #803a1e; }
.mgc-toolkit .tk-card-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.mgc-toolkit .tk-card-title a {
  color: #3d2b14;
  text-decoration: none;
}
.mgc-toolkit .tk-card-title a:hover { color: var(--green-deep, #2f5b1f); }
.mgc-toolkit .tk-card-desc {
  font-size: 0.88rem;
  color: #5c4527;
  margin: 0 0 0.85rem;
  line-height: 1.45;
  flex: 1;
}
.mgc-toolkit .tk-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(90, 60, 40, 0.08);
  padding-top: 0.7rem;
  gap: 0.5rem;
}
.mgc-toolkit .tk-card-format {
  font-size: 0.72rem;
  color: #6b4f2a;
  font-weight: 600;
}
.mgc-toolkit .tk-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  text-decoration: none;
}
.mgc-toolkit .tk-cta-go     { background: #2f5b1f; color: #fff; }
.mgc-toolkit .tk-cta-buy    { background: #f7d358; color: #3d2b14; }
.mgc-toolkit .tk-cta-locked { background: #f0e8da; color: #6b4f2a; }
.mgc-toolkit .tk-cta-email  { background: #dbe9ff; color: #1e3d80; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.mgc-toolkit .tk-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border: 1px dashed rgba(90, 60, 40, 0.18);
  border-radius: 16px;
}
.mgc-toolkit .tk-empty-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.mgc-toolkit .tk-empty h3 { margin: 0 0 0.4rem; color: #3d2b14; }
.mgc-toolkit .tk-empty p  { margin: 0; color: #6b4f2a; }

/* ── Tier comparison strip ───────────────────────────────────────────── */
.mgc-toolkit .tk-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 3rem 0 1.5rem;
}
.mgc-toolkit .tk-tier-card {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.12);
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.mgc-toolkit .tk-tier-card.highlighted {
  border: 2px solid #2f5b1f;
  box-shadow: 0 6px 18px rgba(47, 91, 31, 0.18);
}
.mgc-toolkit .tk-tier-pill {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  background: #f4ead5;
  color: #6b4f2a;
  margin-bottom: 0.7rem;
}
.mgc-toolkit .tk-tier-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.3rem;
  color: #3d2b14;
}
.mgc-toolkit .tk-tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  flex: 1;
}
.mgc-toolkit .tk-tier-card li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  color: #5c4527;
  font-size: 0.92rem;
}
.mgc-toolkit .tk-tier-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2f5b1f;
  font-weight: 700;
}

/* ── Explainer + FAQ (SEO + AI-engine answer source) ─────────────────── */
.mgc-toolkit .tk-explainer {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.mgc-toolkit .tk-explainer h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: #3d2b14;
}
.mgc-toolkit .tk-explainer h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.1rem;
  color: #2f5b1f;
}
.mgc-toolkit .tk-explainer p {
  margin: 0 0 0.85rem;
  color: #3d2b14;
  line-height: 1.65;
  font-size: 0.98rem;
}
.mgc-toolkit .tk-explainer strong { color: #2f5b1f; }
.mgc-toolkit .tk-howto {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.2rem;
  color: #3d2b14;
}
.mgc-toolkit .tk-howto li {
  padding: 0.25rem 0;
  line-height: 1.55;
}
.mgc-toolkit .tk-faq {
  border-top: 1px solid rgba(90, 60, 40, 0.1);
  padding: 0.8rem 0 0.4rem;
}
.mgc-toolkit .tk-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #3d2b14;
  padding: 0.4rem 0;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mgc-toolkit .tk-faq summary::-webkit-details-marker { display: none; }
.mgc-toolkit .tk-faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #6b4f2a;
  font-weight: 400;
  transition: transform 0.15s;
}
.mgc-toolkit .tk-faq[open] summary::after {
  content: '−';
}
.mgc-toolkit .tk-faq p {
  margin: 0.2rem 0 0.7rem;
  color: #5c4527;
  line-height: 1.6;
  font-size: 0.94rem;
}

.mgc-toolkit .tk-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: #6b4f2a;
  max-width: 760px;
  margin: 2rem auto 0;
  line-height: 1.55;
}
.mgc-toolkit .tk-disclaimer a { color: #6b4f2a; }

/* ── Detail page ─────────────────────────────────────────────────────── */
.mgc-toolkit .tk-crumbs {
  font-size: 0.85rem;
  color: #6b4f2a;
  margin-bottom: 1.5rem;
}
.mgc-toolkit .tk-crumbs a { color: #2f5b1f; text-decoration: none; }
.mgc-toolkit .tk-crumbs .sep { margin: 0 0.4rem; opacity: 0.5; }
.mgc-toolkit .tk-crumbs .current { color: #3d2b14; font-weight: 600; }

.mgc-toolkit .tk-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.mgc-toolkit .tk-detail-preview {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.1);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.4rem;
}
.mgc-toolkit .tk-detail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mgc-toolkit .tk-detail-placeholder { aspect-ratio: 4 / 3; }
.mgc-toolkit .tk-detail-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.85rem;
}
.mgc-toolkit .tk-pill-ai {
  background: #8b5cf6;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
}
.mgc-toolkit .tk-detail-downloads {
  font-size: 0.78rem;
  color: #6b4f2a;
}
.mgc-toolkit .tk-detail-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 0.6rem;
  color: #3d2b14;
  line-height: 1.2;
}
.mgc-toolkit .tk-detail-lead {
  font-size: 1.05rem;
  color: #5c4527;
  margin: 0 0 1.3rem;
  line-height: 1.55;
}
.mgc-toolkit .tk-detail-long {
  color: #3d2b14;
  font-size: 0.96rem;
  line-height: 1.65;
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.08);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
}
.mgc-toolkit .tk-detail-disclaimer {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: #6b4f2a;
  background: #fff8eb;
  border: 1px solid #f3e3b8;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.mgc-toolkit .tk-detail-cta {
  background: #fff;
  border: 1px solid rgba(90, 60, 40, 0.12);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  position: sticky;
  top: 110px;
}
.mgc-toolkit .tk-cta-price {
  font-size: 2rem;
  font-weight: 700;
  color: #3d2b14;
  margin-bottom: 0.4rem;
}
.mgc-toolkit .tk-cta-lock,
.mgc-toolkit .tk-cta-gift,
.mgc-toolkit .tk-cta-ready { font-size: 2.4rem; margin-bottom: 0.6rem; }
.mgc-toolkit .tk-detail-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #3d2b14;
}
.mgc-toolkit .tk-cta-desc {
  margin: 0 0 1.2rem;
  color: #5c4527;
  font-size: 0.92rem;
  line-height: 1.5;
}
.mgc-toolkit .tk-cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.mgc-toolkit .tk-cta-form input[type="email"] {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(90, 60, 40, 0.18);
  border-radius: 12px;
  font-size: 0.92rem;
}
.mgc-toolkit .tk-cta-button {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 0.4rem;
}
.mgc-toolkit .tk-cta-trust {
  border-top: 1px solid rgba(90, 60, 40, 0.08);
  padding-top: 0.85rem;
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #6b4f2a;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mgc-toolkit { padding: 88px 1rem 3rem; }
  .mgc-toolkit .tk-hero { padding: 2rem 1.4rem; border-radius: 18px; }
  .mgc-toolkit .tk-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .mgc-toolkit .tk-detail-cta { position: static; }
  .mgc-toolkit .tk-section-head { flex-direction: column; align-items: stretch; }
  .mgc-toolkit .tk-search input[type="search"] { min-width: 0; flex: 1; }
}
