/* ============================================================
   Hi Garten — higarten.hamcodes.com
   Complete Preschool English Foundation
   Bright, bubbly, playful — built for early learners
   ============================================================ */

:root {
  /* Playful multicolor palette (from the Hi Garten covers) */
  --purple:      #7c3aed;
  --purple-2:    #9d5cff;
  --purple-soft: #f1e9ff;
  --orange:      #ff7a1a;
  --orange-soft: #ffe7d3;
  --yellow:      #ffc42e;
  --yellow-2:    #ffd85e;
  --yellow-soft: #fff4d2;
  --green:       #2fbf5b;
  --green-soft:  #dcf7e4;
  --pink:        #ff5d9e;
  --pink-soft:   #ffe2ef;
  --sky:         #34b6f4;
  --sky-soft:    #e2f4fe;
  --red:         #ff5a5f;

  --bg:      #fffdf7;
  --surface: #ffffff;
  --ink:     #3a2a5d;
  --muted:   #7c7194;
  --line:    #efe8f8;

  --radius:    28px;
  --radius-sm: 18px;
  --shadow:    0 12px 32px rgba(90,50,150,.10);
  --shadow-lg: 0 26px 60px rgba(90,50,150,.18);

  --display: "Baloo 2", "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--purple); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }

.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: 0 0 auto; vertical-align: -.22em; }
.btn .ic { width: 1.2em; height: 1.2em; vertical-align: -.18em; }

.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  letter-spacing: .03em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .4em;
  padding: .4em 1em; border-radius: 999px; margin-bottom: 1rem;
  background: var(--yellow-soft); color: #b8790a;
}
.eyebrow.p { background: var(--purple-soft); color: var(--purple); }
.eyebrow.g { background: var(--green-soft); color: #1c8a41; }
.eyebrow.pk { background: var(--pink-soft); color: #c9366f; }
.eyebrow.s { background: var(--sky-soft); color: #1288c4; }

.lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec-head { max-width: 700px; }
.sec-head.center { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: .9em 1.7em; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s, filter .16s;
  touch-action: manipulation; line-height: 1;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 14px 28px rgba(124,58,237,.32); }
.btn-orange  { background: var(--orange); color: #fff; box-shadow: 0 14px 28px rgba(255,122,26,.34); }
.btn-yellow  { background: var(--yellow); color: #4a3400; box-shadow: 0 14px 28px rgba(255,196,46,.4); }
.btn-green   { background: var(--green); color: #fff; box-shadow: 0 14px 28px rgba(47,191,91,.32); }
.btn-pink    { background: var(--pink); color: #fff; box-shadow: 0 14px 28px rgba(255,93,158,.32); }
.btn-ghost   { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2.5px var(--purple); color: var(--purple); }
.btn-lg { font-size: 1.18rem; padding: 1.05em 2.1em; }
.btn:hover { filter: brightness(1.05); }
@media (hover: hover) { .btn:hover { transform: translateY(-3px) scale(1.02); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,253,247,.85);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span b { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: var(--purple); }
.nav-links a.btn { color: #fff; padding: .6em 1.3em; font-size: .95rem; }
@media (max-width: 920px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 5vw, 64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 85% 8%, rgba(255,196,46,.3), transparent 32%),
    radial-gradient(circle at 8% 18%, rgba(124,58,237,.16), transparent 40%),
    radial-gradient(circle at 92% 80%, rgba(255,93,158,.16), transparent 38%),
    radial-gradient(circle at 15% 92%, rgba(52,182,244,.16), transparent 36%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero h1 span.hl { color: var(--purple); position: relative; white-space: nowrap; }
.hero h1 span.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .3em; background: var(--yellow); z-index: -1; border-radius: 8px; transform: rotate(-1.2deg); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; }
.pill { font-family: var(--display); font-weight: 700; font-size: .9rem; padding: .5em 1em; border-radius: 999px; display: inline-flex; align-items: center; gap: .45em; }
.pill.p { background: var(--purple-soft); color: var(--purple); }
.pill.g { background: var(--green-soft); color: #1c8a41; }
.pill.o { background: var(--orange-soft); color: #c4530a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Hero characters (Mimo + Zubi) */
.hero-cast { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-blob { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; background: linear-gradient(140deg, var(--yellow-2), var(--pink)); opacity: .22; z-index: 0; animation: blobFloat 8s ease-in-out infinite; }
.hero-char { position: relative; z-index: 2; filter: drop-shadow(0 20px 26px rgba(90,50,150,.28)); }
.hero-char.mimo { width: 62%; margin-right: -8%; animation: bob 4s ease-in-out infinite; }
.hero-char.zubi { width: 52%; margin-left: -8%; margin-top: 12%; animation: bob 4s ease-in-out infinite .8s; }
.hero-spark { position: absolute; z-index: 3; color: var(--yellow); }
.hero-spark.s1 { top: 6%; left: 12%; width: 44px; height: 44px; }
.hero-spark.s2 { bottom: 12%; right: 10%; width: 34px; height: 34px; color: var(--pink); }
.hero-name { position: absolute; z-index: 4; font-family: var(--display); font-weight: 800; font-size: .82rem; background: #fff; box-shadow: var(--shadow); padding: .3em .8em; border-radius: 999px; }
.hero-name.a { bottom: 20%; left: 2%; color: var(--orange); }
.hero-name.b { bottom: 6%; right: 6%; color: var(--purple); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blobFloat { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.05) rotate(8deg); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; } .hero-badges, .hero-cta { justify-content: center; }
  .hero-cast { min-height: 340px; max-width: 460px; margin: 0 auto; }
}

/* ---------- Audience ---------- */
.audience { background: var(--purple); color: #fff; padding: 46px 0; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud { display: flex; gap: 1rem; align-items: flex-start; }
.aud .ic-box { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.aud .ic-box .ic { width: 28px; height: 28px; color: #fff; }
.aud h3 { font-size: 1.2rem; margin-bottom: .1em; color: #fff; }
.aud p { font-size: .95rem; color: #e7ddff; margin: 0; }
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Journey (3 stages) ---------- */
.journey { background: linear-gradient(180deg, #fffdf7, var(--purple-soft)); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: stretch; }
.stage {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; border: 3px solid #fff;
  transition: transform .18s, box-shadow .18s;
}
@media (hover: hover){ .stage:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.stage-cover { aspect-ratio: 4/3; overflow: hidden; }
.stage-cover img { width: 100%; height: 100%; object-fit: cover; }
.stage-body { padding: 22px 22px 26px; text-align: center; }
.stage-num { position: absolute; top: 14px; left: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; box-shadow: var(--shadow); }
.stage.c1 .stage-num { background: var(--green); }
.stage.c2 .stage-num { background: var(--orange); }
.stage.c3 .stage-num { background: var(--purple); }
.stage .emoji { font-size: 2rem; }
.stage h3 { margin: .1em 0; }
.stage .lvl { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.stage.c1 .lvl { color: #1c8a41; } .stage.c2 .lvl { color: #c4530a; } .stage.c3 .lvl { color: var(--purple); }
.stage p { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }
.journey-note { text-align: center; margin-top: 30px; font-family: var(--display); font-weight: 600; color: var(--muted); }
@media (max-width: 800px) { .stages { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }

/* ---------- What's inside (feature grid) ---------- */
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { background: #fff; border-radius: var(--radius-sm); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature .ic-box { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic-box .ic { width: 30px; height: 30px; color: #fff; }
.feature h3 { font-size: 1.15rem; margin-bottom: .15em; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.bg-purple { background: var(--purple); } .bg-orange { background: var(--orange); } .bg-green { background: var(--green); }
.bg-pink { background: var(--pink); } .bg-sky { background: var(--sky); } .bg-yellow { background: var(--yellow); }
@media (max-width: 820px) { .inside-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .inside-grid { grid-template-columns: 1fr; } }

/* ---------- Materials showcase (horizontal scroll) ---------- */
.showcase { background: var(--ink); color: #fff; overflow: hidden; }
.showcase h2 { color: #fff; }
.showcase .eyebrow { background: rgba(255,255,255,.16); color: #ffd85e; }
.showcase .lead { color: rgba(255,255,255,.82); }
.showcase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.strip { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; padding: 30px 4px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--yellow) rgba(255,255,255,.18); }
.strip::-webkit-scrollbar { height: 10px; }
.strip::-webkit-scrollbar-track { background: rgba(255,255,255,.18); border-radius: 999px; }
.strip::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 999px; }
.strip img { height: clamp(230px, 34vw, 340px); width: auto; flex: 0 0 auto; border-radius: 18px; scroll-snap-align: center; box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.92); background: #fff; }
.strip-hint { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; font-size: .9rem; color: #ffd85e; white-space: nowrap; }

/* ---------- Libraries (Gumroad) ---------- */
.libraries { background: linear-gradient(180deg, var(--yellow-soft), #fffdf7); }
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
.lib {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 3px solid #fff; display: flex; flex-direction: column; position: relative;
}
.lib.featured { border-color: var(--purple); }
.lib-flag { position: absolute; top: 18px; right: 18px; z-index: 3; background: var(--purple); color: #fff; font-family: var(--display); font-weight: 700; font-size: .78rem; padding: .4em .9em; border-radius: 999px; box-shadow: var(--shadow); }
.lib-cover { background: var(--purple-soft); display: flex; justify-content: center; padding: 22px 22px 0; }
.lib-cover img { max-height: 300px; width: auto; border-radius: 10px 10px 0 0; filter: drop-shadow(0 14px 22px rgba(90,50,150,.22)); }
.lib-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.lib .kicker { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); }
.lib h3 { font-size: 1.5rem; margin: .2em 0 .3em; }
.lib p { color: var(--muted); font-size: .98rem; }
.lib ul { list-style: none; padding: 0; margin: .4rem 0 1.4rem; display: grid; gap: .5rem; }
.lib ul li { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .95rem; }
.lib ul .ic { width: 20px; height: 20px; color: var(--green); }
.lib .btn { margin-top: auto; justify-content: center; }
@media (max-width: 820px) { .lib-grid { grid-template-columns: 1fr; } }

/* ---------- Amazon craft books ---------- */
.crafts { background: #fffdf7; }
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.craft { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
@media (hover: hover){ .craft:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.craft-cover { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
.craft-cover img { width: 100%; display: block; }
.craft .tag { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); }
.craft h3 { font-size: 1.2rem; margin: .2em 0 .1em; }
.craft p { color: var(--muted); font-size: .9rem; margin: .3rem 0 1.2rem; }
.craft .btn { margin-top: auto; justify-content: center; }
@media (max-width: 820px) { .craft-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; } }

/* ---------- Free downloads (email gate) ---------- */
.downloads { background: linear-gradient(135deg, var(--green), #1fa34a); color: #fff; overflow: hidden; }
.downloads::before { content:""; position:absolute; width:420px; height:420px; background: radial-gradient(circle, rgba(255,196,46,.34), transparent 70%); top:-120px; right:-80px; }
.dl-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; position: relative; }
.downloads h2 { color: #fff; }
.downloads .eyebrow { background: rgba(255,255,255,.2); color: #fff; }
.downloads .lead { color: rgba(255,255,255,.92); }
.dl-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.dl-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.dl-list .ic { width: 24px; height: 24px; color: #fff; }
/* sample previews */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0; }
.sample { background: #fff; border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); text-align: center; }
.sample-prev { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; border: 1px solid var(--line); }
.sample-prev img { width: 100%; display: block; }
.sample-tag { display: block; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.sample-tag.c1 { color: #1c8a41; } .sample-tag.c2 { color: #c4530a; } .sample-tag.c3 { color: var(--purple); }
.sample-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
@media (max-width: 720px) { .samples { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; } }

.gate { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px; max-width: 520px; margin: 0 auto; }
.unlocked-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.unlocked-grid .btn { justify-content: center; font-size: .92rem; padding: .75em 1em; margin: 0; }
.drive-link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--purple); text-decoration: none; }
.drive-link:hover { text-decoration: underline; }
.drive-link .ic { width: 20px; height: 20px; }
@media (max-width: 520px) { .unlocked-grid { grid-template-columns: 1fr; } }
.gate label { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: .5rem; }
.gate input[type=email] { width: 100%; padding: .95em 1.1em; border-radius: 14px; border: 2px solid var(--line); font-size: 1.05rem; font-family: var(--body); margin-bottom: 1rem; }
.gate input[type=email]:focus { outline: none; border-color: var(--green); }
.gate .btn { width: 100%; justify-content: center; }
.gate small { display: block; color: var(--muted); font-size: .82rem; margin-top: .8rem; text-align: center; }
.gate-success { display:none; background: var(--green-soft); color: #1c8a41; border-radius: 12px; padding: .8rem 1rem; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; text-align: center; }
.gate-success.show { display: block; }
.unlocked { display: none; text-align: center; }
.unlocked.show { display: block; animation: fade .4s ease; }
.unlocked .btn { width: 100%; justify-content: center; margin-bottom: .7rem; }
.unlocked p { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6cbec; padding: 60px 0 36px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.3rem; }
.foot-brand img { width: 46px; height: 46px; }
.foot-links { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.foot-links a { color: #d6cbec; text-decoration: none; font-size: .95rem; font-weight: 500; }
.foot-links a:hover { color: var(--yellow); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 24px; font-size: .88rem; color: #9c8fbe; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
