/* ================================================================
   Coloredu — Marketing site shared styles
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #FFF8E7;
  --cream: #FFFDF5;
  --ink: #2B1B1B;
  --muted: #7A6A6A;
  --accent1: #FF6B6B;
  --accent2: #FFD93D;
  --accent3: #6BCB77;
  --accent4: #4D96FF;
  --accent5: #FF9A3C;
  --accent6: #C77DFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { font-size: 1.05rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); }
.eyebrow { display: inline-block; background: var(--accent2); color: var(--ink);
  padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.02rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent1); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); background: #ff5757; }
.btn-secondary { background: white; color: var(--ink); box-shadow: var(--shadow-sm);
  border: 2px solid #F0E4CC; }
.btn-secondary:hover { background: #FFFDF5; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-lg { padding: 18px 36px; font-size: 1.12rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,248,231,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: 'Baloo 2', cursive; font-size: 1.55rem; font-weight: 800;
  color: var(--accent1); display: flex; align-items: center; gap: 4px;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-weight: 700; color: var(--ink); transition: color 0.15s; font-size: 0.98rem; }
.nav a:hover { color: var(--accent1); }
@media (max-width: 768px) { .nav a:not(.btn) { display: none; } }

/* ===== Hero (home) ===== */
.hero {
  padding: 60px 0 90px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 25%, #FFF5CC 0%, transparent 45%),
    radial-gradient(circle at 82% 75%, #FFE0E8 0%, transparent 45%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; } }
.hero h1 .accent { color: var(--accent1); }
.hero h1 .accent2 { color: var(--accent4); }
.hero .lead { margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-ctas { justify-content: center; } }
.trust-bar {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px;
  font-size: 0.95rem; color: var(--muted); font-weight: 600;
}
@media (max-width: 900px) { .trust-bar { justify-content: center; } }
.trust-bar span { display: inline-flex; align-items: center; gap: 6px; }
.hero-preview {
  position: relative; aspect-ratio: 4/5; max-width: 440px;
  margin: 0 auto; background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 8px solid white;
  overflow: hidden;
  transform: rotate(-2deg);
}
.hero-preview canvas { width: 100%; height: 100%; background:
  repeating-conic-gradient(#f7f3e8 0% 25%, #fbf9f0 0% 50%) 0 0 / 24px 24px; }
.hero-deco { position: absolute; font-size: 3rem; pointer-events: none;
  animation: floaty 4s ease-in-out infinite; }
.hero-deco.d1 { top: 5%; right: 8%; animation-delay: -1s; }
.hero-deco.d2 { bottom: 12%; left: 4%; animation-delay: -2s; font-size: 2.4rem; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ===== Sections ===== */
section { padding: 80px 0; }
@media (max-width: 600px) { section { padding: 60px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; }

/* ===== Categories ===== */
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: white; border-radius: var(--radius-lg); padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 3px solid transparent;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent2); }
.cat-card .emoji { font-size: 3.4rem; line-height: 1; }
.cat-card h3 { margin: 14px 0 4px; font-size: 1.15rem; }
.cat-card p { color: var(--muted); font-size: 0.88rem; }

/* ===== Featured drawings ===== */
.drawings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.drawing-card {
  background: white; border-radius: var(--radius); padding: 14px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: all 0.2s; display: flex; flex-direction: column;
}
.drawing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.drawing-card .preview {
  background: repeating-conic-gradient(#f7f3e8 0% 25%, #fbf9f0 0% 50%) 0 0 / 16px 16px;
  border-radius: 14px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; margin-bottom: 12px;
}
.drawing-card h3 { font-size: 1rem; margin-bottom: 4px; }
.drawing-card .open-btn {
  display: inline-block; margin: 8px auto 0;
  padding: 7px 18px; border-radius: 999px;
  background: var(--accent1); color: white;
  font-size: 0.82rem; font-weight: 700;
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.step { text-align: center; counter-increment: step; }
.step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--accent2); color: var(--ink);
  font-family: 'Baloo 2', cursive; font-size: 1.9rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ===== Benefits ===== */
.benefits {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.benefit { background: white; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); transition: transform 0.18s; }
.benefit:hover { transform: translateY(-3px); }
.benefit .ico { font-size: 2.6rem; line-height: 1; margin-bottom: 14px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 0.95rem; }

/* ===== Big CTA ===== */
.big-cta {
  background: linear-gradient(135deg, var(--accent1), var(--accent5));
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center;
  color: white; margin: 40px auto 0; box-shadow: var(--shadow-lg);
}
.big-cta h2 { color: white; margin-bottom: 14px; }
.big-cta p { font-size: 1.18rem; margin-bottom: 32px; opacity: 0.96; }
.big-cta .btn-primary { background: white; color: var(--accent1); }
.big-cta .btn-primary:hover { background: #FFFDF5; }

/* ===== Footer ===== */
.site-footer { background: #2B1B1B; color: #FFE8C8; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo { color: var(--accent2); }
.footer-brand p { font-size: 0.95rem; color: rgba(255,232,200,0.7); margin-top: 12px; }
.footer-col h4 {
  color: var(--accent2); font-family: 'Baloo 2', cursive;
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,232,200,0.75); font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid rgba(255,232,200,0.15); padding-top: 24px;
  text-align: center; font-size: 0.85rem; color: rgba(255,232,200,0.55); }

/* ===== Landing-page hero ===== */
.lp-hero {
  padding: 50px 0 60px;
  background: linear-gradient(180deg, #FFF5D6 0%, var(--bg) 100%);
}
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .lp-hero-grid { grid-template-columns: 1fr; } }
.lp-breadcrumb { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.lp-breadcrumb a { color: var(--accent1); font-weight: 700; }
.lp-breadcrumb a:hover { text-decoration: underline; }
.lp-hero h1 { margin-bottom: 14px; }
.lp-hero h1 .accent { color: var(--accent1); }
.lp-hero .lead { margin-bottom: 28px; }
.lp-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px;
  font-size: 0.9rem; color: var(--muted); }
.lp-meta span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.lp-preview {
  background: white; border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow-md); max-width: 440px; margin: 0 auto;
  transform: rotate(2deg);
}
.lp-preview canvas, .lp-preview .preview-fallback {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: repeating-conic-gradient(#f7f3e8 0% 25%, #fbf9f0 0% 50%) 0 0 / 18px 18px;
}
.lp-preview .preview-fallback {
  display: flex; align-items: center; justify-content: center; font-size: 9rem;
}

/* ===== Related drawings ===== */
.lp-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.lp-related .card {
  background: white; border-radius: var(--radius); padding: 18px 12px 14px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: all 0.18s; display: block;
}
.lp-related .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lp-related .card .emoji { font-size: 2.6rem; }
.lp-related .card h4 { font-family: 'Baloo 2', cursive; font-size: 1rem; margin: 8px 0 4px; }
.lp-related .card span { color: var(--accent1); font-size: 0.8rem; font-weight: 700; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background: white; border-radius: var(--radius); padding: 22px 26px;
  margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq-item h3 { font-family: 'Baloo 2', cursive; font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; }
.faq-item p { color: var(--muted); }

/* ===== SEO content block ===== */
.seo-content { max-width: 760px; margin: 0 auto; }
.seo-content h2 { text-align: left; margin-bottom: 18px; }
.seo-content h3 { margin: 28px 0 12px; font-size: 1.25rem; }
.seo-content p { margin-bottom: 14px; color: #4A3838; }
.seo-content ul { margin: 14px 0 14px 22px; list-style: disc; }
.seo-content li { margin-bottom: 6px; }
.seo-content a { color: var(--accent1); font-weight: 700; }
.seo-content a:hover { text-decoration: underline; }

/* ===== Subtle bg variants ===== */
.bg-cream { background: var(--cream); }
.bg-warm { background: linear-gradient(180deg, #FFF5CC 0%, var(--bg) 100%); }
