/* Mindsutra Phase 05: shared Android product-page presentation layer.
   Scope: visual/responsive/accessibility polish only. No product or business logic. */
body.mst-phase5-mobile-app{
  --mst-app-accent:#7a430c;
  --mst-app-accent-2:#bd7d22;
  --mst-app-deep:#382313;
  --mst-app-soft:#fff6e7;
  --mst-app-line:rgba(112,69,24,.18);
  --mst-app-shadow:0 18px 48px rgba(74,45,18,.10);
  background:linear-gradient(180deg,#fbf5eb 0,#fffdf8 30%,#fffaf1 100%);
}
body.mst-phase5-app--lalkitab{--mst-app-accent:#8b2f22;--mst-app-accent-2:#c96d36;--mst-app-deep:#461c16;--mst-app-soft:#fff2ed}
body.mst-phase5-app--remedies{--mst-app-accent:#2f6b50;--mst-app-accent-2:#6e9e67;--mst-app-deep:#183d2e;--mst-app-soft:#eff8f2}
body.mst-phase5-app--numerology{--mst-app-accent:#5b3d86;--mst-app-accent-2:#9a6fc1;--mst-app-deep:#312047;--mst-app-soft:#f7f1fc}
body.mst-phase5-app--kp{--mst-app-accent:#245c82;--mst-app-accent-2:#5790b4;--mst-app-deep:#173b53;--mst-app-soft:#eef7fc}
body.mst-phase5-mobile-app :where(.page-header,.hero){
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 88% 12%,rgba(255,255,255,.68),transparent 30%),
    linear-gradient(135deg,var(--mst-app-soft),#fffdf8 58%,rgba(255,255,255,.95));
  border-bottom:1px solid var(--mst-app-line);
}
body.mst-phase5-mobile-app :where(.page-header,.hero)::before{
  content:"";position:absolute;inset:auto -110px -150px auto;width:340px;height:340px;border-radius:50%;
  background:radial-gradient(circle,rgba(211,154,53,.18),transparent 68%);pointer-events:none;z-index:-1;
}
body.mst-phase5-mobile-app :where(.hero-wrap,.hero-grid){gap:clamp(22px,4vw,54px);align-items:center}
body.mst-phase5-mobile-app :where(.hero-left,.hero-copy){min-width:0}
body.mst-phase5-mobile-app :where(.hero-left,.hero-copy) h1{
  max-width:18ch;margin-top:10px;color:var(--mst-app-deep);font-size:clamp(2.05rem,4vw,4.15rem);line-height:1.04;letter-spacing:-.035em;
}
body.mst-phase5-mobile-app :where(.hero-desc,.lead){max-width:760px;color:#615546;font-size:clamp(1rem,1.35vw,1.13rem);line-height:1.72}
body.mst-phase5-mobile-app :where(.eyebrow,.hero-badge,.tag){border-color:color-mix(in srgb,var(--mst-app-accent) 24%,transparent);background:var(--mst-app-soft);color:var(--mst-app-accent)}
body.mst-phase5-mobile-app :where(.hero-badges,.tag-row){display:flex;flex-wrap:wrap;gap:9px}
body.mst-phase5-mobile-app :where(.hero-badge,.tag){min-height:34px;display:inline-flex;align-items:center;padding:7px 11px;border:1px solid color-mix(in srgb,var(--mst-app-accent) 22%,transparent);border-radius:999px;font-weight:800;line-height:1.2}
body.mst-phase5-mobile-app :where(.hero-right,.hero-product-wrap){min-width:0}
body.mst-phase5-mobile-app :where(.product-visual,.product-frame){
  position:relative;display:grid;place-items:center;min-height:360px;padding:clamp(18px,3vw,34px);overflow:hidden;
  border:1px solid var(--mst-app-line);border-radius:26px;background:linear-gradient(145deg,#fff,var(--mst-app-soft));box-shadow:var(--mst-app-shadow);
}
body.mst-phase5-mobile-app :where(.product-visual,.product-frame) img{display:block;max-width:100%;max-height:520px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(45,27,12,.16))}
body.mst-phase5-mobile-app :where(.ribbon){background:linear-gradient(135deg,var(--mst-app-accent),var(--mst-app-accent-2));color:#fff}
body.mst-phase5-mobile-app :where(.cta-row,.hero-actions,.cta-actions,.sample-actions){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body.mst-phase5-mobile-app :where(.btn,.btn-link){
  min-height:46px;padding:11px 18px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-weight:850;line-height:1.2;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}
body.mst-phase5-mobile-app :where(.btn-primary){border-color:var(--mst-app-accent);background:linear-gradient(135deg,var(--mst-app-accent),var(--mst-app-accent-2));color:#fff;box-shadow:0 10px 22px color-mix(in srgb,var(--mst-app-accent) 24%,transparent)}
body.mst-phase5-mobile-app :where(.btn-secondary,.btn-outline,.btn-link){border:1px solid color-mix(in srgb,var(--mst-app-accent) 30%,transparent);background:#fff;color:var(--mst-app-accent)}
body.mst-phase5-mobile-app :where(.btn,.btn-link):hover{transform:translateY(-1px)}
body.mst-phase5-mobile-app :where(.btn,.btn-link,.tab-btn,.toc-tab,.quick-links a):focus-visible{outline:3px solid color-mix(in srgb,var(--mst-app-accent-2) 42%,transparent);outline-offset:3px}
body.mst-phase5-mobile-app :where(main section){scroll-margin-top:112px}
body.mst-phase5-mobile-app :where(.section-card,.outer-card,.intro-card,.about-copy-card,.content-panel-card,.pdf-report-card,.video-only-card,.video-card,.cta-card,.cta-banner,.feature-card){
  border:1px solid var(--mst-app-line);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 12px 34px rgba(74,45,18,.075);
}
body.mst-phase5-mobile-app :where(.section-card,.outer-card,.intro-card,.about-copy-card,.content-panel-card,.pdf-report-card,.video-only-card,.video-card,.feature-card){padding:clamp(18px,2.5vw,30px)}
body.mst-phase5-mobile-app :where(.section-head h2,.intro-title,.cta-card h2,.cta-banner h2){color:var(--mst-app-deep);font-size:clamp(1.55rem,2.4vw,2.35rem);line-height:1.16;letter-spacing:-.018em}
body.mst-phase5-mobile-app :where(.section-head p,.intro-card p,.about-copy-card p,.content-panel-card p){color:#66594a;line-height:1.72}
body.mst-phase5-mobile-app :where(.quick-links){display:flex;gap:8px;overflow-x:auto;padding:6px 2px 10px;scrollbar-width:thin;overscroll-behavior-inline:contain}
body.mst-phase5-mobile-app :where(.quick-links a){flex:0 0 auto;min-height:42px;display:inline-flex;align-items:center;padding:9px 13px;border:1px solid var(--mst-app-line);border-radius:999px;background:#fff;color:var(--mst-app-deep);font-weight:800;text-decoration:none}
body.mst-phase5-mobile-app :where(.ic-grid,.feature-grid,.sample-grid){gap:14px}
body.mst-phase5-mobile-app :where(.ic-card,.sample-card){border:1px solid var(--mst-app-line);border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(74,45,18,.055)}
body.mst-phase5-mobile-app :where(.ic-price-row){border-radius:14px;background:var(--mst-app-soft)}
body.mst-phase5-mobile-app :where(.pricing-table-wrap){width:100%;overflow-x:auto;border:1px solid var(--mst-app-line);border-radius:16px;background:#fff;-webkit-overflow-scrolling:touch}
body.mst-phase5-mobile-app :where(.pricing-table){min-width:640px;margin:0}
body.mst-phase5-mobile-app :where(.pricing-table th){background:var(--mst-app-soft);color:var(--mst-app-deep)}
body.mst-phase5-mobile-app :where(.tabs-shell,.toc-shell){overflow:hidden;border:1px solid var(--mst-app-line);border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(74,45,18,.065)}
body.mst-phase5-mobile-app :where(.tabs-head,.toc-tabs){display:flex;gap:7px;overflow-x:auto;padding:10px;background:var(--mst-app-soft);scrollbar-width:thin;overscroll-behavior-inline:contain}
body.mst-phase5-mobile-app :where(.tab-btn,.toc-tab){flex:0 0 auto;min-height:44px;padding:10px 14px;border:1px solid color-mix(in srgb,var(--mst-app-accent) 18%,transparent);border-radius:11px;background:#fff;color:var(--mst-app-deep);font-weight:820;white-space:nowrap;cursor:pointer}
body.mst-phase5-mobile-app :where(.tab-btn.active,.toc-tab.active){border-color:var(--mst-app-accent);background:linear-gradient(135deg,var(--mst-app-accent),var(--mst-app-accent-2));color:#fff;box-shadow:0 7px 16px color-mix(in srgb,var(--mst-app-accent) 20%,transparent)}
body.mst-phase5-mobile-app :where(.tab-panel,.toc-panel){padding:clamp(16px,2.5vw,28px)}
body.mst-phase5-mobile-app :where(.sample-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body.mst-phase5-mobile-app :where(.sample-card){display:flex;flex-direction:column;gap:12px;padding:16px}
body.mst-phase5-mobile-app :where(.sample-card h3){margin:0;color:var(--mst-app-deep);font-size:1rem}
body.mst-phase5-mobile-app :where(.sample-card .sample-actions){margin-top:auto}
body.mst-phase5-mobile-app :where(.video-frame-wrap,.video-frame){position:relative;width:100%;overflow:hidden;border-radius:18px;background:#1d1814}
body.mst-phase5-mobile-app :where(.video-frame-wrap iframe,.video-frame iframe){display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
body.mst-phase5-mobile-app :where(.cta-card,.cta-banner){overflow:hidden;padding:clamp(22px,3.2vw,38px);background:linear-gradient(135deg,var(--mst-app-deep),var(--mst-app-accent));color:#fff;box-shadow:0 18px 42px color-mix(in srgb,var(--mst-app-accent) 24%,transparent)}
body.mst-phase5-mobile-app :where(.cta-card h2,.cta-banner h2,.cta-card p,.cta-banner p){color:#fff}
body.mst-phase5-mobile-app :where(.cta-panel){padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:17px;background:rgba(255,255,255,.09)}
body.mst-phase5-mobile-app :where(.cta-card .btn-primary,.cta-banner .btn-primary){background:#fff;color:var(--mst-app-deep);border-color:#fff;box-shadow:none}
body.mst-phase5-mobile-app :where(.cta-card .btn-secondary,.cta-card .btn-outline,.cta-banner .btn-secondary,.cta-banner .btn-outline){background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
body.mst-phase5-mobile-app .mst-touchup-disclaimer{max-width:1180px;margin:16px auto;padding:14px 16px;border:1px solid #d8c7a9;border-radius:14px;background:#fff9ed;color:#5a4a36}
@media(max-width:991.98px){
  body.mst-phase5-mobile-app :where(.hero-wrap,.hero-grid){grid-template-columns:1fr!important}
  body.mst-phase5-mobile-app :where(.hero-left,.hero-copy){order:1}
  body.mst-phase5-mobile-app :where(.hero-right,.hero-product-wrap){order:2;max-width:620px;width:100%;margin-inline:auto}
  body.mst-phase5-mobile-app :where(.product-visual,.product-frame){min-height:300px}
  body.mst-phase5-mobile-app :where(.cta-layout){grid-template-columns:1fr!important;gap:18px}
}
@media(max-width:575.98px){
  body.mst-phase5-mobile-app :where(.page-header,.hero){padding-block:26px 32px}
  body.mst-phase5-mobile-app :where(.hero-left,.hero-copy) h1{max-width:none;font-size:clamp(2rem,10vw,2.75rem)}
  body.mst-phase5-mobile-app :where(.hero-desc,.lead){font-size:1rem;line-height:1.62}
  body.mst-phase5-mobile-app :where(.product-visual,.product-frame){min-height:250px;padding:16px;border-radius:20px}
  body.mst-phase5-mobile-app :where(.product-visual,.product-frame) img{max-height:360px}
  body.mst-phase5-mobile-app :where(.cta-row,.hero-actions,.cta-actions,.sample-actions){display:grid;grid-template-columns:1fr;width:100%}
  body.mst-phase5-mobile-app :where(.cta-row .btn,.hero-actions .btn,.cta-actions .btn,.sample-actions .btn,.sample-actions .btn-link){width:100%}
  body.mst-phase5-mobile-app :where(.section-card,.outer-card,.intro-card,.about-copy-card,.content-panel-card,.pdf-report-card,.video-only-card,.video-card,.feature-card){padding:16px;border-radius:18px}
  body.mst-phase5-mobile-app :where(.sample-grid){grid-template-columns:1fr}
  body.mst-phase5-mobile-app :where(.tabs-shell,.toc-shell){border-radius:16px}
  body.mst-phase5-mobile-app :where(.tab-panel,.toc-panel){padding:15px}
  body.mst-phase5-mobile-app :where(.cta-card,.cta-banner){padding:20px;border-radius:18px}
}
@media(prefers-reduced-motion:reduce){body.mst-phase5-mobile-app *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* FINAL MOBILE WIDTH SAFETY — 19 Aug 2026
   Page body must not overflow; genuinely wide tables/pre blocks scroll inside their own area. */
body.mst-phase5-mobile-app :where(main,.section-card,.outer-card,.intro-card,.about-copy-card,.content-panel-card,.pdf-report-card,.video-only-card,.video-card,.feature-card){min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:991.98px){
  body.mst-phase5-mobile-app main{max-width:100%;overflow-x:clip}
  body.mst-phase5-mobile-app main :where(.container,.hero-wrap,.hero-grid,.section-card,.outer-card,.content-panel-card,.sample-grid,.feature-grid,.info-grid){min-width:0;max-width:100%}
  body.mst-phase5-mobile-app main table{display:block;width:100%;min-width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  body.mst-phase5-mobile-app main :where(th,td){overflow-wrap:anywhere;word-break:normal}
  body.mst-phase5-mobile-app main :where(img,svg,iframe,video){max-width:100%}
  body.mst-phase5-mobile-app main :where(pre){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.mst-phase5-mobile-app main :where(code,a){overflow-wrap:anywhere}
}
