@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@700&display=swap');
/* Two distinct header destinations: PhygitAi home and Luna learning. */
.luna-brand{display:inline-flex;align-items:center;gap:14px;white-space:nowrap;flex-shrink:0;font:800 25px/1 'DM Sans',sans-serif;letter-spacing:-1.3px}
.brand-phygitai{color:#111a2d}.brand-phygitai span{color:#7660cc}.brand-divider{color:#d4c9d5;font-weight:500;font-size:29px}.brand-luna{color:#ff665b}.brand-spark{font-size:25px;margin-left:3px;color:#ff665b;display:inline-block;transition:transform .25s ease}.brand-luna:hover .brand-spark{transform:rotate(35deg) scale(1.13)}
.luna-brand{font-family:'Kalam','Comic Sans MS',cursive;letter-spacing:-1.7px}
.brand-phygitai{display:inline-block;transform:rotate(-1.5deg)}.brand-phygitai span{display:inline-block;transform:rotate(3deg)}.brand-luna{display:inline-block;transform:rotate(2deg)}
.luna-brand a:hover{text-decoration-color:#ff9b71;text-decoration-thickness:2px;text-underline-offset:5px}
/* iOS briefly paints an opaque gray tap rectangle behind brand links. */
.site-header .luna-brand a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* Navigation lettering belongs to Luna's illustrated world, without changing destinations. */
.desktop-nav{gap:clamp(15px,2vw,29px)}
.desktop-nav a{position:relative;display:inline-block;padding:7px 3px 5px;font-family:'Kalam','Comic Sans MS',cursive;font-size:18px;line-height:1.1;font-weight:700;letter-spacing:-.55px;transition:transform .2s ease,color .2s ease}
.desktop-nav a:nth-child(1){transform:rotate(-2deg)}.desktop-nav a:nth-child(2){transform:rotate(1deg)}.desktop-nav a:nth-child(3){transform:rotate(-1deg)}.desktop-nav a:nth-child(4){transform:rotate(2deg)}
.desktop-nav a::after{content:'';position:absolute;left:4px;right:4px;bottom:1px;height:4px;background:#9ee8d6;border-radius:50%;transform:scaleX(0) rotate(-2deg);transform-origin:left;transition:transform .2s ease}
.desktop-nav a:nth-child(2)::after{background:#ffc56a}.desktop-nav a:nth-child(3)::after{background:#dbb8ff}.desktop-nav a:nth-child(4)::after{background:#ffac9a}
.desktop-nav a:hover,.desktop-nav a:focus-visible{color:#e65d55;transform:translateY(-2px) rotate(0deg)}
.desktop-nav a:hover::after,.desktop-nav a:focus-visible::after{transform:scaleX(1) rotate(-2deg)}
.mobile-navigation a{font-family:'Kalam','Comic Sans MS',cursive;font-size:18px;font-weight:700}
.research-link .badge-cartoon{width:29px;height:29px;flex:0 0 29px;filter:none;margin:0}.research-link:hover .badge-cartoon{transform:rotate(-8deg) scale(1.12)}
.research-link{gap:8px;border:1px solid #cfe5fa;padding:7px 13px 7px 9px;min-height:40px;background:#e0edff;transition:transform .2s ease,background .2s ease,box-shadow .2s ease}
.research-link .badge-lettering{font-family:'Kalam','Comic Sans MS',cursive;font-weight:700;font-size:15px;letter-spacing:-.5px;line-height:1.1;white-space:nowrap;margin:0;color:#155588}
.research-link .badge-ai{font-size:inherit;vertical-align:baseline;color:#765dca;margin:0}
.research-link .badge-divider{color:#ff8377;font-size:19px;margin:0 5px;vertical-align:baseline}
.research-link:hover{background:#d5eaff;transform:translateY(-2px);box-shadow:0 5px 0 #567aa11f}
.hero-image{background-image:url('/luna/assets/luna-hero-fast.webp')}
.hero-card{display:contents}
/* Hand-lettered headline, warm paint strokes, and clear brand accents. */
.hero{height:auto;min-height:490px}
.hero-content{width:min(68%,785px);text-align:left;padding-top:116px;padding-bottom:40px}
.note-left{top:13px;left:22px;font-size:12px;line-height:1.13;max-width:142px}
.hero-kicker{font-size:13px;font-weight:800;letter-spacing:.23em;color:#777099;margin-bottom:19px;padding-left:4px}.hero-kicker span{color:#ff8476;margin:0 12px;font-size:19px;letter-spacing:0}
.hero h1.luna-handwritten{font-family:'Kalam','Comic Sans MS',cursive;font-size:clamp(31px,3.9vw,49px);font-weight:700;letter-spacing:-1.7px;line-height:1.18;margin:0;position:relative}
.luna-handwritten .headline-line{display:table;position:relative;white-space:nowrap;z-index:0}
.luna-handwritten .headline-line::after{content:"";position:absolute;left:0;bottom:4px;height:8px;width:99%;background:#f7b72a;border-radius:50%;transform:rotate(-.5deg);z-index:-1;opacity:.94}
.luna-handwritten .mint-mark::before,.luna-handwritten .peach-mark::before{content:"";position:absolute;right:1%;bottom:12px;width:59%;height:30px;background:#adebda;border-radius:8px;transform:rotate(-3deg);z-index:-1;opacity:.65}
.luna-handwritten .peach-mark::before{background:#ffd0b1;width:57%;transform:rotate(2deg)}
.luna-handwritten .final-line::after{left:32%;bottom:3px;width:68%;height:6px;background:#4eacf1}
.luna-handwritten .final-line em{font-style:normal;color:#ff6559;font-family:'Kalam',cursive;font-weight:700}
.hero-content .hero-subtitle{font-size:18px;line-height:1.55;color:#4f5360;margin:22px 0 22px}
.hero-subtitle strong{color:#287ec3;font-weight:800}
/* Keep the words readable where the hero illustration crosses beneath them. */
.hero-content .hero-subtitle{display:table;max-width:100%;padding:9px 15px 10px;background:#fffaf2f2;border:1px solid #f4e8d8;border-radius:17px;box-shadow:0 4px 17px #56412712;position:relative;z-index:2}
.hero-subtitle strong{color:#145f9e}
.hero-subtitle .hero-luna-callout{color:#e65d55;font-weight:800;white-space:nowrap}
.hero-content .hero-actions{justify-content:flex-start}
@media(max-width:1100px){.note-left{display:none}.desktop-nav{gap:clamp(10px,1.5vw,22px)}.hero-content{padding-top:74px}}
@media(max-width:950px){.luna-brand{font-size:22px;gap:9px}.brand-divider{font-size:25px}.brand-spark{font-size:21px}.desktop-nav{gap:10px}.desktop-nav a{font-size:15px}.research-link .badge-lettering{font-size:12px}.research-link{padding:6px 10px}.research-link .badge-cartoon{width:23px;height:23px;flex-basis:23px}.hero-content{width:67%;padding-top:70px}.hero h1.luna-handwritten{font-size:clamp(29px,3.65vw,39px)}.hero-kicker{font-size:11px}.hero-content .hero-subtitle{font-size:15px}}
@media(max-width:700px){.luna-brand{font-size:21px;gap:8px}.brand-divider{font-size:23px}.brand-spark{font-size:21px}.hero{min-height:0}.hero-content{width:100%;padding:16px 1px 21px}.hero-kicker{font-size:10px;letter-spacing:.15em;margin-bottom:12px}.hero-kicker span{margin:0 7px}.hero h1.luna-handwritten{font-size:clamp(25px,6.7vw,38px);letter-spacing:-1.2px;line-height:1.22}.hero-content .hero-subtitle{font-size:14px;margin:18px 0 16px}.luna-handwritten .mint-mark::before,.luna-handwritten .peach-mark::before{height:18px;bottom:8px}.luna-handwritten .headline-line::after{height:5px}}
@media(max-width:365px){.luna-brand{font-size:19px}.hero h1.luna-handwritten{font-size:24px}.hero-kicker{letter-spacing:.08em}}
/* On phones, combine the existing Luna art and copy into one illustrated frame. */
@media(max-width:700px){
  .hero.wrap{padding-top:14px;padding-bottom:67px;overflow:visible}
  .hero-card{display:flex;flex-direction:column;position:relative;width:100%;min-width:0;padding:0;background:#fff9f1;border:1.5px solid #f5d9bc;border-radius:26px;box-shadow:0 9px 28px #986b4d13}
  .hero-card .hero-image{display:block;position:relative;inset:auto;z-index:0;order:0;flex:none;width:100%;height:clamp(203px,59vw,248px);background-image:url('/luna/assets/luna-hero-fast.webp');background-size:cover;background-position:center center;border-radius:25px 25px 0 0}
  .hero-card .note{display:none}
  .hero-card .hero-content{position:static;z-index:auto;order:1;width:100%;min-width:0;padding:6px 16px 16px;text-align:center}
  .hero-card .hero-kicker{font-size:10px;letter-spacing:.17em;color:#867aa3;margin:0 0 11px;padding:0;white-space:nowrap}
  .hero-card .hero-kicker span{color:#ff7168;margin:0 6px}
  .hero-card h1.luna-handwritten{font-size:clamp(23px,6.9vw,32px);letter-spacing:-1.15px;line-height:1.15;margin:0 auto;text-align:left;width:max-content;max-width:100%}
  .hero-card .luna-handwritten .headline-line{display:block;white-space:nowrap}
  .hero-card .hero-content .hero-subtitle{display:block;width:100%;max-width:none;margin:15px 0 0;padding:10px 9px 11px;border-radius:16px;background:#fffdf9;border-color:#f3e5d2;text-align:center;font-size:clamp(12px,3.4vw,14px);line-height:1.55}
  .hero-card .hero-subtitle .desktop-break{display:none}
  .hero-card .hero-actions{position:absolute;top:calc(100% + 12px);left:0;right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;justify-content:stretch;align-items:stretch;margin:0}
  .hero-card .hero-actions .primary-button,.hero-card .hero-actions .secondary-button{display:flex;min-width:0;min-height:48px;padding:12px 8px;gap:6px;white-space:nowrap;font-size:clamp(11px,3.35vw,14px);line-height:1.1;border-radius:24px}
  .hero-card .hero-actions .primary-button span{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.brand-spark{transition:none}.brand-luna:hover .brand-spark{transform:none}}
/* luna-icons.css makes this desktop badge inline-flex; keep it off the narrow
   mobile header so it cannot push the menu beyond the viewport. */
@media(max-width:700px){.site-header .research-link{display:none}}
/* Shared drawn mark: a CSS shape rather than an operating-system emoji. */
.cartoon-spark{display:inline-block;vertical-align:-.04em;width:.82em;height:.82em;flex:0 0 auto;background:currentColor;clip-path:polygon(50% 0,60% 39%,100% 50%,60% 61%,50% 100%,40% 61%,0 50%,40% 39%)}
.brand-luna .cartoon-spark{width:19px;height:19px;vertical-align:0;color:#ff665b;margin-left:4px}
.hero-kicker .cartoon-spark{width:12px;height:12px;color:#ff8476;margin:0 12px}
.hero-actions .cartoon-spark{width:15px;height:15px;color:#ffac12}
.section-heading .cartoon-spark{width:.73em;height:.73em}
.gallery-polaroid figcaption .cartoon-spark{width:16px;height:16px;color:#e98476}
.mobile-actions{display:none}
.mobile-main-toggle{display:none}
@media(max-width:700px){
  .site-header{position:sticky}
  .site-header .nav{height:69px;min-width:0;justify-content:space-between}
  .site-header .luna-brand{flex-shrink:1;min-width:0;gap:clamp(4px,1.8vw,9px);font-size:clamp(18.5px,5.35vw,23px)}
  .mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:0;padding-bottom:10px}
  .mobile-menu-choice{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:43px;padding:9px 7px;border:1.5px solid #d8e6ef;border-radius:15px;background:#e9f2fb;color:#184d78;font:800 clamp(11px,3.4vw,14px)/1.1 'DM Sans',sans-serif;white-space:nowrap;box-shadow:0 2px 0 #3154720d}
  .mobile-menu-choice svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
  .mobile-menu-choice.luna-choice{background:#fff0df;border-color:#f3d4b7;color:#a34e44}
  .mobile-main-toggle{display:flex;flex:0 0 auto;min-height:41px;padding:9px 12px;background:#e9f6f5;border-color:#bbe2df;color:#225b69;font-size:13px;border-radius:12px;-webkit-tap-highlight-color:transparent}
  .mobile-main-toggle svg{width:18px;height:18px;flex-basis:18px}
  .mobile-menu-choice[aria-expanded=true]{background:#d1e9f7;border-color:#76aac8}
  .mobile-menu-choice.luna-choice[aria-expanded=true]{background:#ffe2c5;border-color:#e6a783}
  .mobile-main-toggle[aria-expanded=true]{background:#d0f0eb;border-color:#7cbbb5}
  .site-header .mobile-navigation{position:absolute;top:100%;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 9px;padding:14px 17px 18px;background:#fffcf8;border:1px solid #eee3db;box-shadow:0 15px 26px #3023421e;max-height:calc(100dvh - 120px);overflow-y:auto}
  .site-header .mobile-navigation[hidden]{display:none}
  .site-header .mobile-navigation a{display:flex;align-items:center;min-height:45px;padding:9px 12px;background:#f6f0f9;color:#35274e;border-radius:13px;font-size:15px;line-height:1.15}
  .site-header #mobile-luna-navigation a{background:#fdf0e8;color:#7f4b4d}
  .site-header #mobile-main-navigation a{background:#e8f6f4;color:#225b69}
  /* Prevent Safari from rendering the Explore doodle as a blue emoji tile. */
  .adventure-card.explore .scribble{display:none}
  .featured-card .featured-summary{max-width:calc(100% - 116px)}
  .featured-card .featured-visual.luna-mini-icon{width:105px;height:105px;right:10px}
  .brand-luna .cartoon-spark{width:16px;height:16px}
  .hero-card .hero-kicker .cartoon-spark{width:10px;height:10px;margin:0 6px}
}
/* Touchscreens should not retain the desktop hover rotation after a tap. */
@media (hover:none) and (pointer:coarse){
  .site-header .brand-luna:hover .brand-spark{transform:none}
  .site-header .luna-brand a:hover{text-decoration:none}
}
