/* Smart Tutor landing and "What is Smart Tutor?" pages. Same font, colours and button style as the app's playful look. */
@font-face { font-family: 'Gabarito'; src: url('../fonts/gabarito-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
  --sky: #D7EEFF; --white: #FFFFFF; --ink: #2B1A0E; --soft: #5E4A3A; --rule: #EADBC4;
  --go: #FFB524; --go-edge: #B85410; --orange: #FF7A1A; --blue: #2F6FD0;
  --navy: #0E3766; --navy-ink: #E3ECF8; --yellow: #FFD35A; --green: #2E8B3E;
  --font: 'Gabarito', ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 19px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 5vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 16px; }
.fine { font-size: 16px; color: var(--soft); }
.link { font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* buttons: the app's chunky amber button */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border-radius: 18px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font: 800 20px var(--font); text-decoration: none; box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-go { background: var(--go); border-color: var(--go-edge); box-shadow: 0 6px 0 var(--go-edge); min-height: 62px; font-size: 22px; padding: 0 30px; }
.btn-go:active { box-shadow: 0 2px 0 var(--go-edge); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 17px; border-width: 2px; box-shadow: 0 4px 0 var(--ink); }

/* header */
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 14px 16px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 900; font-size: 24px; line-height: 1; white-space: nowrap; }
.brand span { color: var(--orange); }
.brand small { font-size: 14px; font-weight: 700; color: var(--soft); }
.site-top nav { display: flex; align-items: center; gap: 18px; }
.site-top nav a:not(.btn) { color: var(--ink); font-weight: 800; text-decoration: none; }
.site-top nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 560px) {
  .brand small { display: block; margin-top: 2px; }
  .site-top nav a:not(.btn) { display: none; }
}

/* hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 18px 16px 56px; display: grid; gap: 34px; align-items: center; }
.hero h1 { font-size: clamp(38px, 7.4vw, 66px); line-height: 1.02; max-width: 14ch; }
.lede { font-size: clamp(19px, 2.4vw, 22px); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 26px 0 14px; }
@media (min-width: 920px) { .hero { grid-template-columns: 1.05fr .95fr; padding-top: 34px; } }

.hero-map { position: relative; margin: 0; width: 100%; max-width: 470px; justify-self: center; aspect-ratio: 360 / 690; overflow: hidden; border-radius: 28px; border: 3px solid #4E9A36; box-shadow: 0 8px 0 #3E7F2A; background: #88CE5D; }
.hm-inner { position: absolute; left: 0; top: 0; width: 100%; }
.village { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.village .v-cloud { animation: v-drift 14s ease-in-out infinite alternate; }
.village .v-duck { animation: v-paddle 5s ease-in-out infinite alternate; }
@keyframes v-drift { to { translate: 14px 0; } }
@keyframes v-paddle { to { translate: -16px 0; } }
.stop-wrap { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 46%; z-index: 1; }
.stop { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font: 900 21px var(--font); border: 3px solid #8A3A0A; background: #fff; color: var(--ink); box-shadow: 0 6px 0 #8A3A0A; }
.stop img { width: 70%; }
.stop-done { background: #FFF3C4; }
.stop-now { width: 80px; height: 80px; background: var(--orange); color: #fff; box-shadow: 0 7px 0 #8A3A0A, 0 0 0 8px rgba(255,255,255,.7); }
.stop-locked { background: #E7EDF2; border-color: #9AA9B8; box-shadow: 0 6px 0 #9AA9B8; }
.stop-name, .castle-sign { background: #FFF3D6; padding: 3px 10px; border-radius: 10px; font-weight: 800; font-size: 14px; line-height: 1.2; text-align: center; color: #5A3410; border: 2px solid #B07A3E; box-shadow: 0 3px 0 #B07A3E; }
.castle-sign { position: absolute; transform: translate(-50%, -50%); margin: 0; white-space: nowrap; font-size: 15px; font-weight: 900; }
.map-fox { position: absolute; z-index: 2; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 3px rgba(40,90,25,.3)); animation: bob 2.4s ease-in-out infinite; }
.map-fox img { display: block; width: 60px; }
@keyframes bob { 50% { transform: translate(-50%, -58%); } }

/* bands */
.band { padding: 64px 16px; }
.band-white { background: var(--white); }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.two { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .wrap.two { grid-template-columns: 1fr 1fr; gap: 56px; } }
.sub { font-size: 21px; color: var(--soft); max-width: 36em; margin-bottom: 30px; }

/* the mistake demo, drawn like the app's question card */
.demo { background: #fff; border: 3px solid var(--go-edge); border-radius: 26px; box-shadow: 0 8px 0 #F0C78C; padding: 24px 22px; max-width: 470px; }
.demo-q { font-size: clamp(42px, 9vw, 60px); font-weight: 900; line-height: 1; margin-bottom: 14px; }
.demo-a { display: flex; align-items: baseline; gap: 12px; border: 3px solid var(--ink); border-radius: 14px; padding: 8px 14px; font-size: 32px; font-weight: 900; }
.demo-a span { font-size: 15px; font-weight: 700; color: var(--soft); }
.demo-fb { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; background: #FDE8DD; border: 2px solid #F6B596; border-radius: 18px; padding: 14px; }
.demo-fb b { color: #C2410C; font-size: 24px; }
.demo-fb p { margin: 2px 0 0; font-size: 18px; }
.demo-help { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; }
.demo-help span { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* a practice day: a real sequence, so numbered */
.day { list-style: none; counter-reset: day; padding: 0; margin: 10px 0 0; display: grid; gap: 18px; }
.day li { counter-increment: day; position: relative; padding: 4px 0 0 76px; min-height: 58px; font-size: 20px; }
.day li::before { content: counter(day); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--go); border: 3px solid var(--go-edge); box-shadow: 0 4px 0 var(--go-edge); font-weight: 900; font-size: 26px; }
.day b { display: block; font-size: 22px; }
@media (min-width: 860px) { .day { grid-template-columns: repeat(3, 1fr); gap: 30px; } .day li { padding: 76px 0 0; } }

/* the three looks */
.looks { display: grid; gap: 30px; }
.looks figure { margin: 0; display: grid; grid-template-columns: minmax(0, 44%) 1fr; gap: 18px; align-items: center; }
.looks img { border-radius: 24px; border: 6px solid var(--ink); box-shadow: 0 8px 0 rgba(43,26,14,.18); background: #fff; }
.looks figcaption { font-size: 18px; }
.looks figcaption b { display: block; font-size: 21px; margin-bottom: 4px; }
@media (min-width: 860px) { .looks { grid-template-columns: repeat(3, 1fr); } .looks figure { grid-template-columns: 1fr; } .looks img { max-width: 300px; } }

/* why not AI */
.band-navy { background: var(--navy); color: var(--navy-ink); }
.band-navy h2 { color: #fff; }
.band-navy .sub { color: #B9CBE4; }
.band-navy h3 { color: var(--yellow); }
.reasons { display: grid; gap: 26px 40px; }
@media (min-width: 760px) { .reasons { grid-template-columns: 1fr 1fr; } }
.reasons p { margin: 0; }
.ai-use { margin-top: 44px; padding: 26px 24px 8px; border-radius: 24px; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.2); max-width: 760px; }
.ai-use h3 { color: #fff; font-size: 26px; }
.ai-use b { color: #fff; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 38px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 20px; border: solid var(--green); border-width: 0 4px 4px 0; transform: rotate(40deg); }

.end { text-align: center; }
.end h2 { margin-bottom: .3em; }

.site-foot { background: var(--ink); color: #EADBC4; padding: 34px 16px 40px; }
.site-foot > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.site-foot a { color: #fff; font-weight: 700; margin-right: 18px; }
.site-foot .fine { color: #BFA98F; }

/* "What is Smart Tutor?" article */
.article { max-width: 720px; margin: 0 auto; padding: 18px 16px 64px; }
.article h1 { font-size: clamp(38px, 7vw, 58px); }
.article h2 { margin-top: 1.6em; font-size: clamp(26px, 4.4vw, 34px); scroll-margin-top: 16px; }
.article h3 { margin-top: 1.2em; }
.article li { margin-bottom: .5em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 0; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); margin: 10px 0 8px; }
.toc a { font-weight: 800; }
.skills { display: grid; gap: 4px 30px; }
@media (min-width: 640px) { .skills { grid-template-columns: 1fr 1fr; } }
.skills h3 { margin: .8em 0 .2em; font-size: 20px; }
.skills p { font-size: 17px; }
.callout { background: var(--navy); color: var(--navy-ink); border-radius: 20px; padding: 20px 22px; }
.callout b { color: #fff; }
.article-end { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
