/* Crystal Geometry product page in the Hello Geometry flow (preview /crystal-geometry-new, 2 Dec 2026).
   Loaded after the Hello Geometry CSS: only what this page adds. The living models come from
   /js/bornglobal-crystal.js (the same code as the Born Global page). */

/* hero: the crystal photo behind, a turning model where Hello Geometry shows its devices */
html body #hero.hero-app.cg-hero{position:relative;background:linear-gradient(rgba(var(--rgb-violet-black),.70),rgba(var(--rgb-violet-black),.88)),url('/images/hero/crystal-geometry-hero.webp') center/cover no-repeat}
#hero.cg-hero .hero-title{hyphens:none;-webkit-hyphens:none}
html body #hero.cg-hero .hero-duo{flex-wrap:wrap!important;align-items:center}
#hero .cg-small{margin:12px 0 0;font-size:.92rem;color:var(--hg-ink2,#d9d2c3);letter-spacing:.02em;flex:0 0 100%}
.cg-hero-3d{position:relative;width:min(420px,80vw);aspect-ratio:1;margin:28px auto 0}
@media (min-width:1024px){
  #hero.cg-hero{display:flex;align-items:center;justify-content:center;gap:56px}
  .cg-hero-3d{flex:0 1 480px;width:auto;max-width:44vw;margin:0}
}
@media (max-width:1023px){
  #hero.cg-hero{padding-top:84px;padding-bottom:36px}
  #hero.cg-hero .hero-title{font-size:clamp(1.6rem,7vw,2.4rem)}
}
/* stats: four tiles on phones in two rows of two (+1) like Hello Geometry */
/* (phones keep Hello Geometry's 3 + 2 tiles) */

/* the four worlds as hexagons, the world below */
.cg-hexes{display:flex;justify-content:center;gap:clamp(6px,2vw,18px);margin:26px auto 8px;padding:0;list-style:none}
.cg-hx{position:relative;width:clamp(78px,21vw,150px);aspect-ratio:1/1.1547;border:0;padding:0;cursor:pointer;background:rgba(var(--rgb-cream-dark),.22);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);transition:transform .25s,background .25s}
.cg-hx:nth-child(even){margin-top:clamp(26px,6vw,58px)}
/* phones: the four worlds as a honeycomb, two over two, big enough to read (review 2 Dec) */
@media (max-width:640px){
  .cg-hexes{--hw:clamp(118px,37vw,160px);display:grid;grid-template-columns:repeat(2,var(--hw));justify-content:center;gap:0 6px}
  .cg-hx{width:var(--hw)}
  .cg-hx:nth-child(even){margin-top:0}
  .cg-hx:nth-child(-n+2){transform:translateX(calc(var(--hw) / -4))}
  .cg-hx:nth-child(n+3){margin-top:calc(var(--hw) * -.27);transform:translateX(calc(var(--hw) / 4))}
  .cg-hx.on:nth-child(-n+2){transform:translateX(calc(var(--hw) / -4)) scale(1.05)}
  .cg-hx.on:nth-child(n+3){transform:translateX(calc(var(--hw) / 4)) scale(1.05)}
  .cg-hx .cg-lab{font-size:.95rem}.cg-hx .cg-lab small{font-size:.66em}
}
.cg-hx .cg-face{position:absolute;inset:3px;clip-path:inherit;background-size:cover;background-position:center;filter:saturate(.75) brightness(.55);transition:filter .25s}
.cg-hx .cg-lab{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 10%;color:#f6efe2;font:600 clamp(.72rem,2.6vw,1rem)/1.15 'Outfit',system-ui,sans-serif;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.95),0 0 12px rgba(0,0,0,.8)}
.cg-hx .cg-lab small{display:block;margin-top:3px;font-weight:500;font-size:.68em;letter-spacing:.14em;text-transform:uppercase;color:rgba(246,239,226,.8)}
.cg-hx:hover .cg-face,.cg-hx:focus-visible .cg-face{filter:saturate(.95) brightness(.8)}
.cg-hx.on{background:var(--c-saffron,#f2b33d);transform:scale(1.06)}
.cg-hx.on .cg-face{filter:saturate(1) brightness(.62)}
.cg-hx:focus-visible{outline:none}
.cg-worlds-hint{margin:6px 0 0;text-align:center;font-size:.9rem;color:rgba(var(--rgb-cream-dark),.7)}

/* one world at a time: the model, its buttons, what you do */
.cg-world[hidden]{display:none}
#topics .bg-row{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;margin-top:36px;text-align:left}
#topics .bg-stage{position:relative;background:radial-gradient(circle at 50% 45%,var(--c-line),var(--c-panel) 72%);border:1px solid var(--c-line);border-radius:22px;overflow:hidden;min-width:0}
#topics .bg-stage svg{display:block;width:100%;height:auto}
.bg-3d{position:relative;width:100%;aspect-ratio:1;cursor:grab;touch-action:pan-y}.bg-3d:active{cursor:grabbing}
.bg-3d canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;touch-action:pan-y!important}
.bg-3d .cell-tags{display:none}
#g-carbon .bg-3d.off{visibility:hidden}#g-carbon .bg-3d+.bg-3d{position:absolute;inset:0}
.bg-two{display:grid;grid-template-columns:1fr;gap:4px;padding:18px}.bg-two svg{aspect-ratio:860/640;max-width:430px;margin:0 auto}
#topics .bg-say .card-kicker{margin:0 0 6px}
#topics .bg-say h3{font:600 clamp(1.5rem,2.6vw,2rem)/1.2 'Outfit',system-ui,sans-serif;margin:0 0 14px;color:var(--hg-ink,#f6efe2)}
#topics .bg-txt p{font-size:1.1rem;line-height:1.6;margin:0 0 14px;color:var(--hg-ink2,#d9d2c3)}
.bg-ticks{list-style:none;padding:0;margin:0 0 22px}.bg-ticks li{padding:6px 0 6px 30px;position:relative;font-size:1.04rem;line-height:1.45;color:var(--hg-ink2,#d9d2c3)}
.bg-ticks li::before{content:'✓';position:absolute;left:0;color:var(--c-turquoise-bright);font-weight:600}
.bg-chips{display:flex;flex-wrap:wrap;gap:10px}
.bg-chip{min-height:44px;padding:9px 18px;border-radius:999px;border:1.5px solid var(--c-turquoise-bright);background:transparent;color:var(--c-cream-dark);font:500 1rem 'Outfit',sans-serif;cursor:pointer}
.bg-chip.on{background:var(--c-turquoise-bright);color:var(--c-violet-black)}
@media (max-width:800px){
  #topics .bg-row{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:26px}
  #topics .bg-say{display:contents}
  #topics .bg-say .card-kicker{order:1;text-align:center}
  #topics .bg-say h3{order:2;text-align:center;margin-bottom:16px}
  #topics .bg-stage{order:3}
  #topics .bg-chips{order:4;margin:16px 0;gap:8px;justify-content:center}
  #topics .bg-chip{padding:8px 15px}
  #topics .bg-txt{order:5}
  .bg-two svg{max-width:290px}
}

/* where it comes from: the video with Dr. Be */
.cg-frame{position:relative;aspect-ratio:16/9;max-width:760px;margin:28px auto 8px;border-radius:16px;overflow:hidden;background:var(--c-line);cursor:pointer}
.cg-frame img,.cg-frame iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.cg-frame .video-play-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

/* the phone bar: buy, not start free */
.hg-sticky .cg-price-s{white-space:nowrap}


/* hero: two phones from the app, like the devices on Hello Geometry */
.cg-hero-phones{display:flex;justify-content:center;align-items:flex-end;gap:14px;margin:30px auto 0;max-width:420px}
.cg-hero-phones .phone{width:46%;max-width:190px;border-radius:24px;overflow:hidden;border:6px solid #1d1830;box-shadow:0 24px 60px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08);background:#1d1830}
.cg-hero-phones .phone img{display:block;width:100%;height:auto}
.cg-hero-phones .phone:last-child{transform:translateY(-22px)}
@media (min-width:1024px){.cg-hero-phones{flex:0 1 440px;margin:0}.cg-hero-phones .phone{max-width:210px}}
@media (min-width:1024px){html body #hero.cg-hero .hero-text{flex:0 1 500px;max-width:500px;min-width:0;margin-right:24px}html body #hero.cg-hero .hero-lead{max-width:100%!important;width:auto!important;min-width:0!important}}
/* hero phones level, side by side (Heike 2 Dec) */
.cg-hero-phones{align-items:flex-start}.cg-hero-phones .phone:last-child{transform:none}
/* the four worlds as a square: 2 × 2 tiles on phones, four in a row on wide screens (Heike 2 Dec) */
html body .cg-hexes{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:440px;margin:26px auto 8px}
@media (min-width:900px){html body .cg-hexes{grid-template-columns:repeat(4,minmax(0,1fr));max-width:880px;gap:16px}}
html body .cg-hx,html body .cg-hx:nth-child(n){width:auto;aspect-ratio:1;margin:0!important;transform:none;clip-path:none;border-radius:18px;background:rgba(var(--rgb-cream-dark),.18);padding:0}
html body .cg-hx .cg-face{inset:2px;clip-path:none;border-radius:16px}
html body .cg-hx.on,html body .cg-hx.on:nth-child(n){transform:none;background:var(--c-saffron,#f2b33d);box-shadow:0 0 0 1px var(--c-saffron,#f2b33d),0 10px 30px rgba(0,0,0,.4)}
html body .cg-hx .cg-face{inset:3px}
html body .cg-hx .cg-lab{font-size:1.05rem}html body .cg-hx .cg-lab small{font-size:.66em}
