/*
 * The landing page (Root/default.htm).
 * The apps' look, not the dark text-game look of site.css: the mood board's
 * palette (concept/design-colors-fonts.png) — deep blue, warm brown, gold,
 * cream, beige, sky grey — Playfair Display for headings, Inter for text.
 * Everything is scoped under .landing so site.css stays as it is.
 */
body:has(.landing) { background: #FAF6ED; color-scheme: light; }
.landing {
  --deep: #1F2937; --brown: #8B6F47; --gold: #D4A65A; --cream: #FAF6ED; --beige: #E8D9C4; --sky: #A7B4C4;
  --ink: #2A2420; --soft: #6E6253; --line: rgba(139, 111, 71, .22);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  overflow-x: clip; min-height: 100vh;
}
.landing a { color: inherit; }
.landing h1, .landing h2, .landing h3 { font-family: var(--serif); font-weight: 400; color: var(--deep); margin: 0; letter-spacing: -.01em; }
.landing h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; }
.landing .eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); }
.landing section { padding: clamp(72px, 10vw, 128px) 20px; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-lead { color: var(--soft); margin: 18px auto 0; max-width: 620px; }

/* ---- The top bar ---- */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 18px 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 19px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--deep) !important; }
.nav-brand img { width: 40px; height: auto; }
.nav-links { display: flex; gap: 26px; margin-left: 24px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--soft); }
.nav-links a:hover, .nav-signin:hover { color: var(--deep); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-signin { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--deep) !important;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; background: rgba(255, 255, 255, .5); }
.landing select.lang { width: auto; background: transparent; border: 1px solid var(--line); color: var(--soft); font: 14px var(--sans);
  padding: 6px 10px; border-radius: 999px; color-scheme: light; }

/* ---- Hero ---- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
  max-width: 1200px; margin: 0 auto; min-height: min(100vh, 920px); min-height: min(100svh, 920px); padding: 110px 20px 60px !important; }
.hero-glow { position: absolute; inset: -10% -30% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 166, 90, .35), rgba(232, 217, 196, .2) 55%, transparent); filter: blur(10px); }
.hero-text { position: relative; z-index: 1; }
.logo { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 34px; }
.logo img { width: 84px; height: auto; }
.wordmark { margin: 8px 0 0; font-family: var(--serif); font-size: 30px; letter-spacing: .2em; text-transform: uppercase; color: var(--deep); line-height: 1.1; padding-left: .2em; }
.tagline { margin: 6px 0 0; font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--brown); padding-left: .38em; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.08; }
.hero .lead { font-size: 18px; color: var(--soft); max-width: 520px; margin: 22px 0 32px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 11px; min-width: 176px; padding: 9px 20px 9px 16px; border-radius: 14px;
  background: var(--deep); color: #fff !important; text-decoration: none; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 22px -10px rgba(31, 41, 55, .6); }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(31, 41, 55, .7); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.store small { font-size: 11px; font-weight: 400; letter-spacing: .02em; opacity: .85; }
.hero-web { margin: 20px 0 0; }
.web-play { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--brown) !important;
  border-bottom: 1px solid rgba(139, 111, 71, .4); padding-bottom: 2px; transition: gap .2s, color .2s; }
.web-play:hover { gap: 12px; color: var(--deep) !important; }
.hero-note { margin: 10px 0 0; font-size: 14px; color: var(--soft); opacity: .85; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.portal { position: relative; width: min(400px, 82%); aspect-ratio: 9 / 15; border-radius: 999px 999px 28px 28px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(139, 111, 71, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset; animation: breathe 7s ease-in-out infinite; }
.portal::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 10px rgba(250, 246, 237, .35); }
.portal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.hero-phone { position: absolute; width: 190px; right: -2%; bottom: -4%; transform: rotate(5deg); animation: floaty 8s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 50px 100px -30px rgba(212, 166, 90, .75), 0 0 0 1px rgba(255, 255, 255, .6) inset; } }
@keyframes floaty { 50% { transform: rotate(4deg) translateY(-12px); } }

/* A phone frame around an app screen. */
.phone { border-radius: 30px; padding: 7px; background: linear-gradient(145deg, #3a332c, #14110e); box-shadow: 0 30px 60px -24px rgba(42, 36, 32, .55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* ---- The story ---- */
.story { text-align: center; max-width: 860px; margin: 0 auto; }
.story blockquote { margin: 28px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.5; color: var(--deep); }
.story blockquote::before { content: '“'; display: block; font-size: 80px; line-height: .6; color: var(--gold); font-style: normal; margin-bottom: 6px; }
.author { margin: 28px 0 0; color: var(--soft); font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.author b { color: var(--deep); font-weight: 600; }
.author .dot { width: 34px; height: 1px; background: var(--gold); }

/* ---- The five spheres ---- */
.landing .spheres { display: block; background: linear-gradient(180deg, var(--cream), #F3EADB 40%, var(--cream)); }
.sphere-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.sphere { position: relative; aspect-ratio: 9 / 15; border-radius: 999px 999px 22px 22px; overflow: hidden; color: #fff;
  box-shadow: 0 24px 50px -28px rgba(42, 36, 32, .6); transition-delay: calc(var(--i) * 90ms) !important; }
.sphere img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s ease; }
.sphere:hover img { transform: scale(1.06); }
.sphere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(20, 15, 10, .78)); }
.sphere-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px 18px 22px; }
.sphere-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sphere h3 { color: #fff; font-size: 24px; margin-top: 6px; }
.sphere p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.sphere-emotions { outline: 2px solid rgba(212, 166, 90, .7); outline-offset: 4px; }

/* ---- Inside the game ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; max-width: 1100px; margin: 0 auto; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature .phone { width: min(250px, 80%); transition: transform .4s ease; }
.feature:hover .phone { transform: translateY(-6px); }
.feature:nth-child(3n+2) .phone { margin-top: 40px; }
.feature-text { margin-top: 26px; max-width: 320px; }
.num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; }
.feature h3 { font-size: 23px; line-height: 1.25; margin-top: 4px; }
.feature p { margin: 10px 0 0; color: var(--soft); font-size: 15.5px; }

/* ---- Twelve archetypes ---- */
.archetypes { background: var(--deep); color: #E9E2D6; }
.archetypes h2 { color: #FAF6ED; }
.archetypes .eyebrow { color: var(--gold); }
.archetypes .section-lead { color: var(--sky); }
.arch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.arch { margin: 0; text-align: center; transition-delay: calc(var(--i) * 70ms) !important; }
.arch img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 16px 16px;
  box-shadow: 0 0 0 1px rgba(212, 166, 90, .35); transition: transform .5s, box-shadow .5s; }
.arch:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(212, 166, 90, .9), 0 18px 40px -16px rgba(212, 166, 90, .5); }
.arch figcaption { margin-top: 12px; font-family: var(--serif); font-size: 16px; color: #FAF6ED; }

/* ---- The finale ---- */
.finale { background: radial-gradient(ellipse at 30% 50%, #F6E7C9, var(--cream) 70%); }
.finale-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; max-width: 1000px; margin: 0 auto; }
.finale-video { justify-self: center; width: min(320px, 80%); aspect-ratio: 9 / 16; border-radius: 999px 999px 28px 28px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(139, 111, 71, .6); background: var(--beige); }
.finale-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.finale-text p:last-child { color: var(--soft); font-size: 18px; margin: 20px 0 0; }

/* ---- Call to action + footer ---- */
.cta { text-align: center; max-width: 760px; margin: 0 auto; }
.cta-mark { width: 80px; height: auto; margin-bottom: 18px; }
.cta .stores { justify-content: center; margin-top: 32px; }
.cta-signin { margin: 22px 0 0; font-size: 15px; }
.cta-signin a { color: var(--soft); }
.foot { border-top: 1px solid var(--line); padding: 36px 20px 44px; text-align: center; color: var(--soft); font-size: 14px; }
.foot p { margin: 0 0 10px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--deep); }
.foot-brand img { width: 32px; height: auto; }
.foot-note { max-width: 520px; margin: 0 auto 14px !important; }
.foot-links { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--soft); }
.foot-copy { opacity: .7; font-size: 13px; }

/* ---- Scroll-in ---- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---- Narrower screens ---- */
@media (max-width: 1000px) {
  .sphere-row { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px;
    margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
  .sphere-row::-webkit-scrollbar { display: none; }
  .sphere { scroll-snap-align: center; }
  .arch-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 96px !important; gap: 36px; min-height: 0; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .hero-art { min-height: 0; order: 2; }
  .portal { width: min(320px, 78%); }
  .hero-phone { width: 140px; right: 2%; }
  .features { grid-template-columns: 1fr 1fr; gap: 48px 20px; }
  .feature:nth-child(3n+2) .phone { margin-top: 0; }
  .feature:nth-child(2n) .phone { margin-top: 40px; }
  .finale-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
@media (max-width: 560px) {
  .landing { font-size: 16px; }
  .nav { padding: 14px 16px; gap: 12px; }
  .nav-brand span { display: none; }
  .nav-right { gap: 10px; }
  .landing section { padding-left: 16px; padding-right: 16px; }
  .hero-glow { width: 600px; height: 600px; }
  .wordmark { font-size: 24px; }
  .store { min-width: 0; flex: 1 1 150px; justify-content: center; padding: 9px 12px; gap: 9px; }
  .store span { font-size: 17px; white-space: nowrap; }
  .hero-phone { width: 112px; right: 0; bottom: -6%; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(2n) .phone { margin-top: 0; }
  .feature .phone { width: min(240px, 70%); }
  .arch-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .arch figcaption { font-size: 14px; }
  .sphere-row { grid-template-columns: repeat(5, 72%); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal, .hero-phone { animation: none; }
}
