/* Doodle Lab — hand-drawn kids class template. Tokens first. */
:root {
  --paper: #ffffff;
  --grid: rgba(47, 107, 255, .09);
  --ink: #1F2233;
  --soft: #4b5068;
  --red: #FF4B3E;
  --blue: #2F6BFF;
  --yellow: #FFC93C;
  --green: #2BB673;
  --hand: "Gaegu", "Patrick Hand", cursive;
  --note: "Patrick Hand", "Gaegu", cursive;
  --body: "Nunito", system-ui, sans-serif;
  /* the classic hand-drawn box radius */
  --wobbly: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobbly-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px dashed var(--blue); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 14px; z-index: 99; font-weight: 800; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--hand); font-weight: 700; line-height: 1; margin: 0; letter-spacing: -.025em; }
.note-label { font-family: var(--note); font-size: 22px; color: var(--soft); transform: rotate(-2deg); display: inline-block; }

/* hand-drawn box: the border lives on ::before and gets the wobble filter so text stays crisp */
.hand { position: relative; isolation: isolate; }
.hand::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 3px solid var(--ink); border-radius: var(--wobbly); background: var(--fill, #fff); filter: url(#wobble); }
.hand.alt::before { border-radius: var(--wobbly-2); }

.doodle { width: 100%; height: auto; overflow: visible; filter: url(#wobble-soft); }
.float { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } }

/* scribble highlight */
.mark { position: relative; white-space: nowrap; display: inline-block; }
.mark .scribble { position: absolute; left: -4%; right: -4%; bottom: -.12em; width: 108%; height: .32em; }
.mark .scribble path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.2s .4s ease forwards; }
.mark .circled { position: absolute; inset: -.18em -.3em; width: calc(100% + .6em); height: calc(100% + .36em); }
.mark .circled path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.4s .8s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* buttons */
.btn { --fill: var(--yellow); display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1; text-decoration: none; color: var(--ink); border: 0; background: none; cursor: pointer; transition: transform .2s; }
.btn:hover { transform: rotate(-2deg) scale(1.04); }
.btn--blue { --fill: var(--blue); color: #fff; }
.btn--red { --fill: var(--red); color: #fff; }
.btn--white { --fill: #fff; }
.btn svg { width: 26px; }

/* nav */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--hand); font-weight: 700; font-size: 34px; }
.brand svg { width: 46px; }
.top ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--note); font-size: 22px; }
.top ul a { text-decoration: none; padding: 6px 14px; display: inline-block; border-radius: var(--wobbly); }
.top ul a:hover { background: rgba(255, 201, 60, .35); }
.top ul a[aria-current="page"] { background: rgba(47, 107, 255, .14); }
.menu-btn { display: none; font-family: var(--hand); font-size: 24px; font-weight: 700; padding: 6px 16px; }

/* hero */
.hero { position: relative; padding: 36px 0 110px; text-align: center; }
.hero h1 { font-size: clamp(52px, 7.6vw, 112px); max-width: 1000px; margin: 14px auto 22px; }
.hero h1 .blue { color: var(--blue); }
.hero p.lead { max-width: 640px; margin: 0 auto 36px; font-size: 21px; color: var(--soft); }
.hero .actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero .d { position: absolute; }
.sticky { --fill: #FFF3B8; position: absolute; padding: 22px 22px 18px; font-family: var(--note); font-size: 22px; line-height: 1.2; text-align: left; transform: rotate(4deg); box-shadow: none; }
.sticky b { display: block; font-family: var(--hand); font-size: 34px; color: var(--red); }
.tape { position: absolute; top: -14px; left: 50%; width: 80px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: rgba(47, 107, 255, .25); }
.hero-note { position: relative; display: inline-block; margin-top: 34px; transform: rotate(-3deg); max-width: 300px; text-align: center; }
.hero-note b { display: inline; margin-right: 8px; }
.pointer { position: absolute; font-family: var(--note); font-size: 22px; color: var(--blue); }

/* section titles */
.sec { padding: 90px 0; position: relative; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(44px, 6vw, 80px); margin-top: 6px; }
.sec-head p { max-width: 560px; margin: 16px auto 0; color: var(--soft); }

/* age tracks */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.track { padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.track:nth-child(1) { transform: rotate(-1.2deg); --fill: #FFF6F5; }
.track:nth-child(2) { transform: rotate(.8deg); --fill: #F3F7FF; }
.track:nth-child(3) { transform: rotate(-.6deg); --fill: #F1FBF5; }
.track .icon { width: 86px; height: 86px; }
.track h3 { font-size: 40px; }
.age { font-family: var(--note); font-size: 22px; padding: 2px 14px; align-self: flex-start; --fill: var(--yellow); }
.track ul { margin: 4px 0 8px; padding-left: 0; list-style: none; }
.track li { padding-left: 30px; position: relative; margin: 6px 0; }
.track li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 16px; height: 12px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-48deg); border-radius: 2px; }
.track .more { margin-top: auto; font-family: var(--hand); font-weight: 700; font-size: 24px; text-decoration: none; }
.track .more:hover { text-decoration: underline wavy var(--red); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; position: relative; }
.step { text-align: center; position: relative; }
.num { width: 92px; height: 92px; margin: 0 auto 18px; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: 54px; }
.step:nth-child(1) .num { --fill: var(--yellow); }
.step:nth-child(2) .num { --fill: #9FC0FF; }
.step:nth-child(3) .num { --fill: #9BE3BE; }
.num::before { border-radius: 50% 46% 52% 48% / 48% 52% 46% 50% !important; }
.step h3 { font-size: 36px; margin-bottom: 8px; }
.step p { color: var(--soft); margin: 0; }
.step .link-arrow { position: absolute; top: 20px; right: -64px; width: 90px; }

/* project wall */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.proj { padding: 14px 14px 18px; --fill: #fff; }
.proj:nth-child(odd) { transform: rotate(-2deg); }
.proj:nth-child(even) { transform: rotate(1.6deg) translateY(16px); }
.proj .art { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2.5px solid var(--ink); }
.proj .art svg { width: 100%; height: 100%; }
.proj h3 { font-size: 28px; margin: 12px 4px 0; }
.proj p { margin: 0 4px; font-family: var(--note); font-size: 19px; color: var(--soft); }

/* teachers */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.teacher { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 22px; }
.teacher .face { width: 110px; height: 110px; border-radius: 50%; background: var(--bg, #FFF3B8); display: grid; place-items: end center; overflow: hidden; border: 3px solid var(--ink); }
.teacher .face svg { width: 92px; filter: none; }
.teacher h3 { font-size: 32px; }
.teacher p { margin: 4px 0 0; font-size: 16px; color: var(--soft); }
.teacher .role { font-family: var(--note); font-size: 20px; color: var(--blue); margin: 0; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.bubble { padding: 28px 28px 24px; position: relative; --fill: #fff; }
.bubble p { margin: 0 0 14px; font-size: 19px; }
.bubble cite { font-style: normal; font-family: var(--note); font-size: 20px; color: var(--soft); }
.bubble::after { content: ""; position: absolute; left: 40px; bottom: -22px; width: 30px; height: 30px; background: var(--fill); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: skewX(-30deg) rotate(30deg); border-bottom-right-radius: 8px; }
.quotes .bubble:nth-child(2) { margin-top: 40px; --fill: #FFF6F5; }
.quotes .bubble:nth-child(3) { --fill: #F3F7FF; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: stretch; }
.price { padding: 36px 30px 30px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.price h3 { font-size: 36px; }
.price .amt { font-family: var(--hand); font-weight: 700; font-size: 76px; line-height: 1; }
.price .amt small { font-size: 26px; color: var(--soft); }
.price ul { list-style: none; padding: 0; margin: 10px 0 20px; color: var(--soft); }
.price li { margin: 6px 0; }
.price .btn { align-self: center; margin-top: auto; }
.price.pop { --fill: #FFFBEA; transform: scale(1.04) rotate(-1deg); }
.badge { position: absolute; top: -22px; right: 18px; font-family: var(--hand); font-weight: 700; font-size: 24px; padding: 6px 16px; color: #fff; --fill: var(--red); transform: rotate(6deg); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.faq details { padding: 4px 26px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--hand); font-weight: 700; font-size: 30px; padding: 16px 40px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 8px; font-size: 42px; color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--soft); }

/* cta */
.cta { text-align: center; padding: 70px 30px; --fill: var(--blue); color: #fff; position: relative; }
.cta h2 { font-size: clamp(44px, 6vw, 84px); }
.cta p { max-width: 520px; margin: 14px auto 30px; opacity: .92; }
.cta .d { position: absolute; width: 90px; }

footer { padding: 70px 0 40px; margin-top: 90px; }
.crayon { height: 10px; margin-bottom: 40px; background: linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--blue) 75%); border-radius: 10px; filter: url(#wobble); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; font-size: 16px; color: var(--soft); }
.foot h4 { font-family: var(--hand); font-size: 26px; color: var(--ink); margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 4px 0; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline wavy var(--blue); }
.legal { margin-top: 40px; font-family: var(--note); font-size: 18px; color: var(--soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* classes page */
.page-hero { text-align: center; padding: 50px 0 40px; position: relative; }
.page-hero h1 { font-size: clamp(56px, 8vw, 110px); margin: 10px 0 14px; }
.page-hero p { max-width: 600px; margin: 0 auto; color: var(--soft); }
.chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 30px 0 46px; }
.chip { --fill: #fff; font-family: var(--hand); font-weight: 700; font-size: 24px; padding: 8px 20px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { --fill: var(--yellow); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.class { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.class[hidden] { display: none; }
.class .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.class .icon { width: 64px; height: 64px; }
.class h3 { font-size: 34px; }
.class p { margin: 0; color: var(--soft); font-size: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--note); font-size: 19px; margin: 6px 0; }
.seats { display: flex; gap: 5px; align-items: center; font-family: var(--note); font-size: 18px; color: var(--soft); }
.seats i { width: 13px; height: 13px; border: 2.5px solid var(--ink); border-radius: 50%; display: inline-block; }
.seats i.on { background: var(--red); }
.class .btn { font-size: 22px; padding: 10px 20px; align-self: flex-start; margin-top: 8px; }

.timetable { overflow-x: auto; padding: 8px 4px 20px; }
.tt { border-collapse: separate; border-spacing: 10px; width: 100%; min-width: 820px; }
.tt th { font-family: var(--hand); font-size: 28px; font-weight: 700; padding: 6px; }
.tt td { vertical-align: top; height: 86px; padding: 0; width: 15%; }
.tt td:first-child { font-family: var(--note); font-size: 20px; width: 10%; text-align: right; padding-right: 8px; color: var(--soft); }
.slot { display: block; height: 100%; padding: 10px 12px; font-size: 15px; line-height: 1.25; text-decoration: none; }
.slot b { font-family: var(--hand); font-size: 22px; display: block; }
.slot.r { --fill: #FFE1DE; } .slot.b { --fill: #DCE7FF; } .slot.y { --fill: #FFF0BF; } .slot.g { --fill: #D5F4E3; }

/* enroll */
.enroll { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
form.hand { padding: 40px 38px; display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--hand); font-weight: 700; font-size: 26px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input, select, textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(47, 107, 255, .3); }
fieldset { border: 0; padding: 0; margin: 0; }
.days { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.days label { font-family: var(--note); font-size: 20px; font-weight: 400; display: inline-flex; gap: 6px; align-items: center; padding: 4px 14px; border: 2.5px solid var(--ink); border-radius: var(--wobbly); cursor: pointer; }
.days input { width: auto; accent-color: var(--blue); }
.days label:has(input:checked) { background: var(--yellow); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--soft); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.thanks { display: none; text-align: center; padding: 40px 30px; --fill: #F1FBF5; }
.thanks.show { display: block; }
.thanks h2 { font-size: 56px; margin: 10px 0; }
aside .sticky { position: relative; transform: rotate(-2deg); margin-bottom: 40px; }
aside ul { margin: 10px 0 0; padding-left: 22px; font-family: var(--note); font-size: 21px; }

@media (max-width: 980px) {
  .tracks, .prices, .quotes, .team, .cards { grid-template-columns: 1fr 1fr; }
  .wall { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step .link-arrow { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .enroll { grid-template-columns: 1fr; }
  .hero .d { display: none; }
  .quotes .bubble:nth-child(2) { margin-top: 0; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 36px); }
  .top ul { display: none; position: absolute; left: 18px; right: 18px; top: 84px; flex-direction: column; padding: 14px; z-index: 20; }
  .top ul.open { display: flex; }
  .top ul.open::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; border: 3px solid var(--ink); border-radius: var(--wobbly); filter: url(#wobble); }
  .menu-btn { display: inline-flex; }
  .top .btn.nav-cta { display: none; }
  .tracks, .prices, .quotes, .team, .cards, .wall, .two { grid-template-columns: 1fr; }
  .proj:nth-child(even) { transform: rotate(1.6deg); }
  .price.pop { transform: none; }
  .hero { padding: 40px 0 70px; }
  .btn { font-size: 23px; }
  form.hand { padding: 30px 22px; }
  .foot { grid-template-columns: 1fr; }
  .teacher { grid-template-columns: 84px 1fr; }
  .teacher .face { width: 84px; height: 84px; }
  .teacher .face svg { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark path { stroke-dashoffset: 0 !important; }
}
