/* Melnia v3 staging stylesheet — Team F.
   Layer 1: design prototype style.css, brand-mapped
   (prototype reds/purple remapped to the brand red and brand purple;
   dark gradient purple accents kept close to the design).
   Brand palette only — no other accent hues.
   Layer 2: v3 header / nav / hero / footer (from the owner's PNG reference).
   Layer 3: v2 content classes, dark-adapted (same layout values as v2). */
:root{
  --red:#dc2626; --red-dark:#b91c1c; --purple:#7c3aed; --purple-dark:#6d28d9;
  --purple-soft:#a78bfa; --bg:#09090b; --surface:#151219; --surface-2:#1a1620;
  --ink:#ffffff; --muted:#c9c6d1; --ink-2:#a1a1aa; --ink-3:#a1a1aa;
  --line:#403348; --bg-soft:#151219;

}
*{box-sizing:border-box
}
html{overflow-x:hidden
}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif
}
img{max-width:100%;height:auto
}
a{color:inherit;text-decoration:none
}
a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--purple);outline-offset:3px
}
p{color:var(--muted)
}
h1{font-size:clamp(42px,6vw,78px);line-height:1.05;letter-spacing:-.05em;margin:6px 0 12px
}
h2{font-size:30px;line-height:1.2;margin-top:32px
}
h3{font-size:18px;margin-top:24px
}
main h2{border-bottom:1px solid var(--line);padding-bottom:6px
}
main h2.no-rule{border-bottom:0;padding-bottom:0
}
li{color:#e4e4e7
}
::selection{background:var(--red);color:#fff
}
/* ---------- design base (mapped) ---------- */
.logo{font-size:30px;font-weight:900;white-space:nowrap
}
.logo .m-red{color:var(--red)
}
.red{color:var(--red)
}
.purple{color:var(--purple)
}
.btn{display:inline-block;padding:12px 22px;border-radius:12px;background:var(--red);color:#fff;font-weight:700;margin:4px;border:0;cursor:pointer;text-align:center
}
.btn:hover{background:var(--red-dark)
}
.btn.alt{background:transparent;border:1px solid var(--purple);color:#fff
}
.btn.alt:hover{background:rgba(124,58,237,.15)
}
.btn-purple{background:var(--purple)
}
.btn-purple:hover{background:var(--purple-dark)
}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--line)
}
.btn-ghost:hover{border-color:var(--purple)
}
.btn-sm{padding:8px 14px
}
.btn[disabled]{opacity:.55;cursor:not-allowed
}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px
}
.card{border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--surface)
}
.card h3{margin-top:0
}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:28px 0
}
.creator{background:linear-gradient(120deg,#151019,#38164f)
}
.market{background:linear-gradient(120deg,#151019,#480d20)
}
.center{text-align:center;padding:30px
}
.screen{height:240px;background:linear-gradient(145deg,#29134e,#b62e72,#171024);border-radius:18px;display:grid;place-items:center;font-size:55px
}
/* ---------- header / nav (PNG reference) ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(9,9,11,.96);border-bottom:1px solid #1f1b26;backdrop-filter:blur(6px)
}
.site-header .wrap{max-width:1280px;margin:0 auto;padding:14px 20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap
}
.site-nav{display:flex;gap:4px;align-items:center;flex-wrap:wrap
}
.site-nav>a,.nav-drop-btn{display:inline-flex;align-items:center;gap:4px;padding:10px 10px;border-radius:8px;font-weight:600;color:#e4e4e7;background:none;border:0;font:inherit;cursor:pointer;white-space:nowrap
}
.site-nav>a:hover,.nav-drop-btn:hover{color:#fff;background:#1a1620
}
.site-nav>a.active{color:#fff;box-shadow:inset 0 -3px 0 var(--red);border-radius:8px 8px 0 0
}
.nav-dropdown{position:relative
}
.nav-dropdown .dropdown-menu{position:absolute;top:calc(100% + 8px);left:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.6);padding:8px;min-width:280px;z-index:60;display:none;flex-direction:column
}
.nav-dropdown.open .dropdown-menu,.nav-dropdown:hover .dropdown-menu,.nav-dropdown:focus-within .dropdown-menu{display:flex
}
.dropdown-menu a:hover{background:#241d2e;color:#fff
}
.dropdown-menu .sub{display:block;font-size:13px;color:var(--muted);font-weight:400
}
.dropdown-menu .soon{color:var(--ink-2);cursor:default
}
.dropdown-menu .soon:hover{background:none;color:var(--ink-2)
}
.header-actions{display:flex;gap:10px;align-items:center;margin-left:auto;flex-wrap:wrap
}
.lang-wrap{display:inline-flex;align-items:center;gap:6px;color:#e4e4e7
}
.mobile-menu{display:none;flex-direction:column;gap:4px;width:100%;padding:10px 24px 18px
}
.mobile-menu.open{display:flex
}
.mobile-menu .lang-wrap{padding:10px 4px
}
.skip-link:focus{left:8px;top:8px
}
/* ---------- layout ---------- */
.wrap{max-width:1000px;margin:0 auto;padding:0 20px
}
main{max-width:1200px;margin:0 auto;padding:0 24px 60px
}
main>.wrap{max-width:1000px
}
.section{padding:24px 0
}
.section-head{margin-bottom:12px
}
.lede{font-size:18px;color:var(--muted)
}
.crumbs{font-size:13px;color:var(--muted)
}
.crumbs a{color:var(--purple-soft)
}
.kicker{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--purple-soft)
}
.muted{color:var(--muted)
}
.availability{font-size:14px;color:var(--muted)
}
.accent{color:var(--red)
}
.accent2{color:var(--purple-soft)
}
/* ---------- homepage hero (PNG reference) ---------- */
.hero3{display:grid;grid-template-columns:1.05fr 1.35fr;gap:32px;align-items:center;padding:56px 0 40px;position:relative
}
.hero3::before{content:"";position:absolute;inset:-40px -60px auto -60px;height:420px;pointer-events:none;
  background:radial-gradient(ellipse 60% 55% at 78% 55%,rgba(124,58,237,.38),transparent 65%),
             radial-gradient(ellipse 45% 45% at 95% 20%,rgba(220,38,38,.30),transparent 65%),
             radial-gradient(ellipse 40% 40% at 8% 85%,rgba(124,58,237,.28),transparent 65%)
}
.hero3>*{position:relative
}
.hero-pill{display:inline-block;border:1px solid var(--red);border-radius:999px;padding:6px 16px;font-size:14px;font-weight:600;color:#fff;background:rgba(220,38,38,.12)
}
.hero3 h1{font-size:clamp(48px,6.4vw,84px)
}
.hero3 h1 .line2{color:var(--red)
}
.hero-minis{display:flex;gap:28px;flex-wrap:wrap;margin:22px 0
}
.hero-mini{display:flex;gap:10px;align-items:center;font-weight:600;line-height:1.25
}
.hero-mini svg{flex:none
}
.hero-cta .btn{font-size:17px;padding:14px 26px
}
.phones{display:flex;align-items:flex-start;justify-content:center;gap:0;min-height:430px
}
.mock-phone{width:212px;flex:none;border:4px solid #3a3345;border-radius:30px;background:#0d0b12;padding:10px 10px 12px;box-shadow:0 0 50px rgba(124,58,237,.35);position:relative
}
.mock-phone.side{width:190px;transform:rotate(-7deg);margin-top:52px;z-index:1
}
.mock-phone.side.right{transform:rotate(7deg)
}
.mock-phone.centre{width:228px;z-index:2;box-shadow:0 0 70px rgba(220,38,38,.35);margin:0 -14px
}
.mock-status{display:flex;justify-content:space-between;font-size:11px;color:#a1a1aa;padding:2px 4px 8px
}
.mock-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 8px;font-weight:700;font-size:14px
}
.mock-head .m-red{color:var(--red)
}
.mock-tabs{display:flex;gap:12px;font-size:12px;color:var(--muted);padding:0 4px 8px;border-bottom:1px solid #262031;margin-bottom:8px
}
.mock-tabs b{color:#fff;border-bottom:2px solid var(--red);padding-bottom:6px
}
.mock-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px
}
.mock-chip{font-size:11px;border:1px solid var(--line);border-radius:999px;padding:3px 10px;color:#d4d0dc
}
.mock-chip.on{background:var(--purple);border-color:var(--purple);color:#fff
}
.mock-product{border:1px solid #262031;border-radius:12px;padding:10px;margin-bottom:10px;background:#14101b
}
.mock-product .art{height:74px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(145deg,#2a2140,#171024);margin-bottom:8px
}
.mock-product .price{font-weight:800
}
.mock-product .off{font-size:11px;color:#4ade80;font-weight:700
}
.mock-product .old{font-size:11px;color:var(--muted);text-decoration:line-through
}
.mock-product small{color:var(--muted);display:block;font-size:11px
}
.mock-video{height:230px;border-radius:14px;position:relative;overflow:hidden;
  background:linear-gradient(180deg,#2b1a4e 0%,#7c3aed 34%,#dc2626 62%,#1c1030 100%)
}
.mock-video::before{content:"";position:absolute;left:0;right:0;bottom:0;height:55%;
  background:linear-gradient(180deg,transparent,rgba(10,6,20,.55)),
  radial-gradient(ellipse 90% 60% at 50% 108%,#12081f 30%,transparent 70%)
}
.mock-video .play{position:absolute;inset:0;display:grid;place-items:center
}
.mock-video .play span{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;color:#111
}
.mock-rail{position:absolute;right:8px;bottom:52px;display:flex;flex-direction:column;gap:12px;align-items:center;font-size:11px;font-weight:700;color:#fff;text-align:center
}
.mock-rail svg{display:block;margin:0 auto 2px
}
.mock-bottomnav{display:flex;justify-content:space-around;padding:10px 4px 2px;color:var(--muted)
}
.mock-bottomnav b{color:var(--red)
}
.mock-avatar{width:96px;height:96px;border-radius:50%;margin:14px auto 10px;display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,#a78bfa,#7c3aed 55%,#3b0764);border:3px solid var(--purple)
}
.mock-chart{display:flex;align-items:flex-end;gap:8px;height:74px;justify-content:center;margin:12px 0 4px
}
.mock-chart i{width:16px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#c4b5fd,#7c3aed)
}
.mock-note{font-size:12px;color:var(--muted);text-align:center
}
/* ---------- homepage sections (PNG reference) ---------- */
.home-h2{text-align:center;font-size:clamp(28px,3.4vw,40px);margin:8px 0 28px;border:0;padding:0
}
.home-h2 .hl{color:var(--purple-soft)
}
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px
}
.feat-card{border:1px solid var(--line);border-radius:18px;padding:26px 22px;background:var(--surface);text-align:center
}
.feat-card svg{display:block;margin:0 auto 12px
}
.feat-card h3{margin:0 0 6px;font-size:19px
}
.feat-card p{margin:0;font-size:15px
}
.feat-card .soon-pill{display:inline-block;margin-top:10px
}
.big-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:28px 0
}
.big-card{border-radius:22px;padding:30px;overflow:hidden;position:relative;display:grid;grid-template-columns:1.25fr .75fr;gap:16px;align-items:center;min-height:230px
}
.big-card.creators{background:linear-gradient(120deg,#1c1030,#3b0764 70%);border:1px solid #5b21b6
}
.big-card.marketplace{background:linear-gradient(120deg,#1c0505,#4c0519 70%);border:1px solid #7f1d1d
}
.big-card .eyebrow{font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--purple-soft)
}
.big-card.marketplace .eyebrow{color:#fca5a5
}
.big-card h2{margin:4px 0 10px;font-size:32px;border:0;padding:0
}
.big-card h2 .hl{color:var(--purple-soft)
}
.big-card.marketplace h2 .hl{color:var(--red)
}
.big-card p{margin:0 0 16px;color:#e4e4e7
}
.big-art{display:grid;place-items:center;min-height:170px
}
.india-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:26px 0;border-top:1px solid #1f1b26;border-bottom:1px solid #1f1b26;margin:8px 0 0
}
.india-item{display:flex;gap:12px;align-items:flex-start
}
.india-item svg{flex:none;margin-top:2px
}
.india-item h3{margin:0 0 4px;font-size:17px
}
.india-item p{margin:0;font-size:14px
}
.cta-band{text-align:center;padding:44px 20px 52px;position:relative;overflow:hidden
}
.cta-band::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 45% 70% at 8% 50%,rgba(124,58,237,.30),transparent 65%),
             radial-gradient(ellipse 45% 70% at 92% 50%,rgba(220,38,38,.30),transparent 65%)
}
.cta-band>*{position:relative
}
.cta-band h2{font-size:clamp(30px,4vw,44px);margin:0 0 10px;border:0;padding:0
}
.cta-band h2 .hl{color:var(--red)
}
.cta-band p{max-width:640px;margin:0 auto 20px;font-size:17px
}
/* ---------- footer (PNG reference) ---------- */
.site-footer{border-top:1px solid var(--line);padding:36px 24px 0;background:#050507
}
.site-footer .foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1fr 1fr;gap:24px;max-width:1200px;margin:0 auto 28px;text-align:left
}
.foot-brand p{font-size:14px;margin:10px 0
}
.social-row{display:flex;gap:10px;margin-top:14px
}
.social-row span:hover{border-color:var(--purple);color:#fff
}
.foot-grid h4{font-size:15px;margin:0 0 10px;color:#fff
}
.foot-grid ul{list-style:none;margin:0;padding:0
}
.foot-grid li{margin:7px 0;font-size:14px
}
.foot-grid a:hover{color:#fff;text-decoration:underline
}
.foot-grid .soon{color:var(--ink-2)
}
.foot-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;max-width:1200px;margin:0 auto;border-top:1px solid #1f1b26;padding:16px 0 20px;font-size:13px;color:var(--muted)
}
/* ---------- v2 content classes, dark-adapted ---------- */
.hero{padding:28px 0 8px
}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center
}
.hero-sub{
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}
.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px
}
.card-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px
}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px
}
.badge{display:inline-block;background:#2e1065;color:#c4b5fd;border:1px solid #6d28d9;border-radius:999px;padding:2px 12px;font-size:13px;font-weight:700
}
.soon-pill{display:inline-block;background:#2e1065;color:#c4b5fd;border:1px solid #6d28d9;border-radius:999px;padding:2px 12px;font-size:12px;font-weight:700
}
.table-scroll table{border-collapse:collapse;width:100%;min-width:520px
}
.table-scroll td,.table-scroll th{border:1px solid var(--line);padding:9px 11px;text-align:left;font-size:.95rem;vertical-align:top
}
.table-scroll th{background:var(--bg-soft)
}
.timeline{list-style:none;margin:16px 0;padding:0
}
.timeline li::before{content:"";position:absolute;left:-8px;top:16px;width:14px;height:14px;border-radius:50%;background:var(--bg);border:2px solid var(--purple)
}
.timeline li.current::before{background:var(--purple)
}
.timeline li.current b{color:var(--purple-soft)
}
.timeline li p{margin:2px 0 0;font-size:.93rem;color:var(--ink-2)
}
.timeline li{
  padding: 10px 0 10px 34px;
  position: relative;
  border-left: 2px solid var(--line);
  margin-left: 8px;
  border-bottom: 0;
}
.faq details{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:10px 0;background:var(--surface)
}
.faq summary{font-weight:700;cursor:pointer
}
.field{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:var(--surface);color:#fff;max-width:100%
}
.field-label{display:block;font-weight:600;margin:14px 0 4px
}
.form-status{margin-top:12px;font-weight:600
}
.ea-band{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin:16px 0
}
.ea-checks{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:8px 0
}
.ea-hint{
  font-size: .88rem;
  color: var(--muted);
  margin-top: 4px;
}
.ea-opt{font-weight:400;color:var(--muted);font-size:.88rem
}
.check-list,.step-list{padding-left:20px
}
.check-list{list-style:none;padding:0
}
.check-list li{padding-left:26px;position:relative;margin-bottom:8px
}
.check-list li::before{content:"✓";position:absolute;left:0;color:var(--red);font-weight:800
}
.step-list{counter-reset:step;list-style:none;padding:0
}
.step-list li{counter-increment:step;padding:0 0 14px 44px;position:relative
}
.step-list li::before{content:counter(step);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--red);color:#fff;font-weight:800;text-align:center;line-height:30px
}
.dl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:18px 0
}
.dl-card{border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--surface);text-align:center
}
.dl-card h3{margin-top:0
}
.estimator-results{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px
}
.estimator-results .res{border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center
}
.estimator-results .res b{display:block;font-size:1.25rem
}
.estimator-results .res span{font-size:.85rem;color:var(--ink-3)
}
.fund-status,.status-pill{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:2px 12px;font-size:13px;font-weight:700
}
.fund-status{font-size:.9rem;color:var(--ink-2);margin-top:8px
}
.confirm-box{display:none;border:2px solid var(--purple);border-radius:12px;padding:18px;margin:18px 0;background:var(--bg-soft)
}
.confirm-box.show{display:block
}
.confirm-box .appid{font-size:1.4rem;font-weight:800;letter-spacing:.04em;color:var(--purple-soft)
}
.copy-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px
}
.appid{font-family:ui-monospace,monospace;font-weight:700
}
.warn-box{background:#241a05;border:1px solid #f59e0b;border-radius:8px;padding:14px 16px;margin:18px 0
}
.warn-box b{color:#fbbf24
}
.draft{background:#fef3c7;border:1px solid #f59e0b;border-radius:8px;padding:14px 16px;margin:18px 0;color:#1f2937
}
.draft p,.draft li{color:#1f2937
}
.draft b{color:#92400e
}
.note{background:var(--surface);border-left:4px solid var(--purple);border-radius:4px;padding:12px 16px;margin:18px 0
}
.warn{background:#1f0a0a;border-left:4px solid var(--red);border-radius:4px;padding:12px 16px;margin:18px 0
}
.approved{background:#052e16;border-left:4px solid #16a34a;border-radius:4px;padding:12px 16px;margin:18px 0
}
.cta{display:inline-block;background:var(--red);color:#fff;padding:12px 22px;border-radius:8px;text-decoration:none;font-weight:700;margin-top:14px
}
.cta:hover{background:var(--red-dark)
}
.phone-mock{border:2px solid #685575;border-radius:24px;padding:12px;max-width:320px;margin:0 auto;background:#111016
}
.mock-nav{display:flex;justify-content:space-between;gap:6px
}
.mock-nav,.mock-post{border:1px solid var(--line);border-radius:8px;padding:10px;margin:8px 0
}
.mock-caption{
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 6px 0 0;
}
.phone-top{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)
}
.avatar{border-radius:50%
}
.icon{font-size:20px
}
.img{max-width:100%;height:auto
}
.india-list{columns:2
}
.line{border:0;border-top:1px solid var(--line);margin:20px 0
}
.more{font-size:14px
}
.preview-label{
  font-size: .82rem;
  color: var(--purple-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.res{font-weight:700
}
.short{font-size:14px
}
.who{font-weight:700
}
.ea-status{margin-top:12px;font-weight:600
}
.ea-status.ok{color:#4ade80
}
.ea-status.err{color:#fca5a5
}
.ea-honeypot{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden
}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap
}
.search-box{width:100%;padding:12px 14px;border:2px solid var(--purple);border-radius:8px;font-size:16px;background:var(--surface);color:#fff
}
.help-article{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:10px 0;background:var(--surface)
}
.help-cat{margin-top:28px
}
.post{border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin:16px 0;background:var(--surface)
}
.post time{color:var(--muted);font-size:14px
}
table{border-collapse:collapse;width:100%;margin:12px 0
}
td,th{border:1px solid var(--line);padding:8px 10px;text-align:left;font-size:15px;overflow-wrap:anywhere
}
label{display:block;font-weight:600;margin:14px 0 4px
}
input[type=text],input[type=email],select,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;max-width:100%;background:var(--surface);color:#fff
}
textarea{min-height:110px
}
button[type=submit]{background:var(--red);color:#fff;border:0;padding:12px 22px;border-radius:8px;font-weight:700;cursor:pointer;margin-top:14px
}
button[type=submit]:disabled{opacity:.6;cursor:wait
}
input[type="range"].field{padding:0;border:0
}
.status-link{color:#e4e4e7;text-decoration:none;font-weight:600
}
.status-link:hover{color:#fff
}
/* ---------- responsive ---------- */
/* D1 fix (2026-11-26): full nav needs ~1190px; below 1240px show the hamburger
   instead of wrapping the header to 2 rows. */
@media (max-width:1240px){.site-nav{display:none
}
.nav-toggle{display:block
}
}
@media (max-width:760px){.site-nav{display:none
}
.nav-toggle{display:block
}
.header-actions .lang-wrap,.header-actions .status-link{display:none
}
.hero3{grid-template-columns:1fr;padding:32px 0 24px
}
.phones{min-height:0
}
.mock-phone.side{display:none
}
.mock-phone.centre{margin:0
}
.feat-grid{grid-template-columns:1fr 1fr
}
.big-cards{grid-template-columns:1fr
}
.india-strip{grid-template-columns:1fr 1fr
}
.site-footer .foot-grid{grid-template-columns:1fr 1fr
}
.grid{grid-template-columns:repeat(2,1fr)
}
.hero,.pair{grid-template-columns:1fr
}
.hero{padding:20px 0
}
.card{padding:16px
}
.ea-checks,.estimator-results,.dl-grid,.two-col{grid-template-columns:1fr
}
.estimator-results{grid-template-columns:1fr 1fr
}
}
@media (max-width:640px){.hero-grid,.card-2col,.two-col{grid-template-columns:1fr
}
.site-footer .foot-grid{grid-template-columns:1fr
}
.india-list{columns:1
}
.feat-grid{grid-template-columns:1fr
}
.india-strip{grid-template-columns:1fr
}
.big-card{grid-template-columns:1fr
}
h1{font-size:34px
}
main{padding:0 16px 48px
}
.hero3 h1{font-size:44px
}
}
/* ========================================================================
   TEAM M APPEND — mobile + performance overrides (2026-11-26).
   Source: ~/workspace/melnia-website-v3/mobile/mobile.css
   Merged into the single shared stylesheet per the one-CSS rule.
   Measured basis: mobile/AUDIT.md (real Chromium, 390x844).
   ======================================================================== */
/* ==========================================================================
   Team M — Mobile + Performance override layer (Melnia website v3)
   --------------------------------------------------------------------------
   Apply AFTER Team F's design.css (merge into the single shared stylesheet;
   do NOT ship as a second <link> unless staging already splits CSS).
   Keyed to F's actual class names (frontend/design.css + homepage.py) and to
   the design prototype's legacy classes (.grid, .phone, .hero, .pair).
   All measurements behind these rules: mobile/AUDIT.md (real Chromium,
   390x844). Brand colours use F's variables (--red #dc2626, --purple #7c3aed).
   ========================================================================== */
/* --- 0. Overflow guards (never overflow-x:hidden on body: breaks sticky) --- */
.hero3 > *, .big-card > *, .india-item, .feat-card, .grid > *,
.phones > *, .site-header .wrap > *{ min-width: 0; 
}
p, li, .foot-grid a, .foot-grid li, .site-footer a{ overflow-wrap: anywhere; 
}
img, svg, video{ max-width: 100%; height: auto; 
}
/* --- 1. Touch targets: every interactive element >= 44px --- */
.site-nav > a, .nav-drop-btn{ min-height: 44px; 
}
.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 20px;
  padding: 6px 12px;
  cursor: pointer;
  color: #fff;
  min-height: 44px;
  min-width: 44px;
}
.dropdown-menu a{
  padding: 11px 12px;
  border-radius: 8px;
  color: #e4e4e7;
  font-weight: 600;
  min-height: 44px;
}
.mobile-menu a{
  color: #e4e4e7;
  font-weight: 600;
  padding: 11px 4px;
  border-bottom: 1px solid #1f1b26;
  min-height: 44px;
}
.mobile-menu .btn{
  margin: 10px 0 0;
  min-height: 44px;
  justify-content: center;
}
.lang-select{
  padding: 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
  color: #fff;
  max-width: 150px;
  cursor: pointer;
  min-height: 44px;
}
.site-header .logo{
  font-size: 26px;
  display: inline-block;
  padding: 4px 0;
}
.social-row span{
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #d4d0dc;
  cursor: default;
}
.foot-grid a{
  color: #d4d0dc;
  display: inline-block;
  min-height: 44px;
  padding: 11px 0;
}
.foot-bottom a{
  overflow-wrap: anywhere;
  display: inline-block;
  min-height: 44px;
  padding: 11px 0;
}
.btn, .cta{ min-height: 44px; 
}
/* --- 2. Legacy design grid: the 390px overflow defect (AUDIT.md M-1) --- */
/* F's design.css keeps .grid at 2 cols below 760px with no 1-col step, so the
   features page overflows to 469px. Single column at <=640px fixes it. */
@media (max-width: 640px){.grid{ grid-template-columns: 1fr; 
}
.grid, .feat-grid, .card-grid, .dl-grid{ grid-template-columns: minmax(0, 1fr); 
}
.grid .card h2, .feat-grid .feat-card h3{ overflow-wrap: anywhere; 
}
}
/* --- 3. Hero: THREE phone mockups stack cleanly on mobile (brief §8) --- */
/* F hides the side phones below 760px (.mock-phone.side{display:none}).
   The brief requires them to STACK, not vanish. Un-rotate, un-hide, centre. */
@media (max-width: 760px){.phones{ flex-direction: column; align-items: center; gap: 24px; min-height: 0; 
}
.mock-phone.side{ display: block; transform: none; margin: 0; width: min(190px, 100%); 
}
.mock-phone.side.right{ transform: none; 
}
.mock-phone.centre{ margin: 0; width: min(228px, 100%); transform: none; 
}
.mock-phone{ transform: none; 
}
/* Glow must not bleed horizontally on mobile (was inset:-40px -60px). */
.hero3::before{ inset: -40px 0 auto 0; 
}
.hero3{ overflow: clip; 
}
.cta-band{ overflow: clip; 
}
}
/* --- 4. Legacy single phone mockup (design prototype pages) --- */
/* margin:auto on a grid item shrink-to-fits it to ~200px; give it real width. */
.phone{
  border: 5px solid #685575;
  border-radius: 36px;
  max-width: 290px;
  margin: auto;
  padding: 18px;
  background: #111016;
  box-shadow: 0 0 60px #7629a855;
  transform: rotate(3deg);
  width: min(290px, 100%);
}
/* --- 5. Big cards / trust strip / footer: already stacked by F; tighten --- */
@media (max-width: 640px){.big-card{ padding: 24px 20px; 
}
.big-card h2{ font-size: 28px; 
}
.big-art{ min-height: 120px; 
}
.big-art svg{ max-width: 96px; max-height: 96px; 
}
.india-strip{ gap: 16px; 
}
.foot-bottom{ flex-direction: column; gap: 4px; 
}
.hero-minis{ gap: 16px; 
}
.hero3 h1{ font-size: 44px; 
}
/* already in F; kept as the verified floor */
}
/* --- 6. Tables / horizontal scroll regions stay inside the page --- */
.table-scroll{
  overflow-x: auto;
  margin: 14px 0;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
/* --- 7. Mobile-menu dropdowns (defensive: only used if staging's
   #mobileMenu nests .nav-dropdown groups; F's current menu is flat links) --- */
@media (max-width: 760px){.mobile-menu .nav-dropdown{ width: 100%; 
}
.mobile-menu .nav-drop-btn{ width: 100%; justify-content: space-between; min-height: 44px; padding: 11px 4px; border-bottom: 1px solid #1f1b26; 
}
.mobile-menu .dropdown-menu{ position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: transparent; 
}
.mobile-menu .nav-dropdown.open .dropdown-menu{ display: flex; 
}
.mobile-menu .dropdown-menu a{ border-bottom: 0; 
}
}
/* --- 8. Reduced motion: glow is static CSS gradients (no animation today),
   but any animation/transition added later must honour this. --- */
@media (prefers-reduced-motion: reduce){*, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  
}
.mock-phone, .mock-phone.side, .mock-phone.side.right, .phone{ transform: none !important; 
}
}
/* TEAM M AMENDMENT 2 (2026-11-26, post-measure): checkbox label rows, skip link,
   and <summary> hit areas to 44px. Source: mobile/mobile.css (same rules). */
/* Form checkbox: bump only (full 44px would distort the form; label-row tap
   target depends on Team B's <label> wrapping — see AUDIT.md G-8). */
.ea-check input{
  margin-top: 4px;
  flex: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
}
.ea-check{
  margin: 6px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
  line-height: 1.45;
  min-height: 44px;
}
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  z-index: 60;
  min-height: 44px;
}
summary{ min-height: 44px; 
}
/* --- Update notification (§7) — Team B, 2026-11-26 ---
   Melnia-branded toast (normal / recommended) bottom-right, never
   full-screen for ordinary updates; critical / emergency render as a
   centred dialog over a dim backdrop. Built by update-checker.js.
   Colours reuse the site palette vars (--red, --purple, --surface,
   --ink, --muted, --line). */
.melnia-update-backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 199; 
}
.melnia-update-toast{ position: fixed; right: 16px; bottom: 16px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 14px; padding: 16px 16px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.6); font-size: 15px; line-height: 1.5; 
}
.melnia-update-toast--recommended{ width: 400px; border-left-color: var(--purple);
  border-top: 1px solid var(--purple); 
}
.melnia-update-toast--critical, .melnia-update-toast--emergency{
  right: 50%; bottom: auto; top: 50%; transform: translate(50%, -50%);
  width: 480px; border-left-color: var(--red); border-top: 3px solid var(--red); 
}
.melnia-update-toast--emergency{ border-top-color: var(--red); box-shadow: 0 12px 48px rgba(220,38,38,.45); 
}
.melnia-update-head{ display: flex; gap: 10px; align-items: flex-start; 
}
.melnia-update-mark{ flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 900; font-size: 18px;
  display: grid; place-items: center; line-height: 1; 
}
.melnia-update-toast--recommended .melnia-update-mark{ background: var(--purple); 
}
.melnia-update-titles{ display: flex; flex-direction: column; gap: 2px; 
}
.melnia-update-title{ font-size: 16px; line-height: 1.3; 
}
.melnia-update-version{ font-size: 13px; color: var(--muted); 
}
.melnia-update-msg{ margin: 10px 0 0; color: var(--muted); 
}
.melnia-update-warning{ margin: 10px 0 0; color: #fca5a5; font-weight: 700; 
}
.melnia-update-notes-wrap{ margin-top: 10px; 
}
.melnia-update-notes-label{ display: block; margin-bottom: 4px; 
}
.melnia-update-notes{ margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; 
}
.melnia-update-notes.melnia-update-notes{ padding-left: 18px; 
}
p.melnia-update-notes{ padding-left: 0; 
}
.melnia-update-actions{ display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; 
}
.melnia-update-btn{ padding: 10px 16px; min-height: 44px; border-radius: 12px;
  font: inherit; font-weight: 700; cursor: pointer; border: 0; 
}
.melnia-update-btn--primary{ background: var(--red); color: #fff; 
}
.melnia-update-btn--primary:hover{ background: var(--red-dark); 
}
.melnia-update-btn--ghost{ background: transparent; color: var(--ink); border: 1px solid var(--line); 
}
.melnia-update-btn--ghost:hover{ border-color: var(--purple); 
}
.melnia-update-btn[disabled]{ opacity: .55; cursor: not-allowed; 
}
.melnia-update-btn:focus-visible{ outline: 3px solid var(--purple); outline-offset: 3px; 
}
@media (max-width: 480px){.melnia-update-toast{ right: 12px; bottom: 12px; left: 12px; width: auto; 
}
.melnia-update-toast--critical, .melnia-update-toast--emergency{
    left: 12px; right: 12px; transform: translateY(-50%); width: auto; 
}
.melnia-update-actions{ flex-direction: column; 
}
.melnia-update-btn{ width: 100%; 
}
}
@media (prefers-reduced-motion: reduce){.melnia-update-toast{ transition: none !important; animation: none !important; 
}
}
/* ---------- W1 global design: rotating 3D globe hero (2026-11-26) ---------- */
.globe-wrap{text-align:center;min-width:0
}
.globe-wrap canvas{width:100%;max-width:520px;height:auto;display:block;margin:0 auto
}
#motion{display:inline-block;margin-top:12px;padding:10px 20px;border-radius:12px;font:inherit;font-weight:700;border:1px solid #a855f7;color:#fff;background:#241436;cursor:pointer;min-height:44px
}
#motion:hover{border-color:#c4b5fd
}
#motion:focus-visible{outline:3px solid #d6b0ff;outline-offset:4px
}
.globe-note{font-size:13px;color:var(--muted);text-align:center;margin:8px 0 0
}
.app-preview{padding:8px 0 24px
}
.app-preview .phones{margin:0 auto
}
@media (max-width:760px){.globe-wrap{margin-top:8px
}
.globe-wrap canvas{max-width:440px
}
}
@media (prefers-reduced-motion: reduce){.globe-wrap canvas{animation:none
}
}
/* ========================================================================
   W3 — Homepage improvements (2026-11-26, staging only).
   All rules scoped under body.home so no other page sharing this
   stylesheet is affected. No new animations; globe.js owns motion and
   already honours prefers-reduced-motion + the pause button.
   ======================================================================== */
/* --- Tighter vertical rhythm: remove dead gaps, keep readability --- */
.home main{padding-bottom:48px
}
.home .hero3{padding:40px 0 28px;grid-template-columns:1.08fr .92fr;gap:24px;overflow:clip
}
.home .hero3::before{inset:-30px 0 auto 0
}
.home .app-preview{padding:4px 0 20px
}
.home .home-h2{margin:6px 0 20px
}
.home .big-cards{margin:20px 0
}
.home .india-strip{padding:20px 0
}
.home .cta-band{padding:32px 20px 36px
}
.home .hero-minis{margin:18px 0
}
.home .hero-cta{margin-top:14px
}
/* --- Globe: smaller, never overflows its column --- */
.home .globe-wrap{min-width:0
}
.home .globe-wrap canvas{max-width:460px
}
@media (max-width:1100px){.home .hero3{grid-template-columns:1fr 1fr;gap:20px
}
.home .globe-wrap canvas{max-width:420px
}
}
@media (max-width:760px){.home .globe-wrap canvas{max-width:400px
}
}
/* --- Text contrast on black: #dc2626 is 4.12:1, below 4.5:1 for
   small text. #f87171 is 7.19:1. Brand --red itself is untouched
   (white on #dc2626 buttons is 4.83:1, still passes). --- */
.home .hero3 h1 .line2{color:#f87171
}
.home .big-card.marketplace h2 .hl{color:#f87171
}
.home .cta-band h2 .hl{color:#f87171
}
.home .mock-head .m-red{color:#f87171
}
.home .mock-bottomnav b{color:#f87171
}
/* --- Mockup "Illustrative" label (one per phone, visible) --- */
.home .mock-tag{display:block;width:max-content;max-width:100%;margin:10px auto 2px;
  padding:3px 8px;border:1px solid #6d28d9;border-radius:999px;background:#241436;
  color:#c4b5fd;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap
}
.home .mock-tabs{flex-wrap:nowrap;gap:8px
}
.home .mock-tabs b,.home .mock-tabs span{white-space:nowrap
}
.home .mock-swipe-hint{display:none;text-align:center;font-size:13px;color:#c9c6d1;margin:4px 0 0
}
/* --- Feed mockup: story row + sample post (no engagement numbers) --- */
.home .mock-stories{display:flex;gap:8px;justify-content:space-between;padding:2px 2px 10px
}
.home .mock-story{display:flex;flex-direction:column;align-items:center;gap:4px;
  font-size:10px;font-weight:600;color:#c9c6d1
}
.home .mock-story i{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  font-style:normal;font-size:16px;font-weight:800;color:#fff;
  border:2px solid #a855f7;background:#241436
}
.home .mock-story .s1{background:linear-gradient(135deg,#7c3aed,#dc2626)
}
.home .mock-story .s2{background:linear-gradient(135deg,#3b0764,#7c3aed)
}
.home .mock-story .s3{background:linear-gradient(135deg,#4c0519,#dc2626)
}
.home .mock-story .s4{background:linear-gradient(135deg,#1e1b4b,#6d28d9)
}
.home .mock-post{border:1px solid #262031;border-radius:12px;padding:10px;background:#14101b;margin-bottom:10px
}
.home .mock-post-head{display:flex;gap:8px;align-items:center
}
.home .mock-post-avatar{width:32px;height:32px;border-radius:50%;flex:none;display:grid;place-items:center;
  font-weight:800;font-size:14px;color:#fff;background:linear-gradient(135deg,#7c3aed,#dc2626)
}
.home .mock-post-name{display:block;font-size:12px;font-weight:700;color:#fff;line-height:1.3
}
.home .mock-post-handle{display:block;font-size:11px;color:#c9c6d1;line-height:1.3
}
.home .mock-post-text{font-size:12px;color:#e4e4e7;margin:8px 0;line-height:1.45
}
.home .mock-post-img{height:104px;border-radius:8px;display:grid;place-items:center;
  color:#fff;font-size:12px;font-weight:700;
  background:linear-gradient(145deg,#2a2140,#7c3aed 55%,#dc2626)
}
.home .mock-post-actions{display:flex;gap:18px;padding:8px 4px 0;color:#d4d0dc;font-size:15px
}
/* --- Mobile: swipeable preview carousel (scroll-snap, no JS) ---
   Overrides Team M's stacked column (same file, earlier). Higher
   specificity (.home .phones) + later position both win. --- */
@media (max-width:760px){.home .phones{flex-direction:row;justify-content:flex-start;align-items:flex-start;
    gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;padding:8px 4px 14px;scroll-padding:0 24px
}
.home .mock-phone{flex:0 0 auto;scroll-snap-align:center;transform:none;margin:0
}
.home .mock-phone.side{width:190px
}
.home .mock-phone.centre{width:228px
}
.home .mock-swipe-hint{display:block
}
}
/* --- Reduced motion: no new motion is added by W3; keep scrolling
   instant and let globe.js (paused on load under reduced motion)
   stay the only motion source. --- */
@media (prefers-reduced-motion: reduce){.home .phones{scroll-behavior:auto
}
}

/* --- Public Beta entry point (Team F, 26 Nov 2026) --- */
.beta-badge{display:inline-block;background:var(--red);color:#fff;border:1px solid var(--red-dark);border-radius:999px;padding:3px 14px;font-size:13px;font-weight:800;letter-spacing:.02em;vertical-align:middle;margin-left:8px}
.beta-note{font-size:15px}
.badge-beta{background:var(--red);color:#fff;border-color:var(--red-dark)}
.badge-testing{background:#241a05;color:#fbbf24;border-color:#f59e0b}
.badge-dev{background:transparent;color:var(--muted);border-color:var(--line)}
.rec-banner{background:var(--surface);border:1px solid var(--purple);border-left:4px solid var(--purple);border-radius:8px;padding:12px 16px;margin:14px 0}
.rec-banner a{color:var(--purple-soft);font-weight:700;text-decoration:underline}
.device-picker{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.pick-btn{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:8px 16px;font-size:14px;font-weight:700;cursor:pointer}
.pick-btn:hover{border-color:var(--purple)}
.pick-btn[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:#fff}
.dl-card.recommended{outline:2px solid var(--red);outline-offset:2px}
.rec-pill{display:inline-block;background:var(--red);color:#fff;border-radius:999px;padding:2px 12px;font-size:12px;font-weight:700}
.dl-facts{text-align:left;margin:16px 0;font-size:14px}
.dl-facts dt{font-weight:800;color:var(--ink);margin-top:8px}
.dl-facts dd{margin:0;color:var(--muted)}
.dl-facts code{font-size:12px;word-break:break-all}
