/* Letters: Montessori Learning. Set in Andika, a typeface made for children learning to read. */
@font-face { font-family: "Andika"; src: url("/fonts/andika-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Andika"; src: url("/fonts/andika-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --felt: #1A2521; --felt-2: #26362F; --felt-3: #0E1512;
  --paper: #F6F0E2; --paper-2: #EFE5CF; --cream: #E9DCC4;
  --ink: #1F1A14; --muted: #66574A;
  --brass: #C8A24A; --brass-dim: #8A7339; --brass-light: #F3DC9A;
  --walnut: #4A3325; --walnut-edge: #2C1E15;
  --red: #D9412B; --red-deep: #A82F1D;
  --joy: #FFD052; --sand: #E2CC9F; --sand-shade: #9E8355;
  --pink: #F58FB0; --blue: #5BB9E6; --green: #6CC08B; --violet: #9A7FE0;
  --tile: #F6ECD9; --tile-edge: #C9B693; --vowel: #A9C8DE; --vowel-edge: #6E93B0;
  --gutter: max(18px, env(safe-area-inset-left, 0px));
  --gutter-r: max(18px, env(safe-area-inset-right, 0px));
  --felt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .1  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Andika", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 18px; line-height: 1.55;
  background-image: var(--paper-grain);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: 760px; }
.eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--brass); }

/* Top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 5; padding-top: max(14px, env(safe-area-inset-top, 0px)); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; color: var(--paper); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.top-link { color: var(--cream); font-size: 16px; text-decoration: none; padding: 10px 2px; }
.top.on-paper { position: static; background: var(--felt); background-image: var(--felt-grain); padding-bottom: 14px; }

/* Hero: the felt table under the lamp */
.hero {
  position: relative; overflow: hidden; color: var(--paper);
  background:
    radial-gradient(90% 60% at 72% 30%, rgba(255, 214, 140, .30), rgba(255, 214, 140, 0) 60%),
    radial-gradient(140% 110% at 50% 20%, var(--felt-2), var(--felt) 55%, var(--felt-3));
  padding-top: calc(max(14px, env(safe-area-inset-top, 0px)) + 86px);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--felt-grain); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 34px; padding-bottom: 0; }
.hero h1 { font-size: clamp(46px, 13vw, 86px); letter-spacing: -.01em; margin-top: 12px; }
.hero h1 .dot { color: var(--red); }
.nw { white-space: nowrap; }
.lede { font-size: clamp(18px, 4.6vw, 21px); color: var(--cream); margin-top: 18px; max-width: 34em; }
.store { margin-top: 26px; display: grid; gap: 10px; justify-items: start; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 12px; border-radius: 999px;
  background: rgba(246, 240, 226, .08); color: var(--paper); text-decoration: none;
  border: 1.5px solid rgba(200, 162, 74, .75); font-size: 18px; font-weight: 700; line-height: 1.2;
}
.store-btn .glyph { width: 28px; height: 28px; border-radius: 50%; background: var(--red); box-shadow: inset 0 -3px 0 var(--red-deep); flex: none; }
a.store-btn { background: var(--red); border-color: var(--red); color: #fff; box-shadow: inset 0 -4px 0 var(--red-deep); }
a.store-btn .glyph { background: var(--paper); box-shadow: none; }
.store-note { font-size: 16px; color: var(--brass-light); }
.phone-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.phone {
  position: relative; z-index: 2; margin: 0; width: min(66vw, 300px);
  border-radius: 44px; padding: 9px; background: #101010;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1.5px rgba(255,255,255,.12) inset;
  transform: rotate(3deg) translateY(10px); margin-bottom: -46px;
}
.phone img { border-radius: 35px; width: 100%; }
.loose { position: absolute; z-index: 3; left: 0; bottom: 34px; display: flex; gap: 6px; }
.loose .tile { width: clamp(50px, 14vw, 62px); font-size: clamp(32px, 9vw, 40px); }
.loose .tile:nth-child(1) { transform: rotate(-11deg); }
.loose .tile:nth-child(2) { transform: rotate(7deg) translateY(-16px); }
.loose .tile:nth-child(3) { transform: rotate(-4deg) translateY(2px); }

@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .hero-copy { padding-bottom: 96px; }
  .phone-stage { min-height: 560px; }
  .loose { left: 2%; bottom: 60px; }
}

/* Sections */
section { position: relative; }
.band { padding: 84px 0; }
.band h2 { font-size: clamp(32px, 7.5vw, 50px); }
.band .intro { font-size: 19px; color: var(--muted); margin-top: 14px; max-width: 36em; }
.felt { background: var(--felt); color: var(--paper); background-image: var(--felt-grain); }
.felt .intro { color: var(--cream); }
.paper-2 { background: var(--paper-2); background-image: var(--paper-grain); }

/* One stone: four moments */
.moments { display: grid; gap: 22px; margin-top: 38px; }
@media (min-width: 760px) { .moments { grid-template-columns: 1fr 1fr; } }
.moment { background: #FBF7EC; border-radius: 26px; padding: 14px 14px 24px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 30px rgba(74, 51, 37, .12); }
.moment .art { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.moment h3 { font-size: 26px; margin: 20px 8px 8px; display: flex; align-items: baseline; gap: 10px; }
.moment h3 span { font-size: 15px; color: var(--brass-dim); letter-spacing: .08em; }
.moment p { margin: 0 8px; color: #3E342A; }

.art.find > img { width: 100%; height: 100%; object-fit: cover; }
.bubble {
  position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; gap: 10px;
  background: rgba(23, 18, 15, .86); color: var(--paper); border-radius: 18px; padding: 8px 12px 8px 8px; font-size: 15px; line-height: 1.25;
}
.bubble img { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); flex: none; }
.chip { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--tile); color: var(--ink); font-weight: 700; box-shadow: 0 3px 0 var(--tile-edge); margin-left: 4px; }

.art.write { background: radial-gradient(120% 120% at 50% 40%, var(--felt-2), var(--felt-3)); display: grid; place-items: center; }
.art.write { position: relative; }
.tray { position: absolute; top: 7%; height: 86%; left: 50%; translate: -50% 0; width: auto; aspect-ratio: 1 / 1; border-radius: 22px; padding: 12px; background: linear-gradient(180deg, #5A3E2C, var(--walnut)); box-shadow: 0 7px 0 var(--walnut-edge), 0 18px 30px rgba(0,0,0,.5); }
.tray svg { width: 100%; height: 100%; display: block; border-radius: 14px; }

.art.say { background: radial-gradient(120% 120% at 50% 30%, var(--felt-2), var(--felt-3)); display: grid; align-content: center; justify-items: center; gap: 30px; }
.tiles { display: flex; gap: 12px; }
.tile { width: clamp(52px, 15vw, 70px); aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: clamp(34px, 10vw, 46px); color: var(--ink); background: var(--tile); box-shadow: 0 6px 0 var(--tile-edge), 0 12px 18px rgba(0,0,0,.45); padding-bottom: 6px; }
.tile.vowel { background: var(--vowel); box-shadow: 0 6px 0 var(--vowel-edge), 0 12px 18px rgba(0,0,0,.45); }
.tile.lit { box-shadow: 0 6px 0 var(--brass), 0 12px 18px rgba(0,0,0,.45); transform: translateY(-6px); }
.rail { position: relative; width: 78%; height: 8px; border-radius: 8px; background: #6D5A2E; box-shadow: 0 2px 0 rgba(0,0,0,.6); }
.rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 44%; border-radius: 8px; background: var(--brass); }
.rail::after { content: ""; position: absolute; right: -9px; top: -6px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--brass); }
.bead { position: absolute; left: 44%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--red); box-shadow: inset 0 -5px 0 var(--red-deep), 0 10px 16px rgba(0,0,0,.5); }

.art.joy { background: radial-gradient(60% 60% at 50% 50%, #FFF3B8, var(--joy) 70%); overflow: hidden; }
.confetti i { position: absolute; display: block; }
.c1 { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); }
.c2 { width: 13px; height: 13px; border-radius: 3px; background: var(--violet); transform: rotate(20deg); }
.c3 { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--blue); }
.c4 { width: 18px; height: 9px; border-radius: 18px 18px 0 0; background: var(--green); }
.c5 { width: 9px; height: 9px; border-radius: 50%; background: #FFF6E0; }
.disc { position: absolute; left: 50%; top: 41%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #FFF7E8; box-shadow: 0 6px 14px rgba(0,0,0,.12); display: grid; place-items: center; }
.disc img { width: 72%; }
.joy .tile { position: absolute; left: 27%; top: 47%; width: clamp(40px, 11vw, 54px); font-size: clamp(26px, 7.5vw, 36px); transform: rotate(-9deg); box-shadow: 0 5px 0 #E6B93E, 0 10px 14px rgba(0,0,0,.2); background: #FFF7E8; }
.fact { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255,255,255,.9); border-radius: 14px; padding: 7px 10px; font-size: 14px; line-height: 1.3; color: var(--ink); text-align: center; }
.medal { position: absolute; right: 13%; top: 10%; width: 50px; height: 50px; border-radius: 50%; background: var(--brass); box-shadow: inset 0 0 0 4px var(--brass-light), 0 4px 0 var(--brass-dim); display: grid; place-items: center; font-weight: 700; font-size: 26px; padding-bottom: 4px; transform: rotate(8deg); }
.medal::before { content: ""; position: absolute; top: -20px; left: 50%; width: 20px; height: 24px; margin-left: -10px; background: linear-gradient(90deg, var(--blue) 50%, var(--pink) 50%); z-index: -1; border-radius: 3px; }

/* Montessori at heart */
.ideas { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 760px) { .ideas { grid-template-columns: 1fr 1fr; } }
.idea { border: 1.5px solid rgba(200, 162, 74, .35); border-radius: 22px; padding: 22px 22px 24px; background: rgba(255,255,255,.03); }
.idea h3 { font-size: 23px; color: var(--brass-light); margin-bottom: 8px; }
.idea p { color: var(--cream); }
.idea .say { display: inline-block; margin-top: 12px; font-size: 15px; color: var(--paper); background: rgba(217, 65, 43, .18); border: 1px solid rgba(217, 65, 43, .5); border-radius: 999px; padding: 4px 12px; }

/* What's inside */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #FBF7EC; border-radius: 20px; padding: 18px 16px; box-shadow: 0 10px 24px rgba(74, 51, 37, .10); }
.stat b { display: block; font-size: 42px; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.things { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
@media (min-width: 760px) { .things { grid-template-columns: repeat(8, 1fr); } }
.things figure { margin: 0; aspect-ratio: 1; background: #FBF7EC; border-radius: 18px; position: relative; min-width: 0; }
.things img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }
.extras { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 900px) { .extras { grid-template-columns: repeat(3, 1fr); } }
.extra { display: flex; gap: 16px; align-items: center; background: #FBF7EC; border-radius: 22px; padding: 16px 18px; }
.extra > div { min-width: 0; }
.extra b { display: block; font-size: 19px; line-height: 1.25; }
.extra span { display: block; color: var(--muted); font-size: 16px; line-height: 1.45; margin-top: 2px; }
.faces { display: flex; flex: none; }
.faces img { width: 60px; height: 60px; border-radius: 50%; background: var(--cream); border: 3px solid #FBF7EC; }
.faces img + img { margin-left: -16px; }
.extra .gold { flex: none; width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 27px; padding-bottom: 4px; color: var(--ink); background: linear-gradient(180deg, #F8DF92, #DDB24C); box-shadow: 0 4px 0 #A8862F; }
.extra .medal { position: relative; right: auto; top: auto; flex: none; margin: 18px 6px 0 4px; }

/* Grown-ups */
.promises { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .promises { grid-template-columns: 1fr 1fr; } }
.promises li { display: flex; gap: 14px; align-items: flex-start; background: #FBF7EC; border-radius: 18px; padding: 16px 18px; }
.promises li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F1A14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.promises b { display: block; font-size: 19px; }
.promises span { color: var(--muted); font-size: 16px; }

/* Price */
.prices { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 760px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { border-radius: 26px; padding: 26px 24px 28px; }
.price.free { background: #FBF7EC; box-shadow: 0 14px 30px rgba(74, 51, 37, .12); }
.price.unlock { background: var(--felt); color: var(--paper); background-image: var(--felt-grain); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.price h3 { font-size: 27px; margin-bottom: 10px; }
.price .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.price .row .tile { width: 44px; font-size: 28px; box-shadow: 0 4px 0 var(--tile-edge); padding-bottom: 4px; }
.price .row .tile.vowel { box-shadow: 0 4px 0 var(--vowel-edge); }
.price.unlock p { color: var(--cream); }

/* Questions */
.faq { margin-top: 30px; display: grid; gap: 10px; }
.faq details { background: #FBF7EC; border-radius: 18px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 26px; line-height: .8; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: #3E342A; }

/* Closing band */
.closing { text-align: center; padding: 76px 0 0; overflow: hidden; }
.closing h2 { font-size: clamp(34px, 8vw, 54px); }
.closing .store { justify-items: center; }
.closing .nat-sit { width: min(46vw, 220px); margin: 34px auto -6px; }

/* Footer */
footer { background: var(--felt-3); color: var(--cream); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 16px; }
footer .wrap { display: grid; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { color: var(--paper); text-decoration: none; padding: 6px 0; }
footer .small { font-size: 14px; color: #A99C86; }
footer .mail { color: var(--brass-light); word-break: break-all; }

/* Policy pages */
.doc { padding: 50px 0 80px; }
.doc h1 { font-size: clamp(38px, 9vw, 58px); }
.doc .updated { color: var(--muted); margin-top: 10px; font-size: 16px; }
.doc .summary { margin-top: 28px; background: #FBF7EC; border-radius: 20px; padding: 18px 20px; border-left: 6px solid var(--brass); }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: #3A3027; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--red-deep); }
.doc .card { margin-top: 28px; background: var(--felt); color: var(--paper); background-image: var(--felt-grain); border-radius: 22px; padding: 22px; }
.doc .card p { color: var(--cream); }
.doc .card a { color: var(--brass-light); word-break: break-all; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound img { width: 200px; margin: 0 auto 20px; }
.button { display: inline-block; margin-top: 22px; background: var(--red); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; box-shadow: inset 0 -4px 0 var(--red-deep); font-weight: 700; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Labels on paper need a darker brass to stay readable */
.band:not(.felt) .eyebrow, .doc .eyebrow { color: #7A6430; }
.moment h3 span { color: #7A6430; }
.closing .intro { max-width: 30em; margin: 14px auto 0; font-size: 19px; color: var(--muted); }
.closing .store-btn { color: var(--ink); background: #FBF7EC; border-color: var(--brass); }
.closing a.store-btn { color: #fff; background: var(--red); border-color: var(--red); }
.closing .store-note { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
